chuangte_bike_newxcx/page_user/yongche/index.vue

62 lines
1.3 KiB
Vue
Raw Normal View History

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>
2025-07-15 17:36:34 +08:00
<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>
2025-04-01 21:35:30 +08:00
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
type:'',
2025-07-15 17:36:34 +08:00
obj:'',
2025-09-22 17:08:55 +08:00
tit:'',
code:''
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 = '租车指南'
2025-09-22 17:08:55 +08:00
this.code = 'RENT_GUIDE'
2025-07-15 17:36:34 +08:00
}else if(option.type == 2){
this.tit = '查看教程'
2025-09-22 17:08:55 +08:00
this.$u.get(`/app/article/bluetooth`).then(res =>{
if(res.code == 200){
this.obj = res.data.content
}
})
2025-07-15 17:36:34 +08:00
} else{
2025-04-30 18:03:27 +08:00
this.tit = '用车指南'
2025-09-22 17:08:55 +08:00
this.code = 'USE_GUIDE'
2025-04-30 18:03:27 +08:00
}
2025-04-01 21:35:30 +08:00
this.getqingqiu()
},
methods: {
getqingqiu(){
2025-09-22 17:08:55 +08:00
this.$u.get(`/app/article/first?code=${this.code}&appId=${this.$store.state.appid}`).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>