订单逻辑修改
This commit is contained in:
@@ -181,7 +181,7 @@
|
||||
* 获取手机号
|
||||
* @param {Object} d
|
||||
*/
|
||||
getPhone(d) {
|
||||
async getPhone(d) {
|
||||
console.log(d)
|
||||
// #ifdef MP-WEIXIN
|
||||
if (d.detail.iv) {
|
||||
@@ -194,6 +194,7 @@
|
||||
code: data.code,
|
||||
encryptedData: d.detail.encryptedData,
|
||||
iv: d.detail.iv,
|
||||
source: "wechar"
|
||||
})
|
||||
this.phonetitle = res.data.substr(0, 3) + "****" + res.data.substr(7)
|
||||
this.mobile = res.data;
|
||||
@@ -207,13 +208,13 @@
|
||||
scopes: 'auth_user',
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
let authCode = res.authCode;
|
||||
my.getPhoneNumber({
|
||||
success: async (data) => {
|
||||
console.log(data)
|
||||
let res = await this.api.userwxlogins({
|
||||
code: res.authCode,
|
||||
encryptedData: d.response,
|
||||
iv: d.detail.iv,
|
||||
// code: authCode,
|
||||
encryptedData: JSON.parse(data.response).response,
|
||||
source: "alipay"
|
||||
})
|
||||
this.phonetitle = res.data.substr(0, 3) + "****" + res.data.substr(7)
|
||||
this.mobile = res.data;
|
||||
@@ -221,9 +222,6 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
// #endif
|
||||
},
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
if (uni.cache.get('shopId') && uni.cache.get('token')) {
|
||||
if ( this.shopInfo.isVip == 0 ) {
|
||||
uni.pro.navigateTo('member/memberdetails', {
|
||||
shopId_id: uni.cache.get('shopId')
|
||||
shopId: uni.cache.get('shopId')
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user