From daa4d702dd16d32a3014cad192d05d231d0d4856 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Fri, 10 Jan 2025 15:49:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(pages):=20=E6=96=B0=E5=A2=9E=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E9=A1=B5=E9=9D=A2=E7=BB=84=E4=BB=B6=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=8E=B0=E6=9C=89=E9=A1=B5=E9=9D=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 amendPassword、healthInformation、stopperSelection、feedback、post、remainingSum 和 review 页面组件 -优化 my 页面的菜单列表和弹窗功能 - 修复 amendPassword 页面的样式问题 - 优化 remainingSum 页面的自定义充值功能 --- pages.json | 43 +++ pages/advanceOrder/stopperSelection/index.vue | 169 ++++++++++ pages/amendPassword.vue | 159 ++++++++- pages/feedback/index.vue | 248 ++++++++++++++ pages/index.vue | 3 +- pages/login.vue | 24 +- pages/mine/me/healthInformation.vue | 245 ++++++++++++++ pages/mine/me/index.vue | 62 +++- pages/mine/me/myAddress.vue | 98 ++++++ pages/newPassword.vue | 148 +++++++++ pages/post/index.vue | 52 +++ pages/remainingSum/index.vue | 141 +++++++- pages/review/index.vue | 153 +++++++++ pages/system.vue | 21 ++ pages/work/index.vue | 304 +++++++++++++++++- 15 files changed, 1827 insertions(+), 43 deletions(-) create mode 100644 pages/advanceOrder/stopperSelection/index.vue create mode 100644 pages/feedback/index.vue create mode 100644 pages/mine/me/healthInformation.vue create mode 100644 pages/mine/me/myAddress.vue create mode 100644 pages/newPassword.vue create mode 100644 pages/post/index.vue create mode 100644 pages/review/index.vue diff --git a/pages.json b/pages.json index 05b5f4e..a51e9a5 100644 --- a/pages.json +++ b/pages.json @@ -137,6 +137,12 @@ "navigationBarTitleText": "" } }, + { + "path": "pages/newPassword", + "style": { + "navigationBarTitleText": "" + } + }, { "path": "pages/system", "style": { @@ -172,6 +178,43 @@ "style": { "navigationStyle": "custom" } + }, + { + "path": "pages/post/index", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mine/me/healthInformation", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/mine/me/myAddress", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/feedback/index", + "style": { + "navigationBarTitleText": "投诉建议" + } + }, + { + "path": "pages/review/index", + "style": { + "navigationBarTitleText": "食堂评价" + } + }, + { + "path": "pages/advanceOrder/stopperSelection/index", + "style": { + "navigationBarTitleText": "档口选择" + } } ], "tabBar": { diff --git a/pages/advanceOrder/stopperSelection/index.vue b/pages/advanceOrder/stopperSelection/index.vue new file mode 100644 index 0000000..fa1524f --- /dev/null +++ b/pages/advanceOrder/stopperSelection/index.vue @@ -0,0 +1,169 @@ + + + + + \ No newline at end of file diff --git a/pages/amendPassword.vue b/pages/amendPassword.vue index cdb2411..7e70d48 100644 --- a/pages/amendPassword.vue +++ b/pages/amendPassword.vue @@ -1,19 +1,154 @@ - + .title { + font-size: 40rpx; + font-weight: 550; + color: #333; + margin-bottom: 20rpx; + } + + .subtitle { + font-size: 28rpx; + color: #999; + margin-bottom: 60rpx; + } + + .verify-code { + color: #3c9cff; + font-size: 28rpx; + padding-left: 24rpx; + + &.disabled { + color: #999; + } + } + + .button-wrap { + margin-top: 80rpx; + } +} + +::v-deep .u-form-item { + margin-bottom: 30rpx; + + &__body { + padding: 24rpx 0; + border-bottom: 1px solid #eee; + } +} + +::v-deep .u-input { + &__content__prefix-icon { + margin-right: 10rpx; + } +} + \ No newline at end of file diff --git a/pages/feedback/index.vue b/pages/feedback/index.vue new file mode 100644 index 0000000..5e8157b --- /dev/null +++ b/pages/feedback/index.vue @@ -0,0 +1,248 @@ + + + + + \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index e48c94d..e3d228f 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -90,7 +90,8 @@ goToOrder() { // 跳转到订餐页面 uni.navigateTo({ - url: '/pages/advanceOrder/index' + // url: '/pages/advanceOrder/index' + url: '/pages/advanceOrder/stopperSelection/index' }) }, goCode() { diff --git a/pages/login.vue b/pages/login.vue index 87bb709..61c9dc9 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -123,18 +123,18 @@ export default { }, // 密码登录 async pwdLogin() { - // this.$store - // .dispatch('Login', this.loginForm) - // .then(() => { - // this.$modal.closeLoading() // 关闭加载框 - // this.loginSuccess() - // }) - // .catch(() => { - // // if (this.captchaEnabled) { - // // this.getCode() - // // } - // }) - this.$tab.reLaunch('/pages/system') + this.$store + .dispatch('Login', this.loginForm) + .then(() => { + this.$modal.closeLoading() // 关闭加载框 + this.loginSuccess() + }) + .catch(() => { + // if (this.captchaEnabled) { + // this.getCode() + // } + }) + // this.$tab.reLaunch('/pages/system') }, // 登录成功后,处理函数 loginSuccess(result) { diff --git a/pages/mine/me/healthInformation.vue b/pages/mine/me/healthInformation.vue new file mode 100644 index 0000000..fdb539c --- /dev/null +++ b/pages/mine/me/healthInformation.vue @@ -0,0 +1,245 @@ + + + + + diff --git a/pages/mine/me/index.vue b/pages/mine/me/index.vue index 1ca6bbe..1c85729 100644 --- a/pages/mine/me/index.vue +++ b/pages/mine/me/index.vue @@ -1,12 +1,12 @@ + + \ No newline at end of file diff --git a/pages/newPassword.vue b/pages/newPassword.vue new file mode 100644 index 0000000..7406512 --- /dev/null +++ b/pages/newPassword.vue @@ -0,0 +1,148 @@ + + + + + \ No newline at end of file diff --git a/pages/post/index.vue b/pages/post/index.vue new file mode 100644 index 0000000..641bdd4 --- /dev/null +++ b/pages/post/index.vue @@ -0,0 +1,52 @@ + + + + \ No newline at end of file diff --git a/pages/remainingSum/index.vue b/pages/remainingSum/index.vue index 9b59d7e..e244051 100644 --- a/pages/remainingSum/index.vue +++ b/pages/remainingSum/index.vue @@ -25,7 +25,7 @@
快捷充值
-
+
50.00 @@ -51,13 +51,66 @@
- 自定义 + 自定义 + {{amount}}.00
- 立即充值 + 立即充值 + + + + 自定义金额 + + + + + + + + + + +
@@ -65,8 +118,10 @@ + + \ No newline at end of file diff --git a/pages/system.vue b/pages/system.vue index 1359362..3c4d76f 100644 --- a/pages/system.vue +++ b/pages/system.vue @@ -52,6 +52,14 @@ export default { handleItem(index) { if (index === 0) { this.$tab.reLaunch('/pages/index') + } else if (index === 1) { + + } else if (index === 2) { + uni.navigateTo( + { + url : '/pages/post/index' + } + ) } } } @@ -63,12 +71,14 @@ page { min-height: 100vh; background-image: url('../static/images/system/bg.png'); } + .index_main { /* background: #f2f6fa; */ overflow: auto; padding: 24rpx 0; box-sizing: border-box; } + .back-top { position: fixed; width: 100%; @@ -77,6 +87,7 @@ page { top: 0; left: 0; } + .swiper_nav { width: 100%; height: 300rpx; @@ -85,6 +96,7 @@ page { padding: 0 24rpx; box-sizing: border-box; } + .main_menu { display: flex; justify-content: space-between; @@ -92,6 +104,7 @@ page { padding: 0 12rpx; box-sizing: border-box; } + .main_menu_item { z-index: 99; margin: 0 12rpx; @@ -104,6 +117,7 @@ page { flex-direction: column; align-items: center; justify-content: space-between; + .main_menu_name { font-family: PingFang SC, PingFang SC; font-weight: bold; @@ -112,6 +126,7 @@ page { font-style: normal; text-transform: none; } + image { display: flex; width: 88rpx; @@ -119,6 +134,7 @@ page { border-radius: 34rpx; } } + .yiz_menu { width: calc(100% - 48rpx); min-height: 480rpx; @@ -127,6 +143,7 @@ page { margin-top: 24rpx; margin-left: 24rpx; } + .yiz_menu_tle { font-family: PingFang SC, PingFang SC; font-weight: bold; @@ -136,10 +153,12 @@ page { text-transform: none; padding: 28rpx 28rpx 0 28rpx; } + .yiz_menu_nav { display: flex; align-items: center; flex-wrap: wrap; + .yiz_menu_nav_item { width: calc(100% / 4); margin-top: 48rpx; @@ -147,12 +166,14 @@ page { flex-direction: column; justify-content: center; align-items: center; + image { display: block; width: 88rpx; height: 88rpx; border-radius: 34rpx; } + .yiz_menu_name { font-family: PingFang SC, PingFang SC; font-weight: 400; diff --git a/pages/work/index.vue b/pages/work/index.vue index 718f4a1..b7f79f5 100644 --- a/pages/work/index.vue +++ b/pages/work/index.vue @@ -13,7 +13,7 @@ placeholderStyle="font-weight: 400;font-size: 10px;color: rgba(15,39,75,0.4);" @blur="handleSearch" > -
+
筛选
@@ -68,15 +68,122 @@
+ + + + + + + + 订单日期 + + + {{ item.label }} + + + + + + 开始时间 + {{ startDate }} + + - + + 结束时间 + {{ endDate }} + + + + + + + 订单类型 + + + + {{ item }} + + + + + + + + + + + + + + + + +