2025-04-10 08:57:21 +08:00
|
|
|
<template>
|
|
|
|
<view class="page">
|
|
|
|
<u-navbar :title="tit" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
|
|
|
|
title-size='36' height='36' id="navbar">
|
|
|
|
</u-navbar>
|
|
|
|
<view class="" v-html="cont">
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
bgc: {
|
|
|
|
backgroundColor: "#fff",
|
|
|
|
},
|
|
|
|
tit:'',
|
2025-04-27 17:37:23 +08:00
|
|
|
cont:'',
|
|
|
|
areaId:''
|
2025-04-10 08:57:21 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad(option) {
|
2025-04-27 17:37:23 +08:00
|
|
|
console.log(option);
|
|
|
|
this.areaId = option.areaId
|
|
|
|
this.getcont()
|
2025-04-10 08:57:21 +08:00
|
|
|
if(option.num == 2){
|
|
|
|
this.tit = '电动车租赁协议'
|
|
|
|
}else{
|
|
|
|
this.tit = '享权须知'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2025-04-27 17:37:23 +08:00
|
|
|
getcont(){
|
|
|
|
this.$u.get(`/app/agreement/latest?areaId=${this.areaId}&agreementType=1`).then((res) => {
|
2025-04-10 08:57:21 +08:00
|
|
|
if (res.code == 200) {
|
|
|
|
this.cont = res.data.content
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
page {
|
|
|
|
background: #fff;
|
|
|
|
padding: 20rpx;
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100vh;
|
|
|
|
overflow: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|