Browse Source

1.修改loading提示位置

306132416@qq.com 6 years ago
parent
commit
f71accc638
2 changed files with 2 additions and 2 deletions
  1. 1 1
      App.vue
  2. 1 1
      pages/index/index.vue

+ 1 - 1
App.vue

@@ -2,7 +2,7 @@
 	var md5 = require("./common/md5.js");
 	export default {
 		globalData: {  //https://stock.xazhima.com/
-			shareUrl: 'https://guolu.xazhima.com/api/api.php', //开发环境全局接口域名 线上:http://guolu.xazhima.com/
+			shareUrl: 'https://guolu.xazhima.com/api/api.php', //开发环境全局接口域名 线上:https://guolu.xazhima.com/
 			glbalHeight:'',
 			globalTimestamp: (Date.now()).toString(),
 			user_id: '',

+ 1 - 1
pages/index/index.vue

@@ -115,6 +115,7 @@
 		},
 		methods: {
 			userLogin(){
+				uni.showLoading({})
 				uni.login({
 					success: (res) => {
 				        this.getCodeRabot(res)
@@ -146,7 +147,6 @@
 						 getApp().globalData.user_headUrl = res.data.msg.headimg;
 						 getApp().globalData.user_name = res.data.msg.name;
 						 that.userHeadUrl = res.data.msg.headimg || '../../static/userDefault.png';
-						 uni.showLoading({})
 						 that.getHistory();	
 					} 
 				});