|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<view :style="viewColor"> |
|
|
|
<view :style="viewColor"> |
|
|
|
<view class='order-submission'> |
|
|
|
<view class='order-submission'> |
|
|
|
<view v-if="allow_address && order_model == 0" class="allAddress" @click="onAddress"> |
|
|
|
<view v-if="allow_address && order_model == 0&&productType!=1" class="allAddress" @click="onAddress"> |
|
|
|
<view class='address acea-row row-between-wrapper' v-if='shippingType == 0 '> |
|
|
|
<view class='address acea-row row-between-wrapper' v-if='shippingType == 0 '> |
|
|
|
<view class='addressCon' v-if="addressInfo.real_name"> |
|
|
|
<view class='addressCon' v-if="addressInfo.real_name"> |
|
|
|
<view class='name'> |
|
|
|
<view class='name'> |
|
|
@ -94,7 +94,7 @@ |
|
|
|
¥{{goods.activeSku.active_price}} |
|
|
|
¥{{goods.activeSku.active_price}} |
|
|
|
</block> |
|
|
|
</block> |
|
|
|
<block v-else> |
|
|
|
<block v-else> |
|
|
|
¥{{goods.productAttr.price}} |
|
|
|
¥{{goods.productAttr.price}}<text style="color:var(--view-priceColor);margin-left:0rpx" v-if="goods.productAttr.point>0">+积分{{goods.productAttr.point}}</text> |
|
|
|
</block> |
|
|
|
</block> |
|
|
|
<text>X{{goods.cart_num}}</text> |
|
|
|
<text>X{{goods.cart_num}}</text> |
|
|
|
<view v-if="goods.productAttr.show_svip_price" class="vipImg"> |
|
|
|
<view v-if="goods.productAttr.show_svip_price" class="vipImg"> |
|
|
@ -147,7 +147,8 @@ |
|
|
|
v-if="order_type != 3 && order_type != 4 && item.order.enabledCoupon"> |
|
|
|
v-if="order_type != 3 && order_type != 4 && item.order.enabledCoupon"> |
|
|
|
<view>店铺优惠券</view> |
|
|
|
<view>店铺优惠券</view> |
|
|
|
<block v-if="item.coupon.length>0"> |
|
|
|
<block v-if="item.coupon.length>0"> |
|
|
|
<view class='discount' @tap='couponTap(item,index)'> |
|
|
|
<!-- @tap='couponTap(item,index)' --> |
|
|
|
|
|
|
|
<view class='discount' > |
|
|
|
<text v-if="item.order.coupon_price>0">优惠¥{{item.order.coupon_price}}</text> |
|
|
|
<text v-if="item.order.coupon_price>0">优惠¥{{item.order.coupon_price}}</text> |
|
|
|
<text v-else>暂未选择优惠券</text> |
|
|
|
<text v-else>暂未选择优惠券</text> |
|
|
|
|
|
|
|
|
|
|
@ -425,7 +426,8 @@ |
|
|
|
v-if="order_type != 3 && order_type != 4 && enabledPlatformCoupon"> |
|
|
|
v-if="order_type != 3 && order_type != 4 && enabledPlatformCoupon"> |
|
|
|
<view>平台优惠券<text @tap="showCoupon" class="iconfont icon-wenhao1"></text></view> |
|
|
|
<view>平台优惠券<text @tap="showCoupon" class="iconfont icon-wenhao1"></text></view> |
|
|
|
<block v-if="platformCoupon.length > 0"> |
|
|
|
<block v-if="platformCoupon.length > 0"> |
|
|
|
<view class='discount money' @tap='couponTap2(platformCoupon,0)'> |
|
|
|
<!-- @tap='couponTap2(platformCoupon,0)' --> |
|
|
|
|
|
|
|
<view class='discount money'> |
|
|
|
<text v-if="total_platform_coupon_price>0">优惠¥{{total_platform_coupon_price}}</text> |
|
|
|
<text v-if="total_platform_coupon_price>0">优惠¥{{total_platform_coupon_price}}</text> |
|
|
|
<text v-else>暂未选择优惠券</text> |
|
|
|
<text v-else>暂未选择优惠券</text> |
|
|
|
<text class='iconfont icon-jiantou'></text> |
|
|
|
<text class='iconfont icon-jiantou'></text> |
|
|
@ -446,6 +448,7 @@ |
|
|
|
<view> |
|
|
|
<view> |
|
|
|
合计: |
|
|
|
合计: |
|
|
|
<text class='pColor'>¥{{totalPrice || 0}}</text> |
|
|
|
<text class='pColor'>¥{{totalPrice || 0}}</text> |
|
|
|
|
|
|
|
<text class='pColor' v-if="totalPoint>0">+积分{{totalPoint}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="coupon_price" v-if="couponData.total_coupon > 0"> |
|
|
|
<view class="coupon_price" v-if="couponData.total_coupon > 0"> |
|
|
|
优惠:¥ {{couponData.total_coupon}} |
|
|
|
优惠:¥ {{couponData.total_coupon}} |
|
|
@ -699,6 +702,7 @@ |
|
|
|
orderType:null, |
|
|
|
orderType:null, |
|
|
|
// is_burst:null, |
|
|
|
// is_burst:null, |
|
|
|
productType:null, |
|
|
|
productType:null, |
|
|
|
|
|
|
|
totalPoint:0, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
@ -1179,7 +1183,13 @@ |
|
|
|
formData.sort(sortNumber); |
|
|
|
formData.sort(sortNumber); |
|
|
|
that.$set(that, 'order_form', (that.order_form && that.order_form.length>0) ? that.order_form : formData); |
|
|
|
that.$set(that, 'order_form', (that.order_form && that.order_form.length>0) ? that.order_form : formData); |
|
|
|
} |
|
|
|
} |
|
|
|
that.totalPrice = res.data.order_price |
|
|
|
that.totalPrice = res.data.order_price; |
|
|
|
|
|
|
|
that.totalPoint = 0 |
|
|
|
|
|
|
|
res.data.order.forEach(item => { |
|
|
|
|
|
|
|
item.list.forEach(i=>{ |
|
|
|
|
|
|
|
that.totalPoint+=i.productAttr.point |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
that.orderStatus = res.data.status |
|
|
|
that.orderStatus = res.data.status |
|
|
|
that.proPrice = res.data.total_price |
|
|
|
that.proPrice = res.data.total_price |
|
|
|
that.order_type = res.data.order_type |
|
|
|
that.order_type = res.data.order_type |
|
|
|