From d732e9c7add9c8d902a3f1ff2a4ef7eff8a987bd Mon Sep 17 00:00:00 2001 From: "3321822538@qq.com" <3321822538@qq.com> Date: Mon, 21 Oct 2024 18:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=80=E5=85=B3=E6=94=B6?= =?UTF-8?q?=E8=B4=B9=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.interceptor.js | 4 +- page_components/shiming.vue | 93 +++++++++++++++---- .../statulist/taocanlist/addtaocan/index.vue | 43 +++++---- page_user/mapditu/orderxq.vue | 13 ++- page_user/yetx.vue | 15 ++- 5 files changed, 125 insertions(+), 43 deletions(-) diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 9d294c0..e4f5899 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -19,8 +19,8 @@ const install = (Vue, vm) => { // }, // }); Vue.prototype.$u.http.setConfig({ - baseUrl: 'http://192.168.2.15:10002', - // baseUrl: 'https://kg.chuangtewl.com/prod-api', + // baseUrl: 'http://192.168.2.15:10002', + baseUrl: 'https://kg.chuangtewl.com/prod-api', // loadingText: '加载中...', // loadingTime: 1000, // 设置自定义头部content-type diff --git a/page_components/shiming.vue b/page_components/shiming.vue index 6d03d62..b5fb0d5 100644 --- a/page_components/shiming.vue +++ b/page_components/shiming.vue @@ -3,10 +3,10 @@ - + 真实姓名 - + 身份证号 @@ -22,10 +22,29 @@ 提现需实名认证,请输入真实有效实名信息! + + + 真实姓名 + + + + 身份证号 + + + + + + + + + + 提现需实名认证,请输入真实有效实名信息! + + - + 进行人脸验证 @@ -48,11 +67,15 @@ names: '', tel: '', flag: false, - yzflag: true + yzflag: true, + type:'', + user:{}, + flags:false } }, - onLoad() { - + onLoad(option) { + this.type = option.type + this.getuserinfo() }, // 分享到好友(会话) onShareAppMessage: function() { @@ -71,23 +94,54 @@ } }, methods: { - btnback(){ - uni.reLaunch({ - url:'/page_user/yetx' + getuserinfo() { + this.$u.get("/app/user/userInfo").then((res) => { + 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 = { - realName: this.name, - realIdCard: this.names, - // realPhone: this.tel - } - this.$u.put('/app/user/realName', data).then(res => { + + // 直接进行验证 + btnyanz(){ + this.$u.put("/app/user/riskRealName").then((res) => { + if (res.code == 200) { + let https = encodeURIComponent(res.data.jumpUrl) + uni.navigateTo({ + 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) { - this.flag = false let https = encodeURIComponent(res.data.jumpUrl) - console.log(https); uni.navigateTo({ url: '/pages/sjshiming?https=' + https }) @@ -97,7 +151,6 @@ icon: 'none', duration: 2000 }) - this.flag = false } }) } diff --git a/page_fenbao/statulist/taocanlist/addtaocan/index.vue b/page_fenbao/statulist/taocanlist/addtaocan/index.vue index a656359..b84c59a 100644 --- a/page_fenbao/statulist/taocanlist/addtaocan/index.vue +++ b/page_fenbao/statulist/taocanlist/addtaocan/index.vue @@ -84,20 +84,13 @@ - - - - 单价 + + + + + 单价 {{timetxt}} - - - - - - - 时间 - - + - - + + - + 单价 + + + + + + + + - 消费金额为单价的倍数,结束订单后将返回剩余预存款 + 消费金额为单价的倍数,结束订单后将返回剩余预存款 @@ -405,6 +408,7 @@ } ], index: 2, + timetxt:'', timewz: '', arrflag: false, bgc: { @@ -746,10 +750,13 @@ radioChangetime(e) { if (e == '时') { this.timeUnit = 2 + this.timetxt = '时' } else if (e == '分') { this.timeUnit = 3 + this.timetxt = '分' } else { this.timeUnit = 4 + this.timetxt = '秒' } }, // 选中任一radio时,由radio-group触发 diff --git a/page_user/mapditu/orderxq.vue b/page_user/mapditu/orderxq.vue index a45d0fb..4fda70b 100644 --- a/page_user/mapditu/orderxq.vue +++ b/page_user/mapditu/orderxq.vue @@ -199,7 +199,18 @@ setTimeout(()=>{ this.getlist() },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({ title: res.msg, icon: 'none', diff --git a/page_user/yetx.vue b/page_user/yetx.vue index c4da119..f39b698 100644 --- a/page_user/yetx.vue +++ b/page_user/yetx.vue @@ -20,7 +20,7 @@ - + @@ -256,8 +256,19 @@ this.btnmsk = false }else if(res.code == 10001){ 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 { uni.showToast({ title: res.msg,