From 7b52a65598ee438ec345f478206fd886845e6a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= <781521347@qq.com> Date: Sat, 15 Jan 2022 18:18:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/knowledge.js | 2 +- api/user.js | 11 + config/index.js | 4 +- pages.json | 6 + pages/authorization/agreementPage.vue | 162 +++ pages/course/detail.vue | 127 +- pages/course/index.vue | 22 +- pages/course/signIn.vue | 65 +- pages/user/PersonalData/index.vue | 57 +- pages/user/User/index.vue | 1234 +++++++++-------- pages/user/myCourses/index.vue | 10 +- utils/index.js | 53 +- wxcomponents/vant/button/index.vue | 96 ++ wxcomponents/vant/common/index.css | 1 + wxcomponents/vant/common/style/clearfix.css | 1 + wxcomponents/vant/common/style/ellipsis.css | 1 + wxcomponents/vant/common/style/hairline.css | 1 + .../vant/common/style/mixins/clearfix.css | 0 .../vant/common/style/mixins/ellipsis.css | 0 .../vant/common/style/mixins/hairline.css | 0 wxcomponents/vant/common/style/theme.css | 0 wxcomponents/vant/common/style/var.css | 0 wxcomponents/vant/icon/index.vue | 1012 ++++++++++++++ wxcomponents/vant/info/index.vue | 20 + wxcomponents/vant/loading/index.vue | 51 + 25 files changed, 2201 insertions(+), 735 deletions(-) create mode 100644 pages/authorization/agreementPage.vue create mode 100644 wxcomponents/vant/button/index.vue create mode 100644 wxcomponents/vant/common/index.css create mode 100644 wxcomponents/vant/common/style/clearfix.css create mode 100644 wxcomponents/vant/common/style/ellipsis.css create mode 100644 wxcomponents/vant/common/style/hairline.css create mode 100644 wxcomponents/vant/common/style/mixins/clearfix.css create mode 100644 wxcomponents/vant/common/style/mixins/ellipsis.css create mode 100644 wxcomponents/vant/common/style/mixins/hairline.css create mode 100644 wxcomponents/vant/common/style/theme.css create mode 100644 wxcomponents/vant/common/style/var.css create mode 100644 wxcomponents/vant/icon/index.vue create mode 100644 wxcomponents/vant/info/index.vue create mode 100644 wxcomponents/vant/loading/index.vue diff --git a/api/knowledge.js b/api/knowledge.js index d22c493..29e6966 100644 --- a/api/knowledge.js +++ b/api/knowledge.js @@ -118,7 +118,7 @@ export function enterCourse(data) { * 课程扫码签到 */ export function signCourse(data) { - return request.get("/user/signCourse?courseId="+data); + return request.get("/lession/signCourse?lessionId="+data); } /** diff --git a/api/user.js b/api/user.js index 1d48d61..14d3f27 100644 --- a/api/user.js +++ b/api/user.js @@ -1,5 +1,16 @@ import request from '@/utils/request' + +/** + * 获取我参与的课程和学习榜 + */ +export function myLession(data) { + return request.get('/user/myLession', data, { + // return request.get("/citys", data, { + login: true, + }) +} + /** * 省市区 */ diff --git a/config/index.js b/config/index.js index a4fc5ee..260ea95 100644 --- a/config/index.js +++ b/config/index.js @@ -1,7 +1,7 @@ // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api' -// export const VUE_APP_API_URL = 'http://192.168.0.112:8088/api' -// export const VUE_APP_API_URL = 'http://192.168.0.111:8088/api' +// export const VUE_APP_API_URL = 'http://10.11.32.109:8088/api' +// export const VUE_APP_API_URL = 'http://10.11.32.103:8088/api/' export const VUE_APP_API_URL = 'https://www.cyjyyjy.com/api' // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api' diff --git a/pages.json b/pages.json index 3f73251..ceb3f5d 100644 --- a/pages.json +++ b/pages.json @@ -11,6 +11,12 @@ "style": { "navigationBarTitleText": "微信授权" } + }, + { + "path": "pages/authorization/agreementPage", + "style": { + "navigationBarTitleText": "用户协议" + } }, // { // "path": "pages/user/Login/index", diff --git a/pages/authorization/agreementPage.vue b/pages/authorization/agreementPage.vue new file mode 100644 index 0000000..cae7c7e --- /dev/null +++ b/pages/authorization/agreementPage.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/pages/course/detail.vue b/pages/course/detail.vue index fd4ef20..bd515ac 100644 --- a/pages/course/detail.vue +++ b/pages/course/detail.vue @@ -3,13 +3,8 @@ - + - @@ -19,7 +14,7 @@ {{detail.categoryName}} - {{detail.flag[0]}} + @@ -38,8 +33,8 @@ - {{item.name}} - 禪易能量高级讲师 + {{item.realName}} + {{item.introduction}} @@ -91,7 +86,6 @@ 课程安排 - {{item}} @@ -113,11 +107,7 @@ {{item.courseStartTime.split(' ')[0]}}-{{item.courseEndTime.split(' ')[0]}} {{item.coursePlace}} - - - 去报名 @@ -128,7 +118,7 @@ - 座位号:{{detail.seat}} + @@ -138,14 +128,15 @@ - 报名已截止 请关注下期 + 报名已截止 请关注下期 立即观看 查看回放 - 未签到 - 未签到 + 报名成功,待签到 + 已签到 等待确认 联系服务老师 + 审核未通过 联系服务老师