diff --git a/src/assets/styles/general.scss b/src/assets/styles/general.scss index 6769465..bece975 100644 --- a/src/assets/styles/general.scss +++ b/src/assets/styles/general.scss @@ -37,3 +37,13 @@ height: 200px; width: 400px; } +.codeImg { + width: 100%; + height: 350px; +} +.netName { + margin-top: 10px; + text-align: center; + font-size: 16px; + font-weight: bold; +} diff --git a/src/views/index.vue b/src/views/index.vue index 3ec6f3b..05d83ce 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -12,13 +12,16 @@ export default { computed: { ...mapGetters(["roles"]), }, - created() { - let index = this.roles.findIndex((item) => item == "common"); - if (index > -1) { - this.$router.push({ path: "/net" }); - } else { - this.$router.push({ path: "/shanghu" }); - } + mounted() { + this.$nextTick(() => { + let index = this.roles.findIndex((item) => item == "common"); + console.log(index, "路径"); + if (index > -1) { + this.$router.push({ path: "/net" }); + } else { + this.$router.push({ path: "/shanghu" }); + } + }); }, }; diff --git a/src/views/netEwm/net/index.vue b/src/views/netEwm/net/index.vue index 242baca..3a98854 100644 --- a/src/views/netEwm/net/index.vue +++ b/src/views/netEwm/net/index.vue @@ -369,15 +369,4 @@ export default { }, }; - + diff --git a/src/views/netEwm/netHistory/index.vue b/src/views/netEwm/netHistory/index.vue index 4c20a91..ac2efd0 100644 --- a/src/views/netEwm/netHistory/index.vue +++ b/src/views/netEwm/netHistory/index.vue @@ -104,6 +104,7 @@ + - + + + + + + + + + + + + 下载二维码 + + + + + + + + + 店铺名称:{{ code.posName }} + WI-FI名称:{{ code.wifiName }} + + + + + + + + + + diff --git a/src/views/netEwm/shanghu/index.vue b/src/views/netEwm/shanghu/index.vue index 3794192..ee9293f 100644 --- a/src/views/netEwm/shanghu/index.vue +++ b/src/views/netEwm/shanghu/index.vue @@ -190,7 +190,7 @@ + + 商户网络列表 + + + + @@ -238,9 +244,11 @@ import { import { getPoster } from "@/api/netEwm/poster"; import MyTable from "./components/MyTable.vue"; +import MyNet from "./components/net.vue"; export default { components: { MyTable, + MyNet, }, name: "Shanghu", data() { @@ -371,19 +379,17 @@ export default { handleUpdate(row, type) { this.reset(); const id = row.id || this.ids; - getShanghu(id).then((response) => { + getShanghu(id).then(async (response) => { this.form = response.data; if (type == "info") { if (this.form.posterId) { - getPoster(this.form.posterId).then((info) => { - this.form.videoPath = this.baseUrl + info.data.videoPath; - this.openInfo = true; - this.titleInfo = "查看商户详细信息"; - }); - } else { - this.openInfo = true; - this.titleInfo = "查看商户详细信息"; + let info = await getPoster(this.form.posterId); + this.form.videoPath = this.baseUrl + info.data.videoPath; } + this.openInfo = true; + this.$nextTick(() => { + this.$refs.MyNetTable.getList(this.form.id); + }); } else { this.open = true; this.title = "修改商户";