Skip to content

Commit

Permalink
屏蔽医疗A区跳转进行白名单配置 (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
ning5129 authored and Ricardo-Li committed Apr 26, 2019
1 parent f8d86a3 commit e00812c
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions components/mip-custom/mip-custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,28 +325,8 @@ export default class MipCustom extends CustomElement {

// 医疗屏蔽A区跳转
let commonData = data.common || {}
let isForbidden = true
if (commonData.product === 'medicine') {
let specialLink = [
// 寻医问药
'mip.imask.xywy.com',
// 宝宝知道
'baobao.baidu.com',
// 柠檬爱美
'lemon.baidu.com',
// 春雨医生
'm.chunyuyisheng.com',
// 好大夫
'mip.haodf.com',
// 百科名医
'm.baikemy.com'
]
for (let i = 0; i < specialLink.length; i++) {
if (commonData.originalUrl && commonData.originalUrl.indexOf(specialLink[i]) > -1) {
isForbidden = false
break
}
}
let isForbidden = commonData.isForbidden

if (isForbidden) {
let alink = document.querySelectorAll('a')
Expand Down

0 comments on commit e00812c

Please sign in to comment.