@uxda/appkit 4.2.97 → 4.2.98
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/dist/index.js +137 -102
- package/package.json +1 -1
- package/src/shared/tracking/tracking-sdk.ts +83 -14
package/dist/index.js
CHANGED
|
@@ -587,7 +587,7 @@ var script$L = /* @__PURE__ */ defineComponent({
|
|
|
587
587
|
512
|
|
588
588
|
/* NEED_PATCH */
|
|
589
589
|
), [
|
|
590
|
-
[_directive_track_click,
|
|
590
|
+
[_directive_track_click, "\u9875\u9762\u5934\u90E8-\u8FD4\u56DE"]
|
|
591
591
|
]),
|
|
592
592
|
renderSlot(_ctx.$slots, "default")
|
|
593
593
|
],
|
|
@@ -742,7 +742,7 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
742
742
|
512
|
|
743
743
|
/* NEED_PATCH */
|
|
744
744
|
)), [
|
|
745
|
-
[_directive_track_click,
|
|
745
|
+
[_directive_track_click, "\u624B\u673A\u53F7\u9A8C\u8BC1-\u83B7\u53D6\u9A8C\u8BC1\u7801"]
|
|
746
746
|
]) : createCommentVNode("v-if", true),
|
|
747
747
|
sent.value ? (openBlock(), createElementBlock(
|
|
748
748
|
"div",
|
|
@@ -771,7 +771,7 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
771
771
|
_: 1
|
|
772
772
|
/* STABLE */
|
|
773
773
|
})), [
|
|
774
|
-
[_directive_track_click,
|
|
774
|
+
[_directive_track_click, "\u624B\u673A\u53F7\u9A8C\u8BC1-\u53D6\u6D88"]
|
|
775
775
|
]),
|
|
776
776
|
withDirectives((openBlock(), createBlock(unref(NsButton), {
|
|
777
777
|
color: "primary",
|
|
@@ -787,7 +787,7 @@ var script$J = /* @__PURE__ */ defineComponent({
|
|
|
787
787
|
_: 1
|
|
788
788
|
/* STABLE */
|
|
789
789
|
})), [
|
|
790
|
-
[_directive_track_click,
|
|
790
|
+
[_directive_track_click, "\u624B\u673A\u53F7\u9A8C\u8BC1-\u786E\u8BA4"]
|
|
791
791
|
])
|
|
792
792
|
])
|
|
793
793
|
]);
|
|
@@ -837,7 +837,7 @@ var script$I = /* @__PURE__ */ defineComponent({
|
|
|
837
837
|
)) : createCommentVNode("v-if", true),
|
|
838
838
|
renderSlot(_ctx.$slots, "default")
|
|
839
839
|
])), [
|
|
840
|
-
[_directive_track_click,
|
|
840
|
+
[_directive_track_click, "\u901A\u77E5\u680F-\u6587\u672C"]
|
|
841
841
|
]),
|
|
842
842
|
__props.showClose ? withDirectives((openBlock(), createElementBlock("div", {
|
|
843
843
|
key: 0,
|
|
@@ -855,7 +855,7 @@ var script$I = /* @__PURE__ */ defineComponent({
|
|
|
855
855
|
/* CACHED */
|
|
856
856
|
)
|
|
857
857
|
])])), [
|
|
858
|
-
[_directive_track_click,
|
|
858
|
+
[_directive_track_click, "\u901A\u77E5\u680F-\u5173\u95ED"]
|
|
859
859
|
]) : createCommentVNode("v-if", true)
|
|
860
860
|
],
|
|
861
861
|
6
|
|
@@ -1301,7 +1301,7 @@ var script$G = /* @__PURE__ */ defineComponent({
|
|
|
1301
1301
|
2
|
|
1302
1302
|
/* CLASS */
|
|
1303
1303
|
)), [
|
|
1304
|
-
[_directive_track_click,
|
|
1304
|
+
[_directive_track_click, "\u8EAB\u4EFD\u8BC1\u8BC6\u522B-\u70B9\u51FB"]
|
|
1305
1305
|
]),
|
|
1306
1306
|
createVNode(_component_nut_action_sheet, {
|
|
1307
1307
|
visible: activeSheetVisible.value,
|
|
@@ -1430,7 +1430,7 @@ var script$F = /* @__PURE__ */ defineComponent({
|
|
|
1430
1430
|
2
|
|
1431
1431
|
/* CLASS */
|
|
1432
1432
|
)), [
|
|
1433
|
-
[_directive_track_click,
|
|
1433
|
+
[_directive_track_click, "\u8425\u4E1A\u6267\u7167\u8BC6\u522B-\u70B9\u51FB"]
|
|
1434
1434
|
]);
|
|
1435
1435
|
};
|
|
1436
1436
|
}
|
|
@@ -1610,26 +1610,75 @@ class TrackingSDK {
|
|
|
1610
1610
|
if (typeof btoa !== "undefined") {
|
|
1611
1611
|
base64 = btoa(unescape(encodeURIComponent(raw)));
|
|
1612
1612
|
} else {
|
|
1613
|
-
base64 = this.
|
|
1613
|
+
base64 = this.btoa(raw);
|
|
1614
1614
|
}
|
|
1615
1615
|
return base64.split("").reverse().join("");
|
|
1616
1616
|
}
|
|
1617
1617
|
/**
|
|
1618
|
-
*
|
|
1618
|
+
* 手动实现 btoa 方法(小程序端降级方案)
|
|
1619
|
+
* 与浏览器 btoa(unescape(encodeURIComponent(str))) 行为一致
|
|
1620
|
+
* @param str 要编码的字符串
|
|
1621
|
+
* @returns Base64 编码后的字符串
|
|
1619
1622
|
*/
|
|
1620
|
-
|
|
1621
|
-
const
|
|
1623
|
+
btoa(str) {
|
|
1624
|
+
const utf8Bytes = [];
|
|
1625
|
+
for (let i = 0; i < str.length; i++) {
|
|
1626
|
+
const codePoint = str.charCodeAt(i);
|
|
1627
|
+
if (codePoint < 128) {
|
|
1628
|
+
utf8Bytes.push(codePoint);
|
|
1629
|
+
} else if (codePoint < 2048) {
|
|
1630
|
+
utf8Bytes.push(192 | codePoint >> 6);
|
|
1631
|
+
utf8Bytes.push(128 | codePoint & 63);
|
|
1632
|
+
} else if (codePoint >= 55296 && codePoint <= 56319) {
|
|
1633
|
+
if (i + 1 < str.length) {
|
|
1634
|
+
const lowSurrogate = str.charCodeAt(i + 1);
|
|
1635
|
+
if (lowSurrogate >= 56320 && lowSurrogate <= 57343) {
|
|
1636
|
+
const unicodeCodePoint = 65536 + ((codePoint & 1023) << 10) + (lowSurrogate & 1023);
|
|
1637
|
+
utf8Bytes.push(240 | unicodeCodePoint >> 18);
|
|
1638
|
+
utf8Bytes.push(128 | unicodeCodePoint >> 12 & 63);
|
|
1639
|
+
utf8Bytes.push(128 | unicodeCodePoint >> 6 & 63);
|
|
1640
|
+
utf8Bytes.push(128 | unicodeCodePoint & 63);
|
|
1641
|
+
i++;
|
|
1642
|
+
continue;
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
utf8Bytes.push(239, 191, 189);
|
|
1646
|
+
} else {
|
|
1647
|
+
utf8Bytes.push(224 | codePoint >> 12);
|
|
1648
|
+
utf8Bytes.push(128 | codePoint >> 6 & 63);
|
|
1649
|
+
utf8Bytes.push(128 | codePoint & 63);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
return this.base64EncodeBytes(utf8Bytes);
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
* Base64 编码(字节数组版本)
|
|
1656
|
+
* @param bytes 字节数组
|
|
1657
|
+
* @returns Base64 编码后的字符串
|
|
1658
|
+
*/
|
|
1659
|
+
base64EncodeBytes(bytes) {
|
|
1660
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1622
1661
|
let output = "";
|
|
1623
1662
|
let i = 0;
|
|
1624
|
-
while (i <
|
|
1625
|
-
const a =
|
|
1626
|
-
const
|
|
1627
|
-
const
|
|
1663
|
+
while (i < bytes.length) {
|
|
1664
|
+
const a = bytes[i++];
|
|
1665
|
+
const hasB = i < bytes.length;
|
|
1666
|
+
const b = hasB ? bytes[i++] : 0;
|
|
1667
|
+
const hasC = i < bytes.length;
|
|
1668
|
+
const c = hasC ? bytes[i++] : 0;
|
|
1628
1669
|
const bitmap = a << 16 | b << 8 | c;
|
|
1629
1670
|
output += chars.charAt(bitmap >> 18 & 63);
|
|
1630
1671
|
output += chars.charAt(bitmap >> 12 & 63);
|
|
1631
|
-
|
|
1632
|
-
|
|
1672
|
+
if (hasB) {
|
|
1673
|
+
output += chars.charAt(bitmap >> 6 & 63);
|
|
1674
|
+
if (hasC) {
|
|
1675
|
+
output += chars.charAt(bitmap & 63);
|
|
1676
|
+
} else {
|
|
1677
|
+
output += "=";
|
|
1678
|
+
}
|
|
1679
|
+
} else {
|
|
1680
|
+
output += "==";
|
|
1681
|
+
}
|
|
1633
1682
|
}
|
|
1634
1683
|
return output;
|
|
1635
1684
|
}
|
|
@@ -1942,19 +1991,20 @@ class TrackingSDK {
|
|
|
1942
1991
|
* 发送埋点数据
|
|
1943
1992
|
*/
|
|
1944
1993
|
async flush() {
|
|
1994
|
+
console.log(this.eventQueue.length, "this.eventQueue.length");
|
|
1945
1995
|
if (this.eventQueue.length === 0) return;
|
|
1946
1996
|
const events = [...this.eventQueue];
|
|
1947
1997
|
this.eventQueue = [];
|
|
1948
1998
|
try {
|
|
1949
1999
|
const jsonStr = JSON.stringify(events);
|
|
1950
|
-
const compressed = pako.deflate(jsonStr);
|
|
2000
|
+
const compressed = getEnv() === "WEAPP" ? jsonStr : pako.deflate(jsonStr);
|
|
1951
2001
|
const encryptedToken = this.encryptToken();
|
|
1952
2002
|
const { success } = await this.http({
|
|
1953
2003
|
url: `${this.config.apiEndpoint}?contentId=${encryptedToken}`,
|
|
1954
2004
|
method: "POST",
|
|
1955
2005
|
data: compressed,
|
|
1956
2006
|
header: {
|
|
1957
|
-
"Content-Encoding": "deflate"
|
|
2007
|
+
"Content-Encoding": getEnv() === "WEAPP" ? "" : "deflate"
|
|
1958
2008
|
}
|
|
1959
2009
|
});
|
|
1960
2010
|
if (success && this.config.debug) {
|
|
@@ -2131,10 +2181,10 @@ class TrackingSDK {
|
|
|
2131
2181
|
flushNow() {
|
|
2132
2182
|
if (this.eventQueue.length === 0) return;
|
|
2133
2183
|
const events = [...this.eventQueue];
|
|
2134
|
-
this.eventQueue = [];
|
|
2135
2184
|
try {
|
|
2136
2185
|
const env = getEnv();
|
|
2137
2186
|
if (env === "WEB" && typeof navigator !== "undefined" && navigator.sendBeacon) {
|
|
2187
|
+
this.eventQueue = [];
|
|
2138
2188
|
const blob = new Blob([JSON.stringify(events)], {
|
|
2139
2189
|
type: "application/json"
|
|
2140
2190
|
});
|
|
@@ -3007,7 +3057,7 @@ var script$E = /* @__PURE__ */ defineComponent({
|
|
|
3007
3057
|
/* CACHED */
|
|
3008
3058
|
)
|
|
3009
3059
|
])])), [
|
|
3010
|
-
[_directive_track_click
|
|
3060
|
+
[_directive_track_click]
|
|
3011
3061
|
])
|
|
3012
3062
|
]),
|
|
3013
3063
|
_: 1
|
|
@@ -3031,7 +3081,7 @@ var script$E = /* @__PURE__ */ defineComponent({
|
|
|
3031
3081
|
_: 1
|
|
3032
3082
|
/* STABLE */
|
|
3033
3083
|
}, 8, ["loading"])), [
|
|
3034
|
-
[_directive_track_click
|
|
3084
|
+
[_directive_track_click]
|
|
3035
3085
|
])
|
|
3036
3086
|
])
|
|
3037
3087
|
]);
|
|
@@ -3120,7 +3170,7 @@ var script$C = /* @__PURE__ */ defineComponent({
|
|
|
3120
3170
|
_: 1
|
|
3121
3171
|
/* STABLE */
|
|
3122
3172
|
})), [
|
|
3123
|
-
[_directive_track_click
|
|
3173
|
+
[_directive_track_click]
|
|
3124
3174
|
])
|
|
3125
3175
|
])
|
|
3126
3176
|
]);
|
|
@@ -3464,7 +3514,7 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3464
3514
|
/* CACHED */
|
|
3465
3515
|
)
|
|
3466
3516
|
])])), [
|
|
3467
|
-
[_directive_track_click
|
|
3517
|
+
[_directive_track_click]
|
|
3468
3518
|
])
|
|
3469
3519
|
]),
|
|
3470
3520
|
_: 1
|
|
@@ -3510,7 +3560,7 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3510
3560
|
_: 1
|
|
3511
3561
|
/* STABLE */
|
|
3512
3562
|
}, 8, ["loading"])), [
|
|
3513
|
-
[_directive_track_click
|
|
3563
|
+
[_directive_track_click]
|
|
3514
3564
|
])
|
|
3515
3565
|
])
|
|
3516
3566
|
]),
|
|
@@ -3671,23 +3721,11 @@ var script$z = /* @__PURE__ */ defineComponent({
|
|
|
3671
3721
|
/* CACHED */
|
|
3672
3722
|
)
|
|
3673
3723
|
])])), [
|
|
3674
|
-
[_directive_track_click
|
|
3724
|
+
[_directive_track_click]
|
|
3675
3725
|
])
|
|
3676
3726
|
])
|
|
3677
3727
|
]),
|
|
3678
|
-
createCommentVNode(
|
|
3679
|
-
<div class="card-row">
|
|
3680
|
-
<div class="card-row-left desc">\u6743\u76CA\u4F7F\u7528\u65F6\u81EA\u52A8\u6263\u51CF\u4E91\u8C46</div>
|
|
3681
|
-
<div class="card-row-right">
|
|
3682
|
-
<div class="pay" v-track-click="'click'" @click="gotoRecharge">
|
|
3683
|
-
<div>\u5145\u503C</div>
|
|
3684
|
-
<img
|
|
3685
|
-
class="pay-icon"
|
|
3686
|
-
src="https://cdn.ddjf.com/static/images/bpms-workBench/bean-right.png"
|
|
3687
|
-
/>
|
|
3688
|
-
</div>
|
|
3689
|
-
</div>
|
|
3690
|
-
</div> `)
|
|
3728
|
+
createCommentVNode(' <div class="line"></div>\n <div class="card-row">\n <div class="card-row-left desc">\u6743\u76CA\u4F7F\u7528\u65F6\u81EA\u52A8\u6263\u51CF\u4E91\u8C46</div>\n <div class="card-row-right">\n <div class="pay" v-track-click @click="gotoRecharge">\n <div>\u5145\u503C</div>\n <img\n class="pay-icon"\n src="https://cdn.ddjf.com/static/images/bpms-workBench/bean-right.png"\n />\n </div>\n </div>\n </div> ')
|
|
3691
3729
|
])
|
|
3692
3730
|
]);
|
|
3693
3731
|
};
|
|
@@ -3833,7 +3871,7 @@ var script$y = /* @__PURE__ */ defineComponent({
|
|
|
3833
3871
|
/* CACHED */
|
|
3834
3872
|
)
|
|
3835
3873
|
])])), [
|
|
3836
|
-
[_directive_track_click,
|
|
3874
|
+
[_directive_track_click, "\u9009\u62E9\u7B5B\u9009\u9879-\u786E\u5B9A"]
|
|
3837
3875
|
])
|
|
3838
3876
|
]),
|
|
3839
3877
|
_cache[2] || (_cache[2] = createElementVNode(
|
|
@@ -3991,7 +4029,7 @@ var script$x = /* @__PURE__ */ defineComponent({
|
|
|
3991
4029
|
/* CACHED */
|
|
3992
4030
|
)
|
|
3993
4031
|
])])), [
|
|
3994
|
-
[_directive_track_click,
|
|
4032
|
+
[_directive_track_click, "\u65E5\u671F\u9009\u62E9-\u786E\u5B9A"]
|
|
3995
4033
|
])
|
|
3996
4034
|
]),
|
|
3997
4035
|
_cache[8] || (_cache[8] = createElementVNode(
|
|
@@ -4071,7 +4109,7 @@ var script$w = /* @__PURE__ */ defineComponent({
|
|
|
4071
4109
|
/* CACHED */
|
|
4072
4110
|
)
|
|
4073
4111
|
])])), [
|
|
4074
|
-
[_directive_track_click,
|
|
4112
|
+
[_directive_track_click, "\u89C4\u5219\u8BF4\u660E-\u6211\u77E5\u9053\u4E86"]
|
|
4075
4113
|
])
|
|
4076
4114
|
]);
|
|
4077
4115
|
};
|
|
@@ -4412,7 +4450,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
4412
4450
|
/* CACHED */
|
|
4413
4451
|
)
|
|
4414
4452
|
])])), [
|
|
4415
|
-
[_directive_track_click
|
|
4453
|
+
[_directive_track_click]
|
|
4416
4454
|
])
|
|
4417
4455
|
]),
|
|
4418
4456
|
createElementVNode("div", _hoisted_4$a, [
|
|
@@ -4441,7 +4479,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
4441
4479
|
/* CACHED */
|
|
4442
4480
|
)
|
|
4443
4481
|
])])), [
|
|
4444
|
-
[_directive_track_click
|
|
4482
|
+
[_directive_track_click]
|
|
4445
4483
|
]) : createCommentVNode("v-if", true)
|
|
4446
4484
|
]),
|
|
4447
4485
|
createElementVNode("div", _hoisted_6$6, [
|
|
@@ -4463,7 +4501,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
4463
4501
|
/* CACHED */
|
|
4464
4502
|
)
|
|
4465
4503
|
])])), [
|
|
4466
|
-
[_directive_track_click
|
|
4504
|
+
[_directive_track_click]
|
|
4467
4505
|
]) : createCommentVNode("v-if", true)
|
|
4468
4506
|
])
|
|
4469
4507
|
]),
|
|
@@ -4519,7 +4557,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
4519
4557
|
/* CACHED */
|
|
4520
4558
|
)
|
|
4521
4559
|
])], 8, _hoisted_13$1)), [
|
|
4522
|
-
[_directive_track_click
|
|
4560
|
+
[_directive_track_click]
|
|
4523
4561
|
]),
|
|
4524
4562
|
_cache[12] || (_cache[12] = createElementVNode(
|
|
4525
4563
|
"img",
|
|
@@ -4582,7 +4620,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
4582
4620
|
/* CACHED */
|
|
4583
4621
|
)
|
|
4584
4622
|
])], 8, _hoisted_19$1)), [
|
|
4585
|
-
[_directive_track_click
|
|
4623
|
+
[_directive_track_click]
|
|
4586
4624
|
]),
|
|
4587
4625
|
_cache[15] || (_cache[15] = createElementVNode(
|
|
4588
4626
|
"img",
|
|
@@ -4774,7 +4812,7 @@ var script$t = /* @__PURE__ */ defineComponent({
|
|
|
4774
4812
|
/* CACHED */
|
|
4775
4813
|
)
|
|
4776
4814
|
])])), [
|
|
4777
|
-
[_directive_track_click
|
|
4815
|
+
[_directive_track_click]
|
|
4778
4816
|
])
|
|
4779
4817
|
],
|
|
4780
4818
|
2
|
|
@@ -4964,7 +5002,7 @@ var script$s = /* @__PURE__ */ defineComponent({
|
|
|
4964
5002
|
_: 1
|
|
4965
5003
|
/* STABLE */
|
|
4966
5004
|
})), [
|
|
4967
|
-
[_directive_track_click
|
|
5005
|
+
[_directive_track_click]
|
|
4968
5006
|
])
|
|
4969
5007
|
])
|
|
4970
5008
|
])
|
|
@@ -5052,7 +5090,7 @@ var script$r = /* @__PURE__ */ defineComponent({
|
|
|
5052
5090
|
/* CACHED */
|
|
5053
5091
|
))
|
|
5054
5092
|
])), [
|
|
5055
|
-
[_directive_track_click,
|
|
5093
|
+
[_directive_track_click, "\u65E5\u671F\u8303\u56F4-\u70B9\u51FB"]
|
|
5056
5094
|
]),
|
|
5057
5095
|
createVNode(_component_nut_popup, {
|
|
5058
5096
|
position: "bottom",
|
|
@@ -5203,7 +5241,7 @@ var script$q = /* @__PURE__ */ defineComponent({
|
|
|
5203
5241
|
/* CACHED */
|
|
5204
5242
|
)
|
|
5205
5243
|
])])), [
|
|
5206
|
-
[_directive_track_click,
|
|
5244
|
+
[_directive_track_click, "\u9009\u62E9\u7B5B\u9009\u9879-\u786E\u5B9A"]
|
|
5207
5245
|
])
|
|
5208
5246
|
]),
|
|
5209
5247
|
_cache[2] || (_cache[2] = createElementVNode(
|
|
@@ -5275,7 +5313,7 @@ var script$p = /* @__PURE__ */ defineComponent({
|
|
|
5275
5313
|
/* CACHED */
|
|
5276
5314
|
)
|
|
5277
5315
|
])])), [
|
|
5278
|
-
[_directive_track_click,
|
|
5316
|
+
[_directive_track_click, "\u7B5B\u9009-\u70B9\u51FB"]
|
|
5279
5317
|
]);
|
|
5280
5318
|
};
|
|
5281
5319
|
}
|
|
@@ -5446,7 +5484,7 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
5446
5484
|
alt: ""
|
|
5447
5485
|
}, null, 8, _hoisted_3$b)
|
|
5448
5486
|
])), [
|
|
5449
|
-
[_directive_track_click
|
|
5487
|
+
[_directive_track_click]
|
|
5450
5488
|
]) : createCommentVNode("v-if", true),
|
|
5451
5489
|
createElementVNode("div", _hoisted_4$7, [
|
|
5452
5490
|
__props.applyRecord.accessCheckStatus === "Y" ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
@@ -5492,7 +5530,7 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
5492
5530
|
512
|
|
5493
5531
|
/* NEED_PATCH */
|
|
5494
5532
|
), [
|
|
5495
|
-
[_directive_track_click,
|
|
5533
|
+
[_directive_track_click, "\u4EA7\u54C1\u9500\u552E\u6536\u76CA-\u8BF4\u660E"]
|
|
5496
5534
|
])
|
|
5497
5535
|
]),
|
|
5498
5536
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
@@ -5510,7 +5548,7 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
5510
5548
|
alt: ""
|
|
5511
5549
|
}, null, 8, _hoisted_8$3)
|
|
5512
5550
|
])), [
|
|
5513
|
-
[_directive_track_click
|
|
5551
|
+
[_directive_track_click]
|
|
5514
5552
|
])
|
|
5515
5553
|
],
|
|
5516
5554
|
64
|
|
@@ -5536,7 +5574,7 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
5536
5574
|
512
|
|
5537
5575
|
/* NEED_PATCH */
|
|
5538
5576
|
), [
|
|
5539
|
-
[_directive_track_click,
|
|
5577
|
+
[_directive_track_click, "\u5206\u9500\u8FD4\u4F63\u6536\u76CA-\u8BF4\u660E"]
|
|
5540
5578
|
])
|
|
5541
5579
|
]),
|
|
5542
5580
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
@@ -5554,7 +5592,7 @@ var script$o = /* @__PURE__ */ defineComponent({
|
|
|
5554
5592
|
alt: ""
|
|
5555
5593
|
}, null, 8, _hoisted_12$1)
|
|
5556
5594
|
])), [
|
|
5557
|
-
[_directive_track_click
|
|
5595
|
+
[_directive_track_click]
|
|
5558
5596
|
])
|
|
5559
5597
|
])) : createCommentVNode("v-if", true)
|
|
5560
5598
|
])
|
|
@@ -6220,7 +6258,7 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
6220
6258
|
_: 1
|
|
6221
6259
|
/* STABLE */
|
|
6222
6260
|
})), [
|
|
6223
|
-
[_directive_track_click
|
|
6261
|
+
[_directive_track_click]
|
|
6224
6262
|
])
|
|
6225
6263
|
])
|
|
6226
6264
|
]);
|
|
@@ -6442,7 +6480,7 @@ var script$j = /* @__PURE__ */ defineComponent({
|
|
|
6442
6480
|
/* CACHED */
|
|
6443
6481
|
)
|
|
6444
6482
|
])])), [
|
|
6445
|
-
[_directive_track_click
|
|
6483
|
+
[_directive_track_click]
|
|
6446
6484
|
]) : createCommentVNode("v-if", true)
|
|
6447
6485
|
]),
|
|
6448
6486
|
createElementVNode("div", _hoisted_3$9, [
|
|
@@ -6456,7 +6494,7 @@ var script$j = /* @__PURE__ */ defineComponent({
|
|
|
6456
6494
|
/* CACHED */
|
|
6457
6495
|
)
|
|
6458
6496
|
])])), [
|
|
6459
|
-
[_directive_track_click,
|
|
6497
|
+
[_directive_track_click, "\u7CFB\u7EDF\u516C\u544A-\u6211\u77E5\u9053\u4E86"]
|
|
6460
6498
|
])
|
|
6461
6499
|
])
|
|
6462
6500
|
]),
|
|
@@ -6668,13 +6706,13 @@ var script$i = /* @__PURE__ */ defineComponent({
|
|
|
6668
6706
|
/* CACHED */
|
|
6669
6707
|
)
|
|
6670
6708
|
])], 8, _hoisted_2$d)), [
|
|
6671
|
-
[_directive_track_click,
|
|
6709
|
+
[_directive_track_click, "\u901A\u77E5\u680F-\u8BE6\u60C5"]
|
|
6672
6710
|
])
|
|
6673
6711
|
]),
|
|
6674
6712
|
_: 2
|
|
6675
6713
|
/* DYNAMIC */
|
|
6676
6714
|
}, 1032, ["class", "showClose", "onClose"])), [
|
|
6677
|
-
[_directive_track_click,
|
|
6715
|
+
[_directive_track_click, "\u901A\u77E5\u680F-\u5173\u95ED"]
|
|
6678
6716
|
]);
|
|
6679
6717
|
}),
|
|
6680
6718
|
128
|
|
@@ -7145,7 +7183,7 @@ var script$f = /* @__PURE__ */ defineComponent({
|
|
|
7145
7183
|
/* CACHED */
|
|
7146
7184
|
)
|
|
7147
7185
|
])], 8, _hoisted_7$3)), [
|
|
7148
|
-
[_directive_track_click,
|
|
7186
|
+
[_directive_track_click, "\u6D88\u606F\u8BE6\u60C5-\u9644\u4EF6"]
|
|
7149
7187
|
]) : createCommentVNode("v-if", true)
|
|
7150
7188
|
],
|
|
7151
7189
|
2
|
|
@@ -7153,7 +7191,7 @@ var script$f = /* @__PURE__ */ defineComponent({
|
|
|
7153
7191
|
)
|
|
7154
7192
|
])
|
|
7155
7193
|
], 10, _hoisted_4$5)), [
|
|
7156
|
-
[_directive_track_click,
|
|
7194
|
+
[_directive_track_click, "\u6D88\u606F\u8BE6\u60C5"]
|
|
7157
7195
|
]);
|
|
7158
7196
|
}),
|
|
7159
7197
|
128
|
|
@@ -7356,7 +7394,7 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7356
7394
|
/* CACHED */
|
|
7357
7395
|
)
|
|
7358
7396
|
])])), [
|
|
7359
|
-
[_directive_track_click
|
|
7397
|
+
[_directive_track_click]
|
|
7360
7398
|
])
|
|
7361
7399
|
])) : createCommentVNode("v-if", true)
|
|
7362
7400
|
],
|
|
@@ -7432,10 +7470,7 @@ var script$e = /* @__PURE__ */ defineComponent({
|
|
|
7432
7470
|
_: 2
|
|
7433
7471
|
/* DYNAMIC */
|
|
7434
7472
|
}, 1032, ["onClick"])), [
|
|
7435
|
-
[_directive_track_click,
|
|
7436
|
-
event: "click",
|
|
7437
|
-
elementText: "\u6D88\u606F\u8BE6\u60C5"
|
|
7438
|
-
}]
|
|
7473
|
+
[_directive_track_click, "\u6D88\u606F\u8BE6\u60C5"]
|
|
7439
7474
|
])
|
|
7440
7475
|
]),
|
|
7441
7476
|
_: 1
|
|
@@ -7504,7 +7539,7 @@ var script$d = /* @__PURE__ */ defineComponent({
|
|
|
7504
7539
|
src: __props.avatar,
|
|
7505
7540
|
alt: ""
|
|
7506
7541
|
}, null, 8, _hoisted_3$5)), [
|
|
7507
|
-
[_directive_track_click,
|
|
7542
|
+
[_directive_track_click, "\u7528\u6237\u5165\u53E3-\u5934\u50CF"]
|
|
7508
7543
|
]) : withDirectives((openBlock(), createElementBlock(
|
|
7509
7544
|
"img",
|
|
7510
7545
|
{
|
|
@@ -7519,7 +7554,7 @@ var script$d = /* @__PURE__ */ defineComponent({
|
|
|
7519
7554
|
512
|
|
7520
7555
|
/* NEED_PATCH */
|
|
7521
7556
|
)), [
|
|
7522
|
-
[_directive_track_click,
|
|
7557
|
+
[_directive_track_click, "\u7528\u6237\u5165\u53E3-\u5934\u50CF"]
|
|
7523
7558
|
])
|
|
7524
7559
|
]),
|
|
7525
7560
|
createElementVNode("div", _hoisted_4$4, [
|
|
@@ -7546,7 +7581,7 @@ var script$d = /* @__PURE__ */ defineComponent({
|
|
|
7546
7581
|
/* CACHED */
|
|
7547
7582
|
)
|
|
7548
7583
|
])])), [
|
|
7549
|
-
[_directive_track_click,
|
|
7584
|
+
[_directive_track_click, "\u7528\u6237\u5165\u53E3-\u8BF7\u767B\u5F55"]
|
|
7550
7585
|
]) : (openBlock(), createElementBlock(
|
|
7551
7586
|
Fragment,
|
|
7552
7587
|
{ key: 1 },
|
|
@@ -7573,7 +7608,7 @@ var script$d = /* @__PURE__ */ defineComponent({
|
|
|
7573
7608
|
/* CACHED */
|
|
7574
7609
|
))
|
|
7575
7610
|
])), [
|
|
7576
|
-
[_directive_track_click,
|
|
7611
|
+
[_directive_track_click, "\u7528\u6237\u5165\u53E3-\u7528\u6237\u540D"]
|
|
7577
7612
|
]),
|
|
7578
7613
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
7579
7614
|
onClick: toUser,
|
|
@@ -7585,7 +7620,7 @@ var script$d = /* @__PURE__ */ defineComponent({
|
|
|
7585
7620
|
/* TEXT */
|
|
7586
7621
|
)
|
|
7587
7622
|
])), [
|
|
7588
|
-
[_directive_track_click,
|
|
7623
|
+
[_directive_track_click, "\u7528\u6237\u5165\u53E3-\u624B\u673A\u53F7"]
|
|
7589
7624
|
])
|
|
7590
7625
|
],
|
|
7591
7626
|
64
|
|
@@ -8066,7 +8101,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8066
8101
|
/* CACHED */
|
|
8067
8102
|
))
|
|
8068
8103
|
])), [
|
|
8069
|
-
[_directive_track_click,
|
|
8104
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u5934\u50CF"]
|
|
8070
8105
|
]),
|
|
8071
8106
|
withDirectives(createVNode(_component_nut_cell, {
|
|
8072
8107
|
title: "\u767B\u5F55\u624B\u673A\u53F7",
|
|
@@ -8074,7 +8109,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8074
8109
|
desc: unref(encodePhone)(userInfo.value.mobile || ""),
|
|
8075
8110
|
onClick: toBinding
|
|
8076
8111
|
}, null, 8, ["desc"]), [
|
|
8077
|
-
[_directive_track_click,
|
|
8112
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u767B\u5F55\u624B\u673A\u53F7"]
|
|
8078
8113
|
]),
|
|
8079
8114
|
props.isPersonal ? withDirectives((openBlock(), createBlock(_component_nut_cell, {
|
|
8080
8115
|
key: 0,
|
|
@@ -8083,7 +8118,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8083
8118
|
onClick: onNickNameChange,
|
|
8084
8119
|
desc: userInfo.value?.nickName || "--"
|
|
8085
8120
|
}, null, 8, ["desc"])), [
|
|
8086
|
-
[_directive_track_click,
|
|
8121
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u6635\u79F0"]
|
|
8087
8122
|
]) : (openBlock(), createBlock(_component_nut_cell, {
|
|
8088
8123
|
key: 1,
|
|
8089
8124
|
title: "\u6635\u79F0",
|
|
@@ -8102,7 +8137,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8102
8137
|
_: 1
|
|
8103
8138
|
/* STABLE */
|
|
8104
8139
|
})), [
|
|
8105
|
-
[_directive_track_click,
|
|
8140
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u8BA4\u8BC1\u4FE1\u606F"]
|
|
8106
8141
|
])
|
|
8107
8142
|
]),
|
|
8108
8143
|
__props.hasQiyezuhu ? (openBlock(), createElementBlock("div", _hoisted_8$1, "\u4F01\u4E1A/\u56E2\u961F")) : createCommentVNode("v-if", true),
|
|
@@ -8172,7 +8207,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8172
8207
|
/* CLASS */
|
|
8173
8208
|
)
|
|
8174
8209
|
], 8, _hoisted_16)), [
|
|
8175
|
-
[_directive_track_click,
|
|
8210
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u89D2\u8272\u8BE6\u60C5"]
|
|
8176
8211
|
])
|
|
8177
8212
|
])) : createCommentVNode("v-if", true),
|
|
8178
8213
|
item.showRole ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
@@ -8216,7 +8251,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8216
8251
|
src: "https://cdn.ddjf.com/static/images/appkit/edit.png",
|
|
8217
8252
|
alt: ""
|
|
8218
8253
|
}, null, 8, _hoisted_21), [
|
|
8219
|
-
[_directive_track_click,
|
|
8254
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u7528\u6237\u540D"]
|
|
8220
8255
|
])
|
|
8221
8256
|
]),
|
|
8222
8257
|
createElementVNode("div", _hoisted_22, [
|
|
@@ -8265,7 +8300,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8265
8300
|
_: 1
|
|
8266
8301
|
/* STABLE */
|
|
8267
8302
|
})), [
|
|
8268
|
-
[_directive_track_click,
|
|
8303
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u9000\u51FA\u767B\u5F55"]
|
|
8269
8304
|
]) : createCommentVNode("v-if", true)
|
|
8270
8305
|
])
|
|
8271
8306
|
]))
|
|
@@ -8298,7 +8333,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8298
8333
|
_: 1
|
|
8299
8334
|
/* STABLE */
|
|
8300
8335
|
})), [
|
|
8301
|
-
[_directive_track_click,
|
|
8336
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u4FEE\u6539\u7528\u6237\u540D-\u53D6\u6D88"]
|
|
8302
8337
|
]),
|
|
8303
8338
|
withDirectives((openBlock(), createBlock(_component_nut_button, {
|
|
8304
8339
|
class: "change-username-popup-ok",
|
|
@@ -8315,7 +8350,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8315
8350
|
_: 1
|
|
8316
8351
|
/* STABLE */
|
|
8317
8352
|
})), [
|
|
8318
|
-
[_directive_track_click,
|
|
8353
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u4FEE\u6539\u7528\u6237\u540D-\u786E\u5B9A"]
|
|
8319
8354
|
])
|
|
8320
8355
|
]),
|
|
8321
8356
|
default: withCtx(() => [
|
|
@@ -8354,7 +8389,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8354
8389
|
_: 1
|
|
8355
8390
|
/* STABLE */
|
|
8356
8391
|
})), [
|
|
8357
|
-
[_directive_track_click,
|
|
8392
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u4FEE\u6539\u6635\u79F0-\u53D6\u6D88"]
|
|
8358
8393
|
]),
|
|
8359
8394
|
withDirectives((openBlock(), createBlock(_component_nut_button, {
|
|
8360
8395
|
class: "change-username-popup-ok",
|
|
@@ -8371,7 +8406,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8371
8406
|
_: 1
|
|
8372
8407
|
/* STABLE */
|
|
8373
8408
|
})), [
|
|
8374
|
-
[_directive_track_click,
|
|
8409
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u4FEE\u6539\u6635\u79F0-\u786E\u5B9A"]
|
|
8375
8410
|
])
|
|
8376
8411
|
]),
|
|
8377
8412
|
default: withCtx(() => [
|
|
@@ -8421,7 +8456,7 @@ var script$b = /* @__PURE__ */ defineComponent({
|
|
|
8421
8456
|
/* CACHED */
|
|
8422
8457
|
)
|
|
8423
8458
|
])])), [
|
|
8424
|
-
[_directive_track_click,
|
|
8459
|
+
[_directive_track_click, "\u7528\u6237\u4FE1\u606F-\u66F4\u6362\u5934\u50CF"]
|
|
8425
8460
|
])
|
|
8426
8461
|
])
|
|
8427
8462
|
]),
|
|
@@ -8620,7 +8655,7 @@ var script$a = /* @__PURE__ */ defineComponent({
|
|
|
8620
8655
|
_: 1
|
|
8621
8656
|
/* STABLE */
|
|
8622
8657
|
}, 8, ["disabled"])), [
|
|
8623
|
-
[_directive_track_click,
|
|
8658
|
+
[_directive_track_click, "\u6362\u7ED1\u624B\u673A-\u83B7\u53D6\u9A8C\u8BC1\u7801"]
|
|
8624
8659
|
])
|
|
8625
8660
|
]),
|
|
8626
8661
|
_: 1
|
|
@@ -8651,7 +8686,7 @@ var script$a = /* @__PURE__ */ defineComponent({
|
|
|
8651
8686
|
_: 1
|
|
8652
8687
|
/* STABLE */
|
|
8653
8688
|
}, 8, ["disabled"])), [
|
|
8654
|
-
[_directive_track_click,
|
|
8689
|
+
[_directive_track_click, "\u6362\u7ED1\u624B\u673A-\u63D0\u4EA4"]
|
|
8655
8690
|
])
|
|
8656
8691
|
])) : (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
8657
8692
|
createVNode(_component_nut_form, null, {
|
|
@@ -8701,7 +8736,7 @@ var script$a = /* @__PURE__ */ defineComponent({
|
|
|
8701
8736
|
_: 1
|
|
8702
8737
|
/* STABLE */
|
|
8703
8738
|
}, 8, ["disabled"])), [
|
|
8704
|
-
[_directive_track_click,
|
|
8739
|
+
[_directive_track_click, "\u6362\u7ED1\u624B\u673A-\u83B7\u53D6\u9A8C\u8BC1\u7801"]
|
|
8705
8740
|
])
|
|
8706
8741
|
]),
|
|
8707
8742
|
_: 1
|
|
@@ -8732,7 +8767,7 @@ var script$a = /* @__PURE__ */ defineComponent({
|
|
|
8732
8767
|
_: 1
|
|
8733
8768
|
/* STABLE */
|
|
8734
8769
|
}, 8, ["disabled"])), [
|
|
8735
|
-
[_directive_track_click,
|
|
8770
|
+
[_directive_track_click, "\u6362\u7ED1\u624B\u673A-\u63D0\u4EA4"]
|
|
8736
8771
|
])
|
|
8737
8772
|
]))
|
|
8738
8773
|
]);
|
|
@@ -8807,7 +8842,7 @@ var script$9 = /* @__PURE__ */ defineComponent({
|
|
|
8807
8842
|
_: 1
|
|
8808
8843
|
/* STABLE */
|
|
8809
8844
|
})), [
|
|
8810
|
-
[_directive_track_click
|
|
8845
|
+
[_directive_track_click]
|
|
8811
8846
|
])
|
|
8812
8847
|
]);
|
|
8813
8848
|
};
|
|
@@ -9687,7 +9722,7 @@ var script$7 = /* @__PURE__ */ defineComponent({
|
|
|
9687
9722
|
/* CACHED */
|
|
9688
9723
|
)
|
|
9689
9724
|
])])), [
|
|
9690
|
-
[_directive_track_click,
|
|
9725
|
+
[_directive_track_click, "\u5934\u50CF\u88C1\u526A-\u53D6\u6D88"]
|
|
9691
9726
|
]),
|
|
9692
9727
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
9693
9728
|
class: "cbtn comfirmBtn",
|
|
@@ -9699,7 +9734,7 @@ var script$7 = /* @__PURE__ */ defineComponent({
|
|
|
9699
9734
|
/* CACHED */
|
|
9700
9735
|
)
|
|
9701
9736
|
])])), [
|
|
9702
|
-
[_directive_track_click,
|
|
9737
|
+
[_directive_track_click, "\u5934\u50CF\u88C1\u526A-\u786E\u5B9A"]
|
|
9703
9738
|
])
|
|
9704
9739
|
])
|
|
9705
9740
|
]),
|
|
@@ -10249,7 +10284,7 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
10249
10284
|
36
|
|
10250
10285
|
/* STYLE, NEED_HYDRATION */
|
|
10251
10286
|
)), [
|
|
10252
|
-
[_directive_track_click,
|
|
10287
|
+
[_directive_track_click, "\u53CD\u9988\u5165\u53E3-\u70B9\u51FB"]
|
|
10253
10288
|
]) : (openBlock(), createElementBlock(
|
|
10254
10289
|
"div",
|
|
10255
10290
|
{
|
|
@@ -10274,7 +10309,7 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
10274
10309
|
512
|
|
10275
10310
|
/* NEED_PATCH */
|
|
10276
10311
|
), [
|
|
10277
|
-
[_directive_track_click,
|
|
10312
|
+
[_directive_track_click, "\u53CD\u9988\u5165\u53E3-\u70B9\u51FB"]
|
|
10278
10313
|
]),
|
|
10279
10314
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
10280
10315
|
class: "user-feedback-entry-close",
|
|
@@ -10291,7 +10326,7 @@ var script$5 = /* @__PURE__ */ defineComponent({
|
|
|
10291
10326
|
/* CACHED */
|
|
10292
10327
|
)
|
|
10293
10328
|
])])), [
|
|
10294
|
-
[_directive_track_click,
|
|
10329
|
+
[_directive_track_click, "\u53CD\u9988\u5165\u53E3-\u5173\u95ED"]
|
|
10295
10330
|
])
|
|
10296
10331
|
],
|
|
10297
10332
|
36
|
|
@@ -10639,7 +10674,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
10639
10674
|
/* CACHED */
|
|
10640
10675
|
)
|
|
10641
10676
|
])])), [
|
|
10642
|
-
[_directive_track_click,
|
|
10677
|
+
[_directive_track_click, "\u7528\u6237\u8BA4\u8BC1-\u4E2A\u4EBA\u4FE1\u606F\u6388\u6743\u534F\u8BAE"]
|
|
10643
10678
|
])
|
|
10644
10679
|
])) : createCommentVNode("v-if", true),
|
|
10645
10680
|
!\u5DF2\u8BA4\u8BC1.value ? withDirectives((openBlock(), createBlock(unref(NsButton), {
|
|
@@ -10659,7 +10694,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
10659
10694
|
_: 1
|
|
10660
10695
|
/* STABLE */
|
|
10661
10696
|
})), [
|
|
10662
|
-
[_directive_track_click,
|
|
10697
|
+
[_directive_track_click, "\u7528\u6237\u8BA4\u8BC1-\u7ACB\u5373\u8BA4\u8BC1"]
|
|
10663
10698
|
]) : withDirectives((openBlock(), createBlock(unref(NsButton), {
|
|
10664
10699
|
key: 2,
|
|
10665
10700
|
class: "btn",
|
|
@@ -10677,7 +10712,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
10677
10712
|
_: 1
|
|
10678
10713
|
/* STABLE */
|
|
10679
10714
|
})), [
|
|
10680
|
-
[_directive_track_click,
|
|
10715
|
+
[_directive_track_click, "\u7528\u6237\u8BA4\u8BC1-\u8FD4\u56DE"]
|
|
10681
10716
|
])
|
|
10682
10717
|
])
|
|
10683
10718
|
]),
|
|
@@ -11068,7 +11103,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
11068
11103
|
_: 1
|
|
11069
11104
|
/* STABLE */
|
|
11070
11105
|
})), [
|
|
11071
|
-
[_directive_track_click,
|
|
11106
|
+
[_directive_track_click, "\u6D77\u62A5\u5206\u4EAB-\u53D6\u6D88"]
|
|
11072
11107
|
]),
|
|
11073
11108
|
withDirectives((openBlock(), createBlock(_component_nut_button, {
|
|
11074
11109
|
type: "primary",
|
|
@@ -11084,7 +11119,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
11084
11119
|
_: 1
|
|
11085
11120
|
/* STABLE */
|
|
11086
11121
|
})), [
|
|
11087
|
-
[_directive_track_click,
|
|
11122
|
+
[_directive_track_click, "\u6D77\u62A5\u5206\u4EAB-\u786E\u5B9A"]
|
|
11088
11123
|
])
|
|
11089
11124
|
])
|
|
11090
11125
|
]),
|
package/package.json
CHANGED
|
@@ -219,32 +219,99 @@ class TrackingSDK {
|
|
|
219
219
|
// H5 环境使用 btoa
|
|
220
220
|
base64 = btoa(unescape(encodeURIComponent(raw)))
|
|
221
221
|
} else {
|
|
222
|
-
// 小程序环境使用手动实现的 Base64
|
|
223
|
-
base64 = this.
|
|
222
|
+
// 小程序环境使用手动实现的 Base64 编码(兼容 btoa 的 UTF-8 处理逻辑)
|
|
223
|
+
base64 = this.btoa(raw)
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
// 反转字符串
|
|
227
227
|
return base64.split('').reverse().join('')
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
|
-
*
|
|
230
|
+
* 手动实现 btoa 方法(小程序端降级方案)
|
|
231
|
+
* 与浏览器 btoa(unescape(encodeURIComponent(str))) 行为一致
|
|
232
|
+
* @param str 要编码的字符串
|
|
233
|
+
* @returns Base64 编码后的字符串
|
|
231
234
|
*/
|
|
232
|
-
private
|
|
233
|
-
|
|
235
|
+
private btoa(str: string): string {
|
|
236
|
+
// 先将字符串转换为 UTF-8 字节序列(模拟 encodeURIComponent + unescape 的行为)
|
|
237
|
+
const utf8Bytes: number[] = []
|
|
238
|
+
for (let i = 0; i < str.length; i++) {
|
|
239
|
+
const codePoint = str.charCodeAt(i)
|
|
240
|
+
if (codePoint < 0x80) {
|
|
241
|
+
// ASCII 字符,直接使用
|
|
242
|
+
utf8Bytes.push(codePoint)
|
|
243
|
+
} else if (codePoint < 0x800) {
|
|
244
|
+
// 2字节 UTF-8 字符
|
|
245
|
+
utf8Bytes.push(0xc0 | (codePoint >> 6))
|
|
246
|
+
utf8Bytes.push(0x80 | (codePoint & 0x3f))
|
|
247
|
+
} else if (codePoint >= 0xd800 && codePoint <= 0xdbff) {
|
|
248
|
+
// 代理对高位
|
|
249
|
+
if (i + 1 < str.length) {
|
|
250
|
+
const lowSurrogate = str.charCodeAt(i + 1)
|
|
251
|
+
if (lowSurrogate >= 0xdc00 && lowSurrogate <= 0xdfff) {
|
|
252
|
+
// 完整的代理对,转换为 4 字节 UTF-8
|
|
253
|
+
const unicodeCodePoint = 0x10000 + ((codePoint & 0x3ff) << 10) + (lowSurrogate & 0x3ff)
|
|
254
|
+
utf8Bytes.push(0xf0 | (unicodeCodePoint >> 18))
|
|
255
|
+
utf8Bytes.push(0x80 | ((unicodeCodePoint >> 12) & 0x3f))
|
|
256
|
+
utf8Bytes.push(0x80 | ((unicodeCodePoint >> 6) & 0x3f))
|
|
257
|
+
utf8Bytes.push(0x80 | (unicodeCodePoint & 0x3f))
|
|
258
|
+
i++ // 跳过低位代理
|
|
259
|
+
continue
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
// 无效的代理对,使用替换字符
|
|
263
|
+
utf8Bytes.push(0xef, 0xbf, 0xbd)
|
|
264
|
+
} else {
|
|
265
|
+
// 3字节 UTF-8 字符
|
|
266
|
+
utf8Bytes.push(0xe0 | (codePoint >> 12))
|
|
267
|
+
utf8Bytes.push(0x80 | ((codePoint >> 6) & 0x3f))
|
|
268
|
+
utf8Bytes.push(0x80 | (codePoint & 0x3f))
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// 将字节序列转换为 Base64
|
|
273
|
+
return this.base64EncodeBytes(utf8Bytes)
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Base64 编码(字节数组版本)
|
|
277
|
+
* @param bytes 字节数组
|
|
278
|
+
* @returns Base64 编码后的字符串
|
|
279
|
+
*/
|
|
280
|
+
private base64EncodeBytes(bytes: number[]): string {
|
|
281
|
+
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
|
|
234
282
|
let output = ''
|
|
235
283
|
let i = 0
|
|
236
284
|
|
|
237
|
-
while (i <
|
|
238
|
-
const a =
|
|
239
|
-
const
|
|
240
|
-
const
|
|
285
|
+
while (i < bytes.length) {
|
|
286
|
+
const a = bytes[i++]
|
|
287
|
+
const hasB = i < bytes.length
|
|
288
|
+
const b = hasB ? bytes[i++] : 0
|
|
289
|
+
const hasC = i < bytes.length
|
|
290
|
+
const c = hasC ? bytes[i++] : 0
|
|
241
291
|
|
|
242
292
|
const bitmap = (a << 16) | (b << 8) | c
|
|
243
293
|
|
|
244
294
|
output += chars.charAt((bitmap >> 18) & 63)
|
|
245
295
|
output += chars.charAt((bitmap >> 12) & 63)
|
|
246
|
-
|
|
247
|
-
|
|
296
|
+
|
|
297
|
+
// 填充逻辑:
|
|
298
|
+
// - 如果有 3 个字节:所有字符都有效
|
|
299
|
+
// - 如果只有 2 个字节:第 4 个字符是 '='
|
|
300
|
+
// - 如果只有 1 个字节:第 3、4 个字符都是 '='
|
|
301
|
+
if (hasB) {
|
|
302
|
+
// 有第 2 个字节
|
|
303
|
+
output += chars.charAt((bitmap >> 6) & 63)
|
|
304
|
+
if (hasC) {
|
|
305
|
+
// 有第 3 个字节,所有字符都有效
|
|
306
|
+
output += chars.charAt(bitmap & 63)
|
|
307
|
+
} else {
|
|
308
|
+
// 只有 2 个字节,第 4 个字符是填充符
|
|
309
|
+
output += '='
|
|
310
|
+
}
|
|
311
|
+
} else {
|
|
312
|
+
// 只有 1 个字节,第 3、4 个字符都是填充符
|
|
313
|
+
output += '=='
|
|
314
|
+
}
|
|
248
315
|
}
|
|
249
316
|
|
|
250
317
|
return output
|
|
@@ -630,6 +697,7 @@ class TrackingSDK {
|
|
|
630
697
|
* 发送埋点数据
|
|
631
698
|
*/
|
|
632
699
|
private async flush(): Promise<void> {
|
|
700
|
+
console.log(this.eventQueue.length, 'this.eventQueue.length')
|
|
633
701
|
if (this.eventQueue.length === 0) return
|
|
634
702
|
|
|
635
703
|
const events = [...this.eventQueue]
|
|
@@ -640,7 +708,7 @@ class TrackingSDK {
|
|
|
640
708
|
const jsonStr = JSON.stringify(events)
|
|
641
709
|
|
|
642
710
|
// 使用 pako 压缩
|
|
643
|
-
const compressed = pako.deflate(jsonStr)
|
|
711
|
+
const compressed = getEnv() === 'WEAPP' ? jsonStr: pako.deflate(jsonStr)
|
|
644
712
|
|
|
645
713
|
// if (this.config.debug) {
|
|
646
714
|
// console.log('[TrackingSDK] 原始数据大小:', new Blob([jsonStr]).size, 'bytes')
|
|
@@ -658,7 +726,7 @@ class TrackingSDK {
|
|
|
658
726
|
method: 'POST',
|
|
659
727
|
data: compressed,
|
|
660
728
|
header: {
|
|
661
|
-
'Content-Encoding': 'deflate',
|
|
729
|
+
'Content-Encoding': getEnv() === 'WEAPP' ? '' : 'deflate',
|
|
662
730
|
},
|
|
663
731
|
})
|
|
664
732
|
|
|
@@ -904,13 +972,14 @@ class TrackingSDK {
|
|
|
904
972
|
if (this.eventQueue.length === 0) return
|
|
905
973
|
|
|
906
974
|
const events = [...this.eventQueue]
|
|
907
|
-
this.eventQueue = []
|
|
908
975
|
|
|
909
976
|
try {
|
|
910
977
|
// 使用同步方式发送(适用于页面关闭场景)
|
|
911
978
|
const env = getEnv()
|
|
912
979
|
|
|
913
980
|
if (env === 'WEB' && typeof navigator !== 'undefined' && navigator.sendBeacon) {
|
|
981
|
+
this.eventQueue = []
|
|
982
|
+
|
|
914
983
|
// H5 环境:使用 sendBeacon API(专为页面卸载场景设计)(sendBeacon无法指定header头, 无法deflate压缩)
|
|
915
984
|
const blob = new Blob([JSON.stringify(events)], {
|
|
916
985
|
type: 'application/json',
|