feat:"完成页面接口的对接"
This commit is contained in:
26
前端/unpackage/dist/dev/mp-weixin/utils/config.js
vendored
26
前端/unpackage/dist/dev/mp-weixin/utils/config.js
vendored
@@ -3,8 +3,8 @@ const ENV = new UTSJSONObject(
|
||||
{
|
||||
// 开发环境
|
||||
development: new UTSJSONObject({
|
||||
baseUrl: "http://localhost:3000/api",
|
||||
imageBaseUrl: "http://localhost:3000"
|
||||
baseUrl: "http://192.168.1.43:3000/api",
|
||||
imageBaseUrl: "http://192.168.1.43:3000"
|
||||
}),
|
||||
// 生产环境
|
||||
production: new UTSJSONObject({
|
||||
@@ -46,15 +46,27 @@ const SOFA_CATEGORIES = [
|
||||
new UTSJSONObject({ id: "antique", name: "古典沙发" }),
|
||||
new UTSJSONObject({ id: "office", name: "办公沙发" })
|
||||
];
|
||||
const SERVICE_TYPES = [
|
||||
[
|
||||
new UTSJSONObject({ id: "repair", name: "局部修复", icon: "/static/icons/repair.png" }),
|
||||
new UTSJSONObject({ id: "recolor", name: "改色翻新", icon: "/static/icons/recolor.png" }),
|
||||
new UTSJSONObject({ id: "refurbish", name: "整体翻新", icon: "/static/icons/refurbish.png" }),
|
||||
new UTSJSONObject({ id: "custom", name: "定制换皮", icon: "/static/icons/custom.png" })
|
||||
new UTSJSONObject({ id: "refurbish", name: "整体翻新", icon: "/static/icons/refurbish.png" })
|
||||
];
|
||||
const getServiceTypeName = (type) => {
|
||||
var _a;
|
||||
const map = /* @__PURE__ */ new Map([
|
||||
["leather", "真皮翻新"],
|
||||
["fabric", "布艺翻新"],
|
||||
["functional", "功能维修"],
|
||||
["antique", "古董修复"],
|
||||
["office", "办公沙发"],
|
||||
["cleaning", "清洁保养"],
|
||||
["repair", "维修改装"],
|
||||
["custom", "定制沙发"]
|
||||
]);
|
||||
return (_a = UTS.mapGet(map, type)) !== null && _a !== void 0 ? _a : type;
|
||||
};
|
||||
exports.PAGE_SIZE = PAGE_SIZE;
|
||||
exports.SERVICE_TYPES = SERVICE_TYPES;
|
||||
exports.SOFA_CATEGORIES = SOFA_CATEGORIES;
|
||||
exports.STORAGE_KEYS = STORAGE_KEYS;
|
||||
exports.getEnvConfig = getEnvConfig;
|
||||
exports.getServiceTypeName = getServiceTypeName;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/config.js.map
|
||||
|
||||
Reference in New Issue
Block a user