diff --git a/src/App.vue b/src/App.vue index 2166821..85211f5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,18 +1,17 @@ \ No newline at end of file + diff --git a/src/views/Home/MyClassList.vue b/src/views/Home/MyClassList.vue index 43f96e5..c2103e8 100644 --- a/src/views/Home/MyClassList.vue +++ b/src/views/Home/MyClassList.vue @@ -3,31 +3,45 @@
- +
-

{{baseInfo.baseName}}

+

{{ baseInfo.baseName }}

{{ baseInfo.baseScore }}

- {{baseInfo.address}} + {{ baseInfo.address }}

- {{baseInfo.phone}} + {{ baseInfo.phone }}

请选择需要打卡的孩子

- {{selectedContact.travelerName}} + {{ selectedContact.travelerName }}
@@ -35,9 +49,9 @@
立即打卡
- +
- +

打卡失败!

您当前所在的地理位置不在课程的打卡范围内!

@@ -47,169 +61,135 @@ diff --git a/src/views/Home/StudentDetail.vue b/src/views/Home/StudentDetail.vue index 13ebeae..4a91ec0 100644 --- a/src/views/Home/StudentDetail.vue +++ b/src/views/Home/StudentDetail.vue @@ -3,28 +3,36 @@
- +
-

{{studentInfo.travelerName}}{{studentInfo.enrollYear}}级

-

{{studentInfo.schoolName}}

+

+ {{ studentInfo.travelerName }}{{ studentInfo.enrollYear }}级 +

+

{{ studentInfo.schoolName }}

-

{{signCheckCountInfo.signCount}}/次

+

+ {{ signCheckCountInfo.signCount }}/次 +

基地打卡次数

-

{{signCheckCountInfo.courseDays}}/天

+

+ {{ signCheckCountInfo.courseDays }}/天 +

课程实践

- +

研学码

@@ -93,8 +76,6 @@ import AbroadDes from './component/AbroadDetail/AbroadDes'; import AbroadBase from './component/AbroadDetail/AbroadBase'; import AbroadEvaluate from './component/AbroadDetail/AbroadEvaluate'; -import CountDown from './component/AbroadDetail/CountDown'; -import AbroadCoupon from './component/AbroadDetail/AbroadCoupon'; import './AbroadDetail.scss'; export default { name: "ServiceAbroadDetail", @@ -122,12 +103,6 @@ export default { this.GetCourseDetail(); }, methods: { - // 点击套餐日期 - handlePackageDay (index) { - this.packageActive = index; - this.packageTypeActive = 0;//重置套餐类型选择 - //TODO 获取该日所包含的套餐 - }, // 点击预约 checkDatePackage () { @@ -161,22 +136,8 @@ export default { }); this.addReadNum(this.courseId) - - this.mgop({ - api: 'mgop.sz.hswsy.GetCourseDetail', // 必须 - host: 'https://mapi.zjzwfw.gov.cn/', - dataType: 'JSON', - type: 'POST', - appKey: 'fuxgnukl+2001895516+edccpx', // 必须 - headers: { - // 'isTestUrl': '1' - }, - data: { - "id": this.courseId, - "cs": "绍兴市", - }, - onSuccess: res => { - this.$toast.clear(); + this.yxAxios.get(`${this.yanxueUrl}/api/StudiesWap/GetCourseDetail?id=${this.courseId}&cs=绍兴市`).then((res) => { + this.$toast.clear(); if (res.data.data && res.data.data.id !== 0) { let detailData = res.data.data; console.log('产品详情:', detailData) @@ -191,7 +152,6 @@ export default { price: detailData.price, }) ); - this.getPackageData(); //获取套餐列表 } else { let message = res.data.message; if (!message) { @@ -199,104 +159,9 @@ export default { } this.$toast.fail(message) } - }, - onFail: err => { - console.log('err', err) - } - }); + }) }, - // 获取套餐列表 - getPackageData () { - let startDate = this.Moment().format("YYYY-MM-DD"); - let endDate = this.Moment().add(60, "days").format("YYYY-MM-DD"); - this.mgop({ - api: 'mgop.sz.hswsy.DateComboBindList', // 必须 - host: 'https://mapi.zjzwfw.gov.cn/', - dataType: 'JSON', - type: 'GET', - appKey: 'fuxgnukl+2001895516+edccpx', // 必须 - headers: { - // 'isTestUrl': '1' - }, - data: { - "productId": this.detailData.id, - "startDate": startDate, - "endDate": endDate, - }, - onSuccess: res => { - console.log('套餐列表:', res.data.data); - if (res.data.data) { - let allPackage = res.data.data; - let usefulPackage = []; - for (let i in allPackage) { - if (allPackage[i]?.comboList?.length > 0) { - usefulPackage.push(allPackage[i]); - } - } - this.packageData = usefulPackage; - localStorage.setItem( - "packageData", - JSON.stringify(usefulPackage) - ); - this.setPackageArr(); - } - }, - onFail: err => { - console.log('err', err) - } - }); - }, - // 设置套餐价格 - setPackageArr () { - console.log('含套餐的日期:', this.packageData); - let packageArr = []; - for (let i in this.packageData) { - let packageDate = this.Moment( - new Date(this.packageData[i]?.dayName.replace(/\-/g, "/")) - ); - let week = packageDate.format("d"); - week = - week == 1 - ? "周一" - : week == 2 - ? "周二" - : week == 3 - ? "周三" - : week == 4 - ? "周四" - : week == 5 - ? "周五" - : week == 6 - ? "周六" - : week == 0 - ? "周日" - : ""; - let comboInfoList = []; - let comboList = JSON.parse(JSON.stringify(this.packageData[i]?.comboList)) - // 为套餐添加下标 - let marketPrice = 999; - for (let j in comboList) { - for (let k in comboList[j].comboInfoList) { - comboList[j].comboInfoList[k].tagIndex = [j, k] - comboList[j].comboInfoList[k].bindId = comboList[j].id - if (comboList[j].comboInfoList[k].actualPrice < marketPrice) { - marketPrice = comboList[j].comboInfoList[k].actualPrice - } - } - comboInfoList.push(...comboList[j].comboInfoList) - } - packageArr.push({ - day: packageDate.format("M/D"), - date: packageDate.format("YYYY-MM-DD"), - week: week, - marketPrice: marketPrice, - comboInfoList: comboInfoList, - }); - } - this.packageArr = packageArr; - this.initPackageArr = true - }, // 联系客服 contactService () { if (this.detailData.mobiles) { @@ -327,8 +192,6 @@ export default { AbroadDes, AbroadBase, AbroadEvaluate, - CountDown, - AbroadCoupon } }; diff --git a/src/views/Service/AbroadEvaluate.vue b/src/views/Service/AbroadEvaluate.vue index 64b7ec8..a17d9b1 100644 --- a/src/views/Service/AbroadEvaluate.vue +++ b/src/views/Service/AbroadEvaluate.vue @@ -2,7 +2,7 @@
- {{score}}.0 + {{ score }}.0

商家评分

@@ -16,83 +16,73 @@
-->
-
+
- +
-

{{item.nickName||'匿名用户'}}

- {{item.intime}} +

{{ item.nickName || '匿名用户' }}

+ {{ item.intime }}
- {{item.courseScore}}.0 + {{ item.courseScore }}.0
-

评价:{{item.evaluation}}

+

评价:{{ item.evaluation }}

- +
- +
@@ -218,10 +208,10 @@ export default { font-size: 40px; } } - .evaluation{ + .evaluation { font-size: 40px; } } } } - \ No newline at end of file + diff --git a/src/views/Service/CardBoxXST.vue b/src/views/Service/CardBoxXST.vue deleted file mode 100644 index 427a9a0..0000000 --- a/src/views/Service/CardBoxXST.vue +++ /dev/null @@ -1,445 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/Service/CardCourseList.vue b/src/views/Service/CardCourseList.vue deleted file mode 100644 index 415b8b0..0000000 --- a/src/views/Service/CardCourseList.vue +++ /dev/null @@ -1,210 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/Service/CheckOrder.vue b/src/views/Service/CheckOrder.vue deleted file mode 100644 index 00a4bcd..0000000 --- a/src/views/Service/CheckOrder.vue +++ /dev/null @@ -1,564 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/Service/DatePackage.vue b/src/views/Service/DatePackage.vue deleted file mode 100644 index 5d4edfc..0000000 --- a/src/views/Service/DatePackage.vue +++ /dev/null @@ -1,475 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/Service/EditContact.vue b/src/views/Service/EditContact.vue index 3db46e4..6a5fb5d 100644 --- a/src/views/Service/EditContact.vue +++ b/src/views/Service/EditContact.vue @@ -22,7 +22,7 @@ \ No newline at end of file + diff --git a/src/views/Service/SelectContact.vue b/src/views/Service/SelectContact.vue index 432d836..a6be476 100644 --- a/src/views/Service/SelectContact.vue +++ b/src/views/Service/SelectContact.vue @@ -1,7 +1,7 @@ -- libgit2 0.21.0