diff --git a/api/knowledge.js b/api/knowledge.js index 040f275..29e6966 100644 --- a/api/knowledge.js +++ b/api/knowledge.js @@ -62,7 +62,7 @@ export function enterStudyList(data) { * 获取榜单打榜进度 */ export function myProgress(data) { - return request.get("/StudyList/myProgress?studyListId="+data); + return request.get("/StudyList/myProgress",data); } /** @@ -72,6 +72,13 @@ export function studyListPublish(data) { return request.post("/StudyList/studyListPublish",data); } +/** + * 补卡打榜分享 + */ +export function studyListRepublish(data) { + return request.post("/StudyList/studyListRepublish",data); +} + /** * 发布打榜点赞 */ @@ -104,14 +111,14 @@ export function getCourseDetail(data) { * 报名 */ export function enterCourse(data) { - return request.post("/user/enterCourse",data); + return request.post("/lession/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 885a438..f418ddc 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, + }) +} + /** * 省市区 */ @@ -439,7 +450,7 @@ export function getRechargeApi() { * 获取我的课程列表 * */ export function getMyCourseList(q) { - return request.get('/Course/listCoursesByMemberId?type='+q) + return request.get('/lession/myLessionList?type='+q) } /* @@ -461,3 +472,24 @@ export function integral(q) { export function signIntegral(q) { return request.post('/sign/integral') } + +/* + * 获取我的团队 + * */ +export function getMyTeam(){ + return request.post('user/myTeam') +} + +/* + * 提现 + * */ +export function cash(data){ + return request.post('extract/cash',data) +} + +/* + * 绑定银行卡 + * */ +export function bingCard(data){ + return request.post('userBank/saveBankInfo',data) +} \ No newline at end of file diff --git a/components/ProductConSwiper.vue b/components/ProductConSwiper.vue index fb3a1dd..5051d35 100644 --- a/components/ProductConSwiper.vue +++ b/components/ProductConSwiper.vue @@ -3,11 +3,14 @@ - + @@ -16,7 +19,7 @@ --> - {{ currents || 1 }}/{{ imgUrls.length || 1 }} + + \ No newline at end of file diff --git a/components/ProductWindow.vue b/components/ProductWindow.vue index f8d87bd..117fcde 100644 --- a/components/ProductWindow.vue +++ b/components/ProductWindow.vue @@ -140,6 +140,6 @@ export default { diff --git a/components/sSwiper.vue b/components/sSwiper.vue new file mode 100644 index 0000000..823793c --- /dev/null +++ b/components/sSwiper.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/components/uni-easyinput/common.js b/components/uni-easyinput/common.js index df9abe1..1c2ae54 100644 --- a/components/uni-easyinput/common.js +++ b/components/uni-easyinput/common.js @@ -8,9 +8,10 @@ export const debounce = function(func, wait = 1000, immediate = true) { let timer; console.log(1); return function() { - console.log(123); + console.log(timer,'timer'); let context = this, args = arguments; + console.log(args,'argsargs') if (timer) clearTimeout(timer); if (immediate) { let callNow = !timer; diff --git a/config/index.js b/config/index.js index 89a11db..ba3e051 100644 --- a/config/index.js +++ b/config/index.js @@ -1,9 +1,10 @@ // 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.68.126:8088/api' -// export const VUE_APP_API_URL = 'https://www.cyjyyjy.com/api' +// export const VUE_APP_API_URL = 'http://192.168.68.126: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' // export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; -// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; \ No newline at end of file +// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; +export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static' \ No newline at end of file diff --git a/main.js b/main.js index af82e52..c976ced 100644 --- a/main.js +++ b/main.js @@ -40,6 +40,7 @@ Object.defineProperty(Vue.prototype, '$yroute', { }) Vue.prototype.$VUE_APP_API_URL = VUE_APP_API_URL +Vue.prototype.$VUE_APP_RESOURCES_URL = VUE_APP_RESOURCES_URL Vue.component('cu-custom', cuCustom) let deviceType = '' diff --git a/pages.json b/pages.json index 580e7be..8dc7a40 100644 --- a/pages.json +++ b/pages.json @@ -11,6 +11,12 @@ "style": { "navigationBarTitleText": "微信授权" } + }, + { + "path": "pages/authorization/agreementPage", + "style": { + "navigationBarTitleText": "用户协议" + } }, // { // "path": "pages/user/Login/index", @@ -50,20 +56,6 @@ "enablePullDownRefresh": true } }, - // { - // "path": "pages/diandeng/index", - // "style": { - // "navigationBarTitleText": "", - // "navigationStyle": "custom" - // } - // }, - // { - // "path": "pages/diandeng/lighting", - // "style": { - // "navigationBarTitleText": "", - // "navigationStyle": "custom" - // } - // }, { "path": "pages/course/index", "style": { @@ -305,7 +297,34 @@ // "navigationBarTitleText": "商家订单统计" // } // } - ], + ,{ + "path" : "pages/user/myTeam/index", + "style" : + { + "navigationBarTitleText": "我的团队", + "enablePullDownRefresh": true + } + + } + ,{ + "path" : "pages/user/cashOut/index", + "style" : + { + "navigationBarTitleText": "提现", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/user/bindCard/index", + "style" : + { + "navigationBarTitleText": "绑定银行卡", + "enablePullDownRefresh": false + } + + } + ], "subPackages": [ { "root": "pagesB", diff --git a/pages/Loading/index.vue b/pages/Loading/index.vue index 3ab16d8..c5d46fd 100644 --- a/pages/Loading/index.vue +++ b/pages/Loading/index.vue @@ -1,7 +1,7 @@ @@ -23,13 +23,12 @@ export default { return {} }, onShow() { - console.log('getUser',this.userInfo) var url = handleQrCode() if (!url) { url = handleUrlParam(getCurrentPageUrlWithArgs()) } - console.log(url) - console.log('判断是否是分销') + // console.log(url) + // console.log('判断是否是分销') // 判断是否是分销 if (url) { let urlSpread = parseInt(url.spread) @@ -109,7 +108,8 @@ export default { } #lottie { - width: 35%; + width: 42rpx; + height: 42rpx; display: block; overflow: hidden; transform: translate3d(0, 0, 0); diff --git a/pages/authorization/agreementPage.vue b/pages/authorization/agreementPage.vue new file mode 100644 index 0000000..df84492 --- /dev/null +++ b/pages/authorization/agreementPage.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/pages/course/detail.vue b/pages/course/detail.vue index f7f68c1..a505b2a 100644 --- a/pages/course/detail.vue +++ b/pages/course/detail.vue @@ -38,8 +38,8 @@ - {{item.name}} - 禪易能量高级讲师 + {{item.realName}} + {{item.introduction}} @@ -50,7 +50,7 @@ 课程简介 - + @@ -91,7 +91,6 @@ 课程安排 - {{item}} @@ -113,11 +112,7 @@ {{item.courseStartTime.split(' ')[0]}}-{{item.courseEndTime.split(' ')[0]}} {{item.coursePlace}} - - - 去报名 @@ -128,10 +123,9 @@ - 座位号:{{detail.seat}} + - 距离截止时间还剩 @@ -139,17 +133,14 @@ - - - + - - + + +