Просмотр исходного кода

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
去掉接口异常提示

1004749546@qq.com 4 лет назад
Родитель
Сommit
8d41c8c88d

+ 0 - 5
pages/getOrder/getOrder.vue

@@ -234,10 +234,6 @@
 					if (res.status == 200) {
 						this.userPhone = res.data.mobile
 					} else {
-						uni.showToast({
-							title: res.message,
-							icon: 'none'
-						})
 					}
 				})
 			},
@@ -261,7 +257,6 @@
 						this.getFinalAmount()
 					} else {
 						this.itemList = []
-						this.toashMsg(res.message)
 					}
 				})
 			},

+ 2 - 2
pages/index/index.vue

@@ -184,9 +184,9 @@
 				getMapStoreList(params).then(res=>{
 					uni.hideLoading()
 					if (res.status == 200) {
-						this.markData = res.data
+						let markData = res.data
 						let markers = [];
-						for (let item of this.markData) {
+						for (let item of markData) {
 							let marker = this.createMarker(item);
 							markers.push(marker)
 						}

+ 27 - 26
pages/login/login.vue

@@ -55,35 +55,36 @@
 				} 
 				console.log(e.target.encryptedData,'eeeeeee')
 				if (e.target.errMsg === 'getPhoneNumber:ok') {
-					login({
-						code: _this.code,
-						encryptedData: e.target.encryptedData,
-						iv: e.target.iv
-					}).then(res => {
-						uni.hideLoading();
-						_this.code = ''
-						console.log(res, 'login data')
-						if (res.status == '200') {
-							getApp().globalData.token = res.data
-							_this.$u.vuex('vuex_token',res.data)
-							if (_this.path === '/pages/index/index' || _this.lanuch) {
-								uni.reLaunch({
-									url: _this.path
-								});
+					setTimeout(()=>{
+						login({
+							code: _this.code,
+							encryptedData: e.target.encryptedData,
+							iv: e.target.iv
+						}).then(res => {
+							uni.hideLoading();
+							_this.code = ''
+							console.log(res, 'login data')
+							if (res.status == '200') {
+								getApp().globalData.token = res.data
+								_this.$u.vuex('vuex_token',res.data)
+								if (_this.path === '/pages/index/index' || _this.lanuch) {
+									uni.reLaunch({
+										url: _this.path
+									});
+								} else {
+									uni.redirectTo({
+										url: _this.path
+									});
+								}
 							} else {
-								uni.redirectTo({
-									url: _this.path
+								uni.showToast({
+									title: res.message,
+									icon: 'none',
+									duration: 2500
 								});
 							}
-						} else {
-							uni.showToast({
-								title: res.message,
-								icon: 'none',
-								duration: 2500
-							});
-						}
-					});
-					
+						});
+					},300)
 				} else {
 					uni.showToast({
 						title: '授权失败',

+ 0 - 1
pages/order/order.vue

@@ -76,7 +76,6 @@
 						this.list = []
 						this.count = 0
 						this.noDataText = res.message
-						this.toashMsg(res.message)
 					}
 				})
 			},

+ 0 - 1
pages/order/orderDetail.vue

@@ -76,7 +76,6 @@
 						this.orderInfo.payStatus = this.getOptionName(orderStatusList,this.orderInfo.payStatus)
 						this.orderInfo.payType = this.orderInfo.payType ? this.getOptionName(payTypeList,this.orderInfo.payType) : ''
 					} else {
-						this.toashMsg(res.message)
 					}
 				})
 			}

+ 0 - 1
pages/store/storeDetail.vue

@@ -132,7 +132,6 @@
 						this.getOptionName()
 						this.storeInfo.distance = this.storeInfo.distanct && this.storeInfo.distanct.distance ? Math.round(this.storeInfo.distanct.distance / 1000) : ''
 					} else {
-						this.toashMsg(res.message)
 					}
 				})
 			},