gxd-uni-library-editx 1.0.92 → 1.0.94
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/package.json
CHANGED
|
@@ -21,6 +21,13 @@
|
|
|
21
21
|
v-if="confirm.isHtml"
|
|
22
22
|
:style="{color: confirm.contentColor}"
|
|
23
23
|
>
|
|
24
|
+
<view class="xd-input-confirm__body-icon" v-if="confirm.msgIcon">
|
|
25
|
+
<xd-font-icon
|
|
26
|
+
:icon="confirm.msgIcon"
|
|
27
|
+
:color="confirm.msgIconColor||$currentStyle['$dangerColor']"
|
|
28
|
+
:size="confirm.msgIconSize"
|
|
29
|
+
></xd-font-icon>
|
|
30
|
+
</view>
|
|
24
31
|
<view v-html="confirm.content"></view>
|
|
25
32
|
</scroll-view>
|
|
26
33
|
<view
|
|
@@ -28,7 +35,16 @@
|
|
|
28
35
|
class="xd-input-confirm__body-content"
|
|
29
36
|
:style="{color: confirm.contentColor}"
|
|
30
37
|
>
|
|
31
|
-
<
|
|
38
|
+
<view class="xd-input-confirm__body-icon" v-if="confirm.msgIcon">
|
|
39
|
+
<xd-font-icon
|
|
40
|
+
:icon="confirm.msgIcon"
|
|
41
|
+
:color="confirm.msgIconColor||$currentStyle['$dangerColor']"
|
|
42
|
+
:size="confirm.msgIconSize"
|
|
43
|
+
></xd-font-icon>
|
|
44
|
+
</view>
|
|
45
|
+
<view>
|
|
46
|
+
<slot>{{confirm.content}}</slot>
|
|
47
|
+
</view>
|
|
32
48
|
</view>
|
|
33
49
|
<view class="xd-input-confirm__body-btn">
|
|
34
50
|
<view v-if="confirm.cancel">
|
|
@@ -142,7 +158,9 @@
|
|
|
142
158
|
confirmColorType: 'primary',
|
|
143
159
|
radius: '10rpx',
|
|
144
160
|
btnRadius: '',
|
|
145
|
-
|
|
161
|
+
msgIcon:'',
|
|
162
|
+
msgIconColor:'',
|
|
163
|
+
msgIconSize:'70',
|
|
146
164
|
}
|
|
147
165
|
}
|
|
148
166
|
},
|
|
@@ -276,6 +294,14 @@
|
|
|
276
294
|
padding: 0 unit(20, rpx);
|
|
277
295
|
}
|
|
278
296
|
}
|
|
297
|
+
|
|
298
|
+
&-icon {
|
|
299
|
+
margin-bottom: 20rpx;
|
|
300
|
+
height: 80rpx;
|
|
301
|
+
display:flex;
|
|
302
|
+
justify-content: center;
|
|
303
|
+
align-items: center;
|
|
304
|
+
}
|
|
279
305
|
}
|
|
280
306
|
}
|
|
281
307
|
</style>
|
package/src/utils/helper.js
CHANGED
|
@@ -956,7 +956,9 @@ class Helpers {
|
|
|
956
956
|
handleTo(obj = {}, redirect, type = true, notHistory = false) {
|
|
957
957
|
|
|
958
958
|
//检查地址是否合法性
|
|
959
|
+
let reg = /^(http:\/\/|https:\/\/|\/\/).+$/;
|
|
959
960
|
obj.url = this.checkValidateUrl(obj.url);
|
|
961
|
+
|
|
960
962
|
//console.log(this.checkValidateUrl('//sandbox-website-05.jufubao.cn/apply06/main/cake/index?x-common=eyJidXNpbmVzc19jb2RlIjoiY2FrZSJ9&vs=1721740600007'))
|
|
961
963
|
//console.log(this.checkValidateUrl('/main/cake/index1?x-common=eyJidXNpbmVzc19jb2RlIjoiY2FrZSJ9&vs=1721740600007'))
|
|
962
964
|
//console.log(this.checkValidateUrl('//sandbox-website-05.jufubao.cn/apply/main/cake/index1?x-common=eyJidXNpbmVzc19jb2RlIjoiY2FrZSJ9&vs=1721740600007'))
|
|
@@ -1007,10 +1009,14 @@ class Helpers {
|
|
|
1007
1009
|
obj.url = this.replacePathForDir(obj.url);
|
|
1008
1010
|
|
|
1009
1011
|
//设置检查访问地址
|
|
1010
|
-
let reg = /^(http:\/\/|https:\/\/|\/\/).+$/;
|
|
1011
1012
|
//检查网络链接是不是当前应用中的一个路径
|
|
1012
1013
|
if(reg.test(obj.url)) {
|
|
1013
|
-
|
|
1014
|
+
let newUrl = this.parseUrlSameAppUrl(obj.url);
|
|
1015
|
+
//使用redirectTo时候并且是一个内容地址转化为使用navigateTo模式
|
|
1016
|
+
if(!type && !reg.test(newUrl)) {
|
|
1017
|
+
type = true;
|
|
1018
|
+
}
|
|
1019
|
+
obj.url = newUrl;
|
|
1014
1020
|
}
|
|
1015
1021
|
let isH5 = reg.test(obj.url);
|
|
1016
1022
|
|
package/src/utils/xdWxLog.js
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
|
|
21
21
|
const c1Id = randomChar(32);
|
|
22
22
|
const extJson = uni.getExtConfigSync();
|
|
23
|
+
console.warn(`logs.init.wx.mp: ${extJson}`);
|
|
23
24
|
|
|
24
25
|
let Monitor = null;
|
|
25
26
|
//开发环境处理
|
|
@@ -29,7 +30,7 @@ if(checkRunTimeENVIsOpenLog()) {
|
|
|
29
30
|
else {
|
|
30
31
|
Monitor = mpLogger.init({
|
|
31
32
|
pid: settings.aliPid,
|
|
32
|
-
tag:extJson.appId || 'dev',
|
|
33
|
+
tag: extJson.appId || 'dev',
|
|
33
34
|
environment: settings.aliEnvironment,
|
|
34
35
|
sample: settings.aliSample,
|
|
35
36
|
pvSample: settings.aliPvSample,
|