修改开关收费模版

This commit is contained in:
3321822538@qq.com 2024-10-21 18:02:41 +08:00
parent 9b88341f2d
commit d732e9c7ad
5 changed files with 125 additions and 43 deletions

View File

@ -19,8 +19,8 @@ const install = (Vue, vm) => {
// }, // },
// }); // });
Vue.prototype.$u.http.setConfig({ Vue.prototype.$u.http.setConfig({
baseUrl: 'http://192.168.2.15:10002', // baseUrl: 'http://192.168.2.15:10002',
// baseUrl: 'https://kg.chuangtewl.com/prod-api', baseUrl: 'https://kg.chuangtewl.com/prod-api',
// loadingText: '加载中...', // loadingText: '加载中...',
// loadingTime: 1000, // loadingTime: 1000,
// 设置自定义头部content-type // 设置自定义头部content-type

View File

@ -3,10 +3,10 @@
<u-navbar :custom-back="btnback" title="实名认证" :border-bottom="false" :background="bgc" back-icon-color="#fff" title-color='#fff' <u-navbar :custom-back="btnback" title="实名认证" :border-bottom="false" :background="bgc" back-icon-color="#fff" title-color='#fff'
title-size='36' height='44'></u-navbar> title-size='36' height='44'></u-navbar>
<!-- 未有实名认证 --> <!-- 未有实名认证 -->
<view class=""> <view class="" v-if="flags">
<view class="listval"> <view class="listval">
<view class="tit"> 真实姓名</view> <view class="tit"> 真实姓名</view>
<view class="but"> <input type="text" placeholder="请输入真实姓名" v-model="name" /> </view> <view class="but"> <input type="text" placeholder="请输入真实姓名" v-model="name"/> </view>
</view> </view>
<view class="listval"> <view class="listval">
<view class="tit"> 身份证号</view> <view class="tit"> 身份证号</view>
@ -22,10 +22,29 @@
提现需实名认证请输入真实有效实名信息 提现需实名认证请输入真实有效实名信息
</view> </view>
</view> </view>
<view class="" v-else>
<view class="listval">
<view class="tit"> 真实姓名</view>
<view class="but"> <input type="text" placeholder="请输入真实姓名" disabled="true" v-model="name"/> </view>
</view>
<view class="listval">
<view class="tit"> 身份证号</view>
<view class="but"> <input type="text" placeholder="请输入身份证号" disabled="true" v-model="names" /> </view>
</view>
<view class="listval">
<view class="yz" v-if="yzflag">
</view>
<view class="yz" v-else>
</view>
</view>
<view class="" style="width: 100%;margin-top: 50rpx;color: red;text-align: center;">
提现需实名认证请输入真实有效实名信息
</view>
</view>
<!-- 已有实名认证 --> <!-- 已有实名认证 -->
<view class="baocun" v-if="flag"> <view class="baocun" @click="btnyanz" v-if="flag">
进行人脸验证 进行人脸验证
</view> </view>
<view class="baocun" @click="btnyz" v-else> <view class="baocun" @click="btnyz" v-else>
@ -48,11 +67,15 @@
names: '', names: '',
tel: '', tel: '',
flag: false, flag: false,
yzflag: true yzflag: true,
type:'',
user:{},
flags:false
} }
}, },
onLoad() { onLoad(option) {
this.type = option.type
this.getuserinfo()
}, },
// //
onShareAppMessage: function() { onShareAppMessage: function() {
@ -71,23 +94,54 @@
} }
}, },
methods: { methods: {
btnback(){ getuserinfo() {
uni.reLaunch({ this.$u.get("/app/user/userInfo").then((res) => {
url:'/page_user/yetx' if (res.code == 200) {
this.name = res.data.realName
this.names = res.data.realIdCard
if(res.data.isReal == true){
this.flags = false
this.flag = true
}else{
this.flags = true
this.flag = false
}
}
}) })
}, },
btnyz() {
this.flag = true //
let data = { btnyanz(){
realName: this.name, this.$u.put("/app/user/riskRealName").then((res) => {
realIdCard: this.names, if (res.code == 200) {
// realPhone: this.tel let https = encodeURIComponent(res.data.jumpUrl)
} uni.navigateTo({
this.$u.put('/app/user/realName', data).then(res => { url: '/pages/sjshiming?https=' + https
})
} else {
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
})
}
})
},
btnback(){
uni.reLaunch({
url:'/page_user/yetx'
})
},
btnyz() {
let data = {
realName: this.name,
realIdCard: this.names,
type:this.type
}
this.$u.put('/app/user/realName', data).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.flag = false
let https = encodeURIComponent(res.data.jumpUrl) let https = encodeURIComponent(res.data.jumpUrl)
console.log(https);
uni.navigateTo({ uni.navigateTo({
url: '/pages/sjshiming?https=' + https url: '/pages/sjshiming?https=' + https
}) })
@ -97,7 +151,6 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
this.flag = false
} }
}) })
} }

View File

@ -84,20 +84,13 @@
</view> </view>
</view> </view>
<view class="" style="display: flex;justify-content: space-between;margin-bottom: 20rpx;"> <view class="" style="display: flex;margin-bottom: 20rpx;width: 100%;">
<view class="feems" v-if="jeflag" style="display: block;"> <view class="feemss" v-if="gmsjflag" style="max-width: 380rpx;box-sizing: border-box;margin-top: 6rpx;">
<view class="feelt" style="margin-bottom: 10rpx;"> <view class="feelt" style="display: block;display: flex;align-items: center;">
单价 <!-- <text class="txt" style="width: 60rpx;margin-bottom: 10rpx;">时间</text> -->
<text style="margin-right: 20rpx;">单价</text> <text style="margin-right: 10rpx;"></text> <input style="display: inline-block;" type="number" v-model="duvalue" /> <text>{{timetxt}}</text>
</view> </view>
<view class="feert" style="width: 100%;"> <view class="feert" style="margin-left: 0;padding-left: 80rpx;">
<input type="text" class="yj" v-model="qianvalue" /> <text></text>
</view>
</view>
<view class="feemss" v-if="gmsjflag" style="max-width: 430rpx;padding-left: 50rpx;box-sizing: border-box;">
<view class="feelt" style="display: block;">
<text class="txt" style="width: 60rpx;margin-bottom: 10rpx;">时间</text> <input type="number" v-model="duvalue" />
</view>
<view class="feert" style="margin-top: 80rpx;margin-left: 0;">
<view class=""> <view class="">
<u-radio-group v-model="valuethr" @change="radioGroupChangetime"> <u-radio-group v-model="valuethr" @change="radioGroupChangetime">
<u-radio @change="radioChangetime" v-for="(item, index) in gmsj" :key="index" <u-radio @change="radioChangetime" v-for="(item, index) in gmsj" :key="index"
@ -108,17 +101,27 @@
</view> </view>
</view> </view>
</view> </view>
<view class="feems" v-if="duflag" style="display: block;padding-left: 50rpx;box-sizing: border-box;"> <view class="feems" v-if="duflag" style="display: block;box-sizing: border-box;width: 360rpx;">
<view class="feelt" style="margin-bottom: 10rpx;"> <!-- <view class="feelt" style="margin-bottom: 10rpx;">
购买度数 购买度数
</view> </view> -->
<view class="feert"> <view class="feert">
<input type="text" class="yj" v-model="duvalue" /> <text></text> <text style="margin-right: 20rpx;">单价</text> <text style="margin-right: 10rpx;"></text> <input type="text" class="yj" v-model="duvalue" /> <text></text>
</view> </view>
</view> </view>
<view class="feems" v-if="jeflag" style="display: block;">
<!-- <view class="feelt" style="margin-bottom: 10rpx;">
单价
</view> -->
<view class="feert" style="width: 100%;">
<input type="text" class="yj" v-model="qianvalue" /> <text></text>
</view>
</view>
</view> </view>
<text style="font-size: 24rpx;color: #999;">消费金额为单价的倍数结束订单后将返回剩余预存款</text> <text style="font-size: 24rpx;color: red;">消费金额为单价的倍数结束订单后将返回剩余预存款</text>
</view> </view>
<view class="batterybox" v-if="djflag"> <view class="batterybox" v-if="djflag">
<view class="dianj"> <view class="dianj">
@ -405,6 +408,7 @@
} }
], ],
index: 2, index: 2,
timetxt:'',
timewz: '', timewz: '',
arrflag: false, arrflag: false,
bgc: { bgc: {
@ -746,10 +750,13 @@
radioChangetime(e) { radioChangetime(e) {
if (e == '时') { if (e == '时') {
this.timeUnit = 2 this.timeUnit = 2
this.timetxt = '时'
} else if (e == '分') { } else if (e == '分') {
this.timeUnit = 3 this.timeUnit = 3
this.timetxt = '分'
} else { } else {
this.timeUnit = 4 this.timeUnit = 4
this.timetxt = '秒'
} }
}, },
// radioradio-group // radioradio-group

View File

@ -199,7 +199,18 @@
setTimeout(()=>{ setTimeout(()=>{
this.getlist() this.getlist()
},1000) },1000)
}else{ }else if(res.code == 102002){
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
})
setTimeout(()=>{
uni.navigateTo({
url: '/page_components/shiming?type=' + 2
})
},1000)
} else{
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'none', icon: 'none',

View File

@ -20,7 +20,7 @@
</view> </view>
</view> </view>
<view class="input_box"> <view class="input_box">
<view class="yuan"> <view class="yuan">
</view> </view>
<view class="ipt"> <view class="ipt">
@ -256,8 +256,19 @@
this.btnmsk = false this.btnmsk = false
}else if(res.code == 10001){ }else if(res.code == 10001){
uni.navigateTo({ uni.navigateTo({
url: '/page_components/shiming' url: '/page_components/shiming?type=' + 1
}) })
}else if(res.code == 102001){
uni.showToast({
title: res.msg,
icon: 'none',
duration: 2000
})
setTimeout(()=>{
uni.navigateTo({
url: '/page_components/shiming?type=' + 2
})
},1000)
}else { }else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,