lilei vor 4 Jahren
Ursprung
Commit
391c0cb180
2 geänderte Dateien mit 14 neuen und 11 gelöschten Zeilen
  1. 9 7
      libs/axios.js
  2. 5 4
      pages/index/index.vue

+ 9 - 7
libs/axios.js

@@ -55,13 +55,15 @@ const request = (opts, hasToken) => {
 						}
 					}
 					else{
-						if(!(ret.status == 500 && opts.url.indexOf("store/validateStoreAndDevice")>=0)||(!(opts.url.indexOf("couponReceives/findUsableCoupon")>=0))){
-							uni.showToast({
-								icon:'none',
-								title: ret.message,
-								mask: true,
-								duration: 3000 
-							})
+						if(ret.status == 500){
+							if(opts.url.indexOf("store/validateStoreAndDevice")<0&&opts.url.indexOf("couponReceives/findUsableCoupon")<0){
+								uni.showToast({
+									icon:'none',
+									title: ret.message,
+									mask: true,
+									duration: 3000 
+								})
+							}
 						}
 					}
 					resolve(ret)

+ 5 - 4
pages/index/index.vue

@@ -235,15 +235,16 @@
 			},
 			// 获取所有标记点数据
 			getMarkersData() {
-				uni.showLoading({
-					title: '加载中...'
-				})
+				// uni.showLoading({
+				// 	title: '加载中...',
+				// 	mask: true
+				// })
 				let params = {
 					lat: this.lat,
 					lng: this.lng
 				}
 				getMapStoreList(params).then(res => {
-					uni.hideLoading()
+					// uni.hideLoading()
 					if (res.status == 200) {
 						let markData = res.data
 						let markers = [];