@indfnd/common-mobile 0.0.74 → 0.0.75
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 +13 -0
- package/dist/ind-common-mobile.es.js +72 -24
- package/dist/ind-common-mobile.umd.cjs +39 -39
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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
|
+
### [0.0.75](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.74...v0.0.75) (2025-07-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 山东开发环境兼容 ([01d7b14](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/01d7b14a504e415f4d986a16488c9b67d23c9e9a))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 湖北移动端门户会话获取改造 ([dfb8e36](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/dfb8e36b309d22118a92c1924b9ae59a5c4e5617))
|
|
16
|
+
* 移动端隐藏菜单 ([afbb382](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/afbb382765eb9771a4a09b39213ca5d87761347c))
|
|
17
|
+
|
|
5
18
|
### [0.0.74](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.73...v0.0.74) (2025-06-20)
|
|
6
19
|
|
|
7
20
|
|
|
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
|
|
|
2
2
|
import Vue$1 from "vue";
|
|
3
3
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
4
4
|
const name$1 = "@indfnd/common-mobile";
|
|
5
|
-
const version$2 = "0.0.
|
|
5
|
+
const version$2 = "0.0.74";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -44825,9 +44825,9 @@ var render$g = function() {
|
|
|
44825
44825
|
_vm.data = $$v;
|
|
44826
44826
|
}, expression: "data" } }, "IndMobileTable", _vm.$attrs, false), _vm.$listeners))], 1), _c("van-popup", { style: { width: "100%" }, attrs: { "position": "right", "overlay": false }, model: { value: _vm.displayCondition, callback: function($$v) {
|
|
44827
44827
|
_vm.displayCondition = $$v;
|
|
44828
|
-
}, expression: "displayCondition" } }, [_c("div", { staticClass: "ind-page-view ind-flex-column", staticStyle: { "height": "100vh" } }, [_c("IndMForm", { staticClass: "height100", staticStyle: { "background": "var(--ind-white)" }, attrs: { "formType": "searchMobile", "fieldList": _vm.searchFormFields }, model: { value: _vm.searchFormValue, callback: function($$v) {
|
|
44828
|
+
}, expression: "displayCondition" } }, [_c("div", { staticClass: "ind-page-view ind-flex-column", staticStyle: { "height": "100vh" } }, [_c("IndMForm", _vm._g({ staticClass: "height100", staticStyle: { "background": "var(--ind-white)" }, attrs: { "formType": "searchMobile", "fieldList": _vm.searchFormFields }, model: { value: _vm.searchFormValue, callback: function($$v) {
|
|
44829
44829
|
_vm.searchFormValue = $$v;
|
|
44830
|
-
}, expression: "searchFormValue" } }), _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)], 1)])], 1);
|
|
44830
|
+
}, expression: "searchFormValue" } }, _vm.$listeners)), _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)], 1)])], 1);
|
|
44831
44831
|
};
|
|
44832
44832
|
var staticRenderFns$g = [];
|
|
44833
44833
|
const __vue2_script$g = {
|
|
@@ -64021,6 +64021,8 @@ var render$4 = function() {
|
|
|
64021
64021
|
return _vm.ontouchmove(_vm.item);
|
|
64022
64022
|
}, "touchend": function($event) {
|
|
64023
64023
|
return _vm.ontouchend(_vm.item);
|
|
64024
|
+
}, "click": function($event) {
|
|
64025
|
+
return _vm.ontouchend(_vm.item);
|
|
64024
64026
|
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-badge", { attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
64025
64027
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
64026
64028
|
}, proxy: true }], null, false, 1274909998) }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1)], 1) : _c("div", { staticStyle: { "text-align": "center" } }, [_c("van-image", { attrs: { "with": "3rem", "height": "3rem", "fit": "cover", "src": _vm.getImg(_vm.item.meta.icon) } })], 1), _c("div", { staticStyle: { "text-align": "center" } }, [_c("div", [_vm._v(_vm._s(_vm.item.meta.title))])])]);
|
|
@@ -69217,7 +69219,31 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
|
|
|
69217
69219
|
if (appId != appInfo.appId)
|
|
69218
69220
|
return;
|
|
69219
69221
|
const name2 = permissionValue;
|
|
69220
|
-
|
|
69222
|
+
let hideInIbp1 = false;
|
|
69223
|
+
let hideInIbp2 = false;
|
|
69224
|
+
if (item2 && item2.extendProps) {
|
|
69225
|
+
try {
|
|
69226
|
+
hideInIbp1 = JSON.parse(item2.extendProps).hideInIbp === "1";
|
|
69227
|
+
} catch (error) {
|
|
69228
|
+
hideInIbp1 = false;
|
|
69229
|
+
}
|
|
69230
|
+
}
|
|
69231
|
+
try {
|
|
69232
|
+
if (item2 && item2.extension) {
|
|
69233
|
+
{
|
|
69234
|
+
const extension = JSON.parse(item2.extension);
|
|
69235
|
+
if (extension.extendProps) {
|
|
69236
|
+
const extendProps2 = typeof extension.extendProps === "string" ? JSON.parse(extension.extendProps) : extension.extendProps;
|
|
69237
|
+
if (extendProps2.hideInMenu == 1) {
|
|
69238
|
+
hideInIbp2 = true;
|
|
69239
|
+
}
|
|
69240
|
+
}
|
|
69241
|
+
}
|
|
69242
|
+
}
|
|
69243
|
+
} catch (e) {
|
|
69244
|
+
hideInIbp2 = false;
|
|
69245
|
+
}
|
|
69246
|
+
if (pid === parentId && !(hideInIbp1 || hideInIbp2)) {
|
|
69221
69247
|
if (isMenuPermissionType(type2)) {
|
|
69222
69248
|
let node = {
|
|
69223
69249
|
type: type2,
|
|
@@ -70468,6 +70494,7 @@ axios$1.isAxiosError = isAxiosError;
|
|
|
70468
70494
|
axios$2.exports = axios$1;
|
|
70469
70495
|
axios$2.exports.default = axios$1;
|
|
70470
70496
|
var axios = axios$2.exports;
|
|
70497
|
+
const isHb = location.pathname.includes("scyxweb");
|
|
70471
70498
|
const Cookie = {
|
|
70472
70499
|
set: function(key, value17, exdays) {
|
|
70473
70500
|
if (key.indexOf("=") !== -1) {
|
|
@@ -70539,7 +70566,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
70539
70566
|
const LOGIN_PAGE_NAME = config.loginRouteName;
|
|
70540
70567
|
const routerOptionsBak = _.cloneDeep(router.options);
|
|
70541
70568
|
window.sessionNotValidHandler = async function() {
|
|
70542
|
-
if (typeof window.Code != "undefined") {
|
|
70569
|
+
if (typeof window.Code != "undefined" || isHb) {
|
|
70543
70570
|
await pluginLogin(store2);
|
|
70544
70571
|
await store2.dispatch("getUserInfo");
|
|
70545
70572
|
await store2.dispatch("getAppListData");
|
|
@@ -70616,7 +70643,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
70616
70643
|
}
|
|
70617
70644
|
}
|
|
70618
70645
|
const code2 = getQueryVariable("code");
|
|
70619
|
-
if (typeof window.Code != "undefined" || code2) {
|
|
70646
|
+
if (typeof window.Code != "undefined" || code2 || isHb) {
|
|
70620
70647
|
if (!token) {
|
|
70621
70648
|
token = await pluginLogin(store2);
|
|
70622
70649
|
store2.dispatch("loginSuccess", token);
|
|
@@ -70661,27 +70688,25 @@ const pluginLogin = (store2) => {
|
|
|
70661
70688
|
Cookie.set("TOKEN_KEY", "", 1);
|
|
70662
70689
|
store2.commit("setUserName", "");
|
|
70663
70690
|
store2.commit("setToken", "");
|
|
70664
|
-
|
|
70665
|
-
|
|
70666
|
-
|
|
70667
|
-
|
|
70668
|
-
axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
70691
|
+
if (isHb) {
|
|
70692
|
+
return new Promise((resolve, reject) => {
|
|
70693
|
+
let url = "https://weixintest.hbtobacco.cn/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
|
|
70694
|
+
axios$3.get(url).then(async (resp) => {
|
|
70669
70695
|
setToken(resp.token);
|
|
70670
70696
|
resolve(resp.token);
|
|
70697
|
+
localStorage.setItem("v8-token", resp.token);
|
|
70698
|
+
sessionStorage.setItem("lambo-token", resp.token);
|
|
70671
70699
|
}).catch((e) => {
|
|
70672
70700
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
70673
|
-
Message.error({
|
|
70674
|
-
content: "\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",
|
|
70675
|
-
duration: 10,
|
|
70676
|
-
closable: true
|
|
70677
|
-
});
|
|
70678
70701
|
reject(0);
|
|
70679
70702
|
});
|
|
70680
|
-
}
|
|
70681
|
-
|
|
70682
|
-
|
|
70683
|
-
|
|
70684
|
-
|
|
70703
|
+
});
|
|
70704
|
+
} else {
|
|
70705
|
+
return new Promise((resolve, reject) => {
|
|
70706
|
+
console.log("1111`111");
|
|
70707
|
+
const code2 = getQueryVariable("code");
|
|
70708
|
+
if (code2) {
|
|
70709
|
+
axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
70685
70710
|
setToken(resp.token);
|
|
70686
70711
|
resolve(resp.token);
|
|
70687
70712
|
}).catch((e) => {
|
|
@@ -70693,9 +70718,26 @@ const pluginLogin = (store2) => {
|
|
|
70693
70718
|
});
|
|
70694
70719
|
reject(0);
|
|
70695
70720
|
});
|
|
70696
|
-
}
|
|
70697
|
-
|
|
70698
|
-
|
|
70721
|
+
} else {
|
|
70722
|
+
Code.postMessage("");
|
|
70723
|
+
window.getCode = function(res) {
|
|
70724
|
+
console.log("getCode res", res);
|
|
70725
|
+
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
70726
|
+
setToken(resp.token);
|
|
70727
|
+
resolve(resp.token);
|
|
70728
|
+
}).catch((e) => {
|
|
70729
|
+
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
70730
|
+
Message.error({
|
|
70731
|
+
content: "\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",
|
|
70732
|
+
duration: 10,
|
|
70733
|
+
closable: true
|
|
70734
|
+
});
|
|
70735
|
+
reject(0);
|
|
70736
|
+
});
|
|
70737
|
+
};
|
|
70738
|
+
}
|
|
70739
|
+
});
|
|
70740
|
+
}
|
|
70699
70741
|
};
|
|
70700
70742
|
window.getQueryVariable = function getQueryVariable2(variable) {
|
|
70701
70743
|
var query = window.location.search.substring(1);
|
|
@@ -71086,6 +71128,12 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
71086
71128
|
return;
|
|
71087
71129
|
const theme = opts.theme || getDefaultTheme();
|
|
71088
71130
|
doChangeTheme(theme);
|
|
71131
|
+
if (location.pathname.includes("scyxweb")) {
|
|
71132
|
+
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
71133
|
+
axios$3.get(url).then((data49) => {
|
|
71134
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
71135
|
+
});
|
|
71136
|
+
}
|
|
71089
71137
|
Object.keys(components).forEach((key) => {
|
|
71090
71138
|
Vue2.component(`IndM${key}`, components[key]);
|
|
71091
71139
|
});
|