@indfnd/common-mobile 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/ind-common-mobile.es.js +75 -21
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/src/styles/variables/index.less +2 -0
- package/src/styles/variables/theme/emerald-green/common.less +4 -0
- package/src/styles/variables/theme/emerald-green/index.less +1 -0
- package/src/styles/variables/theme/gleam-golden/common.less +38 -0
- package/src/styles/variables/theme/gleam-golden/index.less +1 -0
- package/src/styles/variables/theme3.less +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.24](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.23...v1.0.24) (2026-01-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 增加会话异常处理逻辑 ([ea1ae2a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/ea1ae2afc7f6d6d7a55092d721627c3d7cfec2fd))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 修改文件上传组件 ([313c67b](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/313c67ba9567e741a5f647e67e427b7570879a2b))
|
|
16
|
+
* 修改文件上传组件 ([36d73e1](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/36d73e18de719d3db348ec828ff71915392d6017))
|
|
17
|
+
|
|
18
|
+
### [1.0.23](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.22...v1.0.23) (2026-01-22)
|
|
19
|
+
|
|
5
20
|
### [1.0.22](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.21...v1.0.22) (2026-01-22)
|
|
6
21
|
|
|
7
22
|
### [1.0.21](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.20...v1.0.21) (2026-01-21)
|
|
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
5
|
const name$1 = "@indfnd/common-mobile";
|
|
6
|
-
const version$2 = "1.0.
|
|
6
|
+
const version$2 = "1.0.23";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -29375,7 +29375,7 @@ var render$2 = function() {
|
|
|
29375
29375
|
return _vm.handleClickAttachment(item2);
|
|
29376
29376
|
} } }, [_vm._v(" " + _vm._s(item2.fileName) + " ")]), !_vm.readonly ? _c("div", { staticClass: "ind-upLoad-file-list-container-idel", on: { "click": function($event) {
|
|
29377
29377
|
return _vm.deleteFile(item2.fileId);
|
|
29378
|
-
} } }, [_c("div", { staticClass: "ind-upLoad-file-list-container-idel-btn" }, [_c("Icon", { staticStyle: { "font-size": "16px" }, attrs: { "type": "md-trash" } }), _vm._v("\u5220\u9664 ")], 1)]) : _vm._e(),
|
|
29378
|
+
} } }, [_c("div", { staticClass: "ind-upLoad-file-list-container-idel-btn" }, [_c("Icon", { staticStyle: { "font-size": "16px" }, attrs: { "type": "md-trash" } }), _vm._v("\u5220\u9664 ")], 1)]) : _vm._e(), _vm.shouldShowDelete ? _c("div", { staticClass: "ind-upLoad-file-list-container-idownload", on: { "click": function($event) {
|
|
29379
29379
|
return _vm.handleDownload(item2);
|
|
29380
29380
|
} } }, [_c("div", { staticClass: "ind-upLoad-file-list-container-idownload-btn" }, [_c("Icon", { staticStyle: { "font-size": "18px" }, attrs: { "type": "md-cloud-download" } }), _vm._v(" \u4E0B\u8F7D ")], 1)]) : _vm._e()])]);
|
|
29381
29381
|
})], 2)])]), !_vm.readonly ? _c("div", { staticClass: "ind-bottom-btn ind-flex ind-flex-no-shrink ind-space-between" }, [_c("IndButton", { attrs: { "bizType": "reset" }, on: { "click": _vm.cancel } }, [_vm._v("\u53D6\u6D88")]), _c("IndButton", { attrs: { "bizType": "primary" }, on: { "click": _vm.confirm } }, [_vm._v("\u786E\u8BA4")])], 1) : _vm._e(), _c("input", { ref: "uploadInput", staticStyle: { "position": "absolute", "clip": "rect(0 0 0 0)" }, attrs: { "type": "file", "disabled": false, "multiple": true, "accept": _vm.accept }, on: { "change": function($event) {
|
|
@@ -29429,7 +29429,7 @@ const __vue2_script$2 = {
|
|
|
29429
29429
|
},
|
|
29430
29430
|
ossServerContext: {
|
|
29431
29431
|
type: String,
|
|
29432
|
-
default: "/
|
|
29432
|
+
default: "/ind-uc-ext-server"
|
|
29433
29433
|
},
|
|
29434
29434
|
ossFilePutUrl: {
|
|
29435
29435
|
type: String,
|
|
@@ -29456,6 +29456,10 @@ const __vue2_script$2 = {
|
|
|
29456
29456
|
readonly: {
|
|
29457
29457
|
type: Boolean,
|
|
29458
29458
|
default: false
|
|
29459
|
+
},
|
|
29460
|
+
candel: {
|
|
29461
|
+
type: Boolean,
|
|
29462
|
+
default: true
|
|
29459
29463
|
}
|
|
29460
29464
|
},
|
|
29461
29465
|
data() {
|
|
@@ -29475,6 +29479,14 @@ const __vue2_script$2 = {
|
|
|
29475
29479
|
};
|
|
29476
29480
|
},
|
|
29477
29481
|
computed: {
|
|
29482
|
+
shouldShowDelete() {
|
|
29483
|
+
if (this.readonly) {
|
|
29484
|
+
let showd = this.candel ? true : false;
|
|
29485
|
+
return showd;
|
|
29486
|
+
} else {
|
|
29487
|
+
return true;
|
|
29488
|
+
}
|
|
29489
|
+
},
|
|
29478
29490
|
downloadUrl() {
|
|
29479
29491
|
return this.ossServerContext + this.ossFileGetUrl;
|
|
29480
29492
|
},
|
|
@@ -29565,7 +29577,10 @@ const __vue2_script$2 = {
|
|
|
29565
29577
|
}
|
|
29566
29578
|
},
|
|
29567
29579
|
h5Download(file) {
|
|
29568
|
-
const
|
|
29580
|
+
const isScyxWeb = location.pathname.includes("scyxweb");
|
|
29581
|
+
const prefix2 = isScyxWeb ? "/scyxgateway" : "";
|
|
29582
|
+
const downloadUrl = file.fileUrl ? prefix2 + file.fileUrl : `${this.ossServerContext}/oss/file/get/${file.fileId}`;
|
|
29583
|
+
console.log(`dld:`, downloadUrl);
|
|
29569
29584
|
const link = document.createElement("a");
|
|
29570
29585
|
link.href = downloadUrl;
|
|
29571
29586
|
link.download = file.fileName;
|
|
@@ -29573,6 +29588,7 @@ const __vue2_script$2 = {
|
|
|
29573
29588
|
document.body.appendChild(link);
|
|
29574
29589
|
link.click();
|
|
29575
29590
|
document.body.removeChild(link);
|
|
29591
|
+
console.log("\u4E0B\u8F7D\u94FE\u63A5\u5DF2\u89E6\u53D1");
|
|
29576
29592
|
},
|
|
29577
29593
|
goToMiniProgramDown(file) {
|
|
29578
29594
|
if (file.fileId) {
|
|
@@ -29741,7 +29757,7 @@ var render$1 = function() {
|
|
|
29741
29757
|
var _vm = this;
|
|
29742
29758
|
var _h = _vm.$createElement;
|
|
29743
29759
|
var _c = _vm._self._c || _h;
|
|
29744
|
-
return _c("div", { staticClass: "ind-common-m-card-outer" }, [_c("div", { staticClass: "ind-common-m-card-inner" }, [_c("div", { staticClass: "ind-common-m-card-inner-inner" }, [_vm.showHeader ? _c("div", { staticClass: "ind-common-m-card-title" }, [_vm.showIcon ? _c("div", { staticClass: "ind-common-m-card-title-icon" }, [_c("img", { attrs: { "src": _vm.icon, "alt": "" } })]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-title-text" }, [_vm._v(_vm._s(_vm.title))]), _c("div", { staticClass: "ind-common-m-card-title-arrow" }, [_vm._t("right-icon")], 2)]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-content" }, [_vm._t("default")], 2)])])]);
|
|
29760
|
+
return _c("div", { staticClass: "ind-common-m-card-outer", style: { width: _vm.width, margin: _vm.margin, padding: _vm.padding } }, [_c("div", { staticClass: "ind-common-m-card-inner" }, [_c("div", { staticClass: "ind-common-m-card-inner-inner" }, [_vm.showHeader ? _c("div", { staticClass: "ind-common-m-card-title" }, [_vm.showIcon ? _c("div", { staticClass: "ind-common-m-card-title-icon" }, [_c("img", { attrs: { "src": _vm.icon, "alt": "" } })]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-title-text" }, [_vm._v(_vm._s(_vm.title))]), _c("div", { staticClass: "ind-common-m-card-title-arrow" }, [_vm._t("right-icon")], 2)]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-content" }, [_vm._t("default")], 2)])])]);
|
|
29745
29761
|
};
|
|
29746
29762
|
var staticRenderFns$1 = [];
|
|
29747
29763
|
const __vue2_script$1 = {
|
|
@@ -29766,6 +29782,18 @@ const __vue2_script$1 = {
|
|
|
29766
29782
|
showHeader: {
|
|
29767
29783
|
type: Boolean,
|
|
29768
29784
|
default: true
|
|
29785
|
+
},
|
|
29786
|
+
width: {
|
|
29787
|
+
type: String,
|
|
29788
|
+
default: "100%"
|
|
29789
|
+
},
|
|
29790
|
+
padding: {
|
|
29791
|
+
type: String,
|
|
29792
|
+
default: "15px 15px 0px 15px"
|
|
29793
|
+
},
|
|
29794
|
+
margin: {
|
|
29795
|
+
type: String,
|
|
29796
|
+
default: "0px"
|
|
29769
29797
|
}
|
|
29770
29798
|
}
|
|
29771
29799
|
};
|
|
@@ -29792,7 +29820,7 @@ var render82 = function() {
|
|
|
29792
29820
|
var _vm = this;
|
|
29793
29821
|
var _h = _vm.$createElement;
|
|
29794
29822
|
var _c = _vm._self._c || _h;
|
|
29795
|
-
return _c("div", { staticClass: "ind-common-m-card-item-outer" }, [_c("div", { staticClass: "ind-common-m-card-item-inner-inner" }, [_vm.showHeader ? _c("div", { staticClass: "ind-common-m-card-item-title" }, [_vm.showIcon ? _c("div", { staticClass: "ind-common-m-card-item-title-icon" }, [_c("div", { staticClass: "ind-common-m-card-item-title-icon-icon" })]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-item-title-text" }, [_vm._v(_vm._s(_vm.title))]), _c("div", { staticClass: "ind-common-m-card-item-title-arrow" }, [_vm._t("right-icon")], 2)]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-item-content" }, [_vm._t("default")], 2)])]);
|
|
29823
|
+
return _c("div", { staticClass: "ind-common-m-card-item-outer", style: { width: _vm.width, margin: _vm.margin, padding: _vm.padding } }, [_c("div", { staticClass: "ind-common-m-card-item-inner-inner" }, [_vm.showHeader ? _c("div", { staticClass: "ind-common-m-card-item-title" }, [_vm.showIcon ? _c("div", { staticClass: "ind-common-m-card-item-title-icon" }, [_c("div", { staticClass: "ind-common-m-card-item-title-icon-icon" })]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-item-title-text" }, [_vm._v(_vm._s(_vm.title))]), _c("div", { staticClass: "ind-common-m-card-item-title-arrow" }, [_vm._t("right-icon")], 2)]) : _vm._e(), _c("div", { staticClass: "ind-common-m-card-item-content" }, [_vm._t("default")], 2)])]);
|
|
29796
29824
|
};
|
|
29797
29825
|
var staticRenderFns = [];
|
|
29798
29826
|
const __vue2_script = {
|
|
@@ -29817,6 +29845,18 @@ const __vue2_script = {
|
|
|
29817
29845
|
showHeader: {
|
|
29818
29846
|
type: Boolean,
|
|
29819
29847
|
default: true
|
|
29848
|
+
},
|
|
29849
|
+
width: {
|
|
29850
|
+
type: String,
|
|
29851
|
+
default: "100%"
|
|
29852
|
+
},
|
|
29853
|
+
padding: {
|
|
29854
|
+
type: String,
|
|
29855
|
+
default: "10px 10px 0px 10px"
|
|
29856
|
+
},
|
|
29857
|
+
margin: {
|
|
29858
|
+
type: String,
|
|
29859
|
+
default: "0px"
|
|
29820
29860
|
}
|
|
29821
29861
|
}
|
|
29822
29862
|
};
|
|
@@ -31535,18 +31575,30 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
31535
31575
|
}
|
|
31536
31576
|
}
|
|
31537
31577
|
}
|
|
31578
|
+
async function tryPluginLogin() {
|
|
31579
|
+
try {
|
|
31580
|
+
token = await pluginLogin(store2);
|
|
31581
|
+
store2.dispatch("loginSuccess", token);
|
|
31582
|
+
return token;
|
|
31583
|
+
} catch (e) {
|
|
31584
|
+
console.log("tryPluginLogin error", e);
|
|
31585
|
+
return false;
|
|
31586
|
+
}
|
|
31587
|
+
}
|
|
31538
31588
|
const code2 = getQueryVariable("code");
|
|
31539
31589
|
if (typeof window.Code != "undefined" || code2 || isHb$1) {
|
|
31540
31590
|
if (!token) {
|
|
31541
|
-
|
|
31542
|
-
|
|
31543
|
-
|
|
31591
|
+
if (await tryPluginLogin()) {
|
|
31592
|
+
await _renderRoutes();
|
|
31593
|
+
}
|
|
31544
31594
|
} else {
|
|
31545
31595
|
if (!await checkLogin()) {
|
|
31546
|
-
|
|
31547
|
-
|
|
31596
|
+
if (await tryPluginLogin()) {
|
|
31597
|
+
await _renderRoutes();
|
|
31598
|
+
}
|
|
31599
|
+
} else {
|
|
31600
|
+
await _renderRoutes();
|
|
31548
31601
|
}
|
|
31549
|
-
await _renderRoutes();
|
|
31550
31602
|
}
|
|
31551
31603
|
} else {
|
|
31552
31604
|
if (!token && to.name !== LOGIN_PAGE_NAME) {
|
|
@@ -31558,10 +31610,14 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
31558
31610
|
} else {
|
|
31559
31611
|
console.log("router8");
|
|
31560
31612
|
if (!await checkLogin()) {
|
|
31561
|
-
|
|
31562
|
-
|
|
31613
|
+
if (await tryPluginLogin()) {
|
|
31614
|
+
await _renderRoutes();
|
|
31615
|
+
} else {
|
|
31616
|
+
console.log("router9");
|
|
31617
|
+
}
|
|
31618
|
+
} else {
|
|
31619
|
+
await _renderRoutes();
|
|
31563
31620
|
}
|
|
31564
|
-
await _renderRoutes();
|
|
31565
31621
|
}
|
|
31566
31622
|
}
|
|
31567
31623
|
});
|
|
@@ -31575,10 +31631,7 @@ const pluginLogin = (store2) => {
|
|
|
31575
31631
|
let code2 = getQueryVariable("code");
|
|
31576
31632
|
let singleLoginPromise = singleLoginPromiseMapping[code2];
|
|
31577
31633
|
if (singleLoginPromise) {
|
|
31578
|
-
|
|
31579
|
-
title: "\u63D0\u793A",
|
|
31580
|
-
message: "\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u5BFC\u81F4pluginLogin\u91CD\u590D\u6267\u884C\uFF01\uFF01\uFF01"
|
|
31581
|
-
});
|
|
31634
|
+
console.log("\u91CD\u590D\u4F7F\u7528\u4E86code\u521B\u5EFA\u4F1A\u8BDD\uFF01");
|
|
31582
31635
|
return singleLoginPromise;
|
|
31583
31636
|
}
|
|
31584
31637
|
singleLoginPromise = singleLoginPromiseMapping[code2] = new Promise((resolve, reject) => {
|
|
@@ -31663,7 +31716,7 @@ window.getQueryVariable = function getQueryVariable2(variable) {
|
|
|
31663
31716
|
return false;
|
|
31664
31717
|
};
|
|
31665
31718
|
const checkLogin = async () => {
|
|
31666
|
-
var _a;
|
|
31719
|
+
var _a, _b;
|
|
31667
31720
|
if (localStorage.getItem("whoisyourdaddy") == "1") {
|
|
31668
31721
|
return Promise.resolve(true);
|
|
31669
31722
|
}
|
|
@@ -31675,7 +31728,8 @@ const checkLogin = async () => {
|
|
|
31675
31728
|
token
|
|
31676
31729
|
}
|
|
31677
31730
|
});
|
|
31678
|
-
|
|
31731
|
+
console.log(((_a = resp.data) == null ? void 0 : _a.code) == 1 ? "\u6709\u4F1A\u8BDD\u4E86\uFF01" : "\u6CA1\u6709\u4F1A\u8BDD\u3002\u3002\u3002");
|
|
31732
|
+
return ((_b = resp.data) == null ? void 0 : _b.code) == 1;
|
|
31679
31733
|
} catch (e) {
|
|
31680
31734
|
console.log("getLoginData e", e);
|
|
31681
31735
|
Message.error({ content: "\u6821\u9A8C\u4F1A\u8BDD\u5F02\u5E38\uFF01", duration: 10, closable: true });
|