Helper.js 772 Bytes
/**
 * Created by jone on 2017/4/21.
 */
 function getUrl(id) {
     let url = 'https://m.yohobuy.com/passport/';
    switch (id) {
        case 1:
            url = url+'yohobuy';
            break;
        case 2:
            url = url+'newpower';
            break;
        case 3:
            url = url+'privacy';
            break;
        case 4:
            break;
        case 5:
            break;
    }
    return url;
}

 function getTitle(id) {
     let title = '';
    switch (id) {
        case 1:
            title='关于YOHO!BUY有货';
            break;
        case 2:
            title='关于新力传媒';
            break;
        case 3:
            title='隐私条款';
    }
    return title;
}

module.exports = {
    getUrl,
    getTitle,
};