hejie преди 3 години
родител
ревизия
c4706d6fc8
променени са 3 файла, в които са добавени 11 реда и са изтрити 10 реда
  1. 1 1
      src/components/authorize-module/index.vue
  2. 8 8
      src/pages/my/index.vue
  3. 2 1
      src/request/request.js

+ 1 - 1
src/components/authorize-module/index.vue

@@ -78,7 +78,7 @@
 			    this.$emit('closeAuthCom');
 			},
 			onGotUserInfo (e) {
-			    this.$emit('authSuccess',e);
+			    this.$emit('authSuccess');
 			},
 			onGotPhoneNumber(e){
                 this.$emit('authGetTelSuccess', e);

+ 8 - 8
src/pages/my/index.vue

@@ -44,7 +44,7 @@
 					</view>
 				</block>
 				<block v-else>
-					<view class="user_con flex_c flex_jb">
+					<view class="user_con flex_c flex_jb" @click="login">
 						<view class="user_name flex_r flex_ae ellipsis">点此处登录</view>
 					</view>
 				</block>
@@ -289,9 +289,9 @@
 		},
 		onLoad: function(options) {
 			//推荐人ID
-			if (options.dealer) {
-				app.globalData.agentId = options.dealer;
-				this.invited = options.dealer
+			if (options.invite) {
+				app.globalData.agentId = options.invite;
+				this.invited = options.invite
 			}
 			// if (options && options.scene) {
 			// 	var scene = decodeURIComponent(options.scene).split("&");
@@ -328,10 +328,10 @@
 										that.getuserInfo();
 									} else {
 										that.unid = res.data.unid;
-										// setTimeout(() => {
-										that.showAuth = true;
-										that.shopInfo = app.globalData.shopInfo;
-										// }, 500);
+										setTimeout(() => {
+											that.shopInfo = app.globalData.shopInfo;
+											that.showAuth = true;
+										}, 1000);
 									}
 								}
 							});

+ 2 - 1
src/request/request.js

@@ -60,7 +60,8 @@ uni.addInterceptor('request', {
 				});
 				// #endif
 			}, 1500);
-		}else if(args.data.code == -1){
+		}
+		if(args.data.code === -1){
 			uni.showToast({
 				title: args.data.msg,
 				duration: 2000,