diff --git a/newPages/courseDetail/index.vue b/newPages/courseDetail/index.vue index 27d7cd1..e5242b9 100644 --- a/newPages/courseDetail/index.vue +++ b/newPages/courseDetail/index.vue @@ -5,19 +5,19 @@ 课程详情 - + @@ -45,23 +45,23 @@ 咨询客服 @@ -75,57 +75,74 @@ 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: [], + courseId: undefined, + tenantId: undefined, + courseDetails: [], + driveSchoolPhone: [], + imagesUrl: config.imagesUrl, + userDetails: [], }; }, onLoad(options) { - this.courseId = options.courseId; - this.tenantId = options.tenantId; - console.log(options) - this.getCourseDetails(); + this.courseId = options.courseId; + this.tenantId = options.tenantId; + console.log(options) + this.getCourseDetails(); this.userDetails = getLocalUserInfo(); - console.log('123123',this.userDetails) - }, + this.getServicePhone() + 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; + 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' - }); - }, + console.log('驾校课程列表', this.schoolAllClassList); + }) + }, + zxkf() { + uni.makePhoneCall({ + phoneNumber: this.driveSchoolPhone.phone + }); + }, + getServicePhone() { + request({ + url: '/app-api/dl-drive-school-course-small/getServicePhone', + method: 'GET', + params: { + tenantId: this.tenantId, + } + }).then(res => { + this.driveSchoolPhone = res.data + console.log('客服电话res', res) + console.log('客服电话1', this.driveSchoolPhone) + console.log('客服电话2', this.driveSchoolPhone.phone) + }) + }, - goRegisterNow(){ - uni.navigateTo({ - url: `/newPages/register/index?courseId=${this.courseDetails.id}&userId=${this.userDetails.id}&tenantId=${this.tenantId}`, - // url: '/pages/index/bmPage' - }); - }, + goRegisterNow() { + uni.navigateTo({ + url: `/newPages/register/index?courseId=${this.courseDetails.id}&userId=${this.userDetails.id}&tenantId=${this.tenantId}`, + // url: '/pages/index/bmPage' + }); + }, } }; diff --git a/newPages/courseList/index.vue b/newPages/courseList/index.vue index 7cd43c5..15efd90 100644 --- a/newPages/courseList/index.vue +++ b/newPages/courseList/index.vue @@ -1,47 +1,48 @@ diff --git a/newPages/evaluateAdd/index.vue b/newPages/evaluateAdd/index.vue index 55f3c0f..6a1470c 100644 --- a/newPages/evaluateAdd/index.vue +++ b/newPages/evaluateAdd/index.vue @@ -9,7 +9,7 @@ - {{ subjectArr[info.subject - 1] }}{{ title}} + {{ subjectArr[info.subject - 1] }}{{ title }} {{ info.time }} @@ -24,14 +24,15 @@ {{ info.coachName }} - + {{ info.rate }} @@ -40,11 +41,11 @@ 服务评价 - + 技术评价 - + @@ -69,9 +70,9 @@ export default { return { constants: {}, show: false, - title:'', + title: '', // 评价信息 - info:{ + info: { rate: 0.0, evaluateType: 0, busiId: '', @@ -81,7 +82,7 @@ export default { subjectArr: ['科目一', '科目二', '科目三', '科目四'], }; }, - onLoad(options){ + onLoad(options) { const data = JSON.parse(options.data); // 判断新增还是查看 if (options.controls) { @@ -107,8 +108,9 @@ export default { console.log(this.info) }, methods: { - changeRate(){}, - submit(){ + changeRate() { + }, + submit() { // 判断评分、评价不能为空 if (this.info.rate === 0.0 || this.info.serviceEvaluate === '' || this.info.technologyEvaluate === '') { uni.showToast({ @@ -146,7 +148,8 @@ export default { diff --git a/newPages/orderList/index.vue b/newPages/orderList/index.vue index b5c27bc..1a72149 100644 --- a/newPages/orderList/index.vue +++ b/newPages/orderList/index.vue @@ -1,87 +1,94 @@ diff --git a/newPages/register/index.vue b/newPages/register/index.vue index 6164e50..6be9b3e 100644 --- a/newPages/register/index.vue +++ b/newPages/register/index.vue @@ -1,963 +1,966 @@ diff --git a/newPages/schoolDetail/index.vue b/newPages/schoolDetail/index.vue index 4987dbd..67f2400 100644 --- a/newPages/schoolDetail/index.vue +++ b/newPages/schoolDetail/index.vue @@ -1,28 +1,26 @@ diff --git a/newPages/schoolList/index.vue b/newPages/schoolList/index.vue index 4f81c75..a0491c8 100644 --- a/newPages/schoolList/index.vue +++ b/newPages/schoolList/index.vue @@ -1,14 +1,16 @@