From f926e6141482ca1c7ea8de58c06736e7d93abf9f Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期一, 13 一月 2025 11:37:53 +0800 Subject: [PATCH] 1.在线客服-点击事件修改 --- sub_pages/partner/delivery/delivery-home.vue | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/sub_pages/partner/delivery/delivery-home.vue b/sub_pages/partner/delivery/delivery-home.vue index 503832a..14297ec 100644 --- a/sub_pages/partner/delivery/delivery-home.vue +++ b/sub_pages/partner/delivery/delivery-home.vue @@ -112,7 +112,9 @@ // } // } // }, - onShow() {}, + onShow() { + this.getHotLineConfig() + }, onLoad(options) { // const url = options.q ? decodeURIComponent(options.q) : ''; // const urlcode = options.url && decodeURIComponent(options.url) || '' @@ -148,7 +150,27 @@ uni.stopPullDownRefresh() }, methods: { + + async getHotLineConfig() { + this.$message.showLoading() + const { + code, + data + } = await this.$http.request('get', `/v2/config-param/base/getBaseString`, { + params: { + paramGroup: "servicehotline", + paramKey: "hotline_tel" + } + }) + this.$message.hideLoading() + + if (code === 0) { + // 电话 + console.log(data) + this.tel =data + } + }, async clearlogout() { await this.$message.confirm('是否退出登录?') -- Gitblit v1.9.3