| | |
| | | <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: {}, |
| | |
| | | computed: { |
| | | |
| | | }, |
| | | activated() {}, |
| | | mounted() { |
| | | console.log('roomList mounted') |
| | | this.init() |
| | |
| | | this.getShopList() |
| | | this.getRoomList() |
| | | }, |
| | | // 刷新页面 |
| | | // 刷新浏览器页面 |
| | | resetPage() { |
| | | this.getRoomList() |
| | | window.location.reload() |
| | | // this.getRoomList() |
| | | }, |
| | | // 获取门店列表 |
| | | getShopList() { |
| | |
| | | }, |
| | | // 跳转详情 |
| | | 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 || ''}` |
| | | }) |