From 75396ec763e322a6fe15e0c147d2c5c670d9b4a5 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Thu, 2 Jan 2025 23:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/model/index.js | 5 + api/model/info.js | 16 -- components/config/configPopup.vue | 9 +- components/couponPopup/couponPopup.vue | 56 ++-- components/product/productItem.vue | 2 +- components/user/productList.vue | 4 +- mixins/list.js | 4 +- mixins/order.js | 8 +- pages.json | 9 +- pages/index/category.vue | 25 +- pages/index/center.vue | 21 +- pages/index/index.vue | 67 ++--- pages_order/home/introduce.vue | 19 +- pages_order/home/notice.vue | 4 +- pages_order/mine/memberCenter.vue | 142 ++++++---- pages_order/mine/partner.vue | 46 ++-- pages_order/mine/recruit.vue | 2 +- pages_order/mine/runningWater.vue | 89 +++--- pages_order/mine/updateUser.vue | 319 ++++++++++++++++++++++ pages_order/mine/withdraw.vue | 22 +- pages_order/order/createOrder.vue | 133 +++++---- pages_order/order/orderDetail.vue | 2 +- pages_order/product/productDetail.vue | 4 +- uni_modules/uv-empty/components/uv-empty/props.js | 8 +- uni_modules/uv-radio/components/uv-radio/props.js | 6 +- 25 files changed, 705 insertions(+), 317 deletions(-) create mode 100644 pages_order/mine/updateUser.vue diff --git a/api/model/index.js b/api/model/index.js index eda59d6..af0426c 100644 --- a/api/model/index.js +++ b/api/model/index.js @@ -117,6 +117,11 @@ const api = { url: '/index_common/getRiceAdList', method: 'GET', }, + // 获取首页广告列表 + getRiceAdDetail: { + url: '/index_common/getRiceAdDetail', + method: 'GET', + }, //获取优惠券信息 getRiceCouponList: { url: '/info_common/getRiceCouponList', diff --git a/api/model/info.js b/api/model/info.js index 7e061c5..fdbc62c 100644 --- a/api/model/info.js +++ b/api/model/info.js @@ -103,22 +103,6 @@ const api = { url: '/info_common/getCartPageList', method: 'GET', }, - // 增加或者修改渠道申请信息 - addOrUpdateCommonUser: { - url: '/info_common/addOrUpdateCommonUser', - method: 'POST', - limit: 500, - auth: true, - showLoading: true, - }, - // 查询渠道申请信息 - getCommonUser: { - url: '/info_common/getCommonUser', - method: 'GET', - limit: 500, - auth: true, - showLoading: true, - }, } export default api \ No newline at end of file diff --git a/components/config/configPopup.vue b/components/config/configPopup.vue index ef2d21c..6555496 100644 --- a/components/config/configPopup.vue +++ b/components/config/configPopup.vue @@ -20,14 +20,15 @@ onShow(){ }, methods: { - //打开配置信息菜单 open(key){ this.content = this.configList[key] this.$refs.popup.open('bottom'); - } - - + }, + openText(content){ + this.content = content + this.$refs.popup.open('bottom'); + }, }, computed : { diff --git a/components/couponPopup/couponPopup.vue b/components/couponPopup/couponPopup.vue index 0f2a825..e82a924 100644 --- a/components/couponPopup/couponPopup.vue +++ b/components/couponPopup/couponPopup.vue @@ -1,63 +1,61 @@ diff --git a/components/product/productItem.vue b/components/product/productItem.vue index cabe540..a623705 100644 --- a/components/product/productItem.vue +++ b/components/product/productItem.vue @@ -39,7 +39,7 @@ - 已售出{{ item.num }}+单 + 已售出{{ item.payNum }}+单 diff --git a/components/user/productList.vue b/components/user/productList.vue index 008145a..f632e15 100644 --- a/components/user/productList.vue +++ b/components/user/productList.vue @@ -20,7 +20,7 @@ - 已售卖{{ item.num }}+件 + 已售卖{{ item.payNum }}+件 @@ -30,6 +30,8 @@ + + diff --git a/mixins/list.js b/mixins/list.js index a27db1c..a6aa6e9 100644 --- a/mixins/list.js +++ b/mixins/list.js @@ -48,13 +48,13 @@ export default { uni.stopPullDownRefresh() if(res.code == 200){ - this.getDataThen && this.getDataThen(res.result.records, res.result.total, res.result) - success(res.result) this[this.mixinsListKey || 'list'] = res.result.records || res.result this.total = res.result.total || res.result.length + + this.getDataThen && this.getDataThen(res.result.records, res.result.total, res.result) } }) }) diff --git a/mixins/order.js b/mixins/order.js index cbb189a..cb3e6ca 100644 --- a/mixins/order.js +++ b/mixins/order.js @@ -12,11 +12,11 @@ export default { toPayOrder(item){ let api = '' - if([0, 1].includes(item.shopState)){ + // if([0, 1].includes(item.shopState)){ api = 'createOrderTwo' - }else{ - api = 'createSumOrderAgain' - } + // }else{ + // api = 'createSumOrderAgain' + // } this.$api(api, { orderId : item.id, diff --git a/pages.json b/pages.json index 580c69d..0fa6b7f 100644 --- a/pages.json +++ b/pages.json @@ -84,15 +84,9 @@ { "path": "mine/help" }, - { - "path": "home/journalism" - }, { "path": "home/introduce" }, - { - "path": "home/newsDetail" - }, { "path": "order/createOrder" }, @@ -131,6 +125,9 @@ }, { "path": "mine/coupon" + }, + { + "path": "mine/updateUser" } ] }], diff --git a/pages/index/category.vue b/pages/index/category.vue index af32428..58260a0 100644 --- a/pages/index/category.vue +++ b/pages/index/category.vue @@ -1,7 +1,11 @@