diff --git a/api/api.js b/api/api.js index d566315..d38f8c5 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', 'vip', 'info'] +const models = ['login', 'index', 'image', 'activity', 'order', 'comment', 'experience', 'partner', 'info'] const config = { // 示例 diff --git a/api/model/activity.js b/api/model/activity.js new file mode 100644 index 0000000..d93f0c3 --- /dev/null +++ b/api/model/activity.js @@ -0,0 +1,26 @@ +// 研学活动相关接口 + +const api = { + // 首页&分类-查询研学活动列表 + queryActivityList: { + url: '/activity/queryActivityList', + method: 'GET', + }, + // 首页&分类-查询研学活动详情 + queryActivityById: { + url: '/activity/queryActivityById', + method: 'GET', + }, + // 首页&分类-查询我收藏的研学活动列表 + queryCollectionActivityList: { + url: '/activity/queryCollectionActivityList', + method: 'GET', + }, + // 首页&分类-收藏研学活动 + collectionActivity: { + url: '/activity/collectionActivity', + method: 'GET', + }, +} + +export default api \ No newline at end of file diff --git a/api/model/comment.js b/api/model/comment.js new file mode 100644 index 0000000..373cfd2 --- /dev/null +++ b/api/model/comment.js @@ -0,0 +1,19 @@ +// 评论相关接口 + +const api = { + // 我的评论-查询我的评价列表 + queryMyCommentList: { + url: '/comment/queryMyCommentList', + method: 'GET', + }, + // 我的订单&&成长档案-添加订单评价&&添加心得 + addComment: { + url: '/comment/addComment', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, +} + +export default api \ No newline at end of file diff --git a/api/model/experience.js b/api/model/experience.js new file mode 100644 index 0000000..9b8e126 --- /dev/null +++ b/api/model/experience.js @@ -0,0 +1,16 @@ +// 成长档案相关接口 + +const api = { + // 成长档案-查询成长档案列表 + queryExperienceList: { + url: '/experience/queryExperienceList', + method: 'GET', + }, + // 成长档案-查询成长档案详情 + queryExperienceById: { + url: '/experience/queryExperienceById', + method: 'GET', + }, +} + +export default api \ No newline at end of file diff --git a/api/model/image.js b/api/model/image.js new file mode 100644 index 0000000..8f4d99c --- /dev/null +++ b/api/model/image.js @@ -0,0 +1,31 @@ +// 图片直播相关接口 + +const api = { + // 图片直播-查询图片直播列表 + queryImageList: { + url: '/image/queryImageList', + method: 'GET', + }, + // 图片直播-新增图片直播信息 + addImage: { + url: '/image/addImage', + method: 'GET', + }, + // 图片直播-查询图片直播内容列表 + queryImageContentList: { + url: '/image/queryImageContentList', + method: 'GET', + }, + // 图片直播-新增图片直播内容信息 + addImageContent: { + url: '/image/addImageContent', + method: 'GET', + }, + // 图片直播-标记有我 + queryMarkmeList: { + url: '/image/queryMarkmeList', + method: 'GET', + }, +} + +export default api \ No newline at end of file diff --git a/api/model/index.js b/api/model/index.js index d1c271b..713df52 100644 --- a/api/model/index.js +++ b/api/model/index.js @@ -6,6 +6,26 @@ const api = { url: '/index/queryBannerList', method: 'GET', }, + // 首页-查询公司动态列表 + queryNewsList: { + url: '/index/queryNewsList', + method: 'GET', + }, + // 首页-查询公司动态详情 + queryNewsById: { + url: '/index/queryNewsById', + method: 'GET', + }, + // 首页-查询研学政策列表 + queryPolicyList: { + url: '/index/queryPolicyList', + method: 'GET', + }, + // 首页-查询研学政策详情 + queryPolicyById: { + url: '/index/queryPolicyById', + method: 'GET', + }, } export default api \ No newline at end of file diff --git a/api/model/info.js b/api/model/info.js index a695abd..5f170cc 100644 --- a/api/model/info.js +++ b/api/model/info.js @@ -1,115 +1,6 @@ // 个人相关接口 const api = { - // 充值 - recharge: { - url: '/info_common/withdraw', - method: 'GET', - auth: true, - limit: 1000, - showLoading: true, - }, - // 提现 - withdraw: { - url: '/info_common/withdraw', - method: 'GET', - auth: true, - limit: 1000, - showLoading: true, - }, - // 获取地址列表带分页 - getAddressPageList: { - url: '/info_common/getAddressPageList', - method: 'GET', - auth: true, - }, - // 增加或修改地址信息 - addOrUpdateAddress: { - url: '/info_common/addOrUpdateAddress', - method: 'POST', - limit: 500, - auth: true, - showLoading: true, - }, - // 删除地址 - deleteAddress: { - url: '/info_common/deleteAddress', - method: 'GET', - limit: 500, - auth: true, - showLoading: true, - }, - // 修改默认地址 - updateDefaultAddress: { - url: '/info_common/updateDefaultAddress', - method: 'GET', - auth: true, - limit: 1000, - }, - // 获取粉丝列表带分页 - getFansPageList: { - url: '/info_common/getFansPageList', - method: 'GET', - auth: true, - }, - // 获取相关介绍 - getInfoIntroduce: { - url: '/info_common/getInfoIntroduce', - method: 'GET', - auth: true, - }, - // 获取个人邀请码 - getInviteCode: { - url: '/info_common/getInviteCode', - method: 'GET', - auth: true, - }, - // 获取订单列表带分页 - getOrderPageList: { - url: '/info_common/getOrderPageList', - method: 'GET', - auth: true, - }, - // 获取订单详情 - getOrderDetail: { - url: '/info_common/getOrderDetail', - method: 'GET', - auth: true, - }, - // 获取流水记录带分页 - getWaterPageList: { - url: '/info_common/getWaterPageList', - method: 'GET', - auth: true, - }, - // 获取相关介绍 - getInfoIntroduce: { - url: '/info_common/getInfoIntroduce', - method: 'GET', - }, - // 获取相关介绍详情 - getInfoIntroduceDetail: { - url: '/info_common/getRiceNewsDetail', - method: 'GET', - }, - // 查询个人信息相关 - getRiceInfo: { - url: '/info_common/getRiceInfo', - method: 'GET', - limit: 500, - }, - // 获取购物车信息列表带分页 - getCartPageList: { - url: '/info_common/getCartPageList', - method: 'GET', - }, - // 领取新人优惠券 - getRiceCoupon: { - url: '/info_common/getRiceCoupon', - method: 'GET', - limit: 500, - auth: true, - }, } export default api \ No newline at end of file diff --git a/api/model/order.js b/api/model/order.js new file mode 100644 index 0000000..481df2a --- /dev/null +++ b/api/model/order.js @@ -0,0 +1,32 @@ +// 订单相关接口 + +const api = { + // 我的订单-查询订单列表 + queryOrderList: { + url: '/order/queryOrderList', + method: 'GET', + }, + // 我的订单-查询订单详情 + queryOrderById: { + url: '/order/queryOrderById', + method: 'GET', + }, + // 我的订单-创建订单 + createOrder: { + url: '/order/createOrder', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, + // 我的订单-支付订单 + createOrder: { + url: '/order/payOrder', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, +} + +export default api \ No newline at end of file diff --git a/api/model/partner.js b/api/model/partner.js new file mode 100644 index 0000000..8d8dedd --- /dev/null +++ b/api/model/partner.js @@ -0,0 +1,40 @@ +// 合伙人相关接口 + +const api = { + // 合伙人-申请成为合伙人 + applyPartner: { + url: '/partner/applyPartner', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, + // 合伙人-邀请二维码 + getInviteCode: { + url: '/partner/getInviteCode', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, + // 合伙人-提现 + cashout: { + url: '/partner/cashout', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, + // 我的团队-获取直推用户列表 + queryDirectList: { + url: '/partner/queryDirectList', + method: 'GET', + }, + // 我的团队-获取间推用户列表 + queryDirectList: { + url: '/partner/queryIndirectList', + method: 'GET', + }, +} + +export default api \ No newline at end of file diff --git a/api/model/vip.js b/api/model/vip.js deleted file mode 100644 index c2d4b7b..0000000 --- a/api/model/vip.js +++ /dev/null @@ -1,20 +0,0 @@ - -// vip相关接口 - -const api = { - // 获取会员权益列表 - getRiceVipList: { - url: '/index_common/getVipInfoList', - method: 'GET', - }, - // 申请成为会员 - applyRiceVip: { - url: '/rice_vip/applyRiceVip', - method: 'POST', - limit : 500, - auth : true, - showLoading : true, - }, -} - -export default api \ No newline at end of file diff --git a/common.scss b/common.scss index 3eb63c2..2404755 100644 --- a/common.scss +++ b/common.scss @@ -101,4 +101,12 @@ /deep/ .uv-steps-item__line { background: #F3F3F3 !important; transform: translateY(9px) !important; +} + +/deep/ .tabs .uv-tabs__wrapper__nav__item__text.uv-tabs__wrapper__nav__item__text--disabled { + color: #191919 !important; +} + +/deep/ .uv-rate__content__item__icon-wrap--half { + width: 50% !important; } \ No newline at end of file diff --git a/components/growing/userCard.vue b/components/growing/userCard.vue index 5310687..a54dee9 100644 --- a/components/growing/userCard.vue +++ b/components/growing/userCard.vue @@ -16,7 +16,7 @@ - + 学生 @@ -35,14 +35,14 @@ - - - - - - - - + + + + + + + + diff --git a/components/home/categoryView.vue b/components/home/categoryView.vue index 6bda73b..bcef0e7 100644 --- a/components/home/categoryView.vue +++ b/components/home/categoryView.vue @@ -1,6 +1,6 @@