增加券

This commit is contained in:
2024-11-11 09:38:09 +08:00
parent 1836a5b10b
commit 7f265b7583
4 changed files with 2102 additions and 292 deletions

View File

@@ -108,12 +108,16 @@
onLoad,
onReady
} from '@dcloudio/uni-app'
import * as orderApi from '@/http/yskApi/order.js'
import {
$activateByOrderId
} from '@/http/yskApi/Instead.js'
function back(){
uni.navigateBack()
}
let order=ref({
})
const myQuan = reactive({
fullReductionCouponSel: {
id: ''
@@ -146,8 +150,10 @@
function toUse(item) {
}
async function getQuan() {
order.value=await orderApi.tbOrderInfoDetail(option.orderId)
console.log(order.value);
const res = await $activateByOrderId(option)
res.fullReductionCoupon = res.fullReductionCoupon.filter((v) => !v.use)
res.productCoupon = res.productCoupon.filter((v) => !v.use).map(v => {
@@ -162,6 +168,7 @@
const option = reactive({
orderId: '',
memberId: '',
payPrice:''
})
function toEmitChooseQuan(item){