From ed6d203211bc546629487ca30c404125fc82ddc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Mon, 25 May 2026 18:10:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.interceptor.js | 4 ++-- page_fenbao/huiyuan/index.vue | 14 +++++------ page_fenbao/storedlist/trueorder/index.vue | 27 ++++++++++++++++++---- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 7465afb..30a2197 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -1,9 +1,9 @@ const install = (Vue, vm) => { uni.setStorageSync('deptId', 100); Vue.prototype.$u.http.setConfig({ - // baseUrl: 'http://192.168.1.6:4101', //键辉本地 + baseUrl: 'http://192.168.1.9:4101', //键辉本地 // baseUrl: 'http://192.168.2.221:4101', //景森本地 - baseUrl: 'https://ele.ccttiot.com/prod-api', //线上 小鹿appid: wx8a05cf95418a6859 小兔骑骑appid:wx38f96c87621a87ab 遇福兴https://fu.chuantewulian.cn wxcb1d6a5d9dca8bbe + // baseUrl: 'https://ele.ccttiot.com/prod-api', //线上 小鹿appid: wx8a05cf95418a6859 小兔骑骑appid:wx38f96c87621a87ab 遇福兴https://fu.chuantewulian.cn wxcb1d6a5d9dca8bbe // baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上 // baseUrl:'https://ysd.chuantewulian.cn/prod-api', //嵛山岛线上api 嵛山岛appid:wx4d178f8c80348214 loadingText: '努力加载中~', diff --git a/page_fenbao/huiyuan/index.vue b/page_fenbao/huiyuan/index.vue index fcad673..329ec7a 100644 --- a/page_fenbao/huiyuan/index.vue +++ b/page_fenbao/huiyuan/index.vue @@ -3,7 +3,7 @@ - + @@ -117,7 +117,7 @@ areaId:'', channelId:'', zfflag:true, - area: {}, + areaCouponVerifyEnabled: false, redirectUrl: '', redirectRemark: '' } @@ -152,13 +152,13 @@ }, getAreaDetail() { if (!this.areaId) { - this.area = {}; + this.areaCouponVerifyEnabled = false; return; } - this.$u.get(`/app/area/detail?id=${this.areaId}`).then((res) => { - if (res.code == 200) { - this.area = res.data - } + this.$u.get(`/app/areaAbility/one?areaId=${this.areaId}&abilityCode=COUPON_VERIFY`).then((res) => { + this.areaCouponVerifyEnabled = !!(res.code == 200 && res.data) + }).catch(() => { + this.areaCouponVerifyEnabled = false }) }, // 请求channelId diff --git a/page_fenbao/storedlist/trueorder/index.vue b/page_fenbao/storedlist/trueorder/index.vue index eb20a96..d65835d 100644 --- a/page_fenbao/storedlist/trueorder/index.vue +++ b/page_fenbao/storedlist/trueorder/index.vue @@ -187,7 +187,7 @@ show: false, huiyuanlist: [], huiyuanobj: {}, - areaDouyinEnable: false, + areaCouponVerifyEnabled: false, zfflag: true, jieliuflag: true, videoUrl: '', @@ -218,7 +218,7 @@ computed: { // 特惠购卡/团购核销显示 showCardVerifyEntry() { - return this.huiyuanlist.length > 0 || this.areaDouyinEnable + return this.huiyuanlist.length > 0 || this.areaCouponVerifyEnabled } }, onLoad(option) { @@ -790,9 +790,15 @@ // ── 运营区详情(引导视频/抖音核销) ────────── getAreaDetail() { - if (!this.bikeobj || !this.bikeobj.areaId) return + if (!this.bikeobj || !this.bikeobj.areaId) { + this.areaCouponVerifyEnabled = false + return + } this.$u.get(`/app/area/detail?id=${this.bikeobj.areaId}`).then((res) => { - if (res.code != 200 || !res.data) return + if (res.code != 200 || !res.data) { + this.areaCouponVerifyEnabled = false + return + } const data = res.data const areaId = data.id if (data.guideEnable && data.guideVideo) { @@ -804,7 +810,18 @@ this.showGuideVideo = true } } - this.areaDouyinEnable = data.douyinEnable + this.getAreaCouponVerifyEnabled(areaId) + }) + }, + getAreaCouponVerifyEnabled(areaId) { + if (!areaId) { + this.areaCouponVerifyEnabled = false + return + } + this.$u.get(`/app/areaAbility/one?areaId=${areaId}&abilityCode=COUPON_VERIFY`).then((res) => { + this.areaCouponVerifyEnabled = !!(res.code == 200 && res.data) + }).catch(() => { + this.areaCouponVerifyEnabled = false }) },