@indfnd/common-mobile 0.0.87 → 0.0.89

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 CHANGED
@@ -2,6 +2,20 @@
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.89](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.88...v0.0.89) (2025-08-29)
6
+
7
+ ### [0.0.88](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.87...v0.0.88) (2025-08-28)
8
+
9
+
10
+ ### Features
11
+
12
+ * 图片路径 ([b8b8f0f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b8b8f0f0b725f52259614fc30e0191ec182137a7))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 新应用广场优化 ([6ca01d9](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/6ca01d9d0ed61c6c62fc6882c700278ea4741802))
18
+
5
19
  ### [0.0.87](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.86...v0.0.87) (2025-08-22)
6
20
 
7
21
 
@@ -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.86";
5
+ const version$2 = "0.0.88";
6
6
  const author$1 = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -64028,7 +64028,7 @@ var render$5 = function() {
64028
64028
  return _vm.ontouchend(_vm.item);
64029
64029
  } } }, [_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() {
64030
64030
  return [_c("van-icon", { staticStyle: { "line-height": "1.5" }, attrs: { "name": _vm.editStatus } })];
64031
- }, 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))])])]);
64031
+ }, 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", { staticStyle: { "font-size": "12px" } }, [_vm._v(_vm._s(_vm.item.meta.title))])])]);
64032
64032
  };
64033
64033
  var staticRenderFns$5 = [];
64034
64034
  const __vue2_script$5 = {
@@ -68910,24 +68910,32 @@ var render$2 = function() {
68910
68910
  var _vm = this;
68911
68911
  var _h = _vm.$createElement;
68912
68912
  var _c = _vm._self._c || _h;
68913
- return _c("div", { staticClass: "app-center" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } })], 1), _c("div", { staticClass: "app-page" }, [_c("van-sticky", { staticClass: "myapp-sticky", attrs: { "offset-top": 48 } }, [_c("div", { ref: "myapp", staticClass: "myapp", style: { width: "-webkit-fill-available" } }, [_c("div", { staticClass: "ind-panel" }, [_c("div", [_c("div", { staticClass: "ind-panel-title" }, [_vm._v(" \u6211\u7684\u5E94\u7528 "), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": this.editButtonName }, on: { "click": _vm.toggleEdit } })], 1)]), _c("draggable", { staticClass: "wrapper", attrs: { "options": { disabled: _vm.disableDraggable } }, model: { value: _vm.my_apps, callback: function($$v) {
68914
- _vm.my_apps = $$v;
68915
- }, expression: "my_apps" } }, [_c("transition-group", { staticClass: "my-app-list", staticStyle: { "display": "flex", "flex-wrap": "wrap" } }, _vm._l(_vm.my_apps, function(item2, idx) {
68916
- return _c("apps-item", { key: idx, staticClass: "item", staticStyle: { "width": "25%", "padding": "16px 8px", "box-sizing": "border-box" }, attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
68917
- }), 1)], 1)], 1)])]), _c("van-tabs", { staticClass: "custom-tabs", attrs: { "line-height": "3px", "color": "#1989fa", "title-active-color": "#000", "offset-top": _vm.offsetTop }, model: { value: _vm.active, callback: function($$v) {
68913
+ return _c("div", { staticClass: "app-center" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } })], 1), _c("div", { staticClass: "app-page" }, [_c("div", { staticClass: "placeholder" }, [_c("van-search", { attrs: { "placeholder": "\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD", "shape": "round" }, on: { "search": _vm.onSearch, "clear": _vm.onClear }, scopedSlots: _vm._u([{ key: "right-icon", fn: function() {
68914
+ return [_c("div", { on: { "click": _vm.onSearch } }, [_vm._v("\u641C\u7D22")])];
68915
+ }, proxy: true }, { key: "left-icon", fn: function() {
68916
+ return [_c("van-icon", { attrs: { "name": "search" } })];
68917
+ }, proxy: true }]), model: { value: _vm.searchValue, callback: function($$v) {
68918
+ _vm.searchValue = $$v;
68919
+ }, expression: "searchValue" } })], 1), _c("van-popup", { attrs: { "round": true }, model: { value: _vm.show, callback: function($$v) {
68920
+ _vm.show = $$v;
68921
+ }, expression: "show" } }, [_c("div", { staticStyle: { "width": "80vw", "height": "45vh", "max-height": "50vh", "overflow-y": "auto", "display": "flex", "flex-wrap": "wrap" } }, _vm._l(_vm.searchApp, function(item2, idx) {
68922
+ return _c("apps-item", { key: idx, staticClass: "item", staticStyle: { "width": "25%", "padding": "16px 8px", "box-sizing": "border-box", "height": "auto" }, attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
68923
+ }), 1)]), _c("div", { staticClass: "myApp-container" }, [_c("div", { staticStyle: { "width": "100%", "height": "100%", "border-radius": "8px", "overflow": "hidden" } }, [_c("div", { staticClass: "myApp-container-top" }, [_c("div", { staticStyle: { "font-weight": "bold", "font-size": "12px", "color": "black" } }, [_vm._v("\u6211\u7684\u5E94\u7528")]), _c("van-button", { staticClass: "edit-btn", attrs: { "size": "small", "type": "info", "text": this.editButtonName }, on: { "click": _vm.toggleEdit } })], 1), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.my_apps.length > 0, expression: "my_apps.length > 0" }], staticClass: "simple-apps-scroll" }, [_c("div", { staticClass: "apps-wrapper" }, _vm._l(_vm.my_apps, function(item2, idx) {
68924
+ return _c("apps-item", { key: idx, staticClass: "simple-app-card", attrs: { "item": item2, "state": item2.state, "editStatus": _vm.currentEditStatus == "on" ? "minus" : "off" }, on: { "touchend": _vm.rmFromMyAppsClick } });
68925
+ }), 1)])])]), _c("van-tabs", { staticClass: "custom-tabs", attrs: { "line-height": "3px", "color": "#1989fa", "title-active-color": "#000" }, model: { value: _vm.active, callback: function($$v) {
68918
68926
  _vm.active = $$v;
68919
68927
  }, expression: "active" } }, _vm._l(_vm.apps_menus, function(tab, idx) {
68920
- return _c("van-tab", { key: "tab" + idx, staticClass: "ind-panel", scopedSlots: _vm._u([{ key: "title", fn: function() {
68928
+ return _c("van-tab", { key: "tab" + idx, staticClass: "ind-panel", staticStyle: { "height": "calc(100vh - 44px)" }, scopedSlots: _vm._u([{ key: "title", fn: function() {
68921
68929
  return [_c("span", { class: ["tab-title", { "active-tab": _vm.active === idx }] }, [_vm._v(" " + _vm._s(tab.meta.title) + " ")])];
68922
68930
  }, proxy: true }], null, true) }, [_c("div", { staticClass: "tab-content" }, [_c("van-sidebar", { staticClass: "sub-sidebar", model: { value: _vm.activeKey, callback: function($$v) {
68923
68931
  _vm.activeKey = $$v;
68924
68932
  }, expression: "activeKey" } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
68925
- return _c("van-sidebar-item", { key: index2, staticStyle: { "font-size": "13px" }, attrs: { "title": item2.meta.title }, on: { "click": function($event) {
68933
+ return _c("van-sidebar-item", { key: index2, staticStyle: { "font-size": "15px" }, attrs: { "title": item2.meta.title }, on: { "click": function($event) {
68926
68934
  return _vm.handleSidebarClick(index2);
68927
68935
  } } });
68928
- }), 1), _c("div", { ref: "scrollContainer", refInFor: true, staticClass: "apps-container", on: { "scroll": _vm.handleRightScroll } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
68936
+ }), 1), _c("div", { ref: "scrollContainer", refInFor: true, staticClass: "apps-container", style: { height: _vm.my_apps.length > 0 ? "calc(-135px + 80%)" : "80%" }, on: { "scroll": _vm.handleRightScroll } }, _vm._l(_vm.apps_menus[_vm.active] && _vm.apps_menus[_vm.active].children || [], function(item2, index2) {
68929
68937
  return _c("div", { key: index2, staticClass: "menu-section", attrs: { "id": "section-" + _vm.active + "-" + index2, "data-index": index2 } }, [_c("div", { staticClass: "divider-container" }, [_c("van-divider", { staticClass: "custom-divider" }, [_vm._v(" " + _vm._s(item2.meta.title) + " ")])], 1), _c("div", { staticClass: "menu-section-content" }, _vm._l((((_vm.apps_menus[_vm.active] || {}).children || [])[index2] || {}).children || [], function(subItem, subIndex) {
68930
- return _c("div", { key: "level3-" + subIndex, style: { width: !subItem.children ? "33.33%" : "100%" } }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } }) : _vm._e(), subItem.children ? _c("div", { staticStyle: { "display": "flex", "align-items": "center" } }, [_c("van-icon", { staticStyle: { "display": "block" }, attrs: { "name": "stop", "color": "#1989fa" } }), _c("div", { staticStyle: { "font-size": "12px", "color": "#666" } }, [_vm._v(" " + _vm._s(subItem.meta.title) + " ")])], 1) : _vm._e(), subItem.children ? _c("van-grid", { attrs: { "border": false, "clickable": "", "gutter": 0, "column-num": 3 } }, _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) {
68938
+ return _c("div", { key: "level3-" + subIndex, style: { width: !subItem.children ? "33.33%" : "100%" } }, [!subItem.children ? _c("apps-item", { attrs: { "item": subItem, "state": subItem.state, "title": subItem.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } }) : _vm._e(), subItem.children ? _c("div", { staticStyle: { "display": "flex", "align-items": "center" } }, [_c("div", { staticStyle: { "width": "3px", "height": "10px", "background": "#1989fa", "margin-right": "5px", "border-radius": "4px" } }), _c("div", { staticStyle: { "font-size": "13px", "color": "#666" } }, [_vm._v(" " + _vm._s(subItem.meta.title) + " ")])]) : _vm._e(), subItem.children ? _c("van-grid", { attrs: { "border": false, "clickable": "", "gutter": 0, "column-num": 3 } }, _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) {
68931
68939
  return _c("van-grid-item", { key: menu.meta.permissionId, staticClass: "menu" }, [_c("apps-item", { attrs: { "item": menu, "state": menu.state, "title": menu.meta.title, "editStatus": _vm.currentEditStatus == "on" ? "plus" : "off" }, on: { "touchend": _vm.addToMyAppsClick } })], 1);
68932
68940
  }), 1) : _vm._e()], 1);
68933
68941
  }), 0)]);
@@ -68940,6 +68948,9 @@ const __vue2_script$2 = {
68940
68948
  name: "IndMApps",
68941
68949
  data() {
68942
68950
  return {
68951
+ show: false,
68952
+ currentEditStatus: "off",
68953
+ searchValue: "",
68943
68954
  isScrollingProgrammatically: false,
68944
68955
  activeKey: 0,
68945
68956
  active: 0,
@@ -68947,30 +68958,24 @@ const __vue2_script$2 = {
68947
68958
  apps_menus: [],
68948
68959
  my_apps: [],
68949
68960
  title: "",
68950
- currentEditStatus: "off",
68951
- userAppTip: "\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528",
68952
68961
  editButtonName: "\u7F16\u8F91",
68953
- editClass: "",
68954
68962
  rmFromMyAppsClick: this.routeTo,
68955
68963
  addToMyAppsClick: this.routeTo,
68956
68964
  offsetTop: "246px",
68957
- maxApps: 8
68965
+ maxApps: 8,
68966
+ searchApp: []
68958
68967
  };
68959
68968
  },
68960
68969
  watch: {
68961
68970
  currentEditStatus(value17) {
68962
68971
  switch (value17) {
68963
68972
  case "on": {
68964
- this.userAppTip = "\u62D6\u62FD\u53EF\u4EE5\u6392\u5E8F";
68965
68973
  this.editButtonName = "\u5B8C\u6210";
68966
- this.editClass = "editing";
68967
68974
  this.rmFromMyAppsClick = this.rmFromMyApps, this.addToMyAppsClick = this.addToMyApps, this.disableDraggable = false;
68968
68975
  break;
68969
68976
  }
68970
68977
  case "off": {
68971
- this.userAppTip = "\u70B9\u51FB\u7F16\u8F91\u6DFB\u52A0\u6211\u7684\u5E94\u7528";
68972
68978
  this.editButtonName = "\u7F16\u8F91";
68973
- this.editClass = "";
68974
68979
  this.rmFromMyAppsClick = this.routeTo, this.addToMyAppsClick = this.routeTo, this.saveMyApps();
68975
68980
  this.disableDraggable = true;
68976
68981
  break;
@@ -69013,6 +69018,42 @@ const __vue2_script$2 = {
69013
69018
  }, 100);
69014
69019
  },
69015
69020
  methods: {
69021
+ onSearch() {
69022
+ if (!this.searchValue.trim()) {
69023
+ this.show = false;
69024
+ this.searchApp = [];
69025
+ return;
69026
+ }
69027
+ const searchTerm = this.searchValue.toLowerCase().trim();
69028
+ const allLeafNodes = this.findObjectsWithoutChildren(this.apps_menus).filter(
69029
+ (item2) => item2.path !== "" || item2.uri !== ""
69030
+ );
69031
+ this.searchApp = allLeafNodes.filter(
69032
+ (item2) => {
69033
+ var _a, _b;
69034
+ return (_b = (_a = item2.meta) == null ? void 0 : _a.title) == null ? void 0 : _b.toLowerCase().includes(searchTerm);
69035
+ }
69036
+ );
69037
+ this.show = this.searchApp.length > 0;
69038
+ },
69039
+ onClear() {
69040
+ this.searchValue = "";
69041
+ },
69042
+ findObjectsWithoutChildren(arr) {
69043
+ const result = [];
69044
+ function traverse(nodes) {
69045
+ for (const node of nodes) {
69046
+ if (!node.children || node.children.length === 0) {
69047
+ result.push(node);
69048
+ }
69049
+ if (node.children && node.children.length > 0) {
69050
+ traverse(node.children);
69051
+ }
69052
+ }
69053
+ }
69054
+ traverse(arr);
69055
+ return result;
69056
+ },
69016
69057
  handleSidebarClick(index2) {
69017
69058
  this.$nextTick(() => {
69018
69059
  const scrollContainer = Array.isArray(this.$refs.scrollContainer) ? this.$refs.scrollContainer[0] : this.$refs.scrollContainer;
@@ -69244,16 +69285,17 @@ var render82 = function() {
69244
69285
  var _c = _vm._self._c || _h;
69245
69286
  return _c("div", { staticClass: "app-page" }, [_c("van-sticky", [_c("van-nav-bar", { attrs: { "fixed": true, "left-arrow": "", "placeholder": true, "safe-area-inset-top": true, "title": "\u8BBE\u7F6E" }, on: { "click-left": _vm.onClickLeft } })], 1), _c("van-cell-group", { attrs: { "title": "\u8BBE\u7F6E" } }, [_c("van-cell", { attrs: { "title": "vconsole\u8C03\u8BD5" } }, [_c("van-switch", { model: { value: _vm.vconsoleChecked, callback: function($$v) {
69246
69287
  _vm.vconsoleChecked = $$v;
69247
- }, expression: "vconsoleChecked" } })], 1), _c("van-cell", { attrs: { "title": "\u8FDC\u7A0B\u8C03\u8BD5" } }, [_c("van-switch", { model: { value: _vm.chiiChecked, callback: function($$v) {
69288
+ }, expression: "vconsoleChecked" } })], 1), _vm.isHb ? _c("van-cell", { attrs: { "title": "\u8FDC\u7A0B\u8C03\u8BD5" } }, [_c("van-switch", { model: { value: _vm.chiiChecked, callback: function($$v) {
69248
69289
  _vm.chiiChecked = $$v;
69249
- }, expression: "chiiChecked" } })], 1)], 1)], 1);
69290
+ }, expression: "chiiChecked" } })], 1) : _vm._e()], 1)], 1);
69250
69291
  };
69251
69292
  var staticRenderFns = [];
69252
69293
  const __vue2_script = {
69253
69294
  data() {
69254
69295
  return {
69255
69296
  vconsoleChecked: false,
69256
- chiiChecked: false
69297
+ chiiChecked: false,
69298
+ isHb: location.pathname.includes("scyxweb")
69257
69299
  };
69258
69300
  },
69259
69301
  watch: {