|
|
|
@ -55,7 +55,7 @@ |
|
|
|
<view class="discount_item" @click="openMore(1)"> |
|
|
|
<text>Coupons</text> |
|
|
|
<view class="discount_item_right"> |
|
|
|
<text v-show="isCoupons">-US$12.5</text> |
|
|
|
<text v-show="total.bonus!=0">-US${{total.bonus}}</text> |
|
|
|
<image src="../../static/img/right.png" mode="" class="address_more"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -82,7 +82,7 @@ |
|
|
|
</view> |
|
|
|
<view class="settlement_item"> |
|
|
|
<text>Discount :</text> |
|
|
|
<text class="settlement_item_right1">-US${{total.discount || 0}}</text> |
|
|
|
<text class="settlement_item_right1">-US${{total.bonus || 0}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
@ -124,20 +124,21 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="order_popup_coupons" v-show="popup_index==1"> |
|
|
|
<view class="coupons_item" v-for="(item,index) in 3 " :key="index"> |
|
|
|
<view class="coupons_item" v-for="(item,index) in bonus_list " :key="item.bonus_id"> |
|
|
|
<view class="coupons_item_left"> |
|
|
|
<view class="item_left_prcie">$20.00</view> |
|
|
|
<view class="item_left_prcie">${{item.type_money}}</view> |
|
|
|
<text class="item_left_span">Min.spend</text> |
|
|
|
<view>$200.00</view> |
|
|
|
</view> |
|
|
|
<view class="coupons_item_right"> |
|
|
|
<view class="coupons_right_info"> |
|
|
|
<view class="coupons_right_info_title">All-purpose</view> |
|
|
|
<view class="coupons_right_info_title">{{item.type_name}}</view> |
|
|
|
<text>The tide zone is available</text> |
|
|
|
<view class="coupons_right_info_time">2022.09.23 10:37 - 2022.12.23 10:37</view> |
|
|
|
</view> |
|
|
|
<button>Use Now</button> |
|
|
|
<image src="../../static/img/select3.png" mode="" class="coupons_item_right_select"></image> |
|
|
|
<button @click="useCoupons(item.bonus_id)">Use Now</button> |
|
|
|
<image src="../../static/img/select3.png" mode="" class="coupons_item_right_select" v-if="order.bonus==item.bonus_id"></image> |
|
|
|
<image src="../../static/img/select.png" mode="" class="coupons_item_right_select" v-else></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -223,7 +224,17 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
|
|
|
|
// 使用红包 |
|
|
|
useCoupons(id){ |
|
|
|
let data={_action:'cartselectbonus',bonus:id,consignee:this.address} |
|
|
|
defaultRequest3(data,'consignee').then(res=>{ |
|
|
|
console.info(res) |
|
|
|
if(res.error==0){ |
|
|
|
this.total=res.data.total |
|
|
|
this.order=res.data.order |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取调用支付信息数据 |
|
|
|
getPayDate(id,will_get_integral){ |
|
|
|
let data={_action:'payorder',order_id:id,order_type:'GOODSBUY',payment_method:'alipay.native'} |
|
|
|
|