From c24e49083d4419300bcee0f0ca926c084037d665 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 08 一月 2025 09:04:48 +0800
Subject: [PATCH] 1.订单支付倒计时配置 2.服务热线配置
---
sub_pages/partner/delivery/delivery-home.vue | 30 ++++++++++++++++++++++++++----
1 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/sub_pages/partner/delivery/delivery-home.vue b/sub_pages/partner/delivery/delivery-home.vue
index cda761a..14297ec 100644
--- a/sub_pages/partner/delivery/delivery-home.vue
+++ b/sub_pages/partner/delivery/delivery-home.vue
@@ -99,7 +99,7 @@
tcode: '',
inviterName: '',
// StatusBar:0,
- tel: '15974805814',
+ tel: '19288780072',
tj: {},
cacheUserId: '',
@@ -112,7 +112,9 @@
// }
// }
// },
- onShow() {},
+ onShow() {
+ this.getHotLineConfig()
+ },
onLoad(options) {
// const url = options.q ? decodeURIComponent(options.q) : '';
// const urlcode = options.url && decodeURIComponent(options.url) || ''
@@ -125,7 +127,7 @@
},
onShareAppMessage() {
let that = this;
- var name = that.currentInfo.customerDTO&¤tInfo.customerDTO.name || that.currentInfo.supplierDTO&¤tInfo.supplierDTO.name || that.currentInfo.partnerDTO&¤tInfo.partnerDTO.name || ''
+ var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || ''
var url =
`/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
return {
@@ -135,7 +137,7 @@
},
onShareTimeline() {
let that = this;
- var name = that.currentInfo.customerDTO&¤tInfo.customerDTO.name || that.currentInfo.supplierDTO&¤tInfo.supplierDTO.name || that.currentInfo.partnerDTO&¤tInfo.partnerDTO.name || ''
+ var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || ''
var url =
`/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
return {
@@ -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