|
|
@@ -425,15 +425,15 @@ Page({ |
|
|
|
pageSize: 7 |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
that.getmemberId(app.globalData.token); |
|
|
|
that.checkUserCarStatus(); |
|
|
|
// that.getmemberId(app.globalData.token); |
|
|
|
// that.checkUserCarStatus(); |
|
|
|
that.setData({ |
|
|
|
list: res.data.list |
|
|
|
}); |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
that.getmemberId(app.globalData.token); |
|
|
|
that.checkUserCarStatus(); |
|
|
|
// that.getmemberId(app.globalData.token); |
|
|
|
// that.checkUserCarStatus(); |
|
|
|
}) |
|
|
|
; |
|
|
|
}, |
|
|
@@ -441,21 +441,21 @@ Page({ |
|
|
|
/** |
|
|
|
* 检查用户是否有车 |
|
|
|
*/ |
|
|
|
checkUserCarStatus: function() { |
|
|
|
var that = this; |
|
|
|
Http.get({ |
|
|
|
url: config.api.userCarCount, |
|
|
|
data: {} |
|
|
|
}).then(res => { |
|
|
|
if (res.data > 0) { |
|
|
|
// 用户名下有车 |
|
|
|
app.globalData.phone = res.data.phone; |
|
|
|
app.globalData.supportCar = true; |
|
|
|
// 共同登录 |
|
|
|
that.userCarLogin(); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// checkUserCarStatus: function() { |
|
|
|
// var that = this; |
|
|
|
// Http.get({ |
|
|
|
// url: config.api.userCarCount, |
|
|
|
// data: {} |
|
|
|
// }).then(res => { |
|
|
|
// if (res.data > 0) { |
|
|
|
// // 用户名下有车 |
|
|
|
// app.globalData.phone = res.data.phone; |
|
|
|
// app.globalData.supportCar = true; |
|
|
|
// // 共同登录 |
|
|
|
// that.userCarLogin(); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
/** |
|
|
|
* car共同登录 |
|
|
|
*/ |
|
|
|