102 lines
2.1 KiB
Vue
102 lines
2.1 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="container">
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<headers :titles="titles"><uni-icons @click="goback()" type="arrow-left" color="#000000"
|
|
size="22px"></uni-icons></headers>
|
|
<!-- #endif -->
|
|
<u-loadmore :status="status" v-if="show == true" />
|
|
</view>
|
|
<tabbar :msg='msg'></tabbar>
|
|
<view class="info">
|
|
<view class="box-">
|
|
<u-parse :content="content"></u-parse>
|
|
</view>
|
|
<u-loadmore :status="status" v-if="show == true" />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import headers from '../../components/header/headers.vue'
|
|
import tabbar from '../../components/tabbar/tabbar.vue'
|
|
import request from '@/utils/request.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
titles: "教练详情",
|
|
msg: "1",
|
|
List: [],
|
|
show: false,
|
|
status: 'loading',
|
|
baseUrl: this.$baseUrl,
|
|
newId: null,
|
|
content: null
|
|
}
|
|
},
|
|
onLoad: function(option) {
|
|
this.newId = option.id
|
|
},
|
|
onShow() {
|
|
// this.actList = ["1", "1", "1", "1", "1", ]
|
|
// this.status = "nomore" 底部刷新结束
|
|
this.getJlInfoList(this.newId)
|
|
},
|
|
onPullDownRefresh() {
|
|
console.log("刷新");
|
|
uni.stopPullDownRefresh()
|
|
},
|
|
onReachBottom() {
|
|
// this.show = true
|
|
setTimeout(() => {
|
|
console.log("加载执行");
|
|
}, 2000)
|
|
},
|
|
// 发送好友
|
|
onShareAppMessage(res) {
|
|
return {
|
|
title: this.titles,
|
|
path: '/pages/index/index',
|
|
}
|
|
},
|
|
// 分享朋友圈
|
|
onShareTimeline(res) {
|
|
return {
|
|
title: this.titles,
|
|
path: '/pages/index/index',
|
|
}
|
|
},
|
|
components: {
|
|
headers,
|
|
tabbar
|
|
},
|
|
methods: {
|
|
goback() {
|
|
uni.navigateBack()
|
|
},
|
|
async getJlInfoList(id) {
|
|
let res = await request({
|
|
url: `/drivingSchool/system/schoolCoach/list?id=` + id,
|
|
method: 'get',
|
|
})
|
|
this.content = res.rows[0].instructorDesc
|
|
console.log("教练info", this.content)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content {
|
|
background: #f4f5f6;
|
|
height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
background: #f4f5f6;
|
|
box-sizing: border-box;
|
|
padding-top: 88px;
|
|
}
|
|
</style>
|