|
@@ -40,9 +40,12 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="r">
|
|
<view class="r">
|
|
- <view class="price">
|
|
|
|
|
|
+ <view class="price" v-if="type=='0'">
|
|
¥{{tag.money}}
|
|
¥{{tag.money}}
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-else class="price">
|
|
|
|
+ ¥{{tag.group_sell_money}}
|
|
|
|
+ </view>
|
|
<view class="num">
|
|
<view class="num">
|
|
×{{tag.num}}
|
|
×{{tag.num}}
|
|
</view>
|
|
</view>
|
|
@@ -67,7 +70,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="other">
|
|
|
|
|
|
+ <view class="other" v-if="type=='0'">
|
|
<view class="other_1">优惠劵</view>
|
|
<view class="other_1">优惠劵</view>
|
|
<view class="other_2" @click="toCoupon" v-if="couponList.length">
|
|
<view class="other_2" @click="toCoupon" v-if="couponList.length">
|
|
{{coupon_name||'请选择优惠劵'}}
|
|
{{coupon_name||'请选择优惠劵'}}
|
|
@@ -156,6 +159,8 @@
|
|
coupon: [],
|
|
coupon: [],
|
|
// 优惠劵名称
|
|
// 优惠劵名称
|
|
coupon_name: '',
|
|
coupon_name: '',
|
|
|
|
+ // 是否开团
|
|
|
|
+ type: '0'
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad: async function(e) {
|
|
onLoad: async function(e) {
|
|
@@ -333,8 +338,7 @@
|
|
that.$set(that, `address`, arr.data.address);
|
|
that.$set(that, `address`, arr.data.address);
|
|
that.$set(that, `orderList`, arr.data.goodsData);
|
|
that.$set(that, `orderList`, arr.data.goodsData);
|
|
that.$set(that, `total_detail`, arr.data.orderTotal);
|
|
that.$set(that, `total_detail`, arr.data.orderTotal);
|
|
- // var total = arr.data.orderTotal.freight_total + arr.data.orderTotal.goods_total
|
|
|
|
- // that.$set(that, `goods_total`, total);
|
|
|
|
|
|
+ that.$set(that, `type`, arr.data.type);
|
|
this.computedTotal();
|
|
this.computedTotal();
|
|
that.$set(that, `couponList`, arr.data.couponList);
|
|
that.$set(that, `couponList`, arr.data.couponList);
|
|
}
|
|
}
|
|
@@ -372,6 +376,8 @@
|
|
}
|
|
}
|
|
if (total >= 0) {
|
|
if (total >= 0) {
|
|
this.$set(this, `goods_total`, total);
|
|
this.$set(this, `goods_total`, total);
|
|
|
|
+ console.log(total);
|
|
|
|
+ console.log(this.total_detail);
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: `实付金额不能为负数 不能使用该优惠劵`,
|
|
title: `实付金额不能为负数 不能使用该优惠劵`,
|