Browse Source

首页请求执行修改

tags/安徽版C.4.1.6最终版
刘晖 6 years ago
parent
commit
9e95d8303e
1 changed files with 14 additions and 5 deletions
  1. +14
    -5
      pages/main/index.js

+ 14
- 5
pages/main/index.js View File

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


/** /**


Loading…
Cancel
Save