feat: 添加组件配置文件并优化页面结构
- 新增 components.d.json 文件,包含所有组件的属性配置 - 添加 card-item-plugin 组件及其相关文件(json、ts、wxml、wxss) - 在 app.json 中添加新的生产流程管理页面路径 - 添加多个SVG图标文件用于菜单项 - 重构 popup-plugin 组件样式和关闭逻辑 - 更新 tab-bar-plugin 的激活状态逻辑 - 优化 search-popup 使用全局样式类 - 在首页添加菜单配置和页面跳转功能 - 调整组件样式细节和间距
This commit is contained in:
@@ -3,12 +3,15 @@
|
||||
* YangXB 2021.11.24
|
||||
* */
|
||||
import { base, http } from "./config";
|
||||
import { getStorage, goIndexPage, isArray, setStorage, ToastErr } from "./util";
|
||||
import {
|
||||
getStorage,
|
||||
goIndexPage,
|
||||
isArray,
|
||||
setStorage,
|
||||
toastError,
|
||||
} from "./util";
|
||||
/**
|
||||
* 请求
|
||||
* @param {*} url
|
||||
* @param {*} options
|
||||
* @param {*} config
|
||||
*/
|
||||
const request = (
|
||||
url: string,
|
||||
@@ -103,7 +106,7 @@ export const wxLogin = (config?: any) => {
|
||||
});
|
||||
})
|
||||
.catch((err: any) => {
|
||||
ToastErr("服务失败:" + err.err_code);
|
||||
toastError("服务失败:" + err.err_code);
|
||||
});
|
||||
},
|
||||
});
|
||||
@@ -194,11 +197,7 @@ export const login = (
|
||||
company_id?: any
|
||||
) => {
|
||||
return new Promise<any>((resolve, reject) => {
|
||||
const data: any = {
|
||||
type: 2,
|
||||
encryptedData,
|
||||
iv,
|
||||
};
|
||||
const data: any = { type: 2, encryptedData, iv };
|
||||
|
||||
if (company_id) {
|
||||
data.companyID = company_id;
|
||||
|
||||
Reference in New Issue
Block a user