Authored by shuaiguo

Merge branch 'feature/hide-xianyu-download-bar' into 'master'

闲鱼中隐藏顶部下载



See merge request !15
{
"name": "yas-jssdk",
"version": "2.4.22",
"version": "2.4.24",
"description": "YOHO!采集系统的前端js的开发包",
"keywords": [
"YOHO!",
... ...
... ... @@ -300,13 +300,17 @@ exports.getDownloadStr = function(isWechat) {
str += '<a class="download-go" id="download-go" href="https://union.yoho.cn/union/app-downloads.html">下载领取</a></div>';
}
if (/AliApp/i.test(navigator.userAgent)) {
return ''
}
return str;
}
exports.getAppPath = function() {
var dataSet = document.getElementById('main-wrap').dataset || {};
var appPath = dataSet.apppath;
appPath = (appPath || '').replace('yohobuy://yohobuy.com/goapp?','') || 'openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}';
return appPath;
}
... ...