更换正式环境,测试修改

This commit is contained in:
GaoHao
2025-03-25 21:49:33 +08:00
parent f01bc839f7
commit 7fe5d028e4
71 changed files with 930 additions and 2016 deletions

View File

@@ -288,8 +288,8 @@
</template>
<script setup>
import { onLoad, onReady, onShow } from '@dcloudio/uni-app'
import { ref, inject, onBeforeUnmount, reactive, computed, watch } from 'vue';
import { onLoad, onReady, onShow,onHide } from '@dcloudio/uni-app'
import { ref, inject, onUnmounted, reactive, computed, watch } from 'vue';
import modelDiscount from './components/discount'
import giveFood from './components/give-food'
@@ -385,16 +385,20 @@
watch(() => pageData.eatTypes.active, (newval) => {
pageData.eatTypes.isShow = true
changeUseType()
})
onBeforeUnmount(() => {
})
onShow(() => {
init()
watchChooseuser()
watchChooseTable()
})
onHide(() => {
console.log("onHide")
websocketUtil.offMessage()
})
onUnmounted(() => {
console.log("onUnmounted")
websocketUtil.offMessage()
});
/**
* 获取订单详情
* @param {Object} tableCode
@@ -488,7 +492,7 @@
async function init() {
// 获取商品列表
$goods = await getProductList({},'product', false)
console.log("商品列表===",$goods)
// console.log("商品列表===",$goods)
getTableInfo(pageData.table)
}