@indfnd/common-mobile 0.0.116 → 0.0.117
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 +7 -0
- package/dist/ind-common-mobile.es.js +71 -45
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.117](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.116...v0.0.117) (2025-12-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 打包体积优化 ([517a350](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/517a3509b9ef54ef091fdce05eae5e846a639eeb))
|
|
11
|
+
|
|
5
12
|
### [0.0.116](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.115...v0.0.116) (2025-12-01)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -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 = "0.0.
|
|
6
|
+
const version$2 = "0.0.116";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -4377,6 +4377,7 @@ var normalMerge = ["attrs", "props", "domProps"], toArrayMerge = ["class", "styl
|
|
|
4377
4377
|
};
|
|
4378
4378
|
};
|
|
4379
4379
|
var helper = mergeJsxProps;
|
|
4380
|
+
var _mergeJSXProps = helper;
|
|
4380
4381
|
function gen(name2, mods) {
|
|
4381
4382
|
if (!mods) {
|
|
4382
4383
|
return "";
|
|
@@ -4828,7 +4829,7 @@ function Overlay(h, props, slots2, ctx) {
|
|
|
4828
4829
|
"attrs": {
|
|
4829
4830
|
"name": "van-fade"
|
|
4830
4831
|
}
|
|
4831
|
-
}, [h("div",
|
|
4832
|
+
}, [h("div", _mergeJSXProps([{
|
|
4832
4833
|
"directives": [{
|
|
4833
4834
|
name: "show",
|
|
4834
4835
|
value: props.show
|
|
@@ -5299,7 +5300,7 @@ function Info(h, props, slots2, ctx) {
|
|
|
5299
5300
|
if (!dot && !showInfo) {
|
|
5300
5301
|
return;
|
|
5301
5302
|
}
|
|
5302
|
-
return h("div",
|
|
5303
|
+
return h("div", _mergeJSXProps([{
|
|
5303
5304
|
"class": bem$1w({
|
|
5304
5305
|
dot
|
|
5305
5306
|
})
|
|
@@ -5326,7 +5327,7 @@ function Icon(h, props, slots2, ctx) {
|
|
|
5326
5327
|
var _props$badge;
|
|
5327
5328
|
var name2 = correctName(props.name);
|
|
5328
5329
|
var imageIcon = isImage(name2);
|
|
5329
|
-
return h(props.tag,
|
|
5330
|
+
return h(props.tag, _mergeJSXProps([{
|
|
5330
5331
|
"class": [props.classPrefix, imageIcon ? "" : props.classPrefix + "-" + name2],
|
|
5331
5332
|
"style": {
|
|
5332
5333
|
color: props.color,
|
|
@@ -5502,7 +5503,7 @@ function Loading(h, props, slots2, ctx) {
|
|
|
5502
5503
|
style12.width = iconSize;
|
|
5503
5504
|
style12.height = iconSize;
|
|
5504
5505
|
}
|
|
5505
|
-
return h("div",
|
|
5506
|
+
return h("div", _mergeJSXProps([{
|
|
5506
5507
|
"class": bem$1t([type2, {
|
|
5507
5508
|
vertical: props.vertical
|
|
5508
5509
|
}])
|
|
@@ -5613,7 +5614,7 @@ function ActionSheet(h, props, slots2, ctx) {
|
|
|
5613
5614
|
}, [description2]);
|
|
5614
5615
|
}
|
|
5615
5616
|
}
|
|
5616
|
-
return h(Popup,
|
|
5617
|
+
return h(Popup, _mergeJSXProps([{
|
|
5617
5618
|
"class": bem$1s(),
|
|
5618
5619
|
"attrs": {
|
|
5619
5620
|
"position": "bottom",
|
|
@@ -6025,7 +6026,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6025
6026
|
class: "van-ellipsis",
|
|
6026
6027
|
domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
|
|
6027
6028
|
};
|
|
6028
|
-
return h("li",
|
|
6029
|
+
return h("li", _mergeJSXProps([{}, data49]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
|
|
6029
6030
|
});
|
|
6030
6031
|
}
|
|
6031
6032
|
},
|
|
@@ -6752,7 +6753,7 @@ function Cell(h, props, slots2, ctx) {
|
|
|
6752
6753
|
if (size2) {
|
|
6753
6754
|
classes[size2] = size2;
|
|
6754
6755
|
}
|
|
6755
|
-
return h("div",
|
|
6756
|
+
return h("div", _mergeJSXProps([{
|
|
6756
6757
|
"class": bem$1o(classes),
|
|
6757
6758
|
"attrs": {
|
|
6758
6759
|
"role": clickable ? "button" : null,
|
|
@@ -7161,7 +7162,7 @@ var Field = createComponent$1w({
|
|
|
7161
7162
|
}]
|
|
7162
7163
|
};
|
|
7163
7164
|
if (type2 === "textarea") {
|
|
7164
|
-
return h("textarea",
|
|
7165
|
+
return h("textarea", _mergeJSXProps([{}, inputProps]));
|
|
7165
7166
|
}
|
|
7166
7167
|
var inputType = type2;
|
|
7167
7168
|
var inputMode;
|
|
@@ -7173,7 +7174,7 @@ var Field = createComponent$1w({
|
|
|
7173
7174
|
inputType = "tel";
|
|
7174
7175
|
inputMode = "numeric";
|
|
7175
7176
|
}
|
|
7176
|
-
return h("input",
|
|
7177
|
+
return h("input", _mergeJSXProps([{
|
|
7177
7178
|
"attrs": {
|
|
7178
7179
|
"type": inputType,
|
|
7179
7180
|
"inputmode": inputMode
|
|
@@ -7689,7 +7690,7 @@ function Button(h, props, slots2, ctx) {
|
|
|
7689
7690
|
}
|
|
7690
7691
|
return content;
|
|
7691
7692
|
}
|
|
7692
|
-
return h(tag,
|
|
7693
|
+
return h(tag, _mergeJSXProps([{
|
|
7693
7694
|
"style": style12,
|
|
7694
7695
|
"class": classes,
|
|
7695
7696
|
"attrs": {
|
|
@@ -8105,7 +8106,7 @@ var VanDialog = createComponent$1r({
|
|
|
8105
8106
|
"class": bem$1i("content", {
|
|
8106
8107
|
isolated: !hasTitle
|
|
8107
8108
|
})
|
|
8108
|
-
}, [h("div",
|
|
8109
|
+
}, [h("div", _mergeJSXProps([{}, data49]))]);
|
|
8109
8110
|
}
|
|
8110
8111
|
}
|
|
8111
8112
|
},
|
|
@@ -8921,7 +8922,7 @@ function Tag(h, props, slots2, ctx) {
|
|
|
8921
8922
|
"attrs": {
|
|
8922
8923
|
"name": props.closeable ? "van-fade" : null
|
|
8923
8924
|
}
|
|
8924
|
-
}, [h("span",
|
|
8925
|
+
}, [h("span", _mergeJSXProps([{
|
|
8925
8926
|
"key": "content",
|
|
8926
8927
|
"style": style12,
|
|
8927
8928
|
"class": bem$1d([classes, type2])
|
|
@@ -9150,7 +9151,7 @@ function AddressItem(h, props, slots2, ctx) {
|
|
|
9150
9151
|
"on": {
|
|
9151
9152
|
"click": onClick19
|
|
9152
9153
|
}
|
|
9153
|
-
}, [h(Cell$1,
|
|
9154
|
+
}, [h(Cell$1, _mergeJSXProps([{
|
|
9154
9155
|
"attrs": {
|
|
9155
9156
|
"border": false,
|
|
9156
9157
|
"valueClass": bem$1b("value")
|
|
@@ -9208,7 +9209,7 @@ function AddressList(h, props, slots2, ctx) {
|
|
|
9208
9209
|
}
|
|
9209
9210
|
var List2 = genList(props.list);
|
|
9210
9211
|
var DisabledList = genList(props.disabledList, true);
|
|
9211
|
-
return h("div",
|
|
9212
|
+
return h("div", _mergeJSXProps([{
|
|
9212
9213
|
"class": bem$1a()
|
|
9213
9214
|
}, inherit(ctx)]), [slots2.top == null ? void 0 : slots2.top(), h(RadioGroup, {
|
|
9214
9215
|
"attrs": {
|
|
@@ -10320,7 +10321,7 @@ var Image = createComponent$1e({
|
|
|
10320
10321
|
return;
|
|
10321
10322
|
}
|
|
10322
10323
|
if (this.lazyLoad) {
|
|
10323
|
-
return h("img",
|
|
10324
|
+
return h("img", _mergeJSXProps([{
|
|
10324
10325
|
"ref": "image",
|
|
10325
10326
|
"directives": [{
|
|
10326
10327
|
name: "lazy",
|
|
@@ -10328,7 +10329,7 @@ var Image = createComponent$1e({
|
|
|
10328
10329
|
}]
|
|
10329
10330
|
}, imgData]));
|
|
10330
10331
|
}
|
|
10331
|
-
return h("img",
|
|
10332
|
+
return h("img", _mergeJSXProps([{
|
|
10332
10333
|
"attrs": {
|
|
10333
10334
|
"src": this.src
|
|
10334
10335
|
},
|
|
@@ -10455,7 +10456,7 @@ function Card(h, props, slots2, ctx) {
|
|
|
10455
10456
|
}, [slots2.footer()]);
|
|
10456
10457
|
}
|
|
10457
10458
|
}
|
|
10458
|
-
return h("div",
|
|
10459
|
+
return h("div", _mergeJSXProps([{
|
|
10459
10460
|
"class": bem$16()
|
|
10460
10461
|
}, inherit(ctx, true)]), [h("div", {
|
|
10461
10462
|
"class": bem$16("header")
|
|
@@ -11487,7 +11488,7 @@ var Cascader = createComponent$17({
|
|
|
11487
11488
|
var _createNamespace$12 = createNamespace("cell-group"), createComponent$16 = _createNamespace$12[0], bem$$ = _createNamespace$12[1];
|
|
11488
11489
|
function CellGroup(h, props, slots2, ctx) {
|
|
11489
11490
|
var _ref;
|
|
11490
|
-
var Group = h("div",
|
|
11491
|
+
var Group = h("div", _mergeJSXProps([{
|
|
11491
11492
|
"class": [bem$$({
|
|
11492
11493
|
inset: props.inset
|
|
11493
11494
|
}), (_ref = {}, _ref[BORDER_TOP_BOTTOM] = props.border, _ref)]
|
|
@@ -12028,7 +12029,7 @@ function ContactCard(h, props, slots2, ctx) {
|
|
|
12028
12029
|
}
|
|
12029
12030
|
return [h("div", [t$i("name") + "\uFF1A" + props.name]), h("div", [t$i("tel") + "\uFF1A" + props.tel])];
|
|
12030
12031
|
}
|
|
12031
|
-
return h(Cell$1,
|
|
12032
|
+
return h(Cell$1, _mergeJSXProps([{
|
|
12032
12033
|
"attrs": {
|
|
12033
12034
|
"center": true,
|
|
12034
12035
|
"border": false,
|
|
@@ -12287,7 +12288,7 @@ function ContactList(h, props, slots2, ctx) {
|
|
|
12287
12288
|
}
|
|
12288
12289
|
});
|
|
12289
12290
|
});
|
|
12290
|
-
return h("div",
|
|
12291
|
+
return h("div", _mergeJSXProps([{
|
|
12291
12292
|
"class": bem$S()
|
|
12292
12293
|
}, inherit(ctx)]), [h(RadioGroup, {
|
|
12293
12294
|
"attrs": {
|
|
@@ -12608,7 +12609,7 @@ function formatValue(props) {
|
|
|
12608
12609
|
function CouponCell(h, props, slots2, ctx) {
|
|
12609
12610
|
var selected = props.coupons[+props.chosenCoupon];
|
|
12610
12611
|
var value17 = formatValue(props);
|
|
12611
|
-
return h(Cell$1,
|
|
12612
|
+
return h(Cell$1, _mergeJSXProps([{
|
|
12612
12613
|
"class": bem$P(),
|
|
12613
12614
|
"attrs": {
|
|
12614
12615
|
"value": value17,
|
|
@@ -13413,7 +13414,7 @@ var DatetimePicker = createComponent$S({
|
|
|
13413
13414
|
var _createNamespace$N = createNamespace("divider"), createComponent$R = _createNamespace$N[0], bem$M = _createNamespace$N[1];
|
|
13414
13415
|
function Divider(h, props, slots2, ctx) {
|
|
13415
13416
|
var _bem;
|
|
13416
|
-
return h("div",
|
|
13417
|
+
return h("div", _mergeJSXProps([{
|
|
13417
13418
|
"attrs": {
|
|
13418
13419
|
"role": "separator"
|
|
13419
13420
|
},
|
|
@@ -16013,7 +16014,7 @@ function Notify$1(h, props, slots2, ctx) {
|
|
|
16013
16014
|
color: props.color,
|
|
16014
16015
|
background: props.background
|
|
16015
16016
|
};
|
|
16016
|
-
return h(Popup,
|
|
16017
|
+
return h(Popup, _mergeJSXProps([{
|
|
16017
16018
|
"attrs": {
|
|
16018
16019
|
"value": props.value,
|
|
16019
16020
|
"position": "top",
|
|
@@ -16629,7 +16630,7 @@ function Panel(h, props, slots2, ctx) {
|
|
|
16629
16630
|
"class": [bem$s("footer"), BORDER_TOP]
|
|
16630
16631
|
}, [slots2.footer()])];
|
|
16631
16632
|
};
|
|
16632
|
-
return h(CellGroup$1,
|
|
16633
|
+
return h(CellGroup$1, _mergeJSXProps([{
|
|
16633
16634
|
"class": bem$s(),
|
|
16634
16635
|
"scopedSlots": {
|
|
16635
16636
|
default: Content2
|
|
@@ -16675,7 +16676,7 @@ function PasswordInput(h, props, slots2, ctx) {
|
|
|
16675
16676
|
}
|
|
16676
16677
|
return h("div", {
|
|
16677
16678
|
"class": bem$r()
|
|
16678
|
-
}, [h("ul",
|
|
16679
|
+
}, [h("ul", _mergeJSXProps([{
|
|
16679
16680
|
"class": [bem$r("security"), (_ref2 = {}, _ref2[BORDER_SURROUND] = !gutter, _ref2)],
|
|
16680
16681
|
"on": {
|
|
16681
16682
|
"touchstart": function touchstart(event) {
|
|
@@ -18385,7 +18386,7 @@ function Search(h, props, slots2, ctx) {
|
|
|
18385
18386
|
};
|
|
18386
18387
|
var inheritData = inherit(ctx);
|
|
18387
18388
|
inheritData.attrs = void 0;
|
|
18388
|
-
return h("div",
|
|
18389
|
+
return h("div", _mergeJSXProps([{
|
|
18389
18390
|
"class": bem$l({
|
|
18390
18391
|
"show-action": props.showAction
|
|
18391
18392
|
}),
|
|
@@ -18394,7 +18395,7 @@ function Search(h, props, slots2, ctx) {
|
|
|
18394
18395
|
}
|
|
18395
18396
|
}, inheritData]), [slots2.left == null ? void 0 : slots2.left(), h("div", {
|
|
18396
18397
|
"class": bem$l("content", props.shape)
|
|
18397
|
-
}, [Label(), h(Field,
|
|
18398
|
+
}, [Label(), h(Field, _mergeJSXProps([{
|
|
18398
18399
|
"attrs": {
|
|
18399
18400
|
"type": "search",
|
|
18400
18401
|
"border": false,
|
|
@@ -18717,7 +18718,7 @@ function Skeleton(h, props, slots2, ctx) {
|
|
|
18717
18718
|
});
|
|
18718
18719
|
}
|
|
18719
18720
|
}
|
|
18720
|
-
return h("div",
|
|
18721
|
+
return h("div", _mergeJSXProps([{
|
|
18721
18722
|
"class": bem$h({
|
|
18722
18723
|
animate: props.animate,
|
|
18723
18724
|
round: props.round
|
|
@@ -18975,7 +18976,7 @@ function SkuHeader$1(h, props, slots2, ctx) {
|
|
|
18975
18976
|
var previewImage = function previewImage2() {
|
|
18976
18977
|
skuEventBus.$emit("sku:previewImage", selectedValue);
|
|
18977
18978
|
};
|
|
18978
|
-
return h("div",
|
|
18979
|
+
return h("div", _mergeJSXProps([{
|
|
18979
18980
|
"class": [bem$g(), BORDER_BOTTOM]
|
|
18980
18981
|
}, inherit(ctx)]), [showHeaderImage && h(Image, {
|
|
18981
18982
|
"attrs": {
|
|
@@ -19000,7 +19001,7 @@ SkuHeader$1.props = {
|
|
|
19000
19001
|
var SkuHeader$2 = createComponent$l(SkuHeader$1);
|
|
19001
19002
|
var _createNamespace$g = createNamespace("sku-header-item"), createComponent$k = _createNamespace$g[0], bem$f = _createNamespace$g[1];
|
|
19002
19003
|
function SkuHeader(h, props, slots2, ctx) {
|
|
19003
|
-
return h("div",
|
|
19004
|
+
return h("div", _mergeJSXProps([{
|
|
19004
19005
|
"class": bem$f()
|
|
19005
19006
|
}, inherit(ctx)]), [slots2.default && slots2.default()]);
|
|
19006
19007
|
}
|
|
@@ -19478,7 +19479,7 @@ var Stepper = createComponent$g({
|
|
|
19478
19479
|
};
|
|
19479
19480
|
return h("div", {
|
|
19480
19481
|
"class": bem$d([this.theme])
|
|
19481
|
-
}, [h("button",
|
|
19482
|
+
}, [h("button", _mergeJSXProps([{
|
|
19482
19483
|
"directives": [{
|
|
19483
19484
|
name: "show",
|
|
19484
19485
|
value: this.showMinus
|
|
@@ -19518,7 +19519,7 @@ var Stepper = createComponent$g({
|
|
|
19518
19519
|
"blur": this.onBlur,
|
|
19519
19520
|
"mousedown": this.onMousedown
|
|
19520
19521
|
}
|
|
19521
|
-
}), h("button",
|
|
19522
|
+
}), h("button", _mergeJSXProps([{
|
|
19522
19523
|
"directives": [{
|
|
19523
19524
|
name: "show",
|
|
19524
19525
|
value: this.showPlus
|
|
@@ -20562,7 +20563,7 @@ function SkuActions(h, props, slots2, ctx) {
|
|
|
20562
20563
|
props.skuEventBus.$emit(name2);
|
|
20563
20564
|
};
|
|
20564
20565
|
};
|
|
20565
|
-
return h("div",
|
|
20566
|
+
return h("div", _mergeJSXProps([{
|
|
20566
20567
|
"class": bem$a()
|
|
20567
20568
|
}, inherit(ctx)]), [props.showAddCartBtn && h(Button$1, {
|
|
20568
20569
|
"attrs": {
|
|
@@ -21701,7 +21702,7 @@ function SubmitBar(h, props, slots2, ctx) {
|
|
|
21701
21702
|
}, [tip]), slots2.tip && slots2.tip()]);
|
|
21702
21703
|
}
|
|
21703
21704
|
}
|
|
21704
|
-
return h("div",
|
|
21705
|
+
return h("div", _mergeJSXProps([{
|
|
21705
21706
|
"class": bem$5({
|
|
21706
21707
|
unfit: !props.safeAreaInsetBottom
|
|
21707
21708
|
})
|
|
@@ -21940,7 +21941,7 @@ var SwipeCell = createComponent$4({
|
|
|
21940
21941
|
});
|
|
21941
21942
|
var _createNamespace$3 = createNamespace("switch-cell"), createComponent$3 = _createNamespace$3[0], bem$3 = _createNamespace$3[1];
|
|
21942
21943
|
function SwitchCell(h, props, slots2, ctx) {
|
|
21943
|
-
return h(Cell$1,
|
|
21944
|
+
return h(Cell$1, _mergeJSXProps([{
|
|
21944
21945
|
"attrs": {
|
|
21945
21946
|
"center": true,
|
|
21946
21947
|
"size": props.cellSize,
|
|
@@ -22217,7 +22218,7 @@ function TreeSelect(h, props, slots2, ctx) {
|
|
|
22217
22218
|
})]);
|
|
22218
22219
|
});
|
|
22219
22220
|
}
|
|
22220
|
-
return h("div",
|
|
22221
|
+
return h("div", _mergeJSXProps([{
|
|
22221
22222
|
"class": bem(),
|
|
22222
22223
|
"style": {
|
|
22223
22224
|
height: addUnit(height)
|
|
@@ -23389,17 +23390,17 @@ function _nonIterableSpread() {
|
|
|
23389
23390
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
23390
23391
|
}
|
|
23391
23392
|
var version$1 = "1.10.2";
|
|
23392
|
-
function userAgent(pattern) {
|
|
23393
|
+
function userAgent$1(pattern) {
|
|
23393
23394
|
if (typeof window !== "undefined" && window.navigator) {
|
|
23394
23395
|
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
23395
23396
|
}
|
|
23396
23397
|
}
|
|
23397
|
-
var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
|
|
23398
|
-
var Edge = userAgent(/Edge/i);
|
|
23399
|
-
var FireFox = userAgent(/firefox/i);
|
|
23400
|
-
var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
|
|
23401
|
-
var IOS = userAgent(/iP(ad|od|hone)/i);
|
|
23402
|
-
var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
|
|
23398
|
+
var IE11OrLess = userAgent$1(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
|
|
23399
|
+
var Edge = userAgent$1(/Edge/i);
|
|
23400
|
+
var FireFox = userAgent$1(/firefox/i);
|
|
23401
|
+
var Safari = userAgent$1(/safari/i) && !userAgent$1(/chrome/i) && !userAgent$1(/android/i);
|
|
23402
|
+
var IOS = userAgent$1(/iP(ad|od|hone)/i);
|
|
23403
|
+
var ChromeForAndroid = userAgent$1(/chrome/i) && userAgent$1(/android/i);
|
|
23403
23404
|
var captureMode = {
|
|
23404
23405
|
capture: false,
|
|
23405
23406
|
passive: false
|
|
@@ -30501,6 +30502,8 @@ axios$2.exports = axios$1;
|
|
|
30501
30502
|
axios$2.exports.default = axios$1;
|
|
30502
30503
|
var axios = axios$2.exports;
|
|
30503
30504
|
const isHb$1 = location.pathname.includes("scyxweb");
|
|
30505
|
+
const userAgent = navigator.userAgent.toLowerCase();
|
|
30506
|
+
const isQywx = /wxwork/.test(userAgent) ? true : false;
|
|
30504
30507
|
const Cookie = {
|
|
30505
30508
|
set: function(key, value17, exdays) {
|
|
30506
30509
|
if (key.indexOf("=") !== -1) {
|
|
@@ -30574,7 +30577,30 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
30574
30577
|
const routerOptionsBak = _.cloneDeep(router.options);
|
|
30575
30578
|
window.sessionNotValidHandler = async function() {
|
|
30576
30579
|
if (typeof window.Code != "undefined" || isHb$1) {
|
|
30577
|
-
|
|
30580
|
+
try {
|
|
30581
|
+
await pluginLogin(store2);
|
|
30582
|
+
} catch (e) {
|
|
30583
|
+
console.log("pluginLogin e", e);
|
|
30584
|
+
if (isHb$1) {
|
|
30585
|
+
if (isQywx) {
|
|
30586
|
+
location.href = location.protocol + "//" + location.host + "/hbwebchat/wxmain?syscode=gtptrpxebl";
|
|
30587
|
+
} else {
|
|
30588
|
+
try {
|
|
30589
|
+
await Dialog.alert({
|
|
30590
|
+
title: "\u63D0\u793A",
|
|
30591
|
+
message: "\u5F53\u524D\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u7CFB\u7EDF\u5C06\u91CD\u65B0\u767B\u9646"
|
|
30592
|
+
});
|
|
30593
|
+
console.log("\u4F1A\u8BDD\u5931\u6548-------2");
|
|
30594
|
+
wx.miniProgram.navigateTo({
|
|
30595
|
+
url: "/pages/index/reload"
|
|
30596
|
+
});
|
|
30597
|
+
} catch (err) {
|
|
30598
|
+
console.log(err);
|
|
30599
|
+
return false;
|
|
30600
|
+
}
|
|
30601
|
+
}
|
|
30602
|
+
}
|
|
30603
|
+
}
|
|
30578
30604
|
await store2.dispatch("getUserInfo");
|
|
30579
30605
|
await store2.dispatch("getAppListData");
|
|
30580
30606
|
await store2.dispatch("getPermissionData");
|