This commit is contained in:
dzc committed 2024-11-12 09:43:02 +08:00
1 parent 983674cfc9
commit 96a9bdfec8
18 files changed
+611 -117

No files matched your search

+16
View File
@@ -17,4 +17,20 @@ export default {
data,
});
},
// 创建硬件订单
createHardwareOrder: (data) => {
return request({
url: "/hardware/order/create-order",
method: "POST",
data,
});
},
// 结算
submitHardwareOrder: (data) => {
return request({
url: "/hardware/order/submit-order",
method: "POST",
data,
});
},
};
+1 -1
View File
@@ -3,7 +3,7 @@ import request from "@/sheep/utils/request";
export default {
get: (params) => {
return request({
url: "/product/spu/get-detail",
url: "/onlinefood/spu/get-detail",
method: "GET",
params,
});
-1
View File
@@ -34,7 +34,6 @@ export const usePage = (
const setPage = async (list: Array<any>) => {
if (ref == null) return;
state.list.totalList = await ref.value.complete(list);
console.log(state.list, "list");
};
const startPage = async (
page: number,
+21
View File
@@ -4,6 +4,27 @@ export const useMoney = (num) => {
return (parsedNumber / 100.0).toFixed(1);
};
export function useFormatNum(
prefix: string,
type: "exact" | string,
num: number
) {
num = num || 0;
if (type === "exact") {
return prefix + num;
}
if (num < 10) {
return `${prefix}≤10`;
}
// 情况三:大于 10,除第一位外,其它位都显示为0
// 例如:100 - 199 显示为 100+
// 9000 - 9999 显示为 9000+
const numStr = num.toString();
const first = numStr[0];
const other = "0".repeat(numStr.length - 1);
return `${prefix}${first}${other}+`;
}
export function useTime(time, pattern) {
if (arguments.length === 0 || !time) {
return null;
+15 -3
View File
@@ -1,9 +1,9 @@
@font-face {
font-family: "iconfont";
/* Project id 4740692 */
src: url('//at.alicdn.com/t/c/font_4740692_4h93hfstead.woff2?t=1731328362704') format('woff2'),
url('//at.alicdn.com/t/c/font_4740692_4h93hfstead.woff?t=1731328362704') format('woff'),
url('//at.alicdn.com/t/c/font_4740692_4h93hfstead.ttf?t=1731328362704') format('truetype');
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');
}
.iconfont {
@@ -14,6 +14,18 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-biaoqianlanicon_gouwuche-xuanzhong:before {
content: "\e61c";
}
.icon-a-:before {
content: "\e651";
}
.icon-a--:before {
content: "\e652";
}
.icon-dianhua:before {
content: "\e614";
}