From 037dd3a17f2d9cf17ecb11036728546ef1d97b05 Mon Sep 17 00:00:00 2001 From: code <2388224167@qq.com> Date: Wed, 13 Nov 2024 07:02:40 +0800 Subject: [PATCH] 111 --- src/App.vue | 14 +- src/pages.json | 21 +- src/pages/apply/foreign-apply.vue | 86 +++-- src/pages/apply/foreign-items.vue | 29 +- src/pages/apply/foreign-list.vue | 63 +++- src/pages/apply/stride-apply.vue | 55 ++- src/pages/apply/stride-items.vue | 32 +- src/pages/apply/stride-list.vue | 66 +++- src/pages/merchant/components/product-row.vue | 7 +- src/pages/merchant/detail.vue | 26 +- src/pages/merchant/food.vue | 147 ++++++++ src/pages/order/detail.vue | 6 +- src/pages/tabbar/food.vue | 59 ---- src/pages/tabbar/home.vue | 6 +- src/pages/tabbar/order.vue | 52 ++- src/pages/wallet/apply-detail.vue | 33 ++ src/pages/wallet/list.vue | 61 ++-- src/pages/wallet/recharge.vue | 42 +-- src/sheep/api/apply.ts | 27 ++ src/sheep/api/food.ts | 2 +- src/sheep/api/pay.ts | 15 +- .../custom-waterfalls-flow.vue | 330 ++++++++++++++++++ src/sheep/hooks/index.ts | 4 + src/sheep/hooks/use-copy.ts | 5 + src/sheep/hooks/use-phone.ts | 4 + src/sheep/scss/font/iconfont.scss | 26 +- src/shime-uni.d.ts | 4 +- unocss.config.ts | 11 +- 28 files changed, 958 insertions(+), 275 deletions(-) create mode 100644 src/pages/merchant/food.vue delete mode 100644 src/pages/tabbar/food.vue create mode 100644 src/pages/wallet/apply-detail.vue create mode 100644 src/sheep/components/other/custom-waterfalls-flow/custom-waterfalls-flow.vue create mode 100644 src/sheep/hooks/use-copy.ts create mode 100644 src/sheep/hooks/use-phone.ts diff --git a/src/App.vue b/src/App.vue index 6d9ea60..d9ad0b8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,6 +16,18 @@ onHide(() => { @import "@/sheep/scss/global.scss"; @import url(@/uni_modules/tm-ui/css/remixicon.min.css); +$theme-green: #06be36; +$theme-blue: #0094ff; + +.botder_btn { + border: 1px solid #999; + color: #999; + font-weight: 500; + font-size: 28rpx; + border-radius: 10rpx; + padding: 8rpx 15rpx; +} + .prefix_title { font-size: 32rpx; font-weight: 500; @@ -26,7 +38,7 @@ onHide(() => { display: inline-block; width: 8rpx; height: 24rpx; - background: #0094ff; + background: $theme-blue; border-radius: 4rpx; margin-right: 10rpx; } diff --git a/src/pages.json b/src/pages.json index 1725406..fa38144 100644 --- a/src/pages.json +++ b/src/pages.json @@ -16,13 +16,6 @@ "disableScroll": true } }, - { - "path": "pages/tabbar/food", - "style": { - "navigationBarTitleText": "菜谱", - "disableScroll": true - } - }, { "path": "pages/tabbar/order", "style": { @@ -104,6 +97,14 @@ "disableScroll": true } }, + { + "path": "food", + "style": { + "navigationBarTitleText": "菜谱", + "navigationBarBackgroundColor": "#1777FF", + "disableScroll": true + } + }, { "path": "product-detail", "style": { @@ -167,12 +168,6 @@ "iconPath": "static/tabbar/home.png", "selectedIconPath": "static/tabbar/home-select.png" }, - { - "pagePath": "pages/tabbar/food", - "text": "菜谱", - "iconPath": "static/tabbar/food.png", - "selectedIconPath": "static/tabbar/food-select.png" - }, { "pagePath": "pages/tabbar/order", "text": "订单", diff --git a/src/pages/apply/foreign-apply.vue b/src/pages/apply/foreign-apply.vue index e7ace46..48d9cc0 100644 --- a/src/pages/apply/foreign-apply.vue +++ b/src/pages/apply/foreign-apply.vue @@ -1,13 +1,16 @@ @@ -52,18 +40,19 @@ const doTab = (e: any) => { - - - + + + 未使用 已使用 - - {{ v.userNameStr }} - {{ v.userMobile }} - - + + {{ v.userNameStr }} + {{ v.userMobile }} + + diff --git a/src/pages/apply/foreign-list.vue b/src/pages/apply/foreign-list.vue index ba0ac07..a512936 100644 --- a/src/pages/apply/foreign-list.vue +++ b/src/pages/apply/foreign-list.vue @@ -8,11 +8,16 @@ import { applyApi } from "@@/api" import zTabs from "@@/components/other/z-tabs/z-tabs.vue" const data = { - tabs: ['待审核', '已通过', '已拒绝'], + tabs: [ + { id: null, name: '全部', disabled: false }, + { id: 1, name: '待审核', disabled: false }, + { id: 2, name: '已通过', disabled: false }, + { id: 3, name: '已拒绝', disabled: false }, + ] } const state = reactive({ pa: { - status: 1, + status: data.tabs[0].id, }, }) @@ -26,23 +31,26 @@ onLoad(() => { }); onShow(() => { - pageRef.value.reload(false) + if (pageRef.value) { + pageRef.value.reload(false) + } }) const doTab = (e: any) => { - if (state.pa.status != e + 1) { - state.pa.status = e + 1 - pageRef.value.reload(true) - } + const target = data.tabs[e]; + state.pa.status = target.id + pageRef.value.reload(true) } const doApply = async () => { - router.jump("/pages/apply/foreign-apply") + router.jump("/pages/apply/foreign-apply", { type: 'add' }) } const doCard = (v: any) => { if (v.status == 2) { router.jump("/pages/apply/foreign-items", { id: v.id }) + } else { + router.jump("/pages/apply/foreign-apply", { type: 'view', id: v.id }) } } @@ -64,11 +72,23 @@ const doCard = (v: any) => { - 电子餐券 - {{ hooks.useTime(v.createTime, "") }} + 电子餐券 + + {{ hooks.useTime(v.createTime, "") }} + + 待审核 + 已通过 + 已拒绝 + + - - + + + + 数量 + {{ v.count }} + + 有效期 {{ hooks.useTime(v.applyStartTime, " {y}-{m}-{d}") }} @@ -76,11 +96,24 @@ const doCard = (v: any) => { {{ hooks.useTime(v.applyEndTime, "{y}-{m}-{d}") }} - - 数量 - {{ v.count }} + + + + + + 审核人 + {{ v.checkUserName }} + + + 审核时间 + {{ hooks.useTime(v.checkTime, "") }} + + + 使用 + 查看 +