Compare commits

..

No commits in common. "5338356fce77a1f84814fd538673f6889731f9a4" and "99b9f6cbfb310756298e9b939f6b49422d0a8209" have entirely different histories.

5 changed files with 63 additions and 32 deletions

View File

@ -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.9:4101', //键辉本地 // baseUrl: 'http://192.168.1.6:4101', //键辉本地
// baseUrl: 'http://192.168.2.221: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://cc.ccttiot.com/prod-api', //叉车线上
// baseUrl:'https://ysd.chuantewulian.cn/prod-api', //嵛山岛线上api 嵛山岛appidwx4d178f8c80348214 // baseUrl:'https://ysd.chuantewulian.cn/prod-api', //嵛山岛线上api 嵛山岛appidwx4d178f8c80348214
loadingText: '努力加载中~', loadingText: '努力加载中~',

View File

@ -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="areaCouponVerifyEnabled"> <view hover-class="app-tap-hover" class="verify-entry" @click="goVerify" v-if="area != null && area.douyinEnable == true">
<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,
areaCouponVerifyEnabled: false, area: {},
redirectUrl: '', redirectUrl: '',
redirectRemark: '' redirectRemark: ''
} }
@ -152,13 +152,13 @@
}, },
getAreaDetail() { getAreaDetail() {
if (!this.areaId) { if (!this.areaId) {
this.areaCouponVerifyEnabled = false; this.area = {};
return; return;
} }
this.$u.get(`/app/areaAbility/one?areaId=${this.areaId}&abilityCode=COUPON_VERIFY`).then((res) => { this.$u.get(`/app/area/detail?id=${this.areaId}`).then((res) => {
this.areaCouponVerifyEnabled = !!(res.code == 200 && res.data) if (res.code == 200) {
}).catch(() => { this.area = res.data
this.areaCouponVerifyEnabled = false }
}) })
}, },
// channelId // channelId

View File

@ -187,7 +187,7 @@
show: false, show: false,
huiyuanlist: [], huiyuanlist: [],
huiyuanobj: {}, huiyuanobj: {},
areaCouponVerifyEnabled: false, areaDouyinEnable: 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.areaCouponVerifyEnabled return this.huiyuanlist.length > 0 || this.areaDouyinEnable
} }
}, },
onLoad(option) { onLoad(option) {
@ -790,15 +790,9 @@
// / // /
getAreaDetail() { getAreaDetail() {
if (!this.bikeobj || !this.bikeobj.areaId) { if (!this.bikeobj || !this.bikeobj.areaId) return
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) { if (res.code != 200 || !res.data) return
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) {
@ -810,18 +804,7 @@
this.showGuideVideo = true this.showGuideVideo = true
} }
} }
this.getAreaCouponVerifyEnabled(areaId) this.areaDouyinEnable = data.douyinEnable
})
},
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
}) })
}, },
@ -1277,6 +1260,7 @@
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
@ -1326,6 +1310,12 @@
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 })

View File

@ -206,6 +206,20 @@
开启后用户必须先拍摄全车视频才能下单 开启后用户必须先拍摄全车视频才能下单
</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">
@ -876,6 +890,13 @@
} }
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
@ -982,6 +1003,16 @@
}, },
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)
@ -1007,6 +1038,7 @@
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),
@ -1578,6 +1610,10 @@
} }
} }
.card_li:last-child {
// border-bottom: 1rpx solid #fff;
}
.tips { .tips {
width: 100%; width: 100%;
font-weight: 500; font-weight: 500;

View File

@ -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"> <view hover-class="app-tap-hover" class="kefu" @click="getyajin" v-if="info.suitDepositDeduction && info.isCredit == false">
<view class="kefu-main"> <view class="kefu-main">
押金抵扣 押金抵扣
</view> </view>
@ -447,6 +447,7 @@ 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,
@ -781,6 +782,9 @@ 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({
@ -855,6 +859,7 @@ 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