@indfnd/common-mobile 1.0.20 → 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,8 @@
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
+
5
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)
6
8
 
7
9
 
@@ -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.19";
6
+ const version$2 = "1.0.20";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -4569,7 +4569,6 @@ var normalMerge = ["attrs", "props", "domProps"], toArrayMerge = ["class", "styl
4569
4569
  };
4570
4570
  };
4571
4571
  var helper = mergeJsxProps;
4572
- var _mergeJSXProps = helper;
4573
4572
  function gen(name2, mods) {
4574
4573
  if (!mods) {
4575
4574
  return "";
@@ -5021,7 +5020,7 @@ function Overlay(h, props, slots2, ctx) {
5021
5020
  "attrs": {
5022
5021
  "name": "van-fade"
5023
5022
  }
5024
- }, [h("div", _mergeJSXProps([{
5023
+ }, [h("div", helper([{
5025
5024
  "directives": [{
5026
5025
  name: "show",
5027
5026
  value: props.show
@@ -5492,7 +5491,7 @@ function Info(h, props, slots2, ctx) {
5492
5491
  if (!dot && !showInfo) {
5493
5492
  return;
5494
5493
  }
5495
- return h("div", _mergeJSXProps([{
5494
+ return h("div", helper([{
5496
5495
  "class": bem$1w({
5497
5496
  dot
5498
5497
  })
@@ -5519,7 +5518,7 @@ function Icon(h, props, slots2, ctx) {
5519
5518
  var _props$badge;
5520
5519
  var name2 = correctName(props.name);
5521
5520
  var imageIcon = isImage(name2);
5522
- return h(props.tag, _mergeJSXProps([{
5521
+ return h(props.tag, helper([{
5523
5522
  "class": [props.classPrefix, imageIcon ? "" : props.classPrefix + "-" + name2],
5524
5523
  "style": {
5525
5524
  color: props.color,
@@ -5695,7 +5694,7 @@ function Loading(h, props, slots2, ctx) {
5695
5694
  style12.width = iconSize;
5696
5695
  style12.height = iconSize;
5697
5696
  }
5698
- return h("div", _mergeJSXProps([{
5697
+ return h("div", helper([{
5699
5698
  "class": bem$1t([type2, {
5700
5699
  vertical: props.vertical
5701
5700
  }])
@@ -5806,7 +5805,7 @@ function ActionSheet(h, props, slots2, ctx) {
5806
5805
  }, [description2]);
5807
5806
  }
5808
5807
  }
5809
- return h(Popup, _mergeJSXProps([{
5808
+ return h(Popup, helper([{
5810
5809
  "class": bem$1s(),
5811
5810
  "attrs": {
5812
5811
  "position": "bottom",
@@ -6218,7 +6217,7 @@ var PickerColumn = createComponent$1A({
6218
6217
  class: "van-ellipsis",
6219
6218
  domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
6220
6219
  };
6221
- 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]))]);
6222
6221
  });
6223
6222
  }
6224
6223
  },
@@ -6945,7 +6944,7 @@ function Cell(h, props, slots2, ctx) {
6945
6944
  if (size2) {
6946
6945
  classes[size2] = size2;
6947
6946
  }
6948
- return h("div", _mergeJSXProps([{
6947
+ return h("div", helper([{
6949
6948
  "class": bem$1o(classes),
6950
6949
  "attrs": {
6951
6950
  "role": clickable ? "button" : null,
@@ -7354,7 +7353,7 @@ var Field = createComponent$1w({
7354
7353
  }]
7355
7354
  };
7356
7355
  if (type2 === "textarea") {
7357
- return h("textarea", _mergeJSXProps([{}, inputProps]));
7356
+ return h("textarea", helper([{}, inputProps]));
7358
7357
  }
7359
7358
  var inputType = type2;
7360
7359
  var inputMode;
@@ -7366,7 +7365,7 @@ var Field = createComponent$1w({
7366
7365
  inputType = "tel";
7367
7366
  inputMode = "numeric";
7368
7367
  }
7369
- return h("input", _mergeJSXProps([{
7368
+ return h("input", helper([{
7370
7369
  "attrs": {
7371
7370
  "type": inputType,
7372
7371
  "inputmode": inputMode
@@ -7882,7 +7881,7 @@ function Button(h, props, slots2, ctx) {
7882
7881
  }
7883
7882
  return content;
7884
7883
  }
7885
- return h(tag, _mergeJSXProps([{
7884
+ return h(tag, helper([{
7886
7885
  "style": style12,
7887
7886
  "class": classes,
7888
7887
  "attrs": {
@@ -8298,7 +8297,7 @@ var VanDialog = createComponent$1r({
8298
8297
  "class": bem$1i("content", {
8299
8298
  isolated: !hasTitle
8300
8299
  })
8301
- }, [h("div", _mergeJSXProps([{}, data49]))]);
8300
+ }, [h("div", helper([{}, data49]))]);
8302
8301
  }
8303
8302
  }
8304
8303
  },
@@ -9114,7 +9113,7 @@ function Tag(h, props, slots2, ctx) {
9114
9113
  "attrs": {
9115
9114
  "name": props.closeable ? "van-fade" : null
9116
9115
  }
9117
- }, [h("span", _mergeJSXProps([{
9116
+ }, [h("span", helper([{
9118
9117
  "key": "content",
9119
9118
  "style": style12,
9120
9119
  "class": bem$1d([classes, type2])
@@ -9343,7 +9342,7 @@ function AddressItem(h, props, slots2, ctx) {
9343
9342
  "on": {
9344
9343
  "click": onClick19
9345
9344
  }
9346
- }, [h(Cell$1, _mergeJSXProps([{
9345
+ }, [h(Cell$1, helper([{
9347
9346
  "attrs": {
9348
9347
  "border": false,
9349
9348
  "valueClass": bem$1b("value")
@@ -9401,7 +9400,7 @@ function AddressList(h, props, slots2, ctx) {
9401
9400
  }
9402
9401
  var List2 = genList(props.list);
9403
9402
  var DisabledList = genList(props.disabledList, true);
9404
- return h("div", _mergeJSXProps([{
9403
+ return h("div", helper([{
9405
9404
  "class": bem$1a()
9406
9405
  }, inherit(ctx)]), [slots2.top == null ? void 0 : slots2.top(), h(RadioGroup, {
9407
9406
  "attrs": {
@@ -10513,7 +10512,7 @@ var Image = createComponent$1e({
10513
10512
  return;
10514
10513
  }
10515
10514
  if (this.lazyLoad) {
10516
- return h("img", _mergeJSXProps([{
10515
+ return h("img", helper([{
10517
10516
  "ref": "image",
10518
10517
  "directives": [{
10519
10518
  name: "lazy",
@@ -10521,7 +10520,7 @@ var Image = createComponent$1e({
10521
10520
  }]
10522
10521
  }, imgData]));
10523
10522
  }
10524
- return h("img", _mergeJSXProps([{
10523
+ return h("img", helper([{
10525
10524
  "attrs": {
10526
10525
  "src": this.src
10527
10526
  },
@@ -10648,7 +10647,7 @@ function Card(h, props, slots2, ctx) {
10648
10647
  }, [slots2.footer()]);
10649
10648
  }
10650
10649
  }
10651
- return h("div", _mergeJSXProps([{
10650
+ return h("div", helper([{
10652
10651
  "class": bem$16()
10653
10652
  }, inherit(ctx, true)]), [h("div", {
10654
10653
  "class": bem$16("header")
@@ -11680,7 +11679,7 @@ var Cascader = createComponent$17({
11680
11679
  var _createNamespace$12 = createNamespace("cell-group"), createComponent$16 = _createNamespace$12[0], bem$$ = _createNamespace$12[1];
11681
11680
  function CellGroup(h, props, slots2, ctx) {
11682
11681
  var _ref;
11683
- var Group = h("div", _mergeJSXProps([{
11682
+ var Group = h("div", helper([{
11684
11683
  "class": [bem$$({
11685
11684
  inset: props.inset
11686
11685
  }), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = props.border, _ref)]
@@ -12221,7 +12220,7 @@ function ContactCard(h, props, slots2, ctx) {
12221
12220
  }
12222
12221
  return [h("div", [t$i("name") + "\uFF1A" + props.name]), h("div", [t$i("tel") + "\uFF1A" + props.tel])];
12223
12222
  }
12224
- return h(Cell$1, _mergeJSXProps([{
12223
+ return h(Cell$1, helper([{
12225
12224
  "attrs": {
12226
12225
  "center": true,
12227
12226
  "border": false,
@@ -12480,7 +12479,7 @@ function ContactList(h, props, slots2, ctx) {
12480
12479
  }
12481
12480
  });
12482
12481
  });
12483
- return h("div", _mergeJSXProps([{
12482
+ return h("div", helper([{
12484
12483
  "class": bem$S()
12485
12484
  }, inherit(ctx)]), [h(RadioGroup, {
12486
12485
  "attrs": {
@@ -12801,7 +12800,7 @@ function formatValue(props) {
12801
12800
  function CouponCell(h, props, slots2, ctx) {
12802
12801
  var selected = props.coupons[+props.chosenCoupon];
12803
12802
  var value17 = formatValue(props);
12804
- return h(Cell$1, _mergeJSXProps([{
12803
+ return h(Cell$1, helper([{
12805
12804
  "class": bem$P(),
12806
12805
  "attrs": {
12807
12806
  "value": value17,
@@ -13606,7 +13605,7 @@ var DatetimePicker = createComponent$S({
13606
13605
  var _createNamespace$N = createNamespace("divider"), createComponent$R = _createNamespace$N[0], bem$M = _createNamespace$N[1];
13607
13606
  function Divider(h, props, slots2, ctx) {
13608
13607
  var _bem;
13609
- return h("div", _mergeJSXProps([{
13608
+ return h("div", helper([{
13610
13609
  "attrs": {
13611
13610
  "role": "separator"
13612
13611
  },
@@ -16206,7 +16205,7 @@ function Notify$1(h, props, slots2, ctx) {
16206
16205
  color: props.color,
16207
16206
  background: props.background
16208
16207
  };
16209
- return h(Popup, _mergeJSXProps([{
16208
+ return h(Popup, helper([{
16210
16209
  "attrs": {
16211
16210
  "value": props.value,
16212
16211
  "position": "top",
@@ -16822,7 +16821,7 @@ function Panel(h, props, slots2, ctx) {
16822
16821
  "class": [bem$s("footer"), BORDER_TOP]
16823
16822
  }, [slots2.footer()])];
16824
16823
  };
16825
- return h(CellGroup$1, _mergeJSXProps([{
16824
+ return h(CellGroup$1, helper([{
16826
16825
  "class": bem$s(),
16827
16826
  "scopedSlots": {
16828
16827
  default: Content2
@@ -16868,7 +16867,7 @@ function PasswordInput(h, props, slots2, ctx) {
16868
16867
  }
16869
16868
  return h("div", {
16870
16869
  "class": bem$r()
16871
- }, [h("ul", _mergeJSXProps([{
16870
+ }, [h("ul", helper([{
16872
16871
  "class": [bem$r("security"), (_ref2 = {}, _ref2[BORDER_SURROUND] = !gutter, _ref2)],
16873
16872
  "on": {
16874
16873
  "touchstart": function touchstart(event) {
@@ -18578,7 +18577,7 @@ function Search(h, props, slots2, ctx) {
18578
18577
  };
18579
18578
  var inheritData = inherit(ctx);
18580
18579
  inheritData.attrs = void 0;
18581
- return h("div", _mergeJSXProps([{
18580
+ return h("div", helper([{
18582
18581
  "class": bem$l({
18583
18582
  "show-action": props.showAction
18584
18583
  }),
@@ -18587,7 +18586,7 @@ function Search(h, props, slots2, ctx) {
18587
18586
  }
18588
18587
  }, inheritData]), [slots2.left == null ? void 0 : slots2.left(), h("div", {
18589
18588
  "class": bem$l("content", props.shape)
18590
- }, [Label(), h(Field, _mergeJSXProps([{
18589
+ }, [Label(), h(Field, helper([{
18591
18590
  "attrs": {
18592
18591
  "type": "search",
18593
18592
  "border": false,
@@ -18910,7 +18909,7 @@ function Skeleton(h, props, slots2, ctx) {
18910
18909
  });
18911
18910
  }
18912
18911
  }
18913
- return h("div", _mergeJSXProps([{
18912
+ return h("div", helper([{
18914
18913
  "class": bem$h({
18915
18914
  animate: props.animate,
18916
18915
  round: props.round
@@ -19168,7 +19167,7 @@ function SkuHeader$1(h, props, slots2, ctx) {
19168
19167
  var previewImage = function previewImage2() {
19169
19168
  skuEventBus.$emit("sku:previewImage", selectedValue);
19170
19169
  };
19171
- return h("div", _mergeJSXProps([{
19170
+ return h("div", helper([{
19172
19171
  "class": [bem$g(), BORDER_BOTTOM]
19173
19172
  }, inherit(ctx)]), [showHeaderImage && h(Image, {
19174
19173
  "attrs": {
@@ -19193,7 +19192,7 @@ SkuHeader$1.props = {
19193
19192
  var SkuHeader$2 = createComponent$l(SkuHeader$1);
19194
19193
  var _createNamespace$g = createNamespace("sku-header-item"), createComponent$k = _createNamespace$g[0], bem$f = _createNamespace$g[1];
19195
19194
  function SkuHeader(h, props, slots2, ctx) {
19196
- return h("div", _mergeJSXProps([{
19195
+ return h("div", helper([{
19197
19196
  "class": bem$f()
19198
19197
  }, inherit(ctx)]), [slots2.default && slots2.default()]);
19199
19198
  }
@@ -19671,7 +19670,7 @@ var Stepper = createComponent$g({
19671
19670
  };
19672
19671
  return h("div", {
19673
19672
  "class": bem$d([this.theme])
19674
- }, [h("button", _mergeJSXProps([{
19673
+ }, [h("button", helper([{
19675
19674
  "directives": [{
19676
19675
  name: "show",
19677
19676
  value: this.showMinus
@@ -19711,7 +19710,7 @@ var Stepper = createComponent$g({
19711
19710
  "blur": this.onBlur,
19712
19711
  "mousedown": this.onMousedown
19713
19712
  }
19714
- }), h("button", _mergeJSXProps([{
19713
+ }), h("button", helper([{
19715
19714
  "directives": [{
19716
19715
  name: "show",
19717
19716
  value: this.showPlus
@@ -20755,7 +20754,7 @@ function SkuActions(h, props, slots2, ctx) {
20755
20754
  props.skuEventBus.$emit(name2);
20756
20755
  };
20757
20756
  };
20758
- return h("div", _mergeJSXProps([{
20757
+ return h("div", helper([{
20759
20758
  "class": bem$a()
20760
20759
  }, inherit(ctx)]), [props.showAddCartBtn && h(Button$1, {
20761
20760
  "attrs": {
@@ -21894,7 +21893,7 @@ function SubmitBar(h, props, slots2, ctx) {
21894
21893
  }, [tip]), slots2.tip && slots2.tip()]);
21895
21894
  }
21896
21895
  }
21897
- return h("div", _mergeJSXProps([{
21896
+ return h("div", helper([{
21898
21897
  "class": bem$5({
21899
21898
  unfit: !props.safeAreaInsetBottom
21900
21899
  })
@@ -22133,7 +22132,7 @@ var SwipeCell = createComponent$4({
22133
22132
  });
22134
22133
  var _createNamespace$3 = createNamespace("switch-cell"), createComponent$3 = _createNamespace$3[0], bem$3 = _createNamespace$3[1];
22135
22134
  function SwitchCell(h, props, slots2, ctx) {
22136
- return h(Cell$1, _mergeJSXProps([{
22135
+ return h(Cell$1, helper([{
22137
22136
  "attrs": {
22138
22137
  "center": true,
22139
22138
  "size": props.cellSize,
@@ -22410,7 +22409,7 @@ function TreeSelect(h, props, slots2, ctx) {
22410
22409
  })]);
22411
22410
  });
22412
22411
  }
22413
- return h("div", _mergeJSXProps([{
22412
+ return h("div", helper([{
22414
22413
  "class": bem(),
22415
22414
  "style": {
22416
22415
  height: addUnit(height)
@@ -23673,17 +23672,17 @@ function _nonIterableSpread() {
23673
23672
  throw new TypeError("Invalid attempt to spread non-iterable instance");
23674
23673
  }
23675
23674
  var version$1 = "1.10.2";
23676
- function userAgent$1(pattern) {
23675
+ function userAgent(pattern) {
23677
23676
  if (typeof window !== "undefined" && window.navigator) {
23678
23677
  return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
23679
23678
  }
23680
23679
  }
23681
- var IE11OrLess = userAgent$1(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
23682
- var Edge = userAgent$1(/Edge/i);
23683
- var FireFox = userAgent$1(/firefox/i);
23684
- var Safari = userAgent$1(/safari/i) && !userAgent$1(/chrome/i) && !userAgent$1(/android/i);
23685
- var IOS = userAgent$1(/iP(ad|od|hone)/i);
23686
- 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);
23687
23686
  var captureMode = {
23688
23687
  capture: false,
23689
23688
  passive: false
@@ -31349,9 +31348,6 @@ axios$1.isAxiosError = isAxiosError;
31349
31348
  axios$2.exports = axios$1;
31350
31349
  axios$2.exports.default = axios$1;
31351
31350
  var axios = axios$2.exports;
31352
- const isHb$1 = location.pathname.includes("scyxweb");
31353
- const userAgent = navigator.userAgent.toLowerCase();
31354
- const isQywx = /wxwork/.test(userAgent) ? true : false;
31355
31351
  const Cookie = {
31356
31352
  set: function(key, value17, exdays) {
31357
31353
  if (key.indexOf("=") !== -1) {
@@ -31378,15 +31374,10 @@ const Cookie = {
31378
31374
  }
31379
31375
  };
31380
31376
  async function renderRoutes({ router, store: store2, microType, allowPermissionList, routerOptionsBak }) {
31381
- var _a, _b;
31382
- let userInfo = await store2.dispatch("getUserInfo");
31377
+ await store2.dispatch("getUserInfo");
31383
31378
  await store2.dispatch("getAppListData");
31384
- await store2.dispatch("getMyAppsList", {
31385
- userId: userInfo.userId,
31386
- funId: "store-my-app"
31387
- });
31388
31379
  const permissionData = await store2.dispatch("getPermissionData");
31389
- 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);
31390
31381
  const localVersion = getLocalStorage("versionInfo");
31391
31382
  if (localVersion) {
31392
31383
  if (sessionVersion.appVersion > localVersion.appVersion) {
@@ -31427,33 +31418,9 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
31427
31418
  Debug();
31428
31419
  const LOGIN_PAGE_NAME = config.loginRouteName;
31429
31420
  const routerOptionsBak = _.cloneDeep(router.options);
31430
- const code2 = getQueryVariable("code");
31431
31421
  window.sessionNotValidHandler = async function() {
31432
- if (typeof window.Code != "undefined" || code2 || isHb$1) {
31433
- try {
31434
- await pluginLogin(store2);
31435
- } catch (e) {
31436
- console.log("pluginLogin e", e);
31437
- if (isHb$1) {
31438
- if (isQywx) {
31439
- location.href = location.protocol + "//" + location.host + "/hbwebchat/wxmain?syscode=gtptrpxebl";
31440
- } else {
31441
- try {
31442
- await Dialog.alert({
31443
- title: "\u63D0\u793A",
31444
- message: "\u5F53\u524D\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u7CFB\u7EDF\u5C06\u91CD\u65B0\u767B\u9646"
31445
- });
31446
- console.log("\u4F1A\u8BDD\u5931\u6548-------2");
31447
- wx.miniProgram.navigateTo({
31448
- url: "/pages/index/reload"
31449
- });
31450
- } catch (err) {
31451
- console.log(err);
31452
- return false;
31453
- }
31454
- }
31455
- }
31456
- }
31422
+ if (typeof window.Code != "undefined") {
31423
+ await pluginLogin(store2);
31457
31424
  await store2.dispatch("getUserInfo");
31458
31425
  await store2.dispatch("getAppListData");
31459
31426
  await store2.dispatch("getPermissionData");
@@ -31481,14 +31448,6 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
31481
31448
  store2.dispatch("loginSuccess", token);
31482
31449
  }
31483
31450
  }
31484
- if (!token) {
31485
- let tokenInQuery = window.getQueryVariable("tokenWeapp");
31486
- if (tokenInQuery) {
31487
- console.log("tokenInQuery", tokenInQuery);
31488
- setToken(tokenInQuery);
31489
- token = tokenInQuery;
31490
- }
31491
- }
31492
31451
  }
31493
31452
  console.log("typeof window.Code", typeof window.Code);
31494
31453
  async function _renderRoutes() {
@@ -31536,8 +31495,8 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
31536
31495
  }
31537
31496
  }
31538
31497
  }
31539
- const code3 = getQueryVariable("code");
31540
- if (typeof window.Code != "undefined" || code3 || isHb$1) {
31498
+ const code2 = getQueryVariable("code");
31499
+ if (typeof window.Code != "undefined" || code2) {
31541
31500
  if (!token) {
31542
31501
  token = await pluginLogin(store2);
31543
31502
  store2.dispatch("loginSuccess", token);
@@ -31582,25 +31541,27 @@ const pluginLogin = (store2) => {
31582
31541
  Cookie.set("TOKEN_KEY", "", 1);
31583
31542
  store2.commit("setUserName", "");
31584
31543
  store2.commit("setToken", "");
31585
- if (isHb$1) {
31586
- return new Promise((resolve, reject) => {
31587
- let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
31588
- 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) => {
31589
31549
  setToken(resp.token);
31590
31550
  resolve(resp.token);
31591
- localStorage.setItem("v8-token", resp.token);
31592
- sessionStorage.setItem("lambo-token", resp.token);
31593
31551
  }).catch((e) => {
31594
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
+ });
31595
31558
  reject(0);
31596
31559
  });
31597
- });
31598
- } else {
31599
- return new Promise((resolve, reject) => {
31600
- console.log("1111`111");
31601
- const code2 = getQueryVariable("code");
31602
- if (code2) {
31603
- 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) => {
31604
31565
  setToken(resp.token);
31605
31566
  resolve(resp.token);
31606
31567
  }).catch((e) => {
@@ -31612,26 +31573,9 @@ const pluginLogin = (store2) => {
31612
31573
  });
31613
31574
  reject(0);
31614
31575
  });
31615
- } else {
31616
- Code.postMessage("");
31617
- window.getCode = function(res) {
31618
- console.log("getCode res", res);
31619
- axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
31620
- setToken(resp.token);
31621
- resolve(resp.token);
31622
- }).catch((e) => {
31623
- console.log("\u83B7\u53D6token\u5F02\u5E38", e);
31624
- Message.error({
31625
- 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",
31626
- duration: 10,
31627
- closable: true
31628
- });
31629
- reject(0);
31630
- });
31631
- };
31632
- }
31633
- });
31634
- }
31576
+ };
31577
+ }
31578
+ });
31635
31579
  };
31636
31580
  window.getQueryVariable = function getQueryVariable2(variable) {
31637
31581
  var query = window.location.search.substring(1);
@@ -31657,9 +31601,6 @@ window.getQueryVariable = function getQueryVariable2(variable) {
31657
31601
  };
31658
31602
  const checkLogin = async () => {
31659
31603
  var _a;
31660
- if (localStorage.getItem("whoisyourdaddy") == "1") {
31661
- return Promise.resolve(true);
31662
- }
31663
31604
  try {
31664
31605
  let token = getToken();
31665
31606
  const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {