<script>
|
import {getProtocol} from "@/api/modules/user";
|
|
export default {
|
name: "steps-d",
|
data() {
|
return {
|
readTime:7,
|
text:null
|
}
|
},
|
created() {
|
getProtocol('Credit_Authorization_KDN').then(res=>{
|
this.text = res.content
|
let yis = setInterval(()=>{
|
this.readTime--;
|
if(!this.readTime){
|
clearInterval(yis);
|
}
|
|
},1000)
|
})
|
},
|
methods: {
|
sub(){
|
let page = getCurrentPages();
|
let prevPage = page[page.length - 2];
|
prevPage.$vm.submitFinal();
|
uni.navigateBack({delta: 1})
|
|
}
|
},
|
}
|
</script>
|
|
<template>
|
<view>
|
<view class="step-d">
|
<view class="text-container"><rich-text :nodes="text"></rich-text></view>
|
<view class="but">
|
<uv-button
|
:disabled="true"
|
customStyle="height:100rpx"
|
v-if="readTime!=0" color="#EEEEEE" type="primary" shape="circle">
|
<text style="font-size: 34rpx;color: #666666">请仔细阅读该协议({{readTime}}s)</text>
|
</uv-button>
|
<uv-button @click="sub" customStyle="height:100rpx" v-else type="primary" shape="circle">
|
<text style="font-size: 34rpx" >确认提交</text>
|
</uv-button>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<style scoped lang="scss">
|
.step-d{
|
.text-container{
|
padding: 40rpx 20rpx;
|
margin-bottom: 160rpx;
|
}
|
.but{
|
background: white;
|
width: 100%;
|
padding: 30rpx;
|
position: fixed;
|
bottom: 0;
|
}
|
}
|
</style>
|