增加退款方式和叫号更改

This commit is contained in:
wwz 2025-04-08 18:24:28 +08:00
parent a95315f42a
commit 0c58d1b03c
3 changed files with 28 additions and 23 deletions

View File

@ -1,5 +1,5 @@
// const debug = process.env.NODE_ENV == 'development' ? true : false;
const debug = false
const debug = true
// #ifdef H5
const proxyApi = "/api"
// #endif

View File

@ -174,7 +174,7 @@
</view>
</view>
</block>
<view class="total-wrap" v-if="listinfo.status == 'unpaid'">
<view>总计</view>
<view class="price"> {{listinfo.totalCost}} </view>
@ -183,7 +183,7 @@
<view>实付</view>
<view class="price"> {{listinfo.payAmount}} </view>
</view>
</view>
</view>
@ -215,6 +215,10 @@
<text class="t">就餐人数</text>
<text class="info">{{ listinfo.seatNum || ""}}</text>
</view>
<view class="row" v-if="listinfo.refundType">
<text class="t">退款方式</text>
<text class="info">{{ listinfo.refundType == 'cash'?'手动退款':'原路退回'}}</text>
</view>
</view>
<IntegralInput :visible="calcUsablePointsData.showModal" :minValue="calcUsablePointsData.minIntegral"
:maxValue="calcUsablePointsData.maxIntegral" :instructions="calcUsablePointsData.instructionText"

View File

@ -182,6 +182,7 @@
if (res.queueInfo) {
dataform.queueInfo = res.queueInfo;
} else {
dataform.queueInfo = null
userorderList()
}
dataform.shopInfo = res.shopInfo;
@ -270,28 +271,28 @@
onMounted(async () => {
await proxy.$onLaunched;
//
// const pages = getCurrentPages();
// //
// const currentPage = pages[pages.length - 1];
// //
// const options = currentPage.options;
const pages = getCurrentPages();
//
const currentPage = pages[pages.length - 1];
//
const options = currentPage.options;
// // #ifdef MP-WEIXIN
// if (options.q) {
// dataform.shopId = getQueryString(decodeURIComponent(options.q), 'shopId')
// dataform.queueId = getQueryString(decodeURIComponent(options.q), 'queueId')
// }
// // #endif
// // #ifdef MP-ALIPAY
// if (getApp().globalData.shopId) {
// dataform.shopId = getApp().globalData.shopId
// }
// if (getApp().globalData.queueId) {
// dataform.queueId = getApp().globalData.queueId
// }
//// #endif
// #ifdef MP-WEIXIN
if (options.q) {
dataform.shopId = getQueryString(decodeURIComponent(options.q), 'shopId')
dataform.queueId = getQueryString(decodeURIComponent(options.q), 'queueId')
}
// #endif
// #ifdef MP-ALIPAY
if (getApp().globalData.shopId) {
dataform.shopId = getApp().globalData.shopId
}
if (getApp().globalData.queueId) {
dataform.queueId = getApp().globalData.queueId
}
// #endif
uni.cache.set('shopId', dataform.shopId, 30)
await nextTick()
uni.cache.set('shopId', 29, 30)
getQueueUpTablList();
})
</script>