From 6cacf434ab5c6b30fd2dc04c0cb73b5427806d6b Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 18 Dec 2025 19:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/market/package.js | 46 ++++ groupBuying/detail/index.vue | 298 ++++++++++++++++++++---- groupBuying/goodsDetail/goodsDetail.vue | 13 +- groupBuying/index/index.vue | 18 +- groupBuying/success/index.vue | 14 +- pages.json | 13 ++ pages/index/indexs.vue | 22 +- userPackage/index/index.vue | 13 ++ utils/uniapp.js | 5 +- 9 files changed, 372 insertions(+), 70 deletions(-) create mode 100644 common/api/market/package.js create mode 100644 userPackage/index/index.vue diff --git a/common/api/market/package.js b/common/api/market/package.js new file mode 100644 index 0000000..991ccb0 --- /dev/null +++ b/common/api/market/package.js @@ -0,0 +1,46 @@ +// 引入 request 文件 +import request from '@/common/api/request.js' +import {prveUrl} from './config.js' + +export const package = (data) => { + return request({ + url: prveUrl + '/user/package', + method: 'get', + data: data + }) +} + + +export const order = (data) => { + return request({ + url: prveUrl + '/user/package/order', + method: 'get', + data: data + }) +} + + +export const cancel = (data) => { + return request({ + url: prveUrl + '/user/package/cancel', + method: 'get', + data: data + }) +} + +export const help = (data) => { + return request({ + url: prveUrl + '/user/package/help', + method: 'get', + data: data + }) +} + +export const orderDetail = (data) => { + return request({ + url: prveUrl + '/user/package/order/detail', + method: 'get', + data: data + }) +} + diff --git a/groupBuying/detail/index.vue b/groupBuying/detail/index.vue index dab78d4..19f22c5 100644 --- a/groupBuying/detail/index.vue +++ b/groupBuying/detail/index.vue @@ -2,12 +2,12 @@ + @leftClick="back('/groupBuying/index/index')" title-color="#fff"> - + 剩余成团时间: {{returnNum(0)}} @@ -25,34 +25,40 @@ {{item.groupPeopleNum}}人团 - + + - {{item.wareJson + {{item.wareJson .wareName}} ¥ - {{item.payAmount}} + {{item.wareGroupPrice}} ¥ - {{item.payAmount}} + {{item.wareOriginalPrice}} - + 数量:{{item.num}} - 已申请退款,需等待商家审核 - - + 已申请退款,需等待商家审核 + + {{item.verifyCode}} @@ -74,7 +80,7 @@ - + @@ -101,43 +107,52 @@ - - 立即参与拼团 + + 立即参与拼团 + - @@ -148,14 +163,67 @@ - + + diff --git a/utils/uniapp.js b/utils/uniapp.js index 172e66c..3e45c8d 100644 --- a/utils/uniapp.js +++ b/utils/uniapp.js @@ -1,12 +1,13 @@ -export const back = () => { +export const back = (url) => { console.log('调用返回方法back'); try { const arr = getCurrentPages() if (arr.length >= 2) { return uni.navigateBack() } else { + uni.reLaunch({ - url: '/pages/index/index' + url: url?url:'/pages/index/index' }) } } catch (error) {