From c71e04697ad01df4d972daf814dffa9be8f91a4e Mon Sep 17 00:00:00 2001 From: longjieli <1060695654@qq.com> Date: Mon, 23 Sep 2024 17:17:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 +++ pages/center/center.vue | 25 ++++++---- pages/promotion/promotion.vue | 111 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 133 insertions(+), 10 deletions(-) create mode 100644 pages/promotion/promotion.vue diff --git a/pages.json b/pages.json index 64a1962..ede4446 100644 --- a/pages.json +++ b/pages.json @@ -29,6 +29,13 @@ "style": { "navigationBarTitleText": "婚庆服务" } + }, + { + "path" : "pages/promotion/promotion", + "style" : + { + "navigationBarTitleText" : "" + } } ], "globalStyle": { diff --git a/pages/center/center.vue b/pages/center/center.vue index 19d9376..2fd6dab 100644 --- a/pages/center/center.vue +++ b/pages/center/center.vue @@ -23,17 +23,13 @@ --> - + {{ userInfo.nickName }} - + @@ -46,6 +42,8 @@ + @@ -89,7 +87,7 @@ pageSize: 10 }, orderList: [], - total : 0 + total: 0 } }, onShow() { @@ -100,7 +98,7 @@ }, //滚动到屏幕底部 onReachBottom() { - if(this.queryParams.pageSize < this.total){ + if (this.queryParams.pageSize < this.total) { this.queryParams.pageSize += 10 this.getOrderList() } @@ -113,6 +111,13 @@ this.total = res.result.total }) }, + + //跳转推广页面 + toPromotion(){ + uni.navigateTo({ + url: '/pages/promotion/promotion' + }) + } } } @@ -243,8 +248,8 @@ align-items: center; margin-top: 20rpx; } - - .oldPrice{ + + .oldPrice { margin-left: 10rpx; color: #757575; text-decoration: line-through; diff --git a/pages/promotion/promotion.vue b/pages/promotion/promotion.vue new file mode 100644 index 0000000..fb9b9be --- /dev/null +++ b/pages/promotion/promotion.vue @@ -0,0 +1,111 @@ + + + + + \ No newline at end of file