From 82f6737820c10e173840a93dc6540804f8ecca3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=96=B5=E5=92=AA?= <15233722133@163.com> Date: Tue, 29 Sep 2026 13:01:47 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=20=E6=B7=BB=E5=8A=A0=E9=87=91?= =?UTF-8?q?=E7=A7=8D=E5=AD=90=E5=85=91=E6=8D=A2=E5=8C=85=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +- pages.json | 7 + pages/home/seed.vue | 56 ++- pages/home/seedExchange.vue | 826 ++++++++++++++++++++++++++++++++++++ sheep/api/home/index.js | 21 + 5 files changed, 905 insertions(+), 9 deletions(-) create mode 100644 pages/home/seedExchange.vue diff --git a/manifest.json b/manifest.json index fd9a760..436d952 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "优购商城", "appid" : "__UNI__8B19741", "description" : "", - "versionName" : "1.7.5", - "versionCode" : 175, + "versionName" : "1.7.6", + "versionCode" : 176, "transformPx" : false, "app-plus" : { "privacy" : { diff --git a/pages.json b/pages.json index bcdfccf..cebe505 100644 --- a/pages.json +++ b/pages.json @@ -861,6 +861,13 @@ "enablePullDownRefresh": false } }, + { + "path": "seedExchange", + "style": { + "navigationBarTitleText": "金种子兑换", + "enablePullDownRefresh": true + } + }, { "path": "pointsDetail", "style": { diff --git a/pages/home/seed.vue b/pages/home/seed.vue index 2c58f83..aea57a8 100644 --- a/pages/home/seed.vue +++ b/pages/home/seed.vue @@ -52,10 +52,14 @@ - 当前价格 - - {{ formatSeedPrice(dataObj.todayPrice) }} - + + 当前价格 + + {{ formatSeedPrice(dataObj.todayPrice) }} + + + + 兑换 @@ -65,6 +69,11 @@ {{ dataObj.myCount || 0 }} + + 冻结数量 + {{ dataObj.frozenCount || 0 }} + + 已核销 {{ dataObj.writeOffCount || 0 }} @@ -664,6 +673,10 @@ }); let height = ref(0); height.value = sysInfo.statusBarHeight + uni.upx2px(88); + + const goExchange = () => { + uni.navigateTo({ url: '/pages/home/seedExchange' }); + }; diff --git a/sheep/api/home/index.js b/sheep/api/home/index.js index d942526..33a5daa 100644 --- a/sheep/api/home/index.js +++ b/sheep/api/home/index.js @@ -72,6 +72,27 @@ export const goldSeedFluctuation = (params) => { params: params, }); }; +// 金种子兑换流水分页 +export const goldSeedExchangePage = (params) => { + return request({ + url: '/member/app/gold-seed-exchange/page', + method: 'GET', + params: params, + }); +}; +// 创建金种子兑换申请 +export const goldSeedExchangeCreate = (params) => { + return request({ + url: '/member/app/gold-seed-exchange/create', + method: 'POST', + data: params, + custom: { + showSuccess: true, + loadingMsg: '兑换中', + successMsg: '兑换申请已提交', + }, + }); +}; // 社员统计 export const getTeamStats = (params) => { return request({