chuangte_bike_newxcx/page_user/yongche/index.vue
2025-07-15 17:36:34 +08:00

57 lines
1.2 KiB
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 style="padding: 20rpx;box-sizing: border-box;" v-html="obj">
</view> -->
<view class="" v-if="obj == ''">
</view>
<u-parse v-else :html="obj" style="width: 100%;height: 100%;padding: 10rpx;box-sizing: border-box;"></u-parse>
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
type:'',
obj:'',
tit:''
}
},
onLoad(option) {
this.type = option.type
if(option.type == 0){
this.tit = '租车指南'
}else if(option.type == 2){
this.tit = '查看教程'
} else{
this.tit = '用车指南'
}
this.getqingqiu()
},
methods: {
getqingqiu(){
this.$u.get(`/app/article/guide?code=${this.type}`).then(res =>{
if(res.code == 200){
this.obj = res.data.content
}
})
}
}
}
</script>
<style lang="scss">
page {
background: #fff;
}
</style>