|
@@ -33,6 +33,8 @@ var vmSol = new Vue({
|
|
data: {
|
|
data: {
|
|
header_show: false,
|
|
header_show: false,
|
|
isWeiXinBrowser: true,
|
|
isWeiXinBrowser: true,
|
|
|
|
+ isH5: true,
|
|
|
|
+ isApp: true,
|
|
index: 0,
|
|
index: 0,
|
|
images: ['/common-module/solution/image/viewImg.png'],
|
|
images: ['/common-module/solution/image/viewImg.png'],
|
|
// ISO img队列
|
|
// ISO img队列
|
|
@@ -197,9 +199,10 @@ var vmSol = new Vue({
|
|
created: function () {
|
|
created: function () {
|
|
// 再次判断 客户端归属
|
|
// 再次判断 客户端归属
|
|
// 判断是否是wx环境
|
|
// 判断是否是wx环境
|
|
-
|
|
|
|
var isWeiXinBrowser =
|
|
var isWeiXinBrowser =
|
|
- navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
|
|
|
|
|
|
+ navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
|
|
|
|
+ this.isH5 = window.location.href.toLowerCase().indexOf('h5') !== -1
|
|
|
|
+ this.isApp = window.location.href.toLowerCase().indexOf('app') !== -1
|
|
|
|
|
|
this.isWeiXinBrowser = isWeiXinBrowser
|
|
this.isWeiXinBrowser = isWeiXinBrowser
|
|
|
|
|
|
@@ -231,24 +234,24 @@ var vmSol = new Vue({
|
|
},
|
|
},
|
|
// 跳转了解详情
|
|
// 跳转了解详情
|
|
href_more: function (urlType, urlpathId) {
|
|
href_more: function (urlType, urlpathId) {
|
|
- var apporwx = this.isWeiXinBrowser ? 'wx' : 'app'
|
|
|
|
|
|
+ var apporwx = this.isWeiXinBrowser&&!this.isH5&&!this.isApp ? 'wx' : 'app'
|
|
// window.location.href = `https://wx.jianyu360.cn/weixin/frontPage/bigmember/free/perfect_info?source=certificateServices-${apporwx}-landingPage-${urlpathId}`
|
|
// window.location.href = `https://wx.jianyu360.cn/weixin/frontPage/bigmember/free/perfect_info?source=certificateServices-${apporwx}-landingPage-${urlpathId}`
|
|
// 立即成为 合作商
|
|
// 立即成为 合作商
|
|
if (urlType === 'go_nowcooper') {
|
|
if (urlType === 'go_nowcooper') {
|
|
window.location.href =
|
|
window.location.href =
|
|
`${
|
|
`${
|
|
- this.isWeiXinBrowser ? '/weixin/frontPage' : '/jyapp/frontPage'
|
|
|
|
|
|
+ this.isWeiXinBrowser&&!this.isH5&&!this.isApp ? '/weixin/frontPage' : '/jyapp/frontPage'
|
|
}/bigmember/free/perfect_info_partner?source=certificateServices-${apporwx}-landingPage-jy_cooperprocess&header=` +
|
|
}/bigmember/free/perfect_info_partner?source=certificateServices-${apporwx}-landingPage-jy_cooperprocess&header=` +
|
|
encodeURIComponent('立即成为合作商')
|
|
encodeURIComponent('立即成为合作商')
|
|
} else {
|
|
} else {
|
|
window.location.href = `${
|
|
window.location.href = `${
|
|
- this.isWeiXinBrowser ? '/weixin/frontPage' : '/jyapp/frontPage'
|
|
|
|
|
|
+ this.isWeiXinBrowser&&!this.isH5&&!this.isApp ? '/weixin/frontPage' : '/jyapp/frontPage'
|
|
}/bigmember/free/perfect_info?source=certificateServices-${apporwx}-landingPage-${urlpathId}`
|
|
}/bigmember/free/perfect_info?source=certificateServices-${apporwx}-landingPage-${urlpathId}`
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 咨询客服
|
|
// 咨询客服
|
|
gocustomer: function (urlpath) {
|
|
gocustomer: function (urlpath) {
|
|
- window.location.href = this.isWeiXinBrowser
|
|
|
|
|
|
+ window.location.href = this.isWeiXinBrowser&&!this.isH5&&!this.isApp
|
|
? '/big/wx/page/customer'
|
|
? '/big/wx/page/customer'
|
|
: '/jyapp/free/customer'
|
|
: '/jyapp/free/customer'
|
|
}, // 获取二维码
|
|
}, // 获取二维码
|