gxd-uni-library-editx 1.0.74 → 1.0.75
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
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
<view class="checkbox__inner-icon"></view>
|
|
28
28
|
</view>
|
|
29
29
|
<view class="checklist-content" :class="{'list-content':mode === 'list' && icon ==='left'}">
|
|
30
|
-
<
|
|
30
|
+
<view class="checklist-text" :style="item.styleIconText">
|
|
31
31
|
<!-- #ifdef h5 -->
|
|
32
|
-
<slot :name="'a' +item.value"
|
|
33
|
-
<!--
|
|
32
|
+
<slot :name="'a' +item.value">{{item[map.text]}}</slot>
|
|
33
|
+
<!-- #endif -->
|
|
34
34
|
<!-- #ifdef MP-WEIXIN -->
|
|
35
|
-
<slot name="a1"
|
|
35
|
+
<slot name="a1"></slot>
|
|
36
36
|
<!-- #endif -->
|
|
37
|
-
</
|
|
37
|
+
</view>
|
|
38
38
|
<view
|
|
39
39
|
v-if="mode === 'list' && icon === 'right'"
|
|
40
40
|
class="checkobx__list"
|
package/src/utils/helper.js
CHANGED
|
@@ -816,8 +816,6 @@ class Helpers {
|
|
|
816
816
|
return url
|
|
817
817
|
//#endif
|
|
818
818
|
|
|
819
|
-
|
|
820
|
-
|
|
821
819
|
//#ifdef H5
|
|
822
820
|
let siteDomain = `${window.location.protocol}//${window.location.host}`;
|
|
823
821
|
let dir = '';
|
|
@@ -1046,11 +1044,16 @@ class Helpers {
|
|
|
1046
1044
|
/**
|
|
1047
1045
|
* @description 特殊翻译
|
|
1048
1046
|
*/
|
|
1049
|
-
async
|
|
1047
|
+
async specialApiTransform(obj, cb){
|
|
1050
1048
|
let reg = /(-apiuri\/v)/;
|
|
1049
|
+
let regHttp = /^(\/\/)|(http:\/\/)|(http:\/\/).+/;
|
|
1051
1050
|
//需要转化的特殊访问地址
|
|
1052
1051
|
if(reg.test(obj.url)){
|
|
1053
|
-
|
|
1052
|
+
if(!regHttp.test(obj.url)) {
|
|
1053
|
+
obj.url = `${store.state.brandInfo.api_host}${obj.url}`;
|
|
1054
|
+
console.warn(`specialApiTransform:${obj.url}`)
|
|
1055
|
+
}
|
|
1056
|
+
store.dispatch('getSpecialApiTransform',{url: obj.url})
|
|
1054
1057
|
.then(res=>{
|
|
1055
1058
|
//链接地址
|
|
1056
1059
|
if(res.type === 'url' && res.value){
|
|
@@ -1072,7 +1075,7 @@ class Helpers {
|
|
|
1072
1075
|
* @param redirect 是否添加当前页面地址路径最为回调地址
|
|
1073
1076
|
*/
|
|
1074
1077
|
navigateTo(obj = {}, redirect) {
|
|
1075
|
-
this.
|
|
1078
|
+
this.specialApiTransform(obj,(res)=>{
|
|
1076
1079
|
this.handleTo(res, redirect);
|
|
1077
1080
|
})
|
|
1078
1081
|
}
|
|
@@ -1130,7 +1133,7 @@ class Helpers {
|
|
|
1130
1133
|
* @param notHistory h5使用window.location.replace() H5生效
|
|
1131
1134
|
*/
|
|
1132
1135
|
redirectTo(obj, redirect, notHistory=false) {
|
|
1133
|
-
this.
|
|
1136
|
+
this.specialApiTransform(obj,(res)=>{
|
|
1134
1137
|
this.handleTo(res, redirect,notHistory);
|
|
1135
1138
|
})
|
|
1136
1139
|
}
|