临时提交

This commit is contained in:
磷叶 2026-05-25 18:10:25 +08:00
parent 99b9f6cbfb
commit ed6d203211
3 changed files with 31 additions and 14 deletions

View File

@ -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 小兔骑骑appidwx38f96c87621a87ab 遇福兴https://fu.chuantewulian.cn wxcb1d6a5d9dca8bbe
// baseUrl: 'https://ele.ccttiot.com/prod-api', //线上 小鹿appid wx8a05cf95418a6859 小兔骑骑appidwx38f96c87621a87ab 遇福兴https://fu.chuantewulian.cn wxcb1d6a5d9dca8bbe
// baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上
// baseUrl:'https://ysd.chuantewulian.cn/prod-api', //嵛山岛线上api 嵛山岛appidwx4d178f8c80348214
loadingText: '努力加载中~',

View File

@ -3,7 +3,7 @@
<u-navbar title="优惠中心" :border-bottom="false" :background="bgc" back-icon-color="#333333" title-color='#333333'
title-size='36' height='36' id="navbar">
</u-navbar>
<view hover-class="app-tap-hover" class="verify-entry" @click="goVerify" v-if="area != null && area.douyinEnable == true">
<view hover-class="app-tap-hover" class="verify-entry" @click="goVerify" v-if="areaCouponVerifyEnabled">
<view class="verify-entry-cards">
<view class="card card-back">
<image src="https://api.ccttiot.com/%E7%BE%8E%E5%9B%A2-copy-1772093915776.png" mode="aspectFit" />
@ -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

View File

@ -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
})
},