master
Aiden 1 year ago
parent cb511b7c57
commit d13d86d123

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

@ -40,10 +40,8 @@
export default { export default {
data() { data() {
return { return {
ctx: null,
isAnimate: false, isAnimate: false,
tempVideoPath: "", tempVideoPath: ""
data: {}
}; };
}, },
onLoad() { onLoad() {
@ -54,7 +52,6 @@ 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 => {
@ -74,10 +71,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

@ -12,14 +12,15 @@ 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

@ -75,7 +75,8 @@
<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>
@ -279,15 +280,10 @@ export default {
mobile mobile
}) })
if (res.status === 0) { if (res.status === 0) {
uni.setStorage({ uni.setStorageSync("fddUrl",res.data?.url);
key: "fddUrl",
data: res.data?.url,
success: function () {
uni.navigateTo({ uni.navigateTo({
url: "/pages/realName/FDDRegister", url: "/pages/realName/FDDRegister",
}); });
},
});
} else { } else {
this.$common.msgToast(res.msg) this.$common.msgToast(res.msg)
} }
@ -300,7 +296,12 @@ export default {
this.$common.msgToast(res.msg) this.$common.msgToast(res.msg)
} }
}) })
} },
agreementHandle(type) {
uni.navigateTo({
url: "/pages/realName/agreement?type=" + type,
});
},
} }
}; };
</script> </script>

Loading…
Cancel
Save