diff --git a/pages.json b/pages.json
index b73408a..d75a336 100644
--- a/pages.json
+++ b/pages.json
@@ -4,6 +4,19 @@
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
+ "path": "pages/startup/startup",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "pages/coupon/coupon",
+ "style": {
+ "navigationBarTitleText": "优惠卷",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#ffffff"
+ }
+ }, {
"path": "pages/Personal/Personal",
"style": {
"navigationBarTitleText": "个人中心",
@@ -11,13 +24,6 @@
"navigationBarBackgroundColor": "#ffffff",
"navigationStyle": "custom"
}
- },{
- "path": "pages/coupon/coupon",
- "style": {
- "navigationBarTitleText": "优惠卷",
- "enablePullDownRefresh": false,
- "navigationBarBackgroundColor": "#ffffff"
- }
}, {
"path": "pages/integral/integral",
"style": {
@@ -32,12 +38,6 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //背景颜色
}
- }, {
- "path": "pages/startup/startup",
- "style": {
- "navigationBarTitleText": "",
- "navigationStyle": "custom"
- }
}, {
"path": "pages/ProjectDetails/ProjectDetails",
"style": {
@@ -308,7 +308,6 @@
// "onReachBottomDistance": 50 //距离底部多远时触发 单位为px
// "enablePullDownRefresh": true //设置参数为true
}
-
}, {
"path": "pages/Healthknowledge/Healthknowledge",
"style": {
@@ -316,7 +315,6 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
-
}, {
"path": "pages/Healthitem/Healthitem",
"style": {
@@ -339,7 +337,6 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
-
}
],
"globalStyle": {
diff --git a/pages/Healthitem/Healthitem.vue b/pages/Healthitem/Healthitem.vue
index f8264e2..a37614a 100644
--- a/pages/Healthitem/Healthitem.vue
+++ b/pages/Healthitem/Healthitem.vue
@@ -26,6 +26,24 @@
// console.log(this.item.informationContent)
},
onReady() {}, //更改导航栏文字
+ //1.分享给朋友
+ onShareAppMessage(res) {
+ let pages = getCurrentPages();
+ let url = pages[pages.length - 1].$page.fullPath
+ return {
+ title: '泉医到家',
+ path: url,
+ }
+ },
+ //2.分享到朋友圈
+ onShareTimeline(res) {
+ let pages = getCurrentPages();
+ let url = pages[pages.length - 1].$page.fullPath
+ return {
+ title: '泉医到家',
+ path: url,
+ }
+ },
}
diff --git a/pages/Healthknowledge/Healthknowledge.vue b/pages/Healthknowledge/Healthknowledge.vue
index 5f8b422..0631d83 100644
--- a/pages/Healthknowledge/Healthknowledge.vue
+++ b/pages/Healthknowledge/Healthknowledge.vue
@@ -91,6 +91,24 @@
uni.stopPullDownRefresh();
}, 1000);
},
+ //1.分享给朋友
+ onShareAppMessage(res) {
+ let pages = getCurrentPages();
+ let url = pages[pages.length - 1].$page.fullPath
+ return {
+ title: '泉医到家',
+ path: url,
+ }
+ },
+ //2.分享到朋友圈
+ onShareTimeline(res) {
+ let pages = getCurrentPages();
+ let url = pages[pages.length - 1].$page.fullPath
+ return {
+ title: '泉医到家',
+ path: url,
+ }
+ },
}
diff --git a/pages/Personal/Personal.vue b/pages/Personal/Personal.vue
index 9a1f709..5f5d770 100644
--- a/pages/Personal/Personal.vue
+++ b/pages/Personal/Personal.vue
@@ -29,7 +29,7 @@
积分
-
+
优惠卷
@@ -236,6 +236,12 @@
url: '/pages/CommodityOrder/CommodityOrder'
})
},
+ //优惠卷
+ gocoupon() {
+ uni.navigateTo({
+ url: '/pages/coupon/coupon'
+ })
+ },
//积分页面
gointegral() {
uni.navigateTo({
diff --git a/pages/coupon/coupon.vue b/pages/coupon/coupon.vue
index 9177dd0..35656f5 100644
--- a/pages/coupon/coupon.vue
+++ b/pages/coupon/coupon.vue
@@ -10,12 +10,52 @@
-
-
+
+
+
+ 待领取
+
+ |
+
+ 已使用
+
+ |
+
+ 已过期
+
+
+
+
+
+
+
+ ¥
+
+
+ 6
+
+
+
+ 商品优惠卷
+
+
+ 满60可用
+
+
+ 有效期至 2023.02.28 23:59
+
+
+ 领取
+
+
+
+ 领取来源:首页新人福利
+
+
+
-