2025-04-01 21:35:30 +08:00
|
|
|
<template>
|
|
|
|
<view class="page">
|
2025-04-30 18:03:27 +08:00
|
|
|
<u-navbar :title="tit" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
|
2025-04-01 21:35:30 +08:00
|
|
|
title-size='36' height='36' id="navbar">
|
|
|
|
</u-navbar>
|
|
|
|
<view style="padding: 20rpx;box-sizing: border-box;" v-html="obj">
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
bgc: {
|
|
|
|
backgroundColor: "#fff",
|
|
|
|
},
|
|
|
|
type:'',
|
2025-04-30 18:03:27 +08:00
|
|
|
obj:{},
|
|
|
|
tit:''
|
2025-04-01 21:35:30 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad(option) {
|
|
|
|
this.type = option.type
|
2025-04-30 18:03:27 +08:00
|
|
|
if(option.type == 0){
|
|
|
|
this.tit = '租车指南'
|
|
|
|
}else{
|
|
|
|
this.tit = '用车指南'
|
|
|
|
}
|
2025-04-01 21:35:30 +08:00
|
|
|
this.getqingqiu()
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
getqingqiu(){
|
2025-04-30 18:03:27 +08:00
|
|
|
this.$u.get(`/app/article/guide?code=${this.type}`).then(res =>{
|
2025-04-01 21:35:30 +08:00
|
|
|
if(res.code == 200){
|
|
|
|
this.obj = res.data.content
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
page {
|
|
|
|
background: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|