@indfnd/common-mobile 1.0.9 → 1.0.11
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 +19 -0
- package/dist/ind-common-mobile.es.js +59 -14
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.11](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.10...v1.0.11) (2026-01-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 企业微信应用广场新展示问题修复 ([d6a67ed](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/d6a67edb327ac167bfe3eddb3fc82c60d60caa03))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 修改 ([43dbae2](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/43dbae25fe70bbb1272ef7ce0df64196550ad4fa))
|
|
16
|
+
|
|
17
|
+
### [1.0.10](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.9...v1.0.10) (2025-12-31)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 修改 ([279056f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/279056f37b6a3ecee0c0559402bb7a133b974a9d))
|
|
23
|
+
|
|
5
24
|
### [1.0.9](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.8...v1.0.9) (2025-12-30)
|
|
6
25
|
|
|
7
26
|
|
|
@@ -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.10";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -23258,9 +23258,9 @@ var render$8 = function() {
|
|
|
23258
23258
|
return _vm.ontouchend(_vm.item);
|
|
23259
23259
|
}, "click": function($event) {
|
|
23260
23260
|
return _vm.ontouchend(_vm.item);
|
|
23261
|
-
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img" }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon)
|
|
23261
|
+
} } }, [_vm.editStatus == "minus" || _vm.editStatus == "plus" && _vm.state ? _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img" }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon) } }), _c("van-badge", { staticClass: "ind-app-item-icon-imgbadge", attrs: { "color": "#999" }, scopedSlots: _vm._u([{ key: "content", fn: function() {
|
|
23262
23262
|
return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
|
|
23263
|
-
}, proxy: true }], null, false, 1274909998) })], 1)]) : _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img" }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon)
|
|
23263
|
+
}, proxy: true }], null, false, 1274909998) })], 1)]) : _c("div", { staticClass: "ind-app-item-icon" }, [_c("div", { staticClass: "ind-app-item-icon-img" }, [_c("img", { attrs: { "src": _vm.getImg(_vm.item.meta.icon) } })])]), _c("div", { class: ["ind-app-item-title", _vm.$config.ellipsis ? "ellipsis" : ""] }, [_vm._v(" " + _vm._s(_vm.item.meta.title) + " ")])]);
|
|
23264
23264
|
};
|
|
23265
23265
|
var staticRenderFns$8 = [];
|
|
23266
23266
|
const __vue2_script$8 = {
|
|
@@ -23276,7 +23276,6 @@ const __vue2_script$8 = {
|
|
|
23276
23276
|
computed: {},
|
|
23277
23277
|
methods: {
|
|
23278
23278
|
getImg(uri) {
|
|
23279
|
-
console.log(location.origin + uri);
|
|
23280
23279
|
const isHb2 = location.pathname.includes("scyxweb");
|
|
23281
23280
|
return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${uri}`;
|
|
23282
23281
|
},
|
|
@@ -28143,10 +28142,12 @@ var render$5 = function() {
|
|
|
28143
28142
|
var _h = _vm.$createElement;
|
|
28144
28143
|
var _c = _vm._self._c || _h;
|
|
28145
28144
|
return _c("div", { staticClass: "ind-myApp-slim" }, [_c("div", { staticClass: "ind-myApp-slim-content" }, [_c("div", { staticClass: "ind-myApp-slim-content-title" }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("div", { staticClass: "ind-myApp-slim-content-center", on: { "click": _vm.open } }, [!_vm.expanded ? _c("div", { staticClass: "ind-myApp-slim-icon-group" }, [_vm._l(_vm.displayedIcons, function(icon2, index2) {
|
|
28146
|
-
return _c("div", { key: index2, staticClass: "ind-myApp-slim-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "50%" }, attrs: { "src": _vm.getImg(icon2.meta.icon)
|
|
28145
|
+
return _c("div", { key: index2, staticClass: "ind-myApp-slim-icon" }, [_c("img", { staticStyle: { "height": "100%", "width": "100%", "border-radius": "50%", "background-color": "#fff" }, attrs: { "src": _vm.getImg(icon2.meta.icon) } })]);
|
|
28147
28146
|
}), _vm.showMoreIcon ? _c("div", { staticClass: "ind-myApp-slim-icon" }, [_vm._v(" " + _vm._s("...") + " ")]) : _vm._e()], 2) : _vm._e(), _vm.icons.length !== 0 ? _c("van-icon", { staticClass: "ind-myApp-slim-toggle-icon", class: { "ind-myApp-slim-rotate-down": _vm.expanded }, attrs: { "name": "arrow" } }) : _vm._e()], 1), _c("div", { staticClass: "ind-myApp-slim-content-button" }, [_c("div", { staticClass: "ind-myApp-slim-content-button-btn", on: { "click": _vm.edit } }, [_vm._v("\u7F16\u8F91")])])]), _vm.expanded ? _c("div", { staticStyle: { "width": "100%", "height": "auto", "background-color": "#fff" } }, [_c("van-swipe", { attrs: { "show-indicators": true, "loop": false, "indicator-color": "#005aaf" } }, _vm._l(_vm.list, function(page, pageIdx) {
|
|
28148
28147
|
return _c("van-swipe-item", { key: pageIdx }, [_c("div", { style: { paddingBottom: _vm.list.length > 1 ? "30px" : "0" } }, [_c("div", { staticClass: "ind-myApp-slim-content-content" }, _vm._l(page, function(item2, itemIdx) {
|
|
28149
|
-
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-content-content-item"
|
|
28148
|
+
return _c("div", { key: itemIdx, staticClass: "ind-myApp-slim-content-content-item", style: {
|
|
28149
|
+
width: "calc(100% / " + _vm.rowAppCount + ")"
|
|
28150
|
+
} }, [_c("apps-item", { attrs: { "item": item2, "state": item2.state, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
28150
28151
|
}), 0)])]);
|
|
28151
28152
|
}), 1)], 1) : _vm._e()]);
|
|
28152
28153
|
};
|
|
@@ -28183,11 +28184,14 @@ const __vue2_script$5 = {
|
|
|
28183
28184
|
moreCount() {
|
|
28184
28185
|
const count5 = this.icons.length - 9;
|
|
28185
28186
|
return count5 > 99 ? "99" : count5;
|
|
28187
|
+
},
|
|
28188
|
+
rowAppCount() {
|
|
28189
|
+
var _a, _b;
|
|
28190
|
+
return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.rowAppCount) || 5;
|
|
28186
28191
|
}
|
|
28187
28192
|
},
|
|
28188
28193
|
methods: {
|
|
28189
28194
|
getImg(uri) {
|
|
28190
|
-
console.log(location.origin + uri);
|
|
28191
28195
|
const isHb2 = location.pathname.includes("scyxweb");
|
|
28192
28196
|
return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${uri}`;
|
|
28193
28197
|
},
|
|
@@ -28252,12 +28256,32 @@ var render$4 = function() {
|
|
|
28252
28256
|
}), 0)]), _c("div", { staticClass: "ind-m-custom-tabs-content" }, [_c("div", { staticClass: "ind-m-custom-sidebar" }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
28253
28257
|
return _c("div", { key: index2, class: ["ind-m-sidebar-item", { active: _vm.activeKey === index2 }], on: { "click": function($event) {
|
|
28254
28258
|
return _vm.handleSidebarClick(index2);
|
|
28255
|
-
} } }, [_c("span", {
|
|
28256
|
-
}), 0), _c("div", { ref: "scrollContainer", staticClass: "ind-m-apps-container", staticStyle: { "padding-top": "0px", "padding-bottom": "
|
|
28257
|
-
return _c("div", { key: index2, staticClass: "ind-m-menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "ind-m-divider-container" }, [_c("van-divider", { staticClass: "ind-m-custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", {
|
|
28258
|
-
|
|
28259
|
-
|
|
28260
|
-
|
|
28259
|
+
} } }, [_c("span", { class: ["ind-m-sidebar-text", { active: _vm.activeKey === index2 }] }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])]);
|
|
28260
|
+
}), 0), _c("div", { ref: "scrollContainer", staticClass: "ind-m-apps-container", staticStyle: { "padding-top": "0px", "padding-bottom": "300px", "height": "100%" } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
|
|
28261
|
+
return _c("div", { key: index2, staticClass: "ind-m-menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "ind-m-divider-container" }, [_c("van-divider", { staticClass: "ind-m-custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", { style: {
|
|
28262
|
+
display: "flex",
|
|
28263
|
+
flexWrap: "wrap",
|
|
28264
|
+
flexDirection: _vm.getTreeTotalDepth(item2) > 2 ? "column" : "row"
|
|
28265
|
+
} }, _vm._l((((_vm.apps_menus[_vm.active] || {}).children || [])[index2] || {}).children || [], function(subItem, subIndex) {
|
|
28266
|
+
return _c("div", { key: "level3-" + subIndex, style: {
|
|
28267
|
+
width: _vm.getTreeTotalDepth(item2) > 2 ? "100%" : "calc(100% / 3)",
|
|
28268
|
+
height: "100%",
|
|
28269
|
+
backgroundColor: "#fff",
|
|
28270
|
+
display: "flex",
|
|
28271
|
+
alignItems: _vm.getTreeTotalDepth(item2) > 2 ? null : "center",
|
|
28272
|
+
justifyContent: "center",
|
|
28273
|
+
flexDirection: _vm.getTreeTotalDepth(item2) > 2 ? "column" : "row",
|
|
28274
|
+
marginBottom: _vm.getTreeTotalDepth(item2) > 2 ? "20px" : "0px"
|
|
28275
|
+
} }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } }) : _vm._e(), subItem.children ? _c("div", { staticClass: "ind-m-category-header" }, [_c("div", { staticClass: "ind-m-category-indicator" }), _c("div", { staticClass: "ind-m-category-title" }, [_vm._v(_vm._s(subItem.meta.title))])]) : _vm._e(), subItem.children ? _c("div", { style: { display: "flex", flexWrap: "wrap" } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children[index2] && _vm.apps_menus[_vm.active].children[index2].children[subIndex] && _vm.apps_menus[_vm.active].children[index2].children[subIndex].children || [], function(menu) {
|
|
28276
|
+
return _c("div", { key: menu.meta.permissionId, style: {
|
|
28277
|
+
width: "calc(100% / 3)",
|
|
28278
|
+
height: "100%",
|
|
28279
|
+
backgroundColor: "#fff",
|
|
28280
|
+
display: "flex",
|
|
28281
|
+
alignItems: "center",
|
|
28282
|
+
justifyContent: "center"
|
|
28283
|
+
} }, [_c("apps-item", { attrs: { "item": menu, "state": menu.state, "title": menu.meta.title, "editStatus": "off" }, on: { "touchend": _vm.routeTo } })], 1);
|
|
28284
|
+
}), 0) : _vm._e()], 1);
|
|
28261
28285
|
}), 0)]);
|
|
28262
28286
|
}), 0)])]), _c("tabbar")], 1)], 1);
|
|
28263
28287
|
};
|
|
@@ -28344,6 +28368,18 @@ const __vue2_script$4 = {
|
|
|
28344
28368
|
}
|
|
28345
28369
|
},
|
|
28346
28370
|
methods: {
|
|
28371
|
+
getTreeTotalDepth(node) {
|
|
28372
|
+
if (!node)
|
|
28373
|
+
return 0;
|
|
28374
|
+
if (!node.children || node.children.length === 0)
|
|
28375
|
+
return 1;
|
|
28376
|
+
let maxDepth = 0;
|
|
28377
|
+
for (const child of node.children) {
|
|
28378
|
+
const childDepth = this.getTreeTotalDepth(child);
|
|
28379
|
+
maxDepth = Math.max(maxDepth, childDepth);
|
|
28380
|
+
}
|
|
28381
|
+
return maxDepth + 1;
|
|
28382
|
+
},
|
|
28347
28383
|
edit() {
|
|
28348
28384
|
this.$router.push({
|
|
28349
28385
|
name: "myApp"
|
|
@@ -28728,6 +28764,15 @@ const __vue2_script$3 = {
|
|
|
28728
28764
|
scrollToContent(index2) {
|
|
28729
28765
|
this.$nextTick(() => {
|
|
28730
28766
|
const container = document.querySelector(".ind-my-app-container");
|
|
28767
|
+
if (!container)
|
|
28768
|
+
return;
|
|
28769
|
+
if (index2 < 0 || index2 >= container.children.length) {
|
|
28770
|
+
container.scrollTo({
|
|
28771
|
+
top: 0,
|
|
28772
|
+
behavior: "smooth"
|
|
28773
|
+
});
|
|
28774
|
+
return;
|
|
28775
|
+
}
|
|
28731
28776
|
const targetSection = container.children[index2];
|
|
28732
28777
|
if (targetSection) {
|
|
28733
28778
|
const scrollPosition = targetSection.offsetTop - 3;
|
|
@@ -31291,7 +31336,7 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
31291
31336
|
});
|
|
31292
31337
|
}
|
|
31293
31338
|
if (!((_a = Vue2.prototype.$config) == null ? void 0 : _a.systemDefaultConfig)) {
|
|
31294
|
-
axios$3.get(`/user-manage-server/anon/system/qrySystemConfig
|
|
31339
|
+
axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
31295
31340
|
var _a2;
|
|
31296
31341
|
try {
|
|
31297
31342
|
const ret = JSON.parse(((_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.settingInfo) || "{}");
|