From c24e49083d4419300bcee0f0ca926c084037d665 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期三, 08 一月 2025 09:04:48 +0800 Subject: [PATCH] 1.订单支付倒计时配置 2.服务热线配置 --- pages/user/supplier-user.vue | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/pages/user/supplier-user.vue b/pages/user/supplier-user.vue index 456bc0f..1e51cff 100644 --- a/pages/user/supplier-user.vue +++ b/pages/user/supplier-user.vue @@ -241,7 +241,7 @@ <view class="flex m-t-12"> <view class="flex1 w-fit m-auto icon-view" @click.stop="callTel"> <image src="/static/common/icon-call.png" class="icon icon-call m-r-10 img100"></image> - {{ tel }} + {{ tel || '' }} </view> <view class="flex1 w-fit m-auto icon-view flex flex-wrap-normal" open-type="contact"> <image src="/static/common/icon-wx.png" class="icon icon-call m-t-2 m-r-10 img100"></image> @@ -651,6 +651,7 @@ this.cacheUserId = '' this.getTj() + this.getHotLineConfig() }, @@ -663,6 +664,7 @@ } // #endif + }, created() { @@ -681,6 +683,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 + } + }, switchSubAccount() { uni.navigateTo({ url: '/sub_pages/supplier/sub-account/sub-account-switch-list' -- Gitblit v1.9.3