|
@@ -13,7 +13,10 @@
|
|
|
}
|
|
|
if ($(e).find("a").attr("ad_link")!=undefined){//app三级页调用打开方法
|
|
|
var ad_title = $(e).find("a").attr("ad_title");
|
|
|
- JyObj.openExternalLink($(e).find("a").attr("ad_link"),ad_title);
|
|
|
+ if (utils.$envs.inApp) {
|
|
|
+ JyObj.openExternalLink($(e).find("a").attr("ad_link"), ad_title);
|
|
|
+ }
|
|
|
+ window.location.href= $(e).find("a").attr("ad_link");
|
|
|
}
|
|
|
if ($(e).find("a").attr("openurl")!=undefined){//app三级页调用打开方法
|
|
|
$.post('/salesLeads/retainedCapital'+ '?source=article_original').done(function (r) {
|
|
@@ -21,7 +24,10 @@
|
|
|
var checkKeys = ['name', 'phone', 'company', 'branch', 'position', 'companyType']
|
|
|
var result = checkRequiredKeys(checkKeys, r.info)
|
|
|
if (result || !window.isFree) {
|
|
|
- JyObj.openExternalLink($(e).find("a").attr("openurl"),"查看原文");
|
|
|
+ if (utils.$envs.inApp) {
|
|
|
+ JyObj.openExternalLink($(e).find("a").attr("openurl"), "查看原文");
|
|
|
+ }
|
|
|
+ window.location.href= $(e).find("a").attr("openurl");
|
|
|
return true
|
|
|
}
|
|
|
|
|
@@ -44,13 +50,22 @@
|
|
|
vKeepComponent.$dialog.close()
|
|
|
})
|
|
|
} else {
|
|
|
- JyObj.openExternalLink($(e).find("a").attr("openurl"),"查看原文");
|
|
|
+ if (utils.$envs.inApp) {
|
|
|
+ JyObj.openExternalLink($(e).find("a").attr("openurl"),"查看原文");
|
|
|
+ }
|
|
|
+ window.location.href= $(e).find("a").attr("openurl");
|
|
|
}
|
|
|
} else {
|
|
|
- JyObj.openExternalLink($(e).find("a").attr("openurl"),"查看原文");
|
|
|
+ if (utils.$envs.inApp) {
|
|
|
+ JyObj.openExternalLink($(e).find("a").attr("openurl"),"查看原文");
|
|
|
+ }
|
|
|
+ window.location.href= $(e).find("a").attr("openurl");
|
|
|
}
|
|
|
}).fail(function () {
|
|
|
- JyObj.openExternalLink($(e).find("a").attr("openurl"),"查看原文");
|
|
|
+ if (utils.$envs.inApp) {
|
|
|
+ JyObj.openExternalLink($(e).find("a").attr("openurl"),"查看原文");
|
|
|
+ }
|
|
|
+ window.location.href= $(e).find("a").attr("openurl");
|
|
|
})
|
|
|
}
|
|
|
}
|