From 1fa546e22f9b913868cdeb5a84f3fc3c4f500ffb Mon Sep 17 00:00:00 2001 From: jazz <jazzxhunter@163.com> Date: 星期四, 21 十二月 2023 19:39:48 +0800 Subject: [PATCH] update_202312211937_增加卸麻通知和称谓显示 --- src/pages/room/list.vue | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/pages/room/list.vue b/src/pages/room/list.vue index ebc4287..2e1d4ed 100644 --- a/src/pages/room/list.vue +++ b/src/pages/room/list.vue @@ -45,6 +45,7 @@ <script> // import Login from '../utils/jun_login.js' import Req from '../../utils/jun_httpInstall' // http 璇锋眰 +// import xioFn from './utils/xio_fn.js' export default { name: 'RoomList', components: {}, @@ -60,6 +61,7 @@ computed: { }, + activated() {}, mounted() { console.log('roomList mounted') this.init() @@ -74,9 +76,10 @@ this.getShopList() this.getRoomList() }, - // 鍒锋柊椤甸潰 + // 鍒锋柊娴忚鍣ㄩ〉闈� resetPage() { - this.getRoomList() + window.location.reload() + // this.getRoomList() }, // 鑾峰彇闂ㄥ簵鍒楄〃 getShopList() { @@ -126,6 +129,16 @@ }, // 璺宠浆璇︽儏 selectRoom(item = {}) { + // console.log(this.$router.options.routes) + // this.$router.options.routes + localStorage.removeItem('curTreatId') + if (this.$router && this.$router.options && this.$router.options.routes) { + this.$router.options.routes.forEach((o) => { + if (o.name === 'roomDetail') { + o.meta && (o.meta.isPush = true) + } + }) + } this.$router.push({ path: `./room/detail?id=${item.id || ''}` }) -- Gitblit v1.8.0