From d13d86d123ed6f6a328724bbe1dd7b4cff4886b7 Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Tue, 26 Sep 2023 13:59:35 +0800 Subject: [PATCH] fix --- pages.json | 8 +++++ pages/cameraContext/cameraContext.vue | 7 ++-- pages/realName/FDDRegister.vue | 17 ++++----- pages/realName/agreement.vue | 52 +++++++++++++++++++++++++++ pages/realName/realName.vue | 29 +++++++-------- 5 files changed, 86 insertions(+), 27 deletions(-) create mode 100644 pages/realName/agreement.vue diff --git a/pages.json b/pages.json index 9c57531..55312e5 100644 --- a/pages.json +++ b/pages.json @@ -45,6 +45,14 @@ } } }, + { + "path": "pages/realName/agreement", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, { "path": "pages/cameraContext/cameraContext", "style": { diff --git a/pages/cameraContext/cameraContext.vue b/pages/cameraContext/cameraContext.vue index 9a0890c..7bcdf8a 100644 --- a/pages/cameraContext/cameraContext.vue +++ b/pages/cameraContext/cameraContext.vue @@ -40,10 +40,8 @@ export default { data() { return { - ctx: null, isAnimate: false, - tempVideoPath: "", - data: {} + tempVideoPath: "" }; }, onLoad() { @@ -54,7 +52,6 @@ export default { this.ctx.startRecord({ success: res => { this.isAnimate = true; - console.log(this.$refs); setTimeout(() => { this.ctx.stopRecord({ success: res => { @@ -74,10 +71,10 @@ export default { console.log("手动停止录像", res); this.tempVideoPath = res.tempVideoPath; this.isAnimate = false; - this.$refs.countDown.reset(); }, fail: function(error) { console.log(error); + this.isAnimate = false; uni.showModal({ content: "停止录像失败", showCancel: false diff --git a/pages/realName/FDDRegister.vue b/pages/realName/FDDRegister.vue index 1c08014..4be9f78 100644 --- a/pages/realName/FDDRegister.vue +++ b/pages/realName/FDDRegister.vue @@ -12,14 +12,15 @@ export default { }; }, onLoad() { - uni.getStorage({ - key: "fddUrl", - success: res => { - this.$nextTick(() => { - this.fddUrl = res.data; - }); - } - }); + // uni.getStorage({ + // key: "fddUrl", + // success: res => { + // this.$nextTick(() => { + // this.fddUrl = res.data; + // }); + // } + // }); + this.fddUrl = uni.getStorageSync("fddUrl"); }, methods: { handleMessage(e) { diff --git a/pages/realName/agreement.vue b/pages/realName/agreement.vue new file mode 100644 index 0000000..ce02714 --- /dev/null +++ b/pages/realName/agreement.vue @@ -0,0 +1,52 @@ + + + + + \ No newline at end of file diff --git a/pages/realName/realName.vue b/pages/realName/realName.vue index 6d0a99a..d12b48b 100644 --- a/pages/realName/realName.vue +++ b/pages/realName/realName.vue @@ -75,7 +75,8 @@ 已阅读并同意 - 《用户协议》&《集保东西用户协议》 + 《软件许可及服务协议》 + &《隐私保护政策》 @@ -101,11 +102,11 @@ export default { isChecked: false }; }, - async onLoad(options) { + async onLoad(options) { if (options.tempVideoPath) { - this.isfinish = JSON.parse(options.isfinish) || false - this.video = await this.uploadFilePromise(options.tempVideoPath) - console.log('this.video',this.video) + this.isfinish = JSON.parse(options.isfinish) || false + this.video = await this.uploadFilePromise(options.tempVideoPath) + console.log('this.video', this.video) const data = { num: uni.getStorageSync("info").name || '', name: uni.getStorageSync("info").num || '', @@ -262,7 +263,7 @@ export default { } }, async fddRealName() { - if(!this.num||!this.name)return this.$common.msgToast('姓名和身份证号不能为空') + if (!this.num || !this.name) return this.$common.msgToast('姓名和身份证号不能为空') const data = { num: this.num, name: this.name, @@ -279,15 +280,10 @@ export default { mobile }) if (res.status === 0) { - uni.setStorage({ - key: "fddUrl", - data: res.data?.url, - success: function () { - uni.navigateTo({ + uni.setStorageSync("fddUrl",res.data?.url); + uni.navigateTo({ url: "/pages/realName/FDDRegister", }); - }, - }); } else { this.$common.msgToast(res.msg) } @@ -300,7 +296,12 @@ export default { this.$common.msgToast(res.msg) } }) - } + }, + agreementHandle(type) { + uni.navigateTo({ + url: "/pages/realName/agreement?type=" + type, + }); + }, } };