From f3e82262f1ff1550ca0fbd3dc4586fba81b4f0cc Mon Sep 17 00:00:00 2001 From: pengda <1111@qq.com> Date: Tue, 26 Aug 2025 17:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E8=B4=A7=E4=BB=B7=E6=A0=BC=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=94=9A=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/agent/home.vue | 8 +++++- src/views/agent/siteAddChooseService.vue | 2 +- src/views/agent/supplyList.vue | 42 +++++++++++++++++++------------- 3 files changed, 33 insertions(+), 19 deletions(-) diff --git a/src/views/agent/home.vue b/src/views/agent/home.vue index 68c70bb..cea9f10 100644 --- a/src/views/agent/home.vue +++ b/src/views/agent/home.vue @@ -65,7 +65,7 @@ {{ classifyId2Name[classify_id] }} - 详情 + 详情
@@ -354,6 +354,12 @@ export default { // 系统通知 -查看更多 this.$router.push('/agent/noticeList') }, + lookSupplyPrice(classify_id) { + window.open(this.$router.resolve({ + path: '/agent/supplyList', + hash: '#section_'+classify_id + }).href, '_blank'); + }, lookAllSales() { // 销售统计 -查看全部 }, diff --git a/src/views/agent/siteAddChooseService.vue b/src/views/agent/siteAddChooseService.vue index c8a4258..026ef6d 100644 --- a/src/views/agent/siteAddChooseService.vue +++ b/src/views/agent/siteAddChooseService.vue @@ -37,7 +37,7 @@ {{ type2name[type] }}
-

{{ supplyPriceList[type].introduce }}

+

{{ type2info[type].introduce }}

¥{{ supplyPriceList[type].price }} / {{ supplyPriceList[type].unit_format }}

diff --git a/src/views/agent/supplyList.vue b/src/views/agent/supplyList.vue index 974c944..53f4443 100644 --- a/src/views/agent/supplyList.vue +++ b/src/views/agent/supplyList.vue @@ -3,7 +3,7 @@ -
+
{{ classifyId2Name[classify_id] }}
@@ -91,6 +91,14 @@ export default { store.commit('SET_PAGETITLE', '基本设置'); this.getSupplyServiceList(); + if (this.$route.hash) { + setTimeout(() => { + const el = document.querySelector(this.$route.hash) + if (el) { + el.scrollIntoView({ behavior: 'smooth', block: 'start' }) + } + }, 500) + } }, methods: { scrollToAnchor(ver) { @@ -102,23 +110,23 @@ export default { }); }, getSupplyServiceList() { - this.$http('POST', '/agentnew/ajax_get_supply_services', { - - }).then(response => { - this.$nextTick(() => { - this.classifyId2Name = response.data.classifyid2name; - this.classifyId2Vers = response.data.classifyid2vers; - this.ver2types = response.data.ver2types; - this.ver2info = response.data.ver2info; - this.type2name = response.data.type2name; - this.type2info = response.data.type2info; - this.supplyPriceList = response.data.supply_price; - this.salePolicy = response.data.sale_policy; + this.$http('POST', '/agentnew/ajax_get_supply_services', { + + }).then(response => { + this.$nextTick(() => { + this.classifyId2Name = response.data.classifyid2name; + this.classifyId2Vers = response.data.classifyid2vers; + this.ver2types = response.data.ver2types; + this.ver2info = response.data.ver2info; + this.type2name = response.data.type2name; + this.type2info = response.data.type2info; + this.supplyPriceList = response.data.supply_price; + this.salePolicy = response.data.sale_policy; + }) + }).catch(error => { + console.error(error, 'error') }) - }).catch(error => { - console.error(error, 'error') - }) - }, + }, } }