jazz
2023-12-13 d3f0ff6001c34c9ac37e9e776f090f5a696a1361
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 || ''}`
      })