From 39fd4858a20fad51829c3a829b98e465b65d01af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Wed, 8 Sep 2021 11:27:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=B4=BB=E5=8A=A8=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E3=80=81=E7=A1=AE=E8=AE=A4=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/mixin.js | 2 +- components/index-nav/index-nav.vue | 2 +- pages.json | 16 ++- pages/index/activity/confirm.vue | 84 ++++++++++++++ pages/index/activity/detail.vue | 104 ++++++++++++++++++ .../hot.vue} | 2 +- 6 files changed, 206 insertions(+), 4 deletions(-) create mode 100644 pages/index/activity/confirm.vue create mode 100644 pages/index/activity/detail.vue rename pages/index/{eventRegistration/eventRegistration.vue => activity/hot.vue} (98%) diff --git a/common/js/mixin.js b/common/js/mixin.js index 6587d44..30a7290 100644 --- a/common/js/mixin.js +++ b/common/js/mixin.js @@ -105,7 +105,7 @@ export default{ if(beforePage && beforePage.route){ uni.navigateBack(); }else{ - uni.switchTab({url:'/pages/index/index'}); + uni.reLaunch({url:'/pages/index/index/index'}); } } } diff --git a/components/index-nav/index-nav.vue b/components/index-nav/index-nav.vue index 0c1e101..106d364 100644 --- a/components/index-nav/index-nav.vue +++ b/components/index-nav/index-nav.vue @@ -50,7 +50,7 @@ export default { image: 'https://cdn.guojiang.club/storage/uploads/images/2020_06_05/rNCqCVUgi5GFYntpqmevHEaO1NYt5PZ2tgjEXRMU.png', name: '会员服务' },{ - link: '/pages/index/eventRegistration/eventRegistration', + link: '/pages/index/activity/hot', image: 'https://cdn.guojiang.club/storage/uploads/images/2020_06_05/rNCqCVUgi5GFYntpqmevHEaO1NYt5PZ2tgjEXRMU.png', name: '活动报名' },{ diff --git a/pages.json b/pages.json index e514120..0100418 100644 --- a/pages.json +++ b/pages.json @@ -797,12 +797,26 @@ } }, { - "path" : "pages/index/eventRegistration/eventRegistration", + "path" : "pages/index/activity/hot", "style" : { "navigationBarTitleText": "热门活动", "navigationStyle": "custom" } }, + { + "path" : "pages/index/activity/detail", + "style" : { + "navigationBarTitleText": "活动详情", + "navigationStyle": "custom" + } + }, + { + "path" : "pages/index/activity/confirm", + "style" : { + "navigationBarTitleText": "确认报名", + "navigationStyle": "custom" + } + }, { "path" : "pages/user/member/code", "style" : { diff --git a/pages/index/activity/confirm.vue b/pages/index/activity/confirm.vue new file mode 100644 index 0000000..2971151 --- /dev/null +++ b/pages/index/activity/confirm.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/pages/index/activity/detail.vue b/pages/index/activity/detail.vue new file mode 100644 index 0000000..8420a56 --- /dev/null +++ b/pages/index/activity/detail.vue @@ -0,0 +1,104 @@ + + + + + diff --git a/pages/index/eventRegistration/eventRegistration.vue b/pages/index/activity/hot.vue similarity index 98% rename from pages/index/eventRegistration/eventRegistration.vue rename to pages/index/activity/hot.vue index fc84776..f07d13a 100644 --- a/pages/index/eventRegistration/eventRegistration.vue +++ b/pages/index/activity/hot.vue @@ -8,7 +8,7 @@ - +