购物车,订单,霸王餐

This commit is contained in:
wwz
2025-03-20 18:33:21 +08:00
parent 9da31e2faa
commit 5b8100aa64
16 changed files with 1382 additions and 1224 deletions

View File

@@ -171,7 +171,7 @@
</view>
</view>
</view>
<view class="cell-item"
<!-- <view class="cell-item"
v-if="listinfo && listinfo.pointsDiscountAmount && listinfo.pointsDiscountAmount > 0">
<view class="label">积分抵扣</view>
<view class="val">
@@ -179,7 +179,7 @@
<view style="font-size: 28rpx;"></view>
<view>{{listinfo.pointsDiscountAmount.toFixed(2)}}</view>
</view>
</view>
</view> -->
</block>
<view class="total-wrap">
@@ -193,7 +193,7 @@
<view class="row" @click="copyHandle(listinfo.orderNo)">
<text class="t">订单编号</text>
<text class="info"
style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">{{listinfo.orderNo}}点击复制</text>
style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">{{listinfo.orderNo}}(点击复制)</text>
</view>
<view class="row">
<text class="t">下单时间</text>
@@ -316,7 +316,12 @@
default: {
isTableFee: 0
}
},
changeFreeenable: {
type: Boolean,
default: false
}
})
const is_type = ref(0)
@@ -337,8 +342,23 @@
}
// 清空
const bwcclear = () => {
IntegralInputclose()
// 清空优惠卷
favorablelist[1].value = ''
favorablelist[0].value = ''
}
// 跳转
const goUrl = (item) => {
if (props.changeFreeenable) {
uni.showToast({
title: '不可与其他优惠共享!',
icon: 'none'
})
return false;
}
switch (item.type) {
case 'coupon':
// 清空积分
@@ -433,7 +453,8 @@
// 将方法暴露给父组件
defineExpose({
dataprocessing,
getCalcUsablePoints
getCalcUsablePoints,
bwcclear
});
</script>
@@ -701,6 +722,7 @@
}
.shop-info {
padding-top: 28rpx;
border-bottom: 2rpx dashed #e5e5e5;
.item:nth-child(1) {