54 lines
965 B
Vue
54 lines
965 B
Vue
<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:'',
|
|
cont:''
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.getcont(option.num)
|
|
if(option.num == 2){
|
|
this.tit = '电动车租赁协议'
|
|
}else{
|
|
this.tit = '享权须知'
|
|
}
|
|
},
|
|
methods: {
|
|
getcont(num){
|
|
this.$u.get(`/app/articleCategory/${num}`).then((res) => {
|
|
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> |