霸王餐更改
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
|
||||
<view class="price">
|
||||
<view class="priceAmount">
|
||||
¥{{orderVIP.isVip ==1 && ordershopUserInfo.isMemberPrice==1?item.memberPrice:item.price}}
|
||||
¥{{orderVIP.isVip ==1 && ordershopUserInfo.isMemberPrice==1?(item.memberPrice|| item.price):item.price}}
|
||||
</view>
|
||||
<view class="num">x{{item.num}}</view>
|
||||
</view>
|
||||
@@ -122,8 +122,7 @@
|
||||
<!-- 支付之前 -->
|
||||
<block v-if="listinfo.status == 'unpaid' || listinfo.status == 'paying'">
|
||||
<view v-for="(item,indexe) in favorablelist" :key="indexe">
|
||||
<view class="favorable" :class="{column:item.value.length>0&&item.type=='product'}"
|
||||
@click="goUrl(item)">
|
||||
<view class="favorable" :class="{column:item.type=='product'}" @click="goUrl(item)">
|
||||
<view class="favorable_left">
|
||||
<text class="name"> {{ item.name }} </text>
|
||||
</view>
|
||||
@@ -161,7 +160,7 @@
|
||||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="cell-item column" v-if="listinfo.discountInfo.length > 0">
|
||||
<view class="cell-item column" v-if="listinfo.discountInfo">
|
||||
<view class="label">优惠折扣</view>
|
||||
<view class="val column">
|
||||
<view class="productCoupon" v-for="(item,index) in listinfo.discountInfo" :key="index">
|
||||
@@ -343,6 +342,7 @@
|
||||
|
||||
// 跳转
|
||||
const goUrl = (item) => {
|
||||
console.log(props.listinfo.totalPrices, props.listinfo.Productroll)
|
||||
if (props.changeFreeenable) {
|
||||
uni.showToast({
|
||||
title: '不可与其他优惠共享!',
|
||||
@@ -360,7 +360,8 @@
|
||||
type: "confirm_order_coupon",
|
||||
shopId: uni.cache.get('orderVIP').shopId,
|
||||
shopUserId: props.orderVIP.id,
|
||||
payAmount: props.listinfo.totalCost,
|
||||
payAmount: (parseFloat(props.listinfo.totalPrices) - parseFloat(props.listinfo
|
||||
.Productroll)).toFixed(2),
|
||||
shoppingCart: JSON.stringify(props.listinfo.combinedArray)
|
||||
})
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user