jufubao-base 1.0.159-beta3 → 1.0.159-beta5
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
|
@@ -339,6 +339,32 @@ export default {
|
|
|
339
339
|
});
|
|
340
340
|
},
|
|
341
341
|
|
|
342
|
+
getCardPath(custom_redirect_data = {}){
|
|
343
|
+
//#ifdef H5
|
|
344
|
+
return null;
|
|
345
|
+
//#endif
|
|
346
|
+
//#ifdef MP-WEIXIN
|
|
347
|
+
const dir = custom_redirect_data.dir;
|
|
348
|
+
const actDir = this.projectAttr['deploy_dir'];
|
|
349
|
+
if(custom_redirect_data.appType === 'wxmp') {
|
|
350
|
+
if(dir === actDir) {
|
|
351
|
+
return {
|
|
352
|
+
cardPath: custom_redirect_data.path,
|
|
353
|
+
cardSelf: 'wxmp',
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
else return null;
|
|
357
|
+
}
|
|
358
|
+
else if(custom_redirect_data.appType === 'h5'){
|
|
359
|
+
return {
|
|
360
|
+
cardPath: custom_redirect_data.site_url,
|
|
361
|
+
cardSelf: 'h5',
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
else return null;
|
|
365
|
+
//#endif
|
|
366
|
+
},
|
|
367
|
+
|
|
342
368
|
|
|
343
369
|
handleClick(entry){
|
|
344
370
|
const {dir, path, host, appType} = entry['redirect_data'];
|