@indfnd/common-mobile 1.0.19 → 1.0.21

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,15 @@
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.21](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.20...v1.0.21) (2026-01-21)
6
+
7
+ ### [1.0.20](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.19...v1.0.20) (2026-01-21)
8
+
9
+
10
+ ### Features
11
+
12
+ * 移动端图标获取和个性化配置 ([b9cc70a](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b9cc70a21e9316527fc9e5a3038ffa2cfb4d85cf))
13
+
5
14
  ### [1.0.19](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.18...v1.0.19) (2026-01-20)
6
15
 
7
16
 
@@ -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.18";
6
+ const version$2 = "1.0.20";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -1183,6 +1183,45 @@ function Debug() {
1183
1183
  }
1184
1184
  }
1185
1185
  function getIconByPositionId(options) {
1186
+ var _a;
1187
+ try {
1188
+ const { positionId, config: config2 } = options || {};
1189
+ if (!config2 || !positionId) {
1190
+ return null;
1191
+ }
1192
+ const systemConfig = config2.systemDefaultConfig || {};
1193
+ const iconList = systemConfig.iconList || {};
1194
+ const iconTableData = systemConfig.iconTableData || [];
1195
+ let fileUrl = null;
1196
+ if (iconList.hasOwnProperty(positionId)) {
1197
+ const fileId = iconList[positionId];
1198
+ if (fileId && typeof fileId === "string") {
1199
+ fileUrl = `/user-manage-server/oss/file/get/${fileId}`;
1200
+ }
1201
+ }
1202
+ if (!fileUrl) {
1203
+ const target2 = iconTableData.find((item2) => {
1204
+ return (item2 == null ? void 0 : item2.positionId) && String(item2.positionId) === positionId;
1205
+ });
1206
+ if (target2 == null ? void 0 : target2.iconFielId) {
1207
+ try {
1208
+ const iconFileList = JSON.parse(target2.iconFielId);
1209
+ if (Array.isArray(iconFileList) && ((_a = iconFileList[0]) == null ? void 0 : _a.fileUrl)) {
1210
+ fileUrl = iconFileList[0].fileUrl;
1211
+ }
1212
+ } catch (e) {
1213
+ console.error(
1214
+ `[getIconByPositionId] \u89E3\u6790 iconFielId \u5931\u8D25\uFF08positionId: ${positionId}\uFF09:`,
1215
+ e
1216
+ );
1217
+ }
1218
+ }
1219
+ }
1220
+ return fileUrl || null;
1221
+ } catch (e) {
1222
+ console.error("[getIconByPositionId] \u89E3\u6790\u914D\u7F6E\u5931\u8D25:", e);
1223
+ return null;
1224
+ }
1186
1225
  }
1187
1226
  const defaultSpan = 24;
1188
1227
  const showMorePosition = 3;
@@ -4530,7 +4569,6 @@ var normalMerge = ["attrs", "props", "domProps"], toArrayMerge = ["class", "styl
4530
4569
  };
4531
4570
  };
4532
4571
  var helper = mergeJsxProps;
4533
- var _mergeJSXProps = helper;
4534
4572
  function gen(name2, mods) {
4535
4573
  if (!mods) {
4536
4574
  return "";
@@ -4982,7 +5020,7 @@ function Overlay(h, props, slots2, ctx) {
4982
5020
  "attrs": {
4983
5021
  "name": "van-fade"
4984
5022
  }
4985
- }, [h("div", _mergeJSXProps([{
5023
+ }, [h("div", helper([{
4986
5024
  "directives": [{
4987
5025
  name: "show",
4988
5026
  value: props.show
@@ -5453,7 +5491,7 @@ function Info(h, props, slots2, ctx) {
5453
5491
  if (!dot && !showInfo) {
5454
5492
  return;
5455
5493
  }
5456
- return h("div", _mergeJSXProps([{
5494
+ return h("div", helper([{
5457
5495
  "class": bem$1w({
5458
5496
  dot
5459
5497
  })
@@ -5480,7 +5518,7 @@ function Icon(h, props, slots2, ctx) {
5480
5518
  var _props$badge;
5481
5519
  var name2 = correctName(props.name);
5482
5520
  var imageIcon = isImage(name2);
5483
- return h(props.tag, _mergeJSXProps([{
5521
+ return h(props.tag, helper([{
5484
5522
  "class": [props.classPrefix, imageIcon ? "" : props.classPrefix + "-" + name2],
5485
5523
  "style": {
5486
5524
  color: props.color,
@@ -5656,7 +5694,7 @@ function Loading(h, props, slots2, ctx) {
5656
5694
  style12.width = iconSize;
5657
5695
  style12.height = iconSize;
5658
5696
  }
5659
- return h("div", _mergeJSXProps([{
5697
+ return h("div", helper([{
5660
5698
  "class": bem$1t([type2, {
5661
5699
  vertical: props.vertical
5662
5700
  }])
@@ -5767,7 +5805,7 @@ function ActionSheet(h, props, slots2, ctx) {
5767
5805
  }, [description2]);
5768
5806
  }
5769
5807
  }
5770
- return h(Popup, _mergeJSXProps([{
5808
+ return h(Popup, helper([{
5771
5809
  "class": bem$1s(),
5772
5810
  "attrs": {
5773
5811
  "position": "bottom",
@@ -6179,7 +6217,7 @@ var PickerColumn = createComponent$1A({
6179
6217
  class: "van-ellipsis",
6180
6218
  domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
6181
6219
  };
6182
- return h("li", _mergeJSXProps([{}, data49]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
6220
+ return h("li", helper([{}, data49]), [_this4.slots("option", option2) || h("div", helper([{}, childData]))]);
6183
6221
  });
6184
6222
  }
6185
6223
  },
@@ -6906,7 +6944,7 @@ function Cell(h, props, slots2, ctx) {
6906
6944
  if (size2) {
6907
6945
  classes[size2] = size2;
6908
6946
  }
6909
- return h("div", _mergeJSXProps([{
6947
+ return h("div", helper([{
6910
6948
  "class": bem$1o(classes),
6911
6949
  "attrs": {
6912
6950
  "role": clickable ? "button" : null,
@@ -7315,7 +7353,7 @@ var Field = createComponent$1w({
7315
7353
  }]
7316
7354
  };
7317
7355
  if (type2 === "textarea") {
7318
- return h("textarea", _mergeJSXProps([{}, inputProps]));
7356
+ return h("textarea", helper([{}, inputProps]));
7319
7357
  }
7320
7358
  var inputType = type2;
7321
7359
  var inputMode;
@@ -7327,7 +7365,7 @@ var Field = createComponent$1w({
7327
7365
  inputType = "tel";
7328
7366
  inputMode = "numeric";
7329
7367
  }
7330
- return h("input", _mergeJSXProps([{
7368
+ return h("input", helper([{
7331
7369
  "attrs": {
7332
7370
  "type": inputType,
7333
7371
  "inputmode": inputMode
@@ -7843,7 +7881,7 @@ function Button(h, props, slots2, ctx) {
7843
7881
  }
7844
7882
  return content;
7845
7883
  }
7846
- return h(tag, _mergeJSXProps([{
7884
+ return h(tag, helper([{
7847
7885
  "style": style12,
7848
7886
  "class": classes,
7849
7887
  "attrs": {
@@ -8259,7 +8297,7 @@ var VanDialog = createComponent$1r({
8259
8297
  "class": bem$1i("content", {
8260
8298
  isolated: !hasTitle
8261
8299
  })
8262
- }, [h("div", _mergeJSXProps([{}, data49]))]);
8300
+ }, [h("div", helper([{}, data49]))]);
8263
8301
  }
8264
8302
  }
8265
8303
  },
@@ -9075,7 +9113,7 @@ function Tag(h, props, slots2, ctx) {
9075
9113
  "attrs": {
9076
9114
  "name": props.closeable ? "van-fade" : null
9077
9115
  }
9078
- }, [h("span", _mergeJSXProps([{
9116
+ }, [h("span", helper([{
9079
9117
  "key": "content",
9080
9118
  "style": style12,
9081
9119
  "class": bem$1d([classes, type2])
@@ -9304,7 +9342,7 @@ function AddressItem(h, props, slots2, ctx) {
9304
9342
  "on": {
9305
9343
  "click": onClick19
9306
9344
  }
9307
- }, [h(Cell$1, _mergeJSXProps([{
9345
+ }, [h(Cell$1, helper([{
9308
9346
  "attrs": {
9309
9347
  "border": false,
9310
9348
  "valueClass": bem$1b("value")
@@ -9362,7 +9400,7 @@ function AddressList(h, props, slots2, ctx) {
9362
9400
  }
9363
9401
  var List2 = genList(props.list);
9364
9402
  var DisabledList = genList(props.disabledList, true);
9365
- return h("div", _mergeJSXProps([{
9403
+ return h("div", helper([{
9366
9404
  "class": bem$1a()
9367
9405
  }, inherit(ctx)]), [slots2.top == null ? void 0 : slots2.top(), h(RadioGroup, {
9368
9406
  "attrs": {
@@ -10474,7 +10512,7 @@ var Image = createComponent$1e({
10474
10512
  return;
10475
10513
  }
10476
10514
  if (this.lazyLoad) {
10477
- return h("img", _mergeJSXProps([{
10515
+ return h("img", helper([{
10478
10516
  "ref": "image",
10479
10517
  "directives": [{
10480
10518
  name: "lazy",
@@ -10482,7 +10520,7 @@ var Image = createComponent$1e({
10482
10520
  }]
10483
10521
  }, imgData]));
10484
10522
  }
10485
- return h("img", _mergeJSXProps([{
10523
+ return h("img", helper([{
10486
10524
  "attrs": {
10487
10525
  "src": this.src
10488
10526
  },
@@ -10609,7 +10647,7 @@ function Card(h, props, slots2, ctx) {
10609
10647
  }, [slots2.footer()]);
10610
10648
  }
10611
10649
  }
10612
- return h("div", _mergeJSXProps([{
10650
+ return h("div", helper([{
10613
10651
  "class": bem$16()
10614
10652
  }, inherit(ctx, true)]), [h("div", {
10615
10653
  "class": bem$16("header")
@@ -11641,7 +11679,7 @@ var Cascader = createComponent$17({
11641
11679
  var _createNamespace$12 = createNamespace("cell-group"), createComponent$16 = _createNamespace$12[0], bem$$ = _createNamespace$12[1];
11642
11680
  function CellGroup(h, props, slots2, ctx) {
11643
11681
  var _ref;
11644
- var Group = h("div", _mergeJSXProps([{
11682
+ var Group = h("div", helper([{
11645
11683
  "class": [bem$$({
11646
11684
  inset: props.inset
11647
11685
  }), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = props.border, _ref)]
@@ -12182,7 +12220,7 @@ function ContactCard(h, props, slots2, ctx) {
12182
12220
  }
12183
12221
  return [h("div", [t$i("name") + "\uFF1A" + props.name]), h("div", [t$i("tel") + "\uFF1A" + props.tel])];
12184
12222
  }
12185
- return h(Cell$1, _mergeJSXProps([{
12223
+ return h(Cell$1, helper([{
12186
12224
  "attrs": {
12187
12225
  "center": true,
12188
12226
  "border": false,
@@ -12441,7 +12479,7 @@ function ContactList(h, props, slots2, ctx) {
12441
12479
  }
12442
12480
  });
12443
12481
  });
12444
- return h("div", _mergeJSXProps([{
12482
+ return h("div", helper([{
12445
12483
  "class": bem$S()
12446
12484
  }, inherit(ctx)]), [h(RadioGroup, {
12447
12485
  "attrs": {
@@ -12762,7 +12800,7 @@ function formatValue(props) {
12762
12800
  function CouponCell(h, props, slots2, ctx) {
12763
12801
  var selected = props.coupons[+props.chosenCoupon];
12764
12802
  var value17 = formatValue(props);
12765
- return h(Cell$1, _mergeJSXProps([{
12803
+ return h(Cell$1, helper([{
12766
12804
  "class": bem$P(),
12767
12805
  "attrs": {
12768
12806
  "value": value17,
@@ -13567,7 +13605,7 @@ var DatetimePicker = createComponent$S({
13567
13605
  var _createNamespace$N = createNamespace("divider"), createComponent$R = _createNamespace$N[0], bem$M = _createNamespace$N[1];
13568
13606
  function Divider(h, props, slots2, ctx) {
13569
13607
  var _bem;
13570
- return h("div", _mergeJSXProps([{
13608
+ return h("div", helper([{
13571
13609
  "attrs": {
13572
13610
  "role": "separator"
13573
13611
  },
@@ -16167,7 +16205,7 @@ function Notify$1(h, props, slots2, ctx) {
16167
16205
  color: props.color,
16168
16206
  background: props.background
16169
16207
  };
16170
- return h(Popup, _mergeJSXProps([{
16208
+ return h(Popup, helper([{
16171
16209
  "attrs": {
16172
16210
  "value": props.value,
16173
16211
  "position": "top",
@@ -16783,7 +16821,7 @@ function Panel(h, props, slots2, ctx) {
16783
16821
  "class": [bem$s("footer"), BORDER_TOP]
16784
16822
  }, [slots2.footer()])];
16785
16823
  };
16786
- return h(CellGroup$1, _mergeJSXProps([{
16824
+ return h(CellGroup$1, helper([{
16787
16825
  "class": bem$s(),
16788
16826
  "scopedSlots": {
16789
16827
  default: Content2
@@ -16829,7 +16867,7 @@ function PasswordInput(h, props, slots2, ctx) {
16829
16867
  }
16830
16868
  return h("div", {
16831
16869
  "class": bem$r()
16832
- }, [h("ul", _mergeJSXProps([{
16870
+ }, [h("ul", helper([{
16833
16871
  "class": [bem$r("security"), (_ref2 = {}, _ref2[BORDER_SURROUND] = !gutter, _ref2)],
16834
16872
  "on": {
16835
16873
  "touchstart": function touchstart(event) {
@@ -18539,7 +18577,7 @@ function Search(h, props, slots2, ctx) {
18539
18577
  };
18540
18578
  var inheritData = inherit(ctx);
18541
18579
  inheritData.attrs = void 0;
18542
- return h("div", _mergeJSXProps([{
18580
+ return h("div", helper([{
18543
18581
  "class": bem$l({
18544
18582
  "show-action": props.showAction
18545
18583
  }),
@@ -18548,7 +18586,7 @@ function Search(h, props, slots2, ctx) {
18548
18586
  }
18549
18587
  }, inheritData]), [slots2.left == null ? void 0 : slots2.left(), h("div", {
18550
18588
  "class": bem$l("content", props.shape)
18551
- }, [Label(), h(Field, _mergeJSXProps([{
18589
+ }, [Label(), h(Field, helper([{
18552
18590
  "attrs": {
18553
18591
  "type": "search",
18554
18592
  "border": false,
@@ -18871,7 +18909,7 @@ function Skeleton(h, props, slots2, ctx) {
18871
18909
  });
18872
18910
  }
18873
18911
  }
18874
- return h("div", _mergeJSXProps([{
18912
+ return h("div", helper([{
18875
18913
  "class": bem$h({
18876
18914
  animate: props.animate,
18877
18915
  round: props.round
@@ -19129,7 +19167,7 @@ function SkuHeader$1(h, props, slots2, ctx) {
19129
19167
  var previewImage = function previewImage2() {
19130
19168
  skuEventBus.$emit("sku:previewImage", selectedValue);
19131
19169
  };
19132
- return h("div", _mergeJSXProps([{
19170
+ return h("div", helper([{
19133
19171
  "class": [bem$g(), BORDER_BOTTOM]
19134
19172
  }, inherit(ctx)]), [showHeaderImage && h(Image, {
19135
19173
  "attrs": {
@@ -19154,7 +19192,7 @@ SkuHeader$1.props = {
19154
19192
  var SkuHeader$2 = createComponent$l(SkuHeader$1);
19155
19193
  var _createNamespace$g = createNamespace("sku-header-item"), createComponent$k = _createNamespace$g[0], bem$f = _createNamespace$g[1];
19156
19194
  function SkuHeader(h, props, slots2, ctx) {
19157
- return h("div", _mergeJSXProps([{
19195
+ return h("div", helper([{
19158
19196
  "class": bem$f()
19159
19197
  }, inherit(ctx)]), [slots2.default && slots2.default()]);
19160
19198
  }
@@ -19632,7 +19670,7 @@ var Stepper = createComponent$g({
19632
19670
  };
19633
19671
  return h("div", {
19634
19672
  "class": bem$d([this.theme])
19635
- }, [h("button", _mergeJSXProps([{
19673
+ }, [h("button", helper([{
19636
19674
  "directives": [{
19637
19675
  name: "show",
19638
19676
  value: this.showMinus
@@ -19672,7 +19710,7 @@ var Stepper = createComponent$g({
19672
19710
  "blur": this.onBlur,
19673
19711
  "mousedown": this.onMousedown
19674
19712
  }
19675
- }), h("button", _mergeJSXProps([{
19713
+ }), h("button", helper([{
19676
19714
  "directives": [{
19677
19715
  name: "show",
19678
19716
  value: this.showPlus
@@ -20716,7 +20754,7 @@ function SkuActions(h, props, slots2, ctx) {
20716
20754
  props.skuEventBus.$emit(name2);
20717
20755
  };
20718
20756
  };
20719
- return h("div", _mergeJSXProps([{
20757
+ return h("div", helper([{
20720
20758
  "class": bem$a()
20721
20759
  }, inherit(ctx)]), [props.showAddCartBtn && h(Button$1, {
20722
20760
  "attrs": {
@@ -21855,7 +21893,7 @@ function SubmitBar(h, props, slots2, ctx) {
21855
21893
  }, [tip]), slots2.tip && slots2.tip()]);
21856
21894
  }
21857
21895
  }
21858
- return h("div", _mergeJSXProps([{
21896
+ return h("div", helper([{
21859
21897
  "class": bem$5({
21860
21898
  unfit: !props.safeAreaInsetBottom
21861
21899
  })
@@ -22094,7 +22132,7 @@ var SwipeCell = createComponent$4({
22094
22132
  });
22095
22133
  var _createNamespace$3 = createNamespace("switch-cell"), createComponent$3 = _createNamespace$3[0], bem$3 = _createNamespace$3[1];
22096
22134
  function SwitchCell(h, props, slots2, ctx) {
22097
- return h(Cell$1, _mergeJSXProps([{
22135
+ return h(Cell$1, helper([{
22098
22136
  "attrs": {
22099
22137
  "center": true,
22100
22138
  "size": props.cellSize,
@@ -22371,7 +22409,7 @@ function TreeSelect(h, props, slots2, ctx) {
22371
22409
  })]);
22372
22410
  });
22373
22411
  }
22374
- return h("div", _mergeJSXProps([{
22412
+ return h("div", helper([{
22375
22413
  "class": bem(),
22376
22414
  "style": {
22377
22415
  height: addUnit(height)
@@ -23634,17 +23672,17 @@ function _nonIterableSpread() {
23634
23672
  throw new TypeError("Invalid attempt to spread non-iterable instance");
23635
23673
  }
23636
23674
  var version$1 = "1.10.2";
23637
- function userAgent$1(pattern) {
23675
+ function userAgent(pattern) {
23638
23676
  if (typeof window !== "undefined" && window.navigator) {
23639
23677
  return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
23640
23678
  }
23641
23679
  }
23642
- var IE11OrLess = userAgent$1(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
23643
- var Edge = userAgent$1(/Edge/i);
23644
- var FireFox = userAgent$1(/firefox/i);
23645
- var Safari = userAgent$1(/safari/i) && !userAgent$1(/chrome/i) && !userAgent$1(/android/i);
23646
- var IOS = userAgent$1(/iP(ad|od|hone)/i);
23647
- var ChromeForAndroid = userAgent$1(/chrome/i) && userAgent$1(/android/i);
23680
+ var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
23681
+ var Edge = userAgent(/Edge/i);
23682
+ var FireFox = userAgent(/firefox/i);
23683
+ var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
23684
+ var IOS = userAgent(/iP(ad|od|hone)/i);
23685
+ var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
23648
23686
  var captureMode = {
23649
23687
  capture: false,
23650
23688
  passive: false
@@ -31310,9 +31348,6 @@ axios$1.isAxiosError = isAxiosError;
31310
31348
  axios$2.exports = axios$1;
31311
31349
  axios$2.exports.default = axios$1;
31312
31350
  var axios = axios$2.exports;
31313
- const isHb$1 = location.pathname.includes("scyxweb");
31314
- const userAgent = navigator.userAgent.toLowerCase();
31315
- const isQywx = /wxwork/.test(userAgent) ? true : false;
31316
31351
  const Cookie = {
31317
31352
  set: function(key, value17, exdays) {
31318
31353
  if (key.indexOf("=") !== -1) {
@@ -31339,15 +31374,10 @@ const Cookie = {
31339
31374
  }
31340
31375
  };
31341
31376
  async function renderRoutes({ router, store: store2, microType, allowPermissionList, routerOptionsBak }) {
31342
- var _a, _b;
31343
- let userInfo = await store2.dispatch("getUserInfo");
31377
+ await store2.dispatch("getUserInfo");
31344
31378
  await store2.dispatch("getAppListData");
31345
- await store2.dispatch("getMyAppsList", {
31346
- userId: userInfo.userId,
31347
- funId: "store-my-app"
31348
- });
31349
31379
  const permissionData = await store2.dispatch("getPermissionData");
31350
- const sessionVersion = JSON.parse(((_b = (_a = getSessionStorage("appInfo")) == null ? void 0 : _a.extendProps) == null ? void 0 : _b.extendProps) || "{}");
31380
+ const sessionVersion = JSON.parse(getSessionStorage("appInfo").extendProps.extendProps);
31351
31381
  const localVersion = getLocalStorage("versionInfo");
31352
31382
  if (localVersion) {
31353
31383
  if (sessionVersion.appVersion > localVersion.appVersion) {
@@ -31389,31 +31419,8 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
31389
31419
  const LOGIN_PAGE_NAME = config.loginRouteName;
31390
31420
  const routerOptionsBak = _.cloneDeep(router.options);
31391
31421
  window.sessionNotValidHandler = async function() {
31392
- if (typeof window.Code != "undefined" || isHb$1) {
31393
- try {
31394
- await pluginLogin(store2);
31395
- } catch (e) {
31396
- console.log("pluginLogin e", e);
31397
- if (isHb$1) {
31398
- if (isQywx) {
31399
- location.href = location.protocol + "//" + location.host + "/hbwebchat/wxmain?syscode=gtptrpxebl";
31400
- } else {
31401
- try {
31402
- await Dialog.alert({
31403
- title: "\u63D0\u793A",
31404
- message: "\u5F53\u524D\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u7CFB\u7EDF\u5C06\u91CD\u65B0\u767B\u9646"
31405
- });
31406
- console.log("\u4F1A\u8BDD\u5931\u6548-------2");
31407
- wx.miniProgram.navigateTo({
31408
- url: "/pages/index/reload"
31409
- });
31410
- } catch (err) {
31411
- console.log(err);
31412
- return false;
31413
- }
31414
- }
31415
- }
31416
- }
31422
+ if (typeof window.Code != "undefined") {
31423
+ await pluginLogin(store2);
31417
31424
  await store2.dispatch("getUserInfo");
31418
31425
  await store2.dispatch("getAppListData");
31419
31426
  await store2.dispatch("getPermissionData");
@@ -31441,14 +31448,6 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
31441
31448
  store2.dispatch("loginSuccess", token);
31442
31449
  }
31443
31450
  }
31444
- if (!token) {
31445
- let tokenInQuery = window.getQueryVariable("tokenWeapp");
31446
- if (tokenInQuery) {
31447
- console.log("tokenInQuery", tokenInQuery);
31448
- setToken(tokenInQuery);
31449
- token = tokenInQuery;
31450
- }
31451
- }
31452
31451
  }
31453
31452
  console.log("typeof window.Code", typeof window.Code);
31454
31453
  async function _renderRoutes() {
@@ -31497,7 +31496,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
31497
31496
  }
31498
31497
  }
31499
31498
  const code2 = getQueryVariable("code");
31500
- if (typeof window.Code != "undefined" || code2 || isHb$1) {
31499
+ if (typeof window.Code != "undefined" || code2) {
31501
31500
  if (!token) {
31502
31501
  token = await pluginLogin(store2);
31503
31502
  store2.dispatch("loginSuccess", token);
@@ -31542,25 +31541,27 @@ const pluginLogin = (store2) => {
31542
31541
  Cookie.set("TOKEN_KEY", "", 1);
31543
31542
  store2.commit("setUserName", "");
31544
31543
  store2.commit("setToken", "");
31545
- if (isHb$1) {
31546
- return new Promise((resolve, reject) => {
31547
- let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
31548
- axios$3.get(url).then(async (resp) => {
31544
+ return new Promise((resolve, reject) => {
31545
+ console.log("1111`111");
31546
+ const code2 = getQueryVariable("code");
31547
+ if (code2) {
31548
+ axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
31549
31549
  setToken(resp.token);
31550
31550
  resolve(resp.token);
31551
- localStorage.setItem("v8-token", resp.token);
31552
- sessionStorage.setItem("lambo-token", resp.token);
31553
31551
  }).catch((e) => {
31554
31552
  console.log("\u83B7\u53D6token\u5F02\u5E38", e);
31553
+ Message.error({
31554
+ 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",
31555
+ duration: 10,
31556
+ closable: true
31557
+ });
31555
31558
  reject(0);
31556
31559
  });
31557
- });
31558
- } else {
31559
- return new Promise((resolve, reject) => {
31560
- console.log("1111`111");
31561
- const code2 = getQueryVariable("code");
31562
- if (code2) {
31563
- axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
31560
+ } else {
31561
+ Code.postMessage("");
31562
+ window.getCode = function(res) {
31563
+ console.log("getCode res", res);
31564
+ axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
31564
31565
  setToken(resp.token);
31565
31566
  resolve(resp.token);
31566
31567
  }).catch((e) => {
@@ -31572,26 +31573,9 @@ const pluginLogin = (store2) => {
31572
31573
  });
31573
31574
  reject(0);
31574
31575
  });
31575
- } else {
31576
- Code.postMessage("");
31577
- window.getCode = function(res) {
31578
- console.log("getCode res", res);
31579
- axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
31580
- setToken(resp.token);
31581
- resolve(resp.token);
31582
- }).catch((e) => {
31583
- console.log("\u83B7\u53D6token\u5F02\u5E38", e);
31584
- Message.error({
31585
- 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",
31586
- duration: 10,
31587
- closable: true
31588
- });
31589
- reject(0);
31590
- });
31591
- };
31592
- }
31593
- });
31594
- }
31576
+ };
31577
+ }
31578
+ });
31595
31579
  };
31596
31580
  window.getQueryVariable = function getQueryVariable2(variable) {
31597
31581
  var query = window.location.search.substring(1);
@@ -31617,9 +31601,6 @@ window.getQueryVariable = function getQueryVariable2(variable) {
31617
31601
  };
31618
31602
  const checkLogin = async () => {
31619
31603
  var _a;
31620
- if (localStorage.getItem("whoisyourdaddy") == "1") {
31621
- return Promise.resolve(true);
31622
- }
31623
31604
  try {
31624
31605
  let token = getToken();
31625
31606
  const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
@@ -32035,6 +32016,21 @@ const install = function(Vue2, opts = { theme: "" }) {
32035
32016
  var _a2;
32036
32017
  try {
32037
32018
  const ret = JSON.parse(((_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.settingInfo) || "{}");
32019
+ if ((ret == null ? void 0 : ret.systemDefaultConfig) && ret.systemDefaultConfig.extPropsList && Array.isArray(ret.systemDefaultConfig.extPropsList)) {
32020
+ const temp = {};
32021
+ ret.systemDefaultConfig.extPropsList.forEach((item2) => {
32022
+ if ((item2 == null ? void 0 : item2.key) && item2.value !== void 0) {
32023
+ if (ret.systemDefaultConfig.hasOwnProperty(item2.key)) {
32024
+ console.warn(`\u914D\u7F6E\u952E\u540D ${item2.key} \u91CD\u590D\uFF0C\u539F\u503C\u88AB\u8986\u76D6`, {
32025
+ oldValue: ret.systemDefaultConfig[item2.key],
32026
+ newValue: item2.value
32027
+ });
32028
+ }
32029
+ temp[item2.key] = item2.value;
32030
+ }
32031
+ });
32032
+ ret.systemDefaultConfig = { ...ret.systemDefaultConfig, ...temp };
32033
+ }
32038
32034
  Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, ret);
32039
32035
  console.log("\u7CFB\u7EDF\u914D\u7F6E\u5DF2\u52A0\u8F7D", Vue2.prototype.$config);
32040
32036
  } catch (error) {