diff --git a/api/api.js b/api/api.js index ad64fc6..c5ab3d4 100644 --- a/api/api.js +++ b/api/api.js @@ -5,7 +5,7 @@ import utils from '../utils/utils.js' let limit = {} let debounce = {} -const models = ['login', 'index', 'image', 'activity', 'coupon', 'order', 'comment', 'bind', 'experience', 'partner', 'info'] +const models = ['login', 'index', 'image', 'activity', 'coupon', 'order', 'comment', 'bind', 'experience', 'partner', 'info', 'notice'] const config = { // 示例 @@ -16,6 +16,9 @@ const config = { getConfig : {url : '/config/queryConfigList', method : 'GET', limit : 500}, queryConfigByParamCode : {url : '/config/queryConfigByParamCode', method : 'GET'}, + queryPeriodList : {url : '/config/queryPeriodList', method : 'GET'}, + queryCommentOptionList : {url : '/config/queryCommentOptionList', method : 'GET'}, + queryExperienceQuestionList : {url : '/config/queryExperienceQuestionList', method : 'GET'}, } diff --git a/api/model/comment.js b/api/model/comment.js index 373cfd2..381ac21 100644 --- a/api/model/comment.js +++ b/api/model/comment.js @@ -1,6 +1,11 @@ // 评论相关接口 const api = { + // 我的评论-查询评价列表 + queryCommentList: { + url: '/comment/queryCommentList', + method: 'GET', + }, // 我的评论-查询我的评价列表 queryMyCommentList: { url: '/comment/queryMyCommentList', diff --git a/api/model/login.js b/api/model/login.js index a08f43f..02d1614 100644 --- a/api/model/login.js +++ b/api/model/login.js @@ -30,6 +30,12 @@ const api = { method: 'GET', auth: true, }, + // 获取个人基础数据 + queryUserCenterData: { + url: '/userInfo/queryUserCenterData', + method: 'GET', + auth: true, + }, } export default api \ No newline at end of file diff --git a/api/model/notice.js b/api/model/notice.js new file mode 100644 index 0000000..8019b6d --- /dev/null +++ b/api/model/notice.js @@ -0,0 +1,18 @@ +// 开营通知相关接口 + +const api = { + // 开营通知-查询开营通知列表 + queryNoticeList: { + url: '/notice/queryNoticeList', + method: 'GET', + auth: true, + }, + // 开营通知-查询开营通知详情 + queryNoticeById: { + url: '/notice/queryNoticeById', + method: 'GET', + auth: true, + }, +} + +export default api \ No newline at end of file diff --git a/api/model/order.js b/api/model/order.js index 20301b0..e357725 100644 --- a/api/model/order.js +++ b/api/model/order.js @@ -19,6 +19,14 @@ const api = { limit : 500, showLoading : true, }, + // 我的订单-修改订单 + updateOrder: { + url: '/order/updateOrder', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, // 我的订单-支付订单 payOrder: { url: '/order/payOrder', diff --git a/components/growing/recordsView.vue b/components/growing/recordsView.vue index c86054d..39722ef 100644 --- a/components/growing/recordsView.vue +++ b/components/growing/recordsView.vue @@ -11,14 +11,14 @@ \ No newline at end of file diff --git a/config.js b/config.js index 203e425..11c6b64 100644 --- a/config.js +++ b/config.js @@ -14,7 +14,7 @@ const type = 'prod' // 环境配置 const config = { dev : { - baseUrl : 'http://www.gcosc.fun:82', + baseUrl : 'http://augcl.natapp1.cc/studytour-admin/studytour', }, prod : { baseUrl : 'https://www.hongyujiaoyu.com/studytour-admin/studytour', diff --git a/pages.json b/pages.json index f8d6fb3..6c3f261 100644 --- a/pages.json +++ b/pages.json @@ -74,7 +74,10 @@ "path": "order/orderConfirm/index" }, { - "path": "order/orderPay/index" + "path": "order/orderPay/index", + "style": { + "enablePullDownRefresh": true + } }, { "path": "order/orderDetail/index", diff --git a/pages/index/center.vue b/pages/index/center.vue index 4f4854a..cde3786 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -44,7 +44,7 @@ - + @@ -112,7 +112,6 @@ }, data() { return { - statistics: {}, list1: [ { id: '001', label: '我的收藏', icon: '/pages_order/static/center/icon-collect.png', path: '/pages_order/product/collectList' }, { id: '004', label: '学员管理', icon: '/pages_order/static/center/icon-student.png', path: `/pages_order/member/memberList` }, @@ -135,7 +134,7 @@ onShow() { if(uni.getStorageSync('token')){ this.$store.commit('getUserInfo') - this.fetchOrderStatistics() + this.$store.commit('getUserCenterData') } }, methods: { @@ -154,14 +153,6 @@ break } }, - async fetchOrderStatistics() { - return - try { - this.statistics = await this.$fetch('getOrderStatistics', { id: '' }) - } catch (err) { - - } - }, jumpToBindMember() { this.$utils.navigateTo('/pages_order/member/memberBind') }, diff --git a/pages/index/growing.vue b/pages/index/growing.vue index 3d24262..75990cb 100644 --- a/pages/index/growing.vue +++ b/pages/index/growing.vue @@ -70,6 +70,8 @@ computed: { ...mapState(['memberInfo']), mixinsListApi() { + return 'queryExperienceList' + // todo return this.queryParams.userId ? 'queryExperienceList' : '' }, }, @@ -80,12 +82,11 @@ }, onShow() { // todo: set queryParams.userId by memberInfo - if (!this.memberInfo && this.userInfo.id) { this.$store.commit('setMemberInfo', this.userInfo) } - this.queryParams.userId = this.memberInfo.id - this.getData() + // this.queryParams.userId = this.memberInfo.id + // this.getData() }, methods: { getDataThen(records) { diff --git a/pages_order/center/orderCard.vue b/pages_order/center/orderCard.vue index 5c5e58d..3eccd94 100644 --- a/pages_order/center/orderCard.vue +++ b/pages_order/center/orderCard.vue @@ -11,27 +11,23 @@ diff --git a/pages_order/comment/commentRecordsOfProduct.vue b/pages_order/comment/commentRecordsOfProduct.vue index 66eb6af..7935ba3 100644 --- a/pages_order/comment/commentRecordsOfProduct.vue +++ b/pages_order/comment/commentRecordsOfProduct.vue @@ -1,7 +1,7 @@