|
@@ -74,24 +74,26 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="grace-form-item grace-border-b">
|
|
|
- <text class="grace-form-label">配送方式</text>
|
|
|
- <view class="grace-form-body" style="padding:20rpx 0;">
|
|
|
- <radio-group name="danxuan">
|
|
|
- <label class="grace-check-item-v"><radio value="1"></radio>快递</label>
|
|
|
- <label class="grace-check-item-v"><radio value="2"></radio>自提</label>
|
|
|
- </radio-group>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="grace-wrap" style="margin-top: 20rpx;" v-if="item.goods.mode > 0">
|
|
|
- <view class="grace-capsule margin" v-if="item.goods.mode == 1 || item.goods.mode == 3">
|
|
|
- <text class="grace-capsule-icon">地址</text>
|
|
|
- <text class="grace-capsule-text">河北省三河市燕郊开发区理想新城一期南区36号楼</text>
|
|
|
+ <view v-if="item.goods.mode > 0">
|
|
|
+ <view class="grace-form-item grace-border-b">
|
|
|
+ <text class="grace-form-label">配送方式</text>
|
|
|
+ <view class="grace-form-body" style="padding:20rpx 0;">
|
|
|
+ <radio-group name="danxuan" @change="setMode">
|
|
|
+ <label class="grace-check-item-v" v-if="item.goods.mode == 1 || item.goods.mode == 3"><radio value="1" checked></radio><text style="margin-left:10rpx;">快递</text></label>
|
|
|
+ <label class="grace-check-item-v" v-if="item.goods.mode == 2 || item.goods.mode == 3"><radio value="2"></radio><text style="margin-left:10rpx;">自提</text></label>
|
|
|
+ </radio-group>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="grace-capsule margin" v-if="item.goods.mode == 2 || item.goods.mode == 3">
|
|
|
- <text class="grace-capsule-icon grace-icon-br" style="background:#E76B61;">自提</text>
|
|
|
- <text class="grace-capsule-text grace-text-br" style="border-color:#E76B61; color:#E76B61;">河北省三河市燕郊开发区理想新城一期南区</text>
|
|
|
+
|
|
|
+ <view class="grace-wrap" style="margin-top: 20rpx;">
|
|
|
+ <view class="grace-capsule margin" v-if="(item.goods.mode == 1 || item.goods.mode == 3) && mode == 1">
|
|
|
+ <text class="grace-capsule-icon">地址</text>
|
|
|
+ <text class="grace-capsule-text">河北省三河市燕郊开发区理想新城一期南区36号楼</text>
|
|
|
+ </view>
|
|
|
+ <view class="grace-capsule margin" v-if="(item.goods.mode == 2 || item.goods.mode == 3) && mode == 2">
|
|
|
+ <text class="grace-capsule-icon grace-icon-br" style="background:#E76B61;">自提</text>
|
|
|
+ <text class="grace-capsule-text grace-text-br" style="border-color:#E76B61; color:#E76B61;">河北省三河市燕郊开发区理想新城一期南区</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 属性列表区 -->
|
|
@@ -165,7 +167,8 @@ export default {
|
|
|
showComment : false,
|
|
|
fetch : {
|
|
|
info : [],
|
|
|
- }
|
|
|
+ },
|
|
|
+ mode : 1,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -285,6 +288,9 @@ export default {
|
|
|
getRefresh : function(cate_id, type, type_id, content) {
|
|
|
this.getData(1);
|
|
|
this.hideModal();
|
|
|
+ },
|
|
|
+ setMode : function(e) {
|
|
|
+ this.mode = e.detail.value;
|
|
|
}
|
|
|
},
|
|
|
components:{deverContent, deverPublish, copyText}
|