更换正式环境,测试修改
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user