Commit 07b020cc by 高淑倩

优化

parent ad3cf858
......@@ -27,23 +27,6 @@ function formateUrl(url, BASE_IMG_URL){
return url;
}
// 不需要授权页面 首页/种草列表/种草详情/分类/商品列表/商品详情
function hanlerLinkNoNeedAuth(item){
if(item.link){
if(typeof(item.link && item.link.newPath) != undefined){
console.log('link--url', item.desc, item.link.url)
} else {
console.log('link----new', item.desc, item.link.newPath)
}
} else if(item.row){
if(item.row && item.row.newPath) {
console.log('row-----new', item.desc, item.row.newPath)
} else {
console.log('row----url', item.desc, item.row.url)
}
}
}
// 授权路径 我的/购物车/我的奖励/邀请好友/推广商品/我的地址/我的订单
function hanlerLinkNeedAuth(link){
var flag = false
......@@ -67,6 +50,5 @@ module.exports = {
numberFormat: numberFormat,
date: date,
handerNickName: handerNickName,
hanlerLinkNeedAuth: hanlerLinkNeedAuth,
hanlerLinkNoNeedAuth: hanlerLinkNoNeedAuth
hanlerLinkNeedAuth: hanlerLinkNeedAuth
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment