From a5f16c5433d9ecb4850ab2ec4c31f0e881a1704f Mon Sep 17 00:00:00 2001 From: xvv Date: Thu, 19 Sep 2024 11:18:34 +0800 Subject: [PATCH] 9.19 --- gasStation-uni/pages.json | 25 ++- gasStation-uni/pages/index/index.vue | 40 ++++- gasStation-uni/pages/refuel/refuel.vue | 51 ++---- .../pagesHome/PointsRedemption/index.vue | 3 +- .../pagesHome/certificate/details.vue | 158 ++++++++++++++++++ .../pagesHome/certificate/index.vue | 144 ++++++++++++++++ gasStation-uni/pagesHome/check/index.vue | 119 +++++++++++++ gasStation-uni/static/icon/hyk.png | Bin 0 -> 752 bytes gasStation-uni/static/icon/wz.png | Bin 0 -> 1588 bytes gasStation-uni/static/new/hykb.png | Bin 0 -> 1555 bytes 10 files changed, 495 insertions(+), 45 deletions(-) create mode 100644 gasStation-uni/pagesHome/certificate/details.vue create mode 100644 gasStation-uni/pagesHome/certificate/index.vue create mode 100644 gasStation-uni/pagesHome/check/index.vue create mode 100644 gasStation-uni/static/icon/hyk.png create mode 100644 gasStation-uni/static/icon/wz.png create mode 100644 gasStation-uni/static/new/hykb.png diff --git a/gasStation-uni/pages.json b/gasStation-uni/pages.json index a5901f450..c0eb7f31b 100644 --- a/gasStation-uni/pages.json +++ b/gasStation-uni/pages.json @@ -50,6 +50,13 @@ "navigationStyle": "custom" } }, + { + "path": "check/index", + "style": { + "navigationBarTitleText": "扫码买单" + + } + }, { "path": "PointsRedemption/index", "style": { @@ -62,6 +69,18 @@ "navigationBarTitleText": "卡券详情" } }, + { + "path": "certificate/index", + "style": { + "navigationBarTitleText": "领券中心" + } + }, + { + "path": "certificate/details", + "style": { + "navigationBarTitleText": "卡券详情" + } + }, { "path": "cardDetails/index", "style": { @@ -348,8 +367,8 @@ { "path": "pages/refuel/refuel", "style": { - "navigationBarTitleText": "一键加油", - "navigationStyle": "custom" + "navigationBarTitleText": "一键加油" + } }, { @@ -367,4 +386,4 @@ "backgroundColor": "#F8F8F8" }, "uniIdRouter": {} -} \ No newline at end of file +} diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue index dc32e833c..836eb2a98 100644 --- a/gasStation-uni/pages/index/index.vue +++ b/gasStation-uni/pages/index/index.vue @@ -15,13 +15,10 @@ - + 扫码买单 - - - 一键加油 - + 会员充值 @@ -30,7 +27,7 @@ 积分兑换 - + 领券中心 @@ -46,6 +43,10 @@ 签到有礼 + + + 会员卡包 + @@ -120,7 +121,6 @@ 第三方用户信息授权说明 - 您授权后,小程序开发者将收集您的位置信息,为您提 供智能推荐服务。开发者严格按照《钜油惠百业兴小程 序隐私保护指引》处理您的个人信息,如您发现开发者 不当处理您的个人信息,可进行投诉。 @@ -270,6 +270,30 @@ tabbar }, methods: { + goMyCard() { + uni.navigateTo({ + url: '/pagesHome/MyCard/MyCard' + }) + }, + getCode() { + uni.scanCode({ + onlyFromCamera: true, + success: (res) => { + console.log('扫描二维码成功,结果:' + JSON.stringify(res) + res.result); + uni.navigateTo({ + url: '/pagesHome/check/index' + }) + }, + error: (res) => { + console.log('扫描二维码出现错误') + } + }) + }, + goCoupon() { + uni.navigateTo({ + url: '/pagesHome/certificate/index' + }) + }, close() { this.ruleShow = false }, @@ -1192,4 +1216,4 @@ justify-content: center; color: #fff; } - \ No newline at end of file + diff --git a/gasStation-uni/pages/refuel/refuel.vue b/gasStation-uni/pages/refuel/refuel.vue index f913edd4c..da113e070 100644 --- a/gasStation-uni/pages/refuel/refuel.vue +++ b/gasStation-uni/pages/refuel/refuel.vue @@ -1,34 +1,22 @@