Selaa lähdekoodia

二维码首次打开问题修复

tags/2.2.4
Stormeye.Wu 6 vuotta sitten
vanhempi
commit
21710c653f
1 muutettua tiedostoa jossa 11 lisäystä ja 3 poistoa
  1. +11
    -3
      pages/passCar/passCar.js

+ 11
- 3
pages/passCar/passCar.js Näytä tiedosto

@@ -73,8 +73,10 @@ Page({
},
onShow: function(options) {
var that = this;
that.getList();
that.init();
if (app.globalData.token) {
that.getList();
that.init();
}
/**
* 只有用户选择了优惠券
* 才会进行券和车牌的绑定
@@ -86,7 +88,10 @@ Page({
data: '',
})
};
that.initUsrCarList();
if (app.globalData.token) {
that.initUsrCarList();
}
if (that.data.addCar) {
// 绑车牌
if (app.globalData.carLogin) {
@@ -173,6 +178,9 @@ Page({
Http.setToken(res.data.token);
that.checkUserCarStatus();
that.getUserInfo();
that.getList();
that.init();
that.initUsrCarList();
return Http.post({
url: config.api.checkUserStatus,
data: {}


Ladataan…
Peruuta
Tallenna