@@ -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)
@@ -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 = [];