gxd-uni-library-editx 1.0.146 → 1.0.147
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
|
@@ -118,6 +118,35 @@ export default {
|
|
|
118
118
|
getNoData(){
|
|
119
119
|
return this.colorObj.nodata
|
|
120
120
|
},
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
//===卡券跳转======
|
|
124
|
+
getCardPath(custom_redirect_data = {}){
|
|
125
|
+
//#ifdef H5
|
|
126
|
+
return null;
|
|
127
|
+
//#endif
|
|
128
|
+
//#ifdef MP-WEIXIN
|
|
129
|
+
const dir = custom_redirect_data.dir;
|
|
130
|
+
const actDir = this.projectAttr['deploy_dir'];
|
|
131
|
+
if(custom_redirect_data.appType === 'wxmp') {
|
|
132
|
+
if(dir === actDir) {
|
|
133
|
+
return {
|
|
134
|
+
cardPath: custom_redirect_data.path,
|
|
135
|
+
cardSelf: 'wxmp',
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
else return null;
|
|
139
|
+
}
|
|
140
|
+
else if(custom_redirect_data.appType === 'h5'){
|
|
141
|
+
return {
|
|
142
|
+
cardPath: custom_redirect_data.site_url,
|
|
143
|
+
cardSelf: 'h5',
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
else return null;
|
|
147
|
+
//#endif
|
|
148
|
+
},
|
|
149
|
+
|
|
121
150
|
/**
|
|
122
151
|
* @description 单业务自动跳转功能
|
|
123
152
|
* @param entry {Array} 业务链接信息
|
|
@@ -186,5 +215,7 @@ export default {
|
|
|
186
215
|
if(regHttp.test(jumpUrl)) this.$xdUniHelper.redirectTo({url:jumpUrl}, false)
|
|
187
216
|
else this.$xdUniHelper.navigateTo({url:jumpUrl}, false)
|
|
188
217
|
},
|
|
218
|
+
|
|
219
|
+
//===卡券跳转======
|
|
189
220
|
}
|
|
190
221
|
}
|