1,。修改团油订单 手机号未获取

yj-dev
杨杰 3 years ago
parent 16af9da3fd
commit c5cbbe7c58
  1. 7
      pages/goods/goods.vue
  2. 12
      pages/goods/refuel-details/refuel-details.vue
  3. 3
      pages/order/confirmation.vue
  4. 11
      pages/tabBar/home/home.vue

@ -323,6 +323,13 @@
}, },
buy() { buy() {
let that = this; let that = this;
if(this.goodsData[0].stockCount == 0){
uni.showToast({
title: '库存不足',
icon: "none"
});
return;
}
uni.showToast({ uni.showToast({
title: '提交订单...', title: '提交订单...',
icon: 'none', icon: 'none',

@ -87,9 +87,8 @@
</view> </view>
<!-- #ifdef MP --> <!-- #ifdef MP -->
<!-- <button class="reBtn flright" open-type="getPhoneNumber" v-if="user.phone == null" <button class="reBtn flright" v-if="user.phone == null" @click="jumpPhone">去支付</button>
@getphonenumber="getPhoneNumber">去支付</button> --> <button class="reBtn flright" v-else @click="toPay">去支付</button>
<button class="reBtn flright" @click="toPay">去支付</button>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<button class="reBtn flright" v-if="user.phone == null" @click="jumpH5Bding">去支付</button> <button class="reBtn flright" v-if="user.phone == null" @click="jumpH5Bding">去支付</button>
@ -292,6 +291,13 @@
this.discountPrice = parseFloat(gbprice - this.totalPrice).toFixed(0); this.discountPrice = parseFloat(gbprice - this.totalPrice).toFixed(0);
} }
}, },
//
jumpPhone(){
uni.navigateTo({
url:'../../userLogin/userLogin'
})
},
//
toPay() { toPay() {
if (this.inputMoney == '' || this.inputMoney < 1) { if (this.inputMoney == '' || this.inputMoney < 1) {
uni.showToast({ uni.showToast({

@ -362,6 +362,9 @@
app.globalData.userInfo = res.return_data app.globalData.userInfo = res.return_data
.object .object
.highUser; .highUser;
this.user = res.return_data
.object
.highUser;
uni.setStorage({ uni.setStorage({
key: "user", key: "user",
data: res.return_data data: res.return_data

@ -159,7 +159,8 @@
categoryList: [], categoryList: [],
homeCateList: [], homeCateList: [],
// //
cpStuats: 1 cpStuats: 1,
jumpType:''
}; };
}, },
@ -287,6 +288,7 @@
this.showPopup(); this.showPopup();
this.imgadres3 = res.return_data[0].imgData; this.imgadres3 = res.return_data[0].imgData;
this.webUrl = res.return_data[0].ext1; this.webUrl = res.return_data[0].ext1;
this.jumpType = res.return_data[0].jumpType;
} }
}); });
}, },
@ -306,11 +308,18 @@
* 跳转外链 * 跳转外链
*/ */
jumpWeb() { jumpWeb() {
if(this.jumpType == 1){
if (this.webUrl) { if (this.webUrl) {
uni.navigateTo({ uni.navigateTo({
url: '../order/webUrl/webUrl?url=' + this.webUrl url: '../order/webUrl/webUrl?url=' + this.webUrl
}) })
} }
}else{
uni.navigateTo({
url: this.webUrl
})
}
this.closePopup(); this.closePopup();
}, },
/** /**

Loading…
Cancel
Save