|
|
@@ -346,6 +346,7 @@ Page({ |
|
|
|
// that.checkUserCarStatus(); |
|
|
|
that.getUserInfo(); |
|
|
|
that.getBannerlist(); |
|
|
|
that.topicShow(); |
|
|
|
if (app.couponChannelListCallback) { |
|
|
|
app.couponChannelListCallback(app.globalData.token); |
|
|
|
} |
|
|
@@ -464,6 +465,21 @@ Page({ |
|
|
|
}) |
|
|
|
; |
|
|
|
}, |
|
|
|
// 专题显示 |
|
|
|
topicShow: function () { |
|
|
|
let that = this; |
|
|
|
Http.get({ |
|
|
|
url: config.api.topicShow, |
|
|
|
data: { |
|
|
|
token: app.globalData.token |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
console.log(res); |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log(err); |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 检查用户是否有车 |
|
|
@@ -486,24 +502,24 @@ Page({ |
|
|
|
/** |
|
|
|
* car共同登录 |
|
|
|
*/ |
|
|
|
userCarLogin: function() { |
|
|
|
var that = this; |
|
|
|
if (!app.globalData.carLogin) { |
|
|
|
// 共同登录 |
|
|
|
Http.post({ |
|
|
|
url: config.api.carInit, |
|
|
|
data: { |
|
|
|
phone: app.globalData.phone |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
app.globalData.carLogin = true; |
|
|
|
app.globalData.parkVendor = res.data.vendor; |
|
|
|
if (res.data.token != "undefined") { |
|
|
|
app.globalData.etcpToken = res.data.token; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
// userCarLogin: function() { |
|
|
|
// var that = this; |
|
|
|
// if (!app.globalData.carLogin) { |
|
|
|
// // 共同登录 |
|
|
|
// Http.post({ |
|
|
|
// url: config.api.carInit, |
|
|
|
// data: { |
|
|
|
// phone: app.globalData.phone |
|
|
|
// } |
|
|
|
// }).then(res => { |
|
|
|
// app.globalData.carLogin = true; |
|
|
|
// app.globalData.parkVendor = res.data.vendor; |
|
|
|
// if (res.data.token != "undefined") { |
|
|
|
// app.globalData.etcpToken = res.data.token; |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// }, |
|
|
|
/** |
|
|
|
* 获取用户信息 |
|
|
|
*/ |
|
|
|