iconParse.js 729 Bytes
/**
 * Created by jone on 2017/4/20.
 */



export function getIcon(id) {
    let icon;
    switch (id) {
        case 1:
            icon = require('../images/mine_share_wx_icon.png');
            break;
        case 2:
            icon =require('../images/mine_share_wpq_icon.png');
            break;
        case 3:
            icon = require('../images/mine_share_qq_icon.png');
            break;
        case 4:
            icon = require('../images/mine_share_xl_icon.png');
            break;
        case 5:
            icon = require('../images/mine_share_qqkj_icon.png');
            break;
        case 6:
            icon = require('../images/mine_share_icon_copy.png');
            break;
    }
    return icon;
}