瀏覽代碼

首页请求执行修改

tags/安徽版C.4.1.6最终版
刘晖 6 年之前
父節點
當前提交
9e95d8303e
共有 1 個檔案被更改,包括 14 行新增5 行删除
  1. +14
    -5
      pages/main/index.js

+ 14
- 5
pages/main/index.js 查看文件

@@ -307,10 +307,8 @@ Page({
userLogin: function(couponChannelId, couponId, orderId) {
var that = this;
// 登录
that.getGameOne(app.globalData.token)
that.getStaticGame(app.globalData.token)
that.getmemberId(app.globalData.token);
that.checkUserCarStatus();
// that.getmemberId(app.globalData.token);
// that.checkUserCarStatus();
that.getUserInfo();
that.getBannerlist();
if (app.couponChannelListCallback) {
@@ -329,6 +327,8 @@ Page({
}
})
.then(res => {
that.getGameOne(app.globalData.token)
that.getStaticGame(app.globalData.token)
let weapNote = JSON.parse(res.data.weapNote);
that.setData({
desc: weapNote.firstpage.desc,
@@ -336,6 +336,8 @@ Page({
})
})
.catch(err => {
that.getGameOne(app.globalData.token)
that.getStaticGame(app.globalData.token)
wx.showModal({
title: "提示",
content: err.errMsg,
@@ -414,10 +416,17 @@ Page({
pageSize: 7
}
}).then(res => {
that.getmemberId(app.globalData.token);
that.checkUserCarStatus();
that.setData({
list: res.data.list
});
});
})
.catch(err => {
that.getmemberId(app.globalData.token);
that.checkUserCarStatus();
})
;
},

/**


Loading…
取消
儲存