@indfnd/common-mobile 0.0.73 → 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 CHANGED
@@ -2,6 +2,26 @@
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
+
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)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * 适配湖北移动端单应用模式改造 ([54c6d5f](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/54c6d5f3c9f30481547f479cbe6ef9809bd04bc5))
24
+
5
25
  ### [0.0.73](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.72...v0.0.73) (2025-06-07)
6
26
 
7
27
  ### [0.0.72](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.71...v0.0.72) (2025-06-07)
@@ -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.72";
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))])])]);
@@ -69203,11 +69205,45 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
69203
69205
  return;
69204
69206
  let appInfo = getSessionStorage("appInfo");
69205
69207
  list2.forEach((item2) => {
69206
- const { permissionId, label: title4, appId, pid, icon, type: type2, uri, permissionValue, extendProps } = item2;
69208
+ const {
69209
+ permissionId,
69210
+ label: title4,
69211
+ appId,
69212
+ pid,
69213
+ icon,
69214
+ type: type2,
69215
+ uri,
69216
+ permissionValue,
69217
+ extendProps
69218
+ } = item2;
69207
69219
  if (appId != appInfo.appId)
69208
69220
  return;
69209
69221
  const name2 = permissionValue;
69210
- if (pid === parentId) {
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)) {
69211
69247
  if (isMenuPermissionType(type2)) {
69212
69248
  let node = {
69213
69249
  type: type2,
@@ -70458,6 +70494,7 @@ axios$1.isAxiosError = isAxiosError;
70458
70494
  axios$2.exports = axios$1;
70459
70495
  axios$2.exports.default = axios$1;
70460
70496
  var axios = axios$2.exports;
70497
+ const isHb = location.pathname.includes("scyxweb");
70461
70498
  const Cookie = {
70462
70499
  set: function(key, value17, exdays) {
70463
70500
  if (key.indexOf("=") !== -1) {
@@ -70529,7 +70566,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70529
70566
  const LOGIN_PAGE_NAME = config.loginRouteName;
70530
70567
  const routerOptionsBak = _.cloneDeep(router.options);
70531
70568
  window.sessionNotValidHandler = async function() {
70532
- if (typeof window.Code != "undefined") {
70569
+ if (typeof window.Code != "undefined" || isHb) {
70533
70570
  await pluginLogin(store2);
70534
70571
  await store2.dispatch("getUserInfo");
70535
70572
  await store2.dispatch("getAppListData");
@@ -70586,7 +70623,6 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70586
70623
  }
70587
70624
  } catch (error) {
70588
70625
  console.log("router2");
70589
- console.log(error);
70590
70626
  next2({ name: LOGIN_PAGE_NAME });
70591
70627
  }
70592
70628
  Spin.hide();
@@ -70607,7 +70643,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70607
70643
  }
70608
70644
  }
70609
70645
  const code2 = getQueryVariable("code");
70610
- if (typeof window.Code != "undefined" || code2) {
70646
+ if (typeof window.Code != "undefined" || code2 || isHb) {
70611
70647
  if (!token) {
70612
70648
  token = await pluginLogin(store2);
70613
70649
  store2.dispatch("loginSuccess", token);
@@ -70652,27 +70688,25 @@ const pluginLogin = (store2) => {
70652
70688
  Cookie.set("TOKEN_KEY", "", 1);
70653
70689
  store2.commit("setUserName", "");
70654
70690
  store2.commit("setToken", "");
70655
- return new Promise((resolve, reject) => {
70656
- console.log("1111`111");
70657
- const code2 = getQueryVariable("code");
70658
- if (code2) {
70659
- 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) => {
70660
70695
  setToken(resp.token);
70661
70696
  resolve(resp.token);
70697
+ localStorage.setItem("v8-token", resp.token);
70698
+ sessionStorage.setItem("lambo-token", resp.token);
70662
70699
  }).catch((e) => {
70663
70700
  console.log("\u83B7\u53D6token\u5F02\u5E38", e);
70664
- Message.error({
70665
- 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",
70666
- duration: 10,
70667
- closable: true
70668
- });
70669
70701
  reject(0);
70670
70702
  });
70671
- } else {
70672
- Code.postMessage("");
70673
- window.getCode = function(res) {
70674
- console.log("getCode res", res);
70675
- axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
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) => {
70676
70710
  setToken(resp.token);
70677
70711
  resolve(resp.token);
70678
70712
  }).catch((e) => {
@@ -70684,9 +70718,26 @@ const pluginLogin = (store2) => {
70684
70718
  });
70685
70719
  reject(0);
70686
70720
  });
70687
- };
70688
- }
70689
- });
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
+ }
70690
70741
  };
70691
70742
  window.getQueryVariable = function getQueryVariable2(variable) {
70692
70743
  var query = window.location.search.substring(1);
@@ -70990,8 +71041,8 @@ var app = {
70990
71041
  let appInfo = appList.find((item2) => {
70991
71042
  var _a;
70992
71043
  return ((_a = item2.application) == null ? void 0 : _a.appBizCode) == "mobile-main";
70993
- });
70994
- appId = appInfo.appId || "";
71044
+ }) || {};
71045
+ appId = (appInfo == null ? void 0 : appInfo.appId) || "";
70995
71046
  }
70996
71047
  if (!appId) {
70997
71048
  const appInfo = getSessionStorage("appInfo");
@@ -71077,6 +71128,12 @@ const install = function(Vue2, opts = { theme: "" }) {
71077
71128
  return;
71078
71129
  const theme = opts.theme || getDefaultTheme();
71079
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
+ }
71080
71137
  Object.keys(components).forEach((key) => {
71081
71138
  Vue2.component(`IndM${key}`, components[key]);
71082
71139
  });