136 lines
3.9 KiB
Vue
136 lines
3.9 KiB
Vue
<template>
|
|
<view class="page flex-col">
|
|
<view class="group_1 flex-row">
|
|
|
|
</view>
|
|
<view class="group_2 flex-row">
|
|
<image
|
|
class="label_1"
|
|
referrerpolicy="no-referrer"
|
|
src="/static/lanhu_kechengxiangqing/FigmaDDSSlicePNG53ddee177d4f9800624b95a9ec941112.png"
|
|
@click="goBack()"
|
|
/>
|
|
<text class="text_2">课程详情</text>
|
|
|
|
</view>
|
|
<view class="group_3 flex-col">
|
|
<image
|
|
style="width: 100%; height: 100%;"
|
|
:src="imagesUrl + '/' + courseDetails.photo"
|
|
/>
|
|
</view>
|
|
<view class="group_4 flex-col">
|
|
<view class="section_2 flex-row justify-between">
|
|
<view class="text-wrapper_1">
|
|
<text class="text_3">¥</text>
|
|
<text class="text_4">{{ courseDetails.price ? courseDetails.price.toFixed(2) : '--' }}</text>
|
|
</view>
|
|
<text class="text_5">¥3000.00</text>
|
|
</view>
|
|
<text class="text_6">{{ courseDetails.name }}</text>
|
|
<view class="section_3 flex-row justify-between">
|
|
<view class="text-wrapper_2 flex-col">
|
|
<text class="text_7">{{ courseDetails.tittle }}</text>
|
|
</view>
|
|
<view class="text-wrapper_3 flex-col">
|
|
<text class="text_8">{{ courseDetails.type }}</text>
|
|
</view>
|
|
</view>
|
|
<text class="text_9">兄弟驾校/周一至周日 08:00-18:00</text>
|
|
</view>
|
|
<view class="group_5 flex-col">
|
|
<view class="section_4 flex-row justify-between">
|
|
<view class="block_3 flex-col"></view>
|
|
<text class="text_10">报名类型</text>
|
|
</view>
|
|
<view class="image-wrapper_2 flex-row">
|
|
<image
|
|
class="image_2"
|
|
referrerpolicy="no-referrer"
|
|
src="/static/lanhu_kechengxiangqing/FigmaDDSSlicePNG156254d307fe40d6e67828fbe5adb90f.png"
|
|
/>
|
|
</view>
|
|
<image
|
|
class="image_3"
|
|
referrerpolicy="no-referrer"
|
|
src="/static/lanhu_kechengxiangqing/FigmaDDSSlicePNG40a433e56593a25193fc18c2d385444f.png"
|
|
/>
|
|
</view>
|
|
<view class="group_6 flex-row">
|
|
<view class="image-text_1 flex-col justify-between" @click="zxkf()">
|
|
<image
|
|
class="label_2"
|
|
referrerpolicy="no-referrer"
|
|
src="/static/lanhu_kechengxiangqing/FigmaDDSSlicePNG283b4603035848d5dcc7209d10653327.png"
|
|
/>
|
|
<text class="text-group_1">咨询客服</text>
|
|
</view>
|
|
<view class="text-wrapper_4 flex-col" @click="goRegisterNow()">
|
|
<text class="text_11">立即报名</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import request from "@/utils/request";
|
|
import config from "@/config.js"
|
|
import {getLocalUserInfo, getUserInfo} from "@/utils/auth";
|
|
export default {
|
|
data() {
|
|
return {
|
|
courseId: undefined,
|
|
tenantId: undefined,
|
|
courseDetails: [],
|
|
imagesUrl: config.imagesUrl,
|
|
userDetails: [],
|
|
};
|
|
},
|
|
onLoad(options) {
|
|
this.courseId = options.courseId;
|
|
this.tenantId = options.tenantId;
|
|
console.log(options)
|
|
this.getCourseDetails();
|
|
this.userDetails = getLocalUserInfo();
|
|
console.log('123123',this.userDetails)
|
|
},
|
|
methods: {
|
|
goBack() {
|
|
uni.navigateBack({
|
|
delta: 1
|
|
});
|
|
},
|
|
getCourseDetails(){
|
|
request({
|
|
url: '/app-api/dl-drive-school-course-small/get',
|
|
method: 'GET',
|
|
params: {
|
|
id: this.courseId,
|
|
tenantId: this.tenantId,
|
|
},
|
|
tenantIdFlag: false
|
|
}).then(res => {
|
|
this.courseDetails = res.data;
|
|
|
|
console.log('驾校课程列表', this.schoolAllClassList);
|
|
})
|
|
},
|
|
zxkf() {
|
|
uni.makePhoneCall({
|
|
phoneNumber: '18888888888'
|
|
});
|
|
},
|
|
|
|
goRegisterNow(){
|
|
uni.navigateTo({
|
|
url: `/newPages/register/index?courseId=${this.courseDetails.id}&userId=${this.userDetails.id}&tenantId=${this.tenantId}`,
|
|
// url: '/pages/index/bmPage'
|
|
});
|
|
},
|
|
}
|
|
};
|
|
</script>
|
|
<style lang='scss'>
|
|
@import '../common/common.scss';
|
|
@import './assets/style/index.rpx.scss';
|
|
</style>
|