增加分销页面,订单增加会员折扣

This commit is contained in:
2025-10-25 16:31:38 +08:00
parent 26532150b5
commit 845d9f7b40
39 changed files with 5988 additions and 43 deletions

View File

@@ -163,7 +163,7 @@
<image
src="/static/icon/coup.png"
bgColor="#fff"
style="width: 40rpx; height: 34rpx"
style="width: 50rpx; height: 50rpx"
></image>
<text class="color-333 font-14 u-m-l-16 no-wrap">满减活动</text>
</view>
@@ -172,12 +172,26 @@
>-¥{{ cartStore.orderCostSummary.fullReduction.actualAmount }}</view
>
</view>
<view class="youhui-item" v-if="cartStore.orderCostSummary.vipDiscountAmount">
<view class="u-flex align-center">
<image
src="/static/icon/newUserDiscount.png"
bgColor="#fff"
style="width: 50rpx; height: 50rpx"
></image>
<text class="color-333 font-14 u-m-l-16 no-wrap">会员折扣</text>
</view>
<view class="red font-12 u-flex align-center"
>-¥{{ cartStore.orderCostSummary.vipDiscountAmount }}</view
>
</view>
<view class="youhui-item" v-if="newUserDiscount">
<view class="u-flex align-center">
<image
src="/static/icon/newUserDiscount.png"
bgColor="#fff"
style="width: 40rpx; height: 34rpx"
style="width: 50rpx; height: 50rpx"
></image>
<text class="color-333 font-14 u-m-l-16 no-wrap">新客立减</text>
</view>
@@ -197,8 +211,8 @@
<view class="u-flex" style="width: 44rpx">
<u-image
bgColor="#fff"
:width="item.width || '44rpx'"
:height="item.height || '44rpx'"
:width="item.width || '50rpx'"
:height="item.height || '50rpx'"
v-if="item.icon"
:src="item.icon"
mode=""
@@ -414,7 +428,8 @@ import {
} from "@/common/api/shop/index.js";
import goodsIcon from "@/static/icon/goods.png";
import coupIcon from "@/static/icon/coup.png";
import pointsIcon from "@/static/icon/points.png";
// import pointsIcon from "@/static/icon/points.png";
import pointsIcon from "@/static/icon/jifen.png";
// 定义自定义事件
const emits = defineEmits(["customevent", "istype", "learcoupons"]);
@@ -453,8 +468,6 @@ const favorablelist = ref([
{
name: "优惠券",
type: "coupon",
width: "40rpx",
height: "34rpx",
value: "",
icon: coupIcon,
url: "https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/coupon.png",