Browse Source

打开注释代码,开屏广告;积分商城订单列表显示品牌;优化获取验证码

master
邓平艺 4 years ago
parent
commit
a6fe827135
  1. 14
      pages/index/index/index.vue
  2. 4
      pages/order/pointconfirm/confirm.vue
  3. 2
      pages/point/exchangeRecord/exchangeRecord.vue
  4. 4
      pages/user/loginType/loginType.vue
  5. 15
      pages/user/my/newPhone.vue
  6. 16
      pages/user/my/setPassword.vue
  7. 16
      pages/user/my/verificationPhone.vue

14
pages/index/index/index.vue

@ -212,13 +212,13 @@
// //
onLoad(e) { onLoad(e) {
// 广 // 广
// if(app.globalData.app_first_full){
// getApp().globalData.app_first_full = false;
// this.$url('/pages/index/openScreenAd/openScreenAd', {type: 'launch'});
// }else if(app.globalData.app_first_alert){
// getApp().globalData.app_first_alert = false;
// this.getAlertAd();
// }
if(app.globalData.app_first_full){
getApp().globalData.app_first_full = false;
this.$url('/pages/index/openScreenAd/openScreenAd', {type: 'launch'});
}else if(app.globalData.app_first_alert){
getApp().globalData.app_first_alert = false;
this.getAlertAd();
}
// //
var gbConfig = this.$cookieStorage.get('globalConfig') || ''; var gbConfig = this.$cookieStorage.get('globalConfig') || '';

4
pages/order/pointconfirm/confirm.vue

@ -229,7 +229,9 @@
this.address = res.data.data.address; this.address = res.data.data.address;
uni.hideLoading() uni.hideLoading()
}else{ }else{
this.$msg('订单提交失败!', {icon: 'error'})
this.$msg(res.data.message || '订单提交失败!').then(() => {
this.$toBack();
});
} }
}).catch(err => uni.hideLoading()) }).catch(err => uni.hideLoading())
}, },

2
pages/point/exchangeRecord/exchangeRecord.vue

@ -10,7 +10,7 @@
<view class="card" v-for="(item, index) in list" :key="index" @click="$url('/pages/order/newdetail/newdetail?type=point&order_id='+item.order_no)"> <view class="card" v-for="(item, index) in list" :key="index" @click="$url('/pages/order/newdetail/newdetail?type=point&order_id='+item.order_no)">
<view> <view>
<text class="lf-iconfont icon-Group- lf-font-30"></text> <text class="lf-iconfont icon-Group- lf-font-30"></text>
<text class="shop-name">{{item.from}}</text>
<text class="shop-name">{{item.brand.name}}</text>
<text class="lf-iconfont icon-xiangyou lf-font-24"></text> <text class="lf-iconfont icon-xiangyou lf-font-24"></text>
</view> </view>
<view class="lf-flex lf-m-t-20" v-for="(item2,index2) of item.items" :key="index2"> <view class="lf-flex lf-m-t-20" v-for="(item2,index2) of item.items" :key="index2">

4
pages/user/loginType/loginType.vue

@ -43,7 +43,7 @@
code: '', code: '',
is_code: false, is_code: false,
timer: null, timer: null,
num: 10
num: 60
} }
}, },
onLoad(){ onLoad(){
@ -70,7 +70,7 @@
if(this.num <= 0){ if(this.num <= 0){
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
this.num = 10;
this.num = 60;
this.is_code = false; this.is_code = false;
} }
}, 1000); }, 1000);

15
pages/user/my/newPhone.vue

@ -33,7 +33,7 @@
code: '', code: '',
is_code: false, is_code: false,
timer: null, timer: null,
num: 10,
num: 60,
token: '' token: ''
} }
}, },
@ -64,7 +64,7 @@
if(this.num <= 0){ if(this.num <= 0){
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
this.num = 10;
this.num = 60;
this.is_code = false; this.is_code = false;
} }
}, 1000); }, 1000);
@ -80,9 +80,16 @@
Authorization: this.token Authorization: this.token
} }
}).then(res => { }).then(res => {
console.log("-------", res);
if(res.data.code == 200){
if(res.data.success){
this.$msg(res.data.message, {icon: 'success'}); this.$msg(res.data.message, {icon: 'success'});
}else{
this.$msg(res.data.message);
if(this.timer){
clearInterval(this.timer);
this.timer = null;
this.num = 60;
this.is_code = false;
}
} }
}) })
}, },

16
pages/user/my/setPassword.vue

@ -37,7 +37,7 @@
code: '', code: '',
is_code: false, is_code: false,
timer: null, timer: null,
num: 10,
num: 60,
show_pay: false, show_pay: false,
show_again_pay: false, show_again_pay: false,
token: '', token: '',
@ -72,7 +72,7 @@
if(this.num <= 0){ if(this.num <= 0){
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
this.num = 10;
this.num = 60;
this.is_code = false; this.is_code = false;
} }
}, 1000); }, 1000);
@ -88,7 +88,17 @@
Authorization: this.token Authorization: this.token
} }
}).then(res => { }).then(res => {
this.$msg(res.data.message, {icon: 'success'});
if(res.data.success){
this.$msg(res.data.message, {icon: 'success'});
}else{
this.$msg(res.data.message);
if(this.timer){
clearInterval(this.timer);
this.timer = null;
this.num = 60;
this.is_code = false;
}
}
}) })
}, },
// //

16
pages/user/my/verificationPhone.vue

@ -33,7 +33,7 @@
code: '', code: '',
is_code: false, is_code: false,
timer: null, timer: null,
num: 10,
num: 60,
token: '' token: ''
} }
}, },
@ -64,7 +64,7 @@
if(this.num <= 0){ if(this.num <= 0){
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
this.num = 10;
this.num = 60;
this.is_code = false; this.is_code = false;
} }
}, 1000); }, 1000);
@ -80,7 +80,17 @@
Authorization: this.token Authorization: this.token
} }
}).then(res => { }).then(res => {
this.$msg(res.data.message, {icon: 'success'});
if(res.data.success){
this.$msg(res.data.message, {icon: 'success'});
}else{
this.$msg(res.data.message);
if(this.timer){
clearInterval(this.timer);
this.timer = null;
this.num = 60;
this.is_code = false;
}
}
}) })
}, },
next(){ next(){

Loading…
Cancel
Save