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, "") }}
+
+
+ 使用
+ 查看
+
import { ref, reactive } from "vue";
import { onLoad, onShow } from "@dcloudio/uni-app";
+import { isEmpty } from "radash"
import { hooks, router } from "@@/index"
import { applyApi } from "@@/api"
const state = reactive({
+ detailType: "add",
+ detailId: null,
+ detail: null,
})
const applyForm = reactive({
@@ -19,13 +23,34 @@ const applyFormRules = reactive({
{ required: true, max: 20, message: '最多申请20张' },
]
})
-onLoad(() => {
-
+onLoad((options: any) => {
+ const { type, id } = options
+ if (!isEmpty(type)) state.detailType = type
+ if (!isEmpty(id)) state.detailId = id
+ if (type === 'view') {
+ getDetail()
+ }
});
onShow(() => {
})
+const getDetail = async () => {
+ if (isEmpty(state.detailId)) return
+ const _pa = { id: state.detailId }
+ const { data } = await applyApi.strideDetail(_pa)
+ if (!isEmpty(data)) {
+ state.detail = data
+
+ applyForm.count = data.count
+ if (isEmpty(data.remark)) {
+ applyForm.remark = "无"
+ } else {
+ applyForm.remark = data.remark
+ }
+ }
+}
+
const applyFormRef = ref(null)
const doSubmit = async () => {
applyFormRef.value.submit()
@@ -55,16 +80,22 @@ const doSubmit = async () => {
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
提交
diff --git a/src/pages/apply/stride-items.vue b/src/pages/apply/stride-items.vue
index 9135b36..0ff2934 100644
--- a/src/pages/apply/stride-items.vue
+++ b/src/pages/apply/stride-items.vue
@@ -6,11 +6,6 @@ import { isEmpty } from 'radash'
import { hooks, router } from "@@/index"
import { applyApi } from "@@/api"
-import zTabs from "@@/components/other/z-tabs/z-tabs.vue"
-
-const data = {
- tabs: ['待审核', '已通过', '已拒绝'],
-}
const state = reactive({
pa: {
id: null,
@@ -19,7 +14,7 @@ const state = reactive({
})
const pageRef = ref(null)
-const pageHook = hooks.usePage(pageRef, applyApi.foreignItems, null, 'data')
+const pageHook = hooks.usePage(pageRef, applyApi.strideItems, null, 'data')
const query = (page: number, pagesize: number) => {
pageHook.startPage(page, pagesize, false, state.pa);
}
@@ -33,14 +28,6 @@ onShow(() => {
})
-const doTab = (e: any) => {
- if (state.pa.status != e + 1) {
- state.pa.status = e + 1
- pageRef.value.reload(true)
- }
-}
-
-
@@ -52,18 +39,19 @@ const doTab = (e: any) => {
-
-
-
+
+
+
未使用
已使用
-
- {{ v.userNameStr }}
- {{ v.userMobile }}
-
-
+
+ {{ v.username }}
+ {{ v.userMobile }}
+
+
diff --git a/src/pages/apply/stride-list.vue b/src/pages/apply/stride-list.vue
index 13adf82..a3444ad 100644
--- a/src/pages/apply/stride-list.vue
+++ b/src/pages/apply/stride-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,20 +31,29 @@ onLoad(() => {
});
onShow(() => {
-
+ 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/stride-apply")
}
+const doCard = (v: any) => {
+ if (v.status == 2) {
+ router.jump("/pages/apply/stride-items", { id: v.id })
+ } else {
+ router.jump("/pages/apply/stride-apply", { type: 'view', id: v.id })
+ }
+}
+
@@ -55,7 +69,43 @@ const doApply = async () => {
-
+
+
+ 跨单位就餐
+
+ {{ hooks.useTime(v.createTime, "") }}
+
+ 待审核
+ 已通过
+ 已拒绝
+
+
+
+
+
+
+ 数量
+ {{ v.count }}
+
+
+
+
+
+
+ 审核人
+ {{ v.checkUserName }}
+
+
+ 审核时间
+ {{ hooks.useTime(v.checkTime, "") }}
+
+
+
+
+ 使用
+ 查看
+
{
@tap="props.productId && router.jump('/pages/merchant/product-detail', { id: props.productId })">
-
{{ props.name }}
-
+
¥{{ hooks.useMoney(props.price) }}
@@ -85,7 +84,7 @@ const remove = () => {
{{ hooks.useFormatNum("库存", "", props.stock) }}
-
+
{{ hooks.useFormatNum("销量", "", props.salesCount) }}
@@ -95,7 +94,7 @@ const remove = () => {
{{ props.modelValue }}
-
+
diff --git a/src/pages/merchant/detail.vue b/src/pages/merchant/detail.vue
index 8b10693..3ff07ee 100644
--- a/src/pages/merchant/detail.vue
+++ b/src/pages/merchant/detail.vue
@@ -176,6 +176,17 @@ const getHeight = () => {
return `calc(100vh - ${uni.upx2px(rpx)}px)`
}
+const doPhone = () => {
+ if (isEmpty(state.detail.phone)) {
+ uni.showToast({ title: '该店铺没有预留电话', icon: "none" })
+ return
+ }
+ hooks.useMakePhoneCall(state.detail.phone)
+}
+const doFood = () => {
+ router.jump("/pages/merchant/food", { merchantId: state.detailId })
+}
+
@@ -220,8 +231,8 @@ const getHeight = () => {
-
-
+
+
@@ -234,6 +245,13 @@ const getHeight = () => {
包厢预定
+
+
+
+
+
+ 每日菜谱
+
@@ -243,7 +261,7 @@ const getHeight = () => {
-
+
diff --git a/src/pages/merchant/food.vue b/src/pages/merchant/food.vue
new file mode 100644
index 0000000..1508353
--- /dev/null
+++ b/src/pages/merchant/food.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ v.dayTime }}
+ {{ v.weekDayStr }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ v.name }}
+
+
+ ¥{{ hooks.useMoney(v.price) }}
+
+
+ ¥{{ hooks.useMoney(v.marketPrice) }}
+
+
+
+ {{ hooks.useFormatNum("库存", "", v.stock) }}
+
+ {{ hooks.useFormatNum("销量", "", v.salesCount) }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/order/detail.vue b/src/pages/order/detail.vue
index 41c5648..50bc0b7 100644
--- a/src/pages/order/detail.vue
+++ b/src/pages/order/detail.vue
@@ -66,7 +66,7 @@ const getShopCarList = async () => {
部门
{{ state.detail.deptName }}
-
+
订单号
{{ state.detail.id }}
@@ -100,7 +100,7 @@ const getShopCarList = async () => {
¥ {{ hooks.useMoney(v.totalPrice) }}
-
+
实付款
@@ -123,7 +123,7 @@ const getShopCarList = async () => {
}
&>view {
- color: #c4c4c4;
+ color: #999;
font-size: 28rpx;
font-weight: 500;
line-height: 1.4em;
diff --git a/src/pages/tabbar/food.vue b/src/pages/tabbar/food.vue
deleted file mode 100644
index deaa3cf..0000000
--- a/src/pages/tabbar/food.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/tabbar/home.vue b/src/pages/tabbar/home.vue
index ec39658..7efea97 100644
--- a/src/pages/tabbar/home.vue
+++ b/src/pages/tabbar/home.vue
@@ -15,7 +15,9 @@ onLoad(() => {
});
onShow(() => {
-
+ if (pageRef.value) {
+ pageRef.value.reload(false)
+ }
})
const pageRef = ref(null)
@@ -29,7 +31,7 @@ const query = (page: number, pagesize: number) => {
-
diff --git a/src/pages/tabbar/order.vue b/src/pages/tabbar/order.vue
index ad3b1b8..a0a8dd4 100644
--- a/src/pages/tabbar/order.vue
+++ b/src/pages/tabbar/order.vue
@@ -3,7 +3,7 @@ import { ref, reactive } from "vue";
import { onLoad, onShow } from "@dcloudio/uni-app";
import { hooks, router } from "@@/index"
-import { orderApi } from "@@/api"
+import { orderApi, payApi } from "@@/api"
import zTabs from "@@/components/other/z-tabs/z-tabs.vue"
@@ -18,7 +18,7 @@ const data = {
}
const state = reactive({
pa: {
- orderStatus: null,
+ orderStatus: data.tabs[0].id,
},
})
@@ -26,7 +26,9 @@ onLoad(() => {
});
onShow(() => {
-
+ if (pageRef.value) {
+ pageRef.value.reload(false)
+ }
})
const doTab = (e: any) => {
const target = data.tabs[e];
@@ -44,6 +46,33 @@ const doToDetail = (v: any) => {
router.jump("/pages/order/detail", { id: v.id })
}
+const doAppraise = () => {
+
+}
+
+const doRefund = (v: any) => {
+ uni.showModal({
+ title: '提示',
+ content: '是否确定退款',
+ confirmColor: '#0094ff',
+ success: async (res) => {
+ if (!res.confirm) return
+ try {
+ uni.showLoading({ title: '退款中...', mask: true });
+ const _pa = { id: v.id }
+ const { data, code }: any = await payApi.refundHardwareOrder(_pa)
+ if (code != 0) throw new Error()
+ pageRef.value.reload(true)
+ uni.hideLoading()
+ uni.showToast({ title: '退款成功', icon: "none" });
+ } catch (error) {
+ console.error(error);
+ uni.hideLoading()
+ }
+ }
+ });
+}
+
@@ -67,7 +96,7 @@ const doToDetail = (v: any) => {
{{ v.merchantStr }}
-
+
未支付
待核销
@@ -110,7 +139,9 @@ const doToDetail = (v: any) => {
- 评价
+ 评价
+ 退款
+
核销码
@@ -121,13 +152,4 @@ const doToDetail = (v: any) => {
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/pages/wallet/apply-detail.vue b/src/pages/wallet/apply-detail.vue
new file mode 100644
index 0000000..1f8b76e
--- /dev/null
+++ b/src/pages/wallet/apply-detail.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/wallet/list.vue b/src/pages/wallet/list.vue
index cc36050..1858d84 100644
--- a/src/pages/wallet/list.vue
+++ b/src/pages/wallet/list.vue
@@ -103,36 +103,55 @@ const doFreeze = async () => {
safe-area-inset-bottom :loading-more-enabled="true" :show-scrollbar="false" @query="query"
:auto-clean-list-when-reload="false" :auto-scroll-to-top-when-reload="false" @scroll="pageHook.scroll">
-
-
+
+
-
-
-
- {{ v.walletTypeStr }}
-
-
- {{ v.cardNumber }}
-
-
-
- 去充值
+
+ 卡号: {{ v.cardNumber }}
+
-
-
- 余额 ¥{{ hooks.useMoney(v.balance) }}
+
+
+
+
+
+
+ {{ v.walletTypeStr }}
-
-
+
+
+ 冻结审核中
+
+ 正常
+ 已冻结
+
+
+
+
+
+ ¥{{ hooks.useMoney(v.balance) }}
+
+
+
+
+ 绑定
+
+
+ 申请冻结
+
+
+ 去充值
+
+
diff --git a/src/pages/wallet/recharge.vue b/src/pages/wallet/recharge.vue
index 6b507ae..0e12cb3 100644
--- a/src/pages/wallet/recharge.vue
+++ b/src/pages/wallet/recharge.vue
@@ -8,16 +8,16 @@ import { walletApi, payApi } from "@@/api"
const data = {
payType: [
- { text: "模拟支付", disabled: false, type: 0, value: "mock" },
- { text: "微信支付", disabled: true, type: 1, value: "wx_pub" },
- { text: "支付宝支付", disabled: true, type: 2, value: "alipay_wap" },
+ { text: "模拟支付", disabled: false, type: "0", value: "mock" },
+ { text: "微信支付", disabled: true, type: "1", value: "wx_pub" },
+ { text: "支付宝支付", disabled: true, type: "2", value: "alipay_wap" },
]
}
const state = reactive({
walletId: null,
- currentPayType: 0,
- currentRecharge: -1,
+ currentPayType: "0",
+ currentRecharge: 0,
userInfo: {},
detail: {},
rechargeList: []
@@ -35,7 +35,7 @@ onShow(() => {
})
const getDetail = async () => {
- const _pa = { walletTypeId: state.walletId }
+ const _pa = { walletId: state.walletId }
const { data } = await walletApi.detail(_pa)
state.detail = data
}
@@ -98,12 +98,16 @@ const doPay = async () => {
-
-
- {{ state.detail.walletTypeStr }}
-
+
+
+
+
+
+ {{ state.detail.walletTypeStr }}
+
+
-
+
¥{{ hooks.useMoney(state.detail.balance) }}
@@ -130,22 +134,6 @@ const doPay = async () => {
diff --git a/src/sheep/hooks/index.ts b/src/sheep/hooks/index.ts
index 810d127..b835889 100644
--- a/src/sheep/hooks/index.ts
+++ b/src/sheep/hooks/index.ts
@@ -1,7 +1,11 @@
+export * from "./use-copy";
+
export * from "./use-enum";
export * from "./use-img";
export * from "./use-page";
+export * from "./use-phone";
+
export * from "./use-unit";
diff --git a/src/sheep/hooks/use-copy.ts b/src/sheep/hooks/use-copy.ts
new file mode 100644
index 0000000..03f2114
--- /dev/null
+++ b/src/sheep/hooks/use-copy.ts
@@ -0,0 +1,5 @@
+export const useCopy = async (str: string | undefined) => {
+ if (str == undefined) return;
+ const res = await uni.setClipboardData({ data: str });
+ uni.showToast({ title: "复制成功", icon: "none" });
+};
diff --git a/src/sheep/hooks/use-phone.ts b/src/sheep/hooks/use-phone.ts
new file mode 100644
index 0000000..e4776c3
--- /dev/null
+++ b/src/sheep/hooks/use-phone.ts
@@ -0,0 +1,4 @@
+export const useMakePhoneCall = (str: string | undefined) => {
+ if (str == undefined) return;
+ uni.makePhoneCall({ phoneNumber: str });
+};
diff --git a/src/sheep/scss/font/iconfont.scss b/src/sheep/scss/font/iconfont.scss
index 70e5391..7e1737b 100644
--- a/src/sheep/scss/font/iconfont.scss
+++ b/src/sheep/scss/font/iconfont.scss
@@ -1,9 +1,9 @@
@font-face {
font-family: "iconfont";
/* Project id 4740692 */
- src: url('//at.alicdn.com/t/c/font_4740692_o39uyvhjlur.woff2?t=1731367840461') format('woff2'),
- url('//at.alicdn.com/t/c/font_4740692_o39uyvhjlur.woff?t=1731367840461') format('woff'),
- url('//at.alicdn.com/t/c/font_4740692_o39uyvhjlur.ttf?t=1731367840461') format('truetype');
+ src: url('//at.alicdn.com/t/c/font_4740692_dlzhw41ofij.woff2?t=1731448556379') format('woff2'),
+ url('//at.alicdn.com/t/c/font_4740692_dlzhw41ofij.woff?t=1731448556379') format('woff'),
+ url('//at.alicdn.com/t/c/font_4740692_dlzhw41ofij.ttf?t=1731448556379') format('truetype');
}
.iconfont {
@@ -14,6 +14,18 @@
-moz-osx-font-smoothing: grayscale;
}
+.icon-fuzhi:before {
+ content: "\e8b0";
+}
+
+.icon-caipu:before {
+ content: "\e600";
+}
+
+.icon-erweima:before {
+ content: "\e7c1";
+}
+
.icon-biaoqianlanicon_gouwuche-xuanzhong:before {
content: "\e61c";
}
@@ -38,14 +50,6 @@
content: "\e64e";
}
-.icon-jiebang:before {
- content: "\ee1e";
-}
-
-.icon-bangding:before {
- content: "\ee1f";
-}
-
.icon-youjiantou:before {
content: "\e928";
}
\ No newline at end of file
diff --git a/src/shime-uni.d.ts b/src/shime-uni.d.ts
index 5ecbb26..c80052b 100644
--- a/src/shime-uni.d.ts
+++ b/src/shime-uni.d.ts
@@ -1,6 +1,6 @@
-export {}
+export {};
declare module "vue" {
type Hooks = App.AppInstance & Page.PageInstance;
interface ComponentCustomOptions extends Hooks {}
-}
\ No newline at end of file
+}
diff --git a/unocss.config.ts b/unocss.config.ts
index 387792a..e16d390 100644
--- a/unocss.config.ts
+++ b/unocss.config.ts
@@ -26,16 +26,13 @@ export default {
theme: {
colors: {
blue: {
- 60: "#f1f7ff",
- 1000: "#1777FF",
+ DEFAULT: "#0094ff",
},
red: {
- 60: "#fef2f2",
- 1000: "'#F02828'",
+ DEFAULT: "#f63a36",
},
yellow: {
- 60: "#fffaf1",
- 1000: "'#F2A817'",
+ DEFAULT: "#F2A817",
},
},
},
@@ -63,7 +60,7 @@ export default {
([, d]) => ({
"font-size": `${d}rpx`,
"font-weight": 500,
- color: "#c4c4c4",
+ color: "#999",
"line-height": `1.4em`,
}),
],