|
@@ -19,7 +19,8 @@
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
<view class="settlement">
|
|
|
- <view class="settlement-address">
|
|
|
+ <!-- 卡密商品不需要地址 -->
|
|
|
+ <view class="settlement-address" v-if="goodsType!='2'">
|
|
|
<!-- 选择地址、获取微信地址 -->
|
|
|
<view class="flex settlement-address-top" v-if="info.addr !== null">
|
|
|
<view class="settlement-address-top__left">配送地址</view>
|
|
@@ -166,6 +167,7 @@
|
|
|
payment: '',
|
|
|
authShow: false,
|
|
|
pagesNum: '',
|
|
|
+ goodsType:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opthios) {
|
|
@@ -182,6 +184,9 @@
|
|
|
}
|
|
|
this.getDetail()
|
|
|
}
|
|
|
+ if(opthios.goodsType){
|
|
|
+ this.goodsType = opthios.goodsType;
|
|
|
+ }
|
|
|
},
|
|
|
onShow() {
|
|
|
this.pagesNum = getCurrentPages().length
|
|
@@ -190,8 +195,8 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- save() {
|
|
|
- if (this.info.addr == null) {
|
|
|
+ save() {
|
|
|
+ if (this.info.addr == null&&this.goodsType!='2') {
|
|
|
uni.$u.toast('请先保存配送地址');
|
|
|
return
|
|
|
}
|