代码更新

This commit is contained in:
GaoHao
2025-03-04 18:30:16 +08:00
parent fd0c452a76
commit 4f65b08c06
32 changed files with 622 additions and 1616 deletions

View File

@@ -146,7 +146,7 @@
} from '../quan_util.js'
import { getHistoryOrder } from '@/api/order.js'
import { shopUserDetail } from '@/api/shopUser.js'
import { getCouponList } from '@/api/coupon.js'
import { getFindCoupon } from '@/api/coupon.js'
const modal = reactive({
@@ -161,7 +161,7 @@
const option = reactive({
orderId: '',
userId: '',
shopUserId: '',
orderPrice: 0
})
const pageData = reactive({
@@ -218,13 +218,16 @@
* 获取优惠券
*/
async function getQuan() {
shopUserDetail({ id: option.userId }).then(res=>{
shopUserDetail({ id: option.shopUserId }).then(res=>{
pageData.user = res
})
pageData.order = await getHistoryOrder({orderId:option.orderId})
console.log(pageData.order);
const res = await getCouponList()
const res = await getFindCoupon({
shopUserId: option.shopUserId,
type: pageData.types.sel
})
let fullReductionCoupon = res.filter(v => v.type == 1)
let productCoupon = res.filter(v => v.type == 2)