Compare commits

..

No commits in common. "60d756b791e3d1a5d10cad224441d3aaf1c4f93b" and "8953f2f59b27b542e4d42eae1069e9bee017ca91" have entirely different histories.

5 changed files with 27 additions and 86 deletions

View File

@ -45,14 +45,6 @@
} }
} }
}, },
{
"path": "pages/realName/agreement",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
{ {
"path": "pages/cameraContext/cameraContext", "path": "pages/cameraContext/cameraContext",
"style": { "style": {

View File

@ -40,8 +40,10 @@
export default { export default {
data() { data() {
return { return {
ctx: null,
isAnimate: false, isAnimate: false,
tempVideoPath: "" tempVideoPath: "",
data: {}
}; };
}, },
onLoad() { onLoad() {
@ -52,6 +54,7 @@ export default {
this.ctx.startRecord({ this.ctx.startRecord({
success: res => { success: res => {
this.isAnimate = true; this.isAnimate = true;
console.log(this.$refs);
setTimeout(() => { setTimeout(() => {
this.ctx.stopRecord({ this.ctx.stopRecord({
success: res => { success: res => {
@ -71,10 +74,10 @@ export default {
console.log("手动停止录像", res); console.log("手动停止录像", res);
this.tempVideoPath = res.tempVideoPath; this.tempVideoPath = res.tempVideoPath;
this.isAnimate = false; this.isAnimate = false;
this.$refs.countDown.reset();
}, },
fail: function(error) { fail: function(error) {
console.log(error); console.log(error);
this.isAnimate = false;
uni.showModal({ uni.showModal({
content: "停止录像失败", content: "停止录像失败",
showCancel: false showCancel: false

View File

@ -12,15 +12,14 @@ export default {
}; };
}, },
onLoad() { onLoad() {
// uni.getStorage({ uni.getStorage({
// key: "fddUrl", key: "fddUrl",
// success: res => { success: res => {
// this.$nextTick(() => { this.$nextTick(() => {
// this.fddUrl = res.data; this.fddUrl = res.data;
// }); });
// } }
// }); });
this.fddUrl = uni.getStorageSync("fddUrl");
}, },
methods: { methods: {
handleMessage(e) { handleMessage(e) {

File diff suppressed because one or more lines are too long

View File

@ -75,8 +75,7 @@
<u-checkbox name="yes" shape="circle" activeColor="#76C458"></u-checkbox> <u-checkbox name="yes" shape="circle" activeColor="#76C458"></u-checkbox>
<view class="know"> <view class="know">
已阅读并同意 已阅读并同意
<text @click="agreementHandle('service')">软件许可及服务协议</text> <text @click="agreementHandle('service')">用户协议&集保东西用户协议</text>
<text @click="agreementHandle('privacy')">&隐私保护政策</text>
</view> </view>
</u-checkbox-group> </u-checkbox-group>
</view> </view>
@ -102,11 +101,11 @@ export default {
isChecked: false isChecked: false
}; };
}, },
async onLoad(options) { async onLoad(options) {
if (options.tempVideoPath) { if (options.tempVideoPath) {
this.isfinish = JSON.parse(options.isfinish) || false this.isfinish = JSON.parse(options.isfinish) || false
this.video = await this.uploadFilePromise(options.tempVideoPath) this.video = await this.uploadFilePromise(options.tempVideoPath)
console.log('this.video', this.video) console.log('this.video',this.video)
const data = { const data = {
num: uni.getStorageSync("info").name || '', num: uni.getStorageSync("info").name || '',
name: uni.getStorageSync("info").num || '', name: uni.getStorageSync("info").num || '',
@ -263,7 +262,7 @@ export default {
} }
}, },
async fddRealName() { async fddRealName() {
if (!this.num || !this.name) return this.$common.msgToast('姓名和身份证号不能为空') if(!this.num||!this.name)return this.$common.msgToast('姓名和身份证号不能为空')
const data = { const data = {
num: this.num, num: this.num,
name: this.name, name: this.name,
@ -280,10 +279,15 @@ export default {
mobile mobile
}) })
if (res.status === 0) { if (res.status === 0) {
uni.setStorageSync("fddUrl",res.data?.url); uni.setStorage({
uni.navigateTo({ key: "fddUrl",
data: res.data?.url,
success: function () {
uni.navigateTo({
url: "/pages/realName/FDDRegister", url: "/pages/realName/FDDRegister",
}); });
},
});
} else { } else {
this.$common.msgToast(res.msg) this.$common.msgToast(res.msg)
} }
@ -296,12 +300,7 @@ export default {
this.$common.msgToast(res.msg) this.$common.msgToast(res.msg)
} }
}) })
}, }
agreementHandle(type) {
uni.navigateTo({
url: "/pages/realName/agreement?type=" + type,
});
},
} }
}; };
</script> </script>