Compare commits
2 Commits
99b9f6cbfb
...
5338356fce
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5338356fce | ||
|
|
ed6d203211 |
|
|
@ -1,9 +1,9 @@
|
||||||
const install = (Vue, vm) => {
|
const install = (Vue, vm) => {
|
||||||
uni.setStorageSync('deptId', 100);
|
uni.setStorageSync('deptId', 100);
|
||||||
Vue.prototype.$u.http.setConfig({
|
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: '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://cc.ccttiot.com/prod-api', //叉车线上
|
||||||
// baseUrl:'https://ysd.chuantewulian.cn/prod-api', //嵛山岛线上api 嵛山岛appid:wx4d178f8c80348214
|
// baseUrl:'https://ysd.chuantewulian.cn/prod-api', //嵛山岛线上api 嵛山岛appid:wx4d178f8c80348214
|
||||||
loadingText: '努力加载中~',
|
loadingText: '努力加载中~',
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<u-navbar title="优惠中心" :border-bottom="false" :background="bgc" back-icon-color="#333333" title-color='#333333'
|
<u-navbar title="优惠中心" :border-bottom="false" :background="bgc" back-icon-color="#333333" title-color='#333333'
|
||||||
title-size='36' height='36' id="navbar">
|
title-size='36' height='36' id="navbar">
|
||||||
</u-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="verify-entry-cards">
|
||||||
<view class="card card-back">
|
<view class="card card-back">
|
||||||
<image src="https://api.ccttiot.com/%E7%BE%8E%E5%9B%A2-copy-1772093915776.png" mode="aspectFit" />
|
<image src="https://api.ccttiot.com/%E7%BE%8E%E5%9B%A2-copy-1772093915776.png" mode="aspectFit" />
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
areaId:'',
|
areaId:'',
|
||||||
channelId:'',
|
channelId:'',
|
||||||
zfflag:true,
|
zfflag:true,
|
||||||
area: {},
|
areaCouponVerifyEnabled: false,
|
||||||
redirectUrl: '',
|
redirectUrl: '',
|
||||||
redirectRemark: ''
|
redirectRemark: ''
|
||||||
}
|
}
|
||||||
|
|
@ -152,13 +152,13 @@
|
||||||
},
|
},
|
||||||
getAreaDetail() {
|
getAreaDetail() {
|
||||||
if (!this.areaId) {
|
if (!this.areaId) {
|
||||||
this.area = {};
|
this.areaCouponVerifyEnabled = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$u.get(`/app/area/detail?id=${this.areaId}`).then((res) => {
|
this.$u.get(`/app/areaAbility/one?areaId=${this.areaId}&abilityCode=COUPON_VERIFY`).then((res) => {
|
||||||
if (res.code == 200) {
|
this.areaCouponVerifyEnabled = !!(res.code == 200 && res.data)
|
||||||
this.area = res.data
|
}).catch(() => {
|
||||||
}
|
this.areaCouponVerifyEnabled = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求channelId
|
// 请求channelId
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@
|
||||||
show: false,
|
show: false,
|
||||||
huiyuanlist: [],
|
huiyuanlist: [],
|
||||||
huiyuanobj: {},
|
huiyuanobj: {},
|
||||||
areaDouyinEnable: false,
|
areaCouponVerifyEnabled: false,
|
||||||
zfflag: true,
|
zfflag: true,
|
||||||
jieliuflag: true,
|
jieliuflag: true,
|
||||||
videoUrl: '',
|
videoUrl: '',
|
||||||
|
|
@ -218,7 +218,7 @@
|
||||||
computed: {
|
computed: {
|
||||||
// 特惠购卡/团购核销显示
|
// 特惠购卡/团购核销显示
|
||||||
showCardVerifyEntry() {
|
showCardVerifyEntry() {
|
||||||
return this.huiyuanlist.length > 0 || this.areaDouyinEnable
|
return this.huiyuanlist.length > 0 || this.areaCouponVerifyEnabled
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
|
@ -790,9 +790,15 @@
|
||||||
|
|
||||||
// ── 运营区详情(引导视频/抖音核销) ──────────
|
// ── 运营区详情(引导视频/抖音核销) ──────────
|
||||||
getAreaDetail() {
|
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) => {
|
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 data = res.data
|
||||||
const areaId = data.id
|
const areaId = data.id
|
||||||
if (data.guideEnable && data.guideVideo) {
|
if (data.guideEnable && data.guideVideo) {
|
||||||
|
|
@ -804,7 +810,18 @@
|
||||||
this.showGuideVideo = true
|
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
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -1260,7 +1277,6 @@
|
||||||
price: this.yucobj,
|
price: this.yucobj,
|
||||||
appId: this.$store.state.appid,
|
appId: this.$store.state.appid,
|
||||||
channelId: this.channelId,
|
channelId: this.channelId,
|
||||||
creditUserId: this.selectedSubPayment,
|
|
||||||
checkVideo: this.videoUrl,
|
checkVideo: this.videoUrl,
|
||||||
appType: 1,
|
appType: 1,
|
||||||
areaPromotionId: areaPromotionId
|
areaPromotionId: areaPromotionId
|
||||||
|
|
@ -1310,12 +1326,6 @@
|
||||||
title: '提示', content: '您当前还未实名认证,是否前去实名认证?', showCancel: true,
|
title: '提示', content: '您当前还未实名认证,是否前去实名认证?', showCancel: true,
|
||||||
success: function(res) { if (res.confirm) uni.navigateTo({ url: '/page_user/shiming?areaId=' + that.bikeobj.areaId }) }
|
success: function(res) { if (res.confirm) uni.navigateTo({ url: '/page_user/shiming?areaId=' + that.bikeobj.areaId }) }
|
||||||
})
|
})
|
||||||
} else if (resp.code == 10002) {
|
|
||||||
uni.hideLoading()
|
|
||||||
uni.showModal({
|
|
||||||
title: '提示', content: '您当前驾驶证未认证,是否前去认证?', showCancel: true,
|
|
||||||
success: function(res) { if (res.confirm) uni.navigateTo({ url: '/page_user/renzheng/jiashizheng' }) }
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
uni.showToast({ title: resp.msg, icon: 'none', duration: 2000 })
|
uni.showToast({ title: resp.msg, icon: 'none', duration: 2000 })
|
||||||
|
|
|
||||||
|
|
@ -206,20 +206,6 @@
|
||||||
开启后用户必须先拍摄全车视频才能下单
|
开启后用户必须先拍摄全车视频才能下单
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="card_li">
|
|
||||||
<view class="tops">
|
|
||||||
<view class="card_left">
|
|
||||||
短信通知服务
|
|
||||||
</view>
|
|
||||||
<view class="card_right">
|
|
||||||
<u-switch v-model="form.msgSwitch"></u-switch>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="tips">
|
|
||||||
开启短信通知,短信费用0.1元/条,从余额中扣除
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="card_li">
|
<view class="card_li">
|
||||||
<view class="tops">
|
<view class="tops">
|
||||||
<view class="card_left">
|
<view class="card_left">
|
||||||
|
|
@ -890,13 +876,6 @@
|
||||||
}
|
}
|
||||||
this.startTime = res.data.areaTimeStart
|
this.startTime = res.data.areaTimeStart
|
||||||
this.endTime = res.data.areaTimeEnd
|
this.endTime = res.data.areaTimeEnd
|
||||||
res.data.authentication.filter(item => {
|
|
||||||
if (item == 1) {
|
|
||||||
this.shimflag = true
|
|
||||||
} else if (item == 2) {
|
|
||||||
this.jiasflag = true
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.scspflag = res.data.needCheckVideo
|
this.scspflag = res.data.needCheckVideo
|
||||||
if (res.data.status == 1) {
|
if (res.data.status == 1) {
|
||||||
this.timeflag = false
|
this.timeflag = false
|
||||||
|
|
@ -1003,16 +982,6 @@
|
||||||
},
|
},
|
||||||
sub() {
|
sub() {
|
||||||
if (this.submitting) return
|
if (this.submitting) return
|
||||||
let authentication = []
|
|
||||||
if (this.shimflag == true && this.jiasflag == true) {
|
|
||||||
authentication = [1, 2]
|
|
||||||
} else if (this.shimflag == true && this.jiasflag == false) {
|
|
||||||
authentication = [1]
|
|
||||||
} else if (this.shimflag == false && this.jiasflag == true) {
|
|
||||||
authentication = [2]
|
|
||||||
} else if (this.shimflag == false && this.jiasflag == false) {
|
|
||||||
authentication = []
|
|
||||||
}
|
|
||||||
if (this.form.enableTempUnlock === true) {
|
if (this.form.enableTempUnlock === true) {
|
||||||
const tempUnlockMax = Number(this.form.tempUnlockMax)
|
const tempUnlockMax = Number(this.form.tempUnlockMax)
|
||||||
const tempUnlockSeconds = Number(this.form.tempUnlockSeconds)
|
const tempUnlockSeconds = Number(this.form.tempUnlockSeconds)
|
||||||
|
|
@ -1038,7 +1007,6 @@
|
||||||
areaTimeStart: this.startTime,
|
areaTimeStart: this.startTime,
|
||||||
areaTimeEnd: this.endTime,
|
areaTimeEnd: this.endTime,
|
||||||
status: this.timeflag == true ? '0' : '1',
|
status: this.timeflag == true ? '0' : '1',
|
||||||
authentication: authentication,
|
|
||||||
needCheckVideo: this.scspflag,
|
needCheckVideo: this.scspflag,
|
||||||
enableTempUnlock: this.form.enableTempUnlock === true,
|
enableTempUnlock: this.form.enableTempUnlock === true,
|
||||||
tempUnlockMax: Number(this.form.tempUnlockMax || 0),
|
tempUnlockMax: Number(this.form.tempUnlockMax || 0),
|
||||||
|
|
@ -1610,10 +1578,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card_li:last-child {
|
|
||||||
// border-bottom: 1rpx solid #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tips {
|
.tips {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottom-content">
|
<view class="bottom-content">
|
||||||
<view hover-class="app-tap-hover" class="kefu" @click="getyajin" v-if="info.suitDepositDeduction && info.isCredit == false">
|
<view hover-class="app-tap-hover" class="kefu" @click="getyajin" v-if="info.suitDepositDeduction">
|
||||||
<view class="kefu-main">
|
<view class="kefu-main">
|
||||||
押金抵扣
|
押金抵扣
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -447,7 +447,6 @@ import ZhimaNoDepositBadge from '@/components/zhima-no-deposit-badge/zhima-no-de
|
||||||
selectedCoupon: null,
|
selectedCoupon: null,
|
||||||
youhuiobj:{},
|
youhuiobj:{},
|
||||||
vipUserId:null,
|
vipUserId:null,
|
||||||
creditUserId:'',
|
|
||||||
channelobj:{},
|
channelobj:{},
|
||||||
// 押金退还申请相关
|
// 押金退还申请相关
|
||||||
showRefundModal: false,
|
showRefundModal: false,
|
||||||
|
|
@ -782,9 +781,6 @@ import ZhimaNoDepositBadge from '@/components/zhima-no-deposit-badge/zhima-no-de
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.channelId = res.data[0].id
|
this.channelId = res.data[0].id
|
||||||
this.channelobj = res.data
|
this.channelobj = res.data
|
||||||
if(res.data[0].subList != null && res.data[0].subList.length > 0){
|
|
||||||
this.creditUserId = res.data[0].subList[0].id
|
|
||||||
}
|
|
||||||
this.getCouponList()
|
this.getCouponList()
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -859,7 +855,6 @@ import ZhimaNoDepositBadge from '@/components/zhima-no-deposit-badge/zhima-no-de
|
||||||
orderId: this.id,
|
orderId: this.id,
|
||||||
payAmount: this.info.totalFee,
|
payAmount: this.info.totalFee,
|
||||||
channelId: this.channelId,
|
channelId: this.channelId,
|
||||||
creditUserId:this.creditUserId,
|
|
||||||
appId: this.$store.state.appid,
|
appId: this.$store.state.appid,
|
||||||
vipUserId:this.vipUserId,
|
vipUserId:this.vipUserId,
|
||||||
fee
|
fee
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user