Commit dc4fad20 authored by ZJG's avatar ZJG

判断是否是分销商

parent 59054319
......@@ -29,10 +29,18 @@ function getRect(selector){//获取元素的信息
}).exec();
})
}
function getretailer(){//判断是否是分销商
let isdistributor = false
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):{};
if(mall_UserInfo.IsDistrbutorUser && mall_UserInfo.IsDistrbutorUser ==1){
isdistributor = true
}
return isdistributor
}
export default {
calcContentHeight,
SystemInfo,
getRect
getRect,
getretailer
}
\ No newline at end of file
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