|
|
|
@ -56,7 +56,7 @@ |
|
|
|
<view class="lf-font-26 lf-color-333 lf-line-1">{{ item.item_name }}</view> |
|
|
|
<view class="lf-font-24 lf-color-777">{{ item.item_meta.specs_text }}</view> |
|
|
|
<view class="lf-row-between" style="line-height: 1;"> |
|
|
|
<text class="price">¥{{ item.total_yuan }}</text> |
|
|
|
<text class="price"><text v-if="goods_type==1">¥</text>{{ item.total_yuan }}<text class="lf-font-24" v-if="goods_type==0">积分</text></text> |
|
|
|
<text class="lf-font-28 lf-color-777">x {{ item.quantity }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -77,7 +77,7 @@ |
|
|
|
</view> |
|
|
|
<view class="lf-row-between lf-m-t-20"> |
|
|
|
<view class="lf-font-28 lf-color-777">商品金额</view> |
|
|
|
<view class="lf-font-26 lf-color-222">¥{{ order_detail.order.items_total_yuan }}</view> |
|
|
|
<view class="lf-font-26 lf-color-222"><text v-if="goods_type==1">¥</text>{{ order_detail.order.items_total_yuan }}<text v-if="goods_type==0">积分</text></view> |
|
|
|
</view> |
|
|
|
<view class="lf-row-between lf-m-t-20" v-if="mode == 0"> |
|
|
|
<view class="lf-font-28 lf-color-777">运费</view> |
|
|
|
@ -94,7 +94,12 @@ |
|
|
|
<view class="lf-font-24 lf-color-777">共{{ order_detail.order.count }}件</view> |
|
|
|
<view class="lf-flex"> |
|
|
|
<!-- <view class="lf-font-32 lf-color-primary" style="max-width: 400rpx;">合计 ¥{{ order_detail.order.total_yuan }}</view> --> |
|
|
|
<view class="lf-font-32 lf-color-primary" style="max-width: 400rpx;">合计 ¥{{ totalPrice }}</view> |
|
|
|
<view class="lf-font-32 lf-color-primary" style="max-width: 400rpx;"> |
|
|
|
<text>合计</text> |
|
|
|
<text v-if="goods_type==1">¥</text> |
|
|
|
<text>{{ totalPrice }}</text> |
|
|
|
<text v-if="goods_type==0">积分</text> |
|
|
|
</view> |
|
|
|
<view class="confirm-btn" hover-class="lf-opacity" @click="confirm">提交订单</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -116,8 +121,9 @@ |
|
|
|
<view class="coupon-radius"> |
|
|
|
<view class="coupon-left"> |
|
|
|
<view class="lf-font-36 lf-color-white" style="line-height: 1;" v-if="item.discount.action_type.type == 'cash'"> |
|
|
|
<text>¥</text> |
|
|
|
<text v-if="goods_type==1">¥</text> |
|
|
|
<text class="lf-font-70 lf-font-bold">{{item.discount.action_type.value}}</text> |
|
|
|
<text v-if="goods_type==0">积分</text> |
|
|
|
</view> |
|
|
|
<view class="lf-font-36 lf-color-white" style="line-height: 1;" v-if="item.discount.action_type.type == 'discount'"> |
|
|
|
<text class="lf-font-70 lf-font-bold">{{item.discount.action_type.value}}</text> |
|
|
|
@ -165,7 +171,8 @@ |
|
|
|
address_id: null, |
|
|
|
order_detail: {coupons: []}, |
|
|
|
show_coupon: false, |
|
|
|
coupon_index: null |
|
|
|
coupon_index: null, |
|
|
|
goods_type: 1 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -192,8 +199,10 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(){ |
|
|
|
onLoad(e){ |
|
|
|
this.token = this.$cookieStorage.get('user_token'); |
|
|
|
this.goods_type = e.goods_type; |
|
|
|
console.log('积分类型',e) |
|
|
|
let options = this.$cookieStorage.get('order_confirm'); |
|
|
|
if(this.$isRight(options)){ |
|
|
|
this.orderCheckout(options); |
|
|
|
|