更新优化
This commit is contained in:
@@ -12,3 +12,16 @@ export function shopRecharge(params) {
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前可用限时折扣
|
||||
* @param {shopId} params
|
||||
* @returns
|
||||
*/
|
||||
export function getLimitTimeDiscount(params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/market/admin/limitTimeDiscount",
|
||||
params,
|
||||
});
|
||||
}
|
||||
@@ -15,9 +15,9 @@
|
||||
<div class="t2">
|
||||
<span>商品原价:¥{{ goodsStore.cartInfo.costSummary.goodsRealAmount || 0 }}</span>
|
||||
<span>餐位费:¥{{ formatDecimal(goodsStore.cartInfo.costSummary.seatFee || 0)
|
||||
}}</span>
|
||||
}}</span>
|
||||
<span>打包费:¥{{ formatDecimal(goodsStore.cartInfo.costSummary.packFee || 0)
|
||||
}}</span>
|
||||
}}</span>
|
||||
<span>优惠:¥{{ formatDecimal(goodsStore.cartInfo.costSummary.totalDiscountAmount || 0) }}</span>
|
||||
<!-- <span v-if="goodsStore.cartInfo.costSummary.goodsDiscountAmount">
|
||||
<span>折扣:{{ goodsStore.cartInfo.costSummary.goodsDiscountAmount }}</span>
|
||||
@@ -675,6 +675,8 @@ function clearCouponUser() {
|
||||
couponForm.value.discountRatio = ''
|
||||
discountRateNumber.value = 0
|
||||
|
||||
couponResList1.value = []
|
||||
|
||||
updateCartCalc()
|
||||
|
||||
// resetCouponFormHandle()
|
||||
@@ -842,8 +844,12 @@ async function selectUserHandle(row) {
|
||||
if (store.shopInfo.isMemberPrice && row.isVip) {
|
||||
console.log('选择会员后重新计算会员价===', row);
|
||||
goodsStore.showVipPrice = 1
|
||||
} else {
|
||||
goodsStore.showVipPrice = 0
|
||||
}
|
||||
|
||||
couponResList1.value = []
|
||||
|
||||
goodsStore.calcCartInfo()
|
||||
|
||||
// emit('reset')
|
||||
|
||||
@@ -4,6 +4,7 @@ import { defineStore } from "pinia";
|
||||
import { ref, computed } from "vue";
|
||||
import { productPage, categoryList } from "@/api/product_new.js";
|
||||
import { historyOrder, cancelOrder, rmPlaceOrder } from "@/api/order.js";
|
||||
import { getLimitTimeDiscount } from '@/api/market'
|
||||
import { useUser } from "@/store/user.js";
|
||||
import { useSocket } from "@/store/socket.js";
|
||||
import useStorage from "@/utils/useStorage.js";
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
<span>{{ goodsStore.orderListInfo.tableCode || store.shopInfo.shopName }}</span>
|
||||
<div class="member_info" v-if="goodsStore.vipUserInfo.id">
|
||||
<span>用户昵称:{{ formatPhoneNumber(goodsStore.vipUserInfo.phone) }}</span>
|
||||
<span class="vip">白银会员</span>
|
||||
<span class="vip" v-if="goodsStore.vipUserInfo.memberLevelName">{{
|
||||
goodsStore.vipUserInfo.memberLevelName }}</span>
|
||||
</div>
|
||||
<div class="member_info s" v-if="goodsStore.vipUserInfo.id">当前积分:
|
||||
{{ goodsStore.vipUserInfo.accountPoints }}
|
||||
|
||||
Reference in New Issue
Block a user