From a287a181a1296497e1e1976143eb4d7eb01b007e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Mon, 6 Sep 2021 10:00:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=83=AD=E9=97=A8=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E9=A1=B5=E9=9D=A2UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/config.js | 2 +- pages.json | 7 + pages/index/category/category.vue | 5 +- .../eventRegistration/eventRegistration.vue | 142 ++++++++++++++++++ pages/user/my/center.vue | 1 + pages/user/my/myEventRegistrationList.vue | 2 +- 6 files changed, 155 insertions(+), 4 deletions(-) create mode 100644 pages/index/eventRegistration/eventRegistration.vue diff --git a/common/js/config.js b/common/js/config.js index cdaaad3..8c40c53 100644 --- a/common/js/config.js +++ b/common/js/config.js @@ -16,7 +16,7 @@ export default { //https://demo-guojiang-ec-api.guojiang.club/ baseUrl: process.env.NODE_ENV === 'development' ? - 'http://192.168.2.221/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量 + 'http://192.168.3.29/' : 'https://v3-ec-admin-dev.guojiang.club/', // 运行时自动替换变量 }, PACKAGES: { activity: false, diff --git a/pages.json b/pages.json index df7556b..698c9b1 100644 --- a/pages.json +++ b/pages.json @@ -783,6 +783,13 @@ "navigationBarTitleText": "我的报名", "navigationStyle": "custom" } + }, + { + "path" : "pages/index/eventRegistration/eventRegistration", + "style" : { + "navigationBarTitleText": "热门活动", + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/index/category/category.vue b/pages/index/category/category.vue index c6ea0e2..690d255 100644 --- a/pages/index/category/category.vue +++ b/pages/index/category/category.vue @@ -101,10 +101,11 @@ }, computed: { autoHeight(){ - return `calc(${this.scrollH}px - 50px - ${this.nav_height}px - 90rpx)`; + return `calc(${this.scrollH}px - ${this.nav_height}px - 90rpx - 120rpx)`; }, otherHeight(){ - return `calc(${this.scrollH}px - 50px - ${this.nav_height}px - 90rpx - 105rpx)`; + // 屏幕可用总高度 - 导航条高度 - tabs高度 - tabbar高度 - 筛选高度 + return `calc(${this.scrollH}px - ${this.nav_height}px - 90rpx - 120rpx - 105rpx)`; } }, components: { diff --git a/pages/index/eventRegistration/eventRegistration.vue b/pages/index/eventRegistration/eventRegistration.vue new file mode 100644 index 0000000..fc84776 --- /dev/null +++ b/pages/index/eventRegistration/eventRegistration.vue @@ -0,0 +1,142 @@ + + + + + diff --git a/pages/user/my/center.vue b/pages/user/my/center.vue index 8c79353..564ab3b 100644 --- a/pages/user/my/center.vue +++ b/pages/user/my/center.vue @@ -141,6 +141,7 @@ background: #FFFFFF; box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1); border-radius: 20rpx; + margin-bottom: 30rpx; } .card-tag { width: 144rpx; diff --git a/pages/user/my/myEventRegistrationList.vue b/pages/user/my/myEventRegistrationList.vue index 1afb8d2..1352715 100644 --- a/pages/user/my/myEventRegistrationList.vue +++ b/pages/user/my/myEventRegistrationList.vue @@ -1,6 +1,6 @@