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 @@
-