From 117cfcda348b88a0055018fedb6007d8528bbcae Mon Sep 17 00:00:00 2001 From: fanfan Date: Sat, 3 Aug 2024 22:02:33 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E5=BC=80=E9=80=9A=E5=95=86=E5=9F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tutorial.js | 24 +- pages.json | 17 +- pages/gamll/index.vue | 1248 ++++++++++++++++++++++++++++++++++++++++ pages/gamll/rules.vue | 47 ++ pages/user/index.vue | 81 +-- project.config.json | 2 +- static/user/code.png | Bin 1520 -> 0 bytes static/user/manage.png | Bin 9536 -> 0 bytes 8 files changed, 1380 insertions(+), 39 deletions(-) create mode 100644 pages/gamll/index.vue create mode 100644 pages/gamll/rules.vue delete mode 100644 static/user/code.png delete mode 100644 static/user/manage.png diff --git a/api/tutorial.js b/api/tutorial.js index 8d1a73b..eb8abf9 100644 --- a/api/tutorial.js +++ b/api/tutorial.js @@ -3,7 +3,11 @@ import request from '@/utils/request' // api地址 const api = { courseType: 'course/getCourseType', - list: 'course/getCourseList' + list: 'course/getCourseList', + retailList: 'retail/retailPayList', + describe: 'retail/describe', + submit: 'retail/submit', + getSoftAgreement: 'retail/getSoftAgreement' } // 分类 @@ -13,4 +17,20 @@ export const courseType = (param) => { // 列表 export const courseList = (param) => { return request.get(api.list, param) -} \ No newline at end of file +} +// 会员列表 +export const retailList = (param) => { + return request.post(api.retailList, param) +} +// 会员全益 +export const describe = (param) => { + return request.get(api.describe, param) +} +// 会员余额支付 +export const submit = (param) => { + return request.post(api.submit, param) +} +// 协议 +export const getSoftAgreement = (param) => { + return request.get(api.getSoftAgreement, param) +} diff --git a/pages.json b/pages.json index ffc7fdb..c3d45db 100644 --- a/pages.json +++ b/pages.json @@ -239,7 +239,22 @@ "enablePullDownRefresh": false } - } + }, + { + "path": "pages/gamll/index", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/gamll/rules", + "style": { + "navigationBarTitleText": "软件付费服务协议", + "enablePullDownRefresh": false + } + } ], "subPackages": [{ "root": "pages/invite/", diff --git a/pages/gamll/index.vue b/pages/gamll/index.vue new file mode 100644 index 0000000..a22428f --- /dev/null +++ b/pages/gamll/index.vue @@ -0,0 +1,1248 @@ + + + + diff --git a/pages/gamll/rules.vue b/pages/gamll/rules.vue new file mode 100644 index 0000000..6fc1511 --- /dev/null +++ b/pages/gamll/rules.vue @@ -0,0 +1,47 @@ + + + + + \ No newline at end of file diff --git a/pages/user/index.vue b/pages/user/index.vue index dad30ce..1d3e8d0 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -431,7 +431,7 @@ 物流查询 - - + 商家教程 + + + + + 开通商城 + + @@ -532,30 +542,29 @@ - - - - - - - - - {{item.goods_name}} - - - - {{item.goods_price_min}} - - ¥{{item.line_price_min}} - - + + + + + + + + {{item.goods_name}} + + + + {{item.goods_price_min}} + + ¥{{item.line_price_min}} + + - - - - - + - + 开通商城 From 9c1a60484eb387d9788cf7832e2cd4fc6a68065f Mon Sep 17 00:00:00 2001 From: fanfan Date: Sat, 3 Aug 2024 22:11:30 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/gamll/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/gamll/index.vue b/pages/gamll/index.vue index a22428f..ef24618 100644 --- a/pages/gamll/index.vue +++ b/pages/gamll/index.vue @@ -275,7 +275,6 @@ this.getRetailList() this.getDescribe() uni.$on('appShow', this.solveShowMsg); - uni.showNavigationBarLoading(); }, onUnload() { uni.$off('appShow', this.solveShowMsg); From 00acb054f6364889754c92ad39ffc5fd7c9f9c61 Mon Sep 17 00:00:00 2001 From: fanfan Date: Sun, 4 Aug 2024 13:22:03 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/gamll/index.vue | 48 +++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 27 deletions(-) diff --git a/pages/gamll/index.vue b/pages/gamll/index.vue index ef24618..58a96dd 100644 --- a/pages/gamll/index.vue +++ b/pages/gamll/index.vue @@ -3,7 +3,7 @@ - + - - - - - {{item}} + + + + + + {{item}} + - + @@ -238,7 +240,6 @@ paymentMethods: [], isClick: true, radius: '28rpx 0 0 0', - paddingTo: '0rpx', leftNum: 33.33333, tabbar: ['零售商城', '批发商城'], tabIndex: 0, @@ -266,12 +267,10 @@ retail: '', wholesale: '', scrollTop: 0, - isAtTop: '' } }, onLoad() { this.retail = uni.getStorageSync('userInfo').retail - console.log(this.retail) this.getRetailList() this.getDescribe() uni.$on('appShow', this.solveShowMsg); @@ -280,25 +279,22 @@ uni.$off('appShow', this.solveShowMsg); }, onShow() { - + this.checkIfElementIsAtTop() }, onPageScroll(e) { - this.checkIfElementIsAtTop() + this.scrollTop = e.scrollTop > 120 ? true : false + if (this.scrollTop) { + this.radius = '0rpx'; + } else { + this.radius = this.tabIndex == 0 ? '28rpx 0 0 0' : '0 28rpx 0 0'; + } }, methods: { checkIfElementIsAtTop() { const query = uni.createSelectorQuery().in(this); - query.select('.tab_fix').boundingClientRect(data => { + query.select('u-navbar ').boundingClientRect(data => { if (data) { - // 元素的top值如果是0,说明它到达了顶部 - this.isAtTop = data.top === 0; - if (this.isAtTop) { - this.radius = '28rpx 0 0 0'; - this.paddingTo = '120rpx'; - } else { - this.radiu = '0'; - this.paddingTo = '0rpx'; - } + console.log(data, 'kkkkkkkkkkkkkkkkk') } }).exec(); }, @@ -720,10 +716,7 @@ .tab_fix { overflow: hidden; - position: -webkit-sticky; - position: sticky; - top: 0; - z-index: 99999; + height: 126rpx; background: linear-gradient(180deg, rgba(253, 202, 197, 1) 0.42%, rgba(254, 231, 229, 1) 32.99%, rgba(255, 255, 255, 1) 100%); } @@ -875,6 +868,7 @@ .tab-box { margin: 10rpx 30rpx 24rpx 30rpx; overflow: hidden; + .tabFavour { display: flex; justify-content: space-between; From e402364ffd804694462a2b5ee015a25a0efc2d4a Mon Sep 17 00:00:00 2001 From: fanfan Date: Sun, 4 Aug 2024 13:46:35 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/gamll/index.vue | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/pages/gamll/index.vue b/pages/gamll/index.vue index 58a96dd..f8b9aef 100644 --- a/pages/gamll/index.vue +++ b/pages/gamll/index.vue @@ -3,8 +3,10 @@ - - + + + + @@ -20,7 +22,7 @@ - + @@ -267,9 +269,11 @@ retail: '', wholesale: '', scrollTop: 0, + heightTop:136, } }, onLoad() { + this.retail = uni.getStorageSync('userInfo').retail this.getRetailList() this.getDescribe() @@ -279,7 +283,8 @@ uni.$off('appShow', this.solveShowMsg); }, onShow() { - this.checkIfElementIsAtTop() + let that = this + that.checkIfElementIsAtTop() }, onPageScroll(e) { this.scrollTop = e.scrollTop > 120 ? true : false @@ -290,11 +295,16 @@ } }, methods: { + pxToRpx(px) { + const screenWidth = uni.getSystemInfoSync().screenWidth //窗口宽度 + let rpx = (750 * Number.parseInt(px)) / screenWidth //转换单位为rpx + return Number(rpx) + }, checkIfElementIsAtTop() { const query = uni.createSelectorQuery().in(this); - query.select('u-navbar ').boundingClientRect(data => { + query.select('.navbarHeight ').boundingClientRect(data => { if (data) { - console.log(data, 'kkkkkkkkkkkkkkkkk') + this.heightTop=this.pxToRpx(data.height) } }).exec(); }, From a1450ef0aa5181f2fb597ea7784f0002c8a1f867 Mon Sep 17 00:00:00 2001 From: fanfan Date: Sun, 4 Aug 2024 14:07:43 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/index.vue | 4911 ++++++++++++++++++++++-------------------- 1 file changed, 2606 insertions(+), 2305 deletions(-) diff --git a/pages/user/index.vue b/pages/user/index.vue index d863535..b6961f3 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -1,40 +1,69 @@ From 5ff18211c869e9dbde7e7579b82c853b13165e06 Mon Sep 17 00:00:00 2001 From: fanfan Date: Mon, 5 Aug 2024 21:00:34 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tutorial.js | 12 +++++++++++- pages/gamll/index.vue | 3 +-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/api/tutorial.js b/api/tutorial.js index eb8abf9..3a65be4 100644 --- a/api/tutorial.js +++ b/api/tutorial.js @@ -7,7 +7,8 @@ const api = { retailList: 'retail/retailPayList', describe: 'retail/describe', submit: 'retail/submit', - getSoftAgreement: 'retail/getSoftAgreement' + getSoftAgreement: 'retail/getSoftAgreement', + tradeQuery: 'retail/tradeQuery', } // 分类 @@ -30,6 +31,15 @@ export const describe = (param) => { export const submit = (param) => { return request.post(api.submit, param) } +/** + * 交易查询 + * 查询第三方支付订单是否付款成功 + * @param {Object} param + */ +export function tradeQuery(param) { + return request.get(api.tradeQuery, param) +} + // 协议 export const getSoftAgreement = (param) => { return request.get(api.getSoftAgreement, param) diff --git a/pages/gamll/index.vue b/pages/gamll/index.vue index f8b9aef..8a9d032 100644 --- a/pages/gamll/index.vue +++ b/pages/gamll/index.vue @@ -203,7 +203,6 @@ \ No newline at end of file + From 325b21218360122d5bc27884c347740aefe49317 Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 6 Aug 2024 19:17:48 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/invite/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/invite/index.vue b/pages/invite/index.vue index bcc9b14..ad72795 100644 --- a/pages/invite/index.vue +++ b/pages/invite/index.vue @@ -55,7 +55,7 @@ - + 取消 保存到相册 From a71dcd33d8dd395e08331921a2b7e9003e60cdb2 Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 6 Aug 2024 22:08:40 +0800 Subject: [PATCH 12/12] =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/invite/index.vue | 189 +++++++++++++++++++++++++++++++++-------- 1 file changed, 154 insertions(+), 35 deletions(-) diff --git a/pages/invite/index.vue b/pages/invite/index.vue index ad72795..bec5c0c 100644 --- a/pages/invite/index.vue +++ b/pages/invite/index.vue @@ -27,7 +27,10 @@ - 怎么邀请好友 + + 怎么邀请好友 + @@ -44,7 +47,10 @@ - 邀请小技巧 + + 邀请小技巧 + 邀请成功率提高200% 邀请您的同行,跨行商家,成功率高 @@ -55,20 +61,24 @@ - + 取消 - 保存到相册 + 保存到相册 + - 立即邀请 + 立即邀请 +