resourceObj.js
532 Bytes
/**
* Created by ty on 2016/4/15.
*/
var resourceObj = {
focus: function (data) {
initImgId(data);
},
appIconList:function(data) {
initImgId(data);
},
addfloor:function(data) {
initImgId(data);
},
imageList: function (data) {
initImgId(data.list);
},
smallPic: function (data) {
initImgId(data);
}
};
var initImgId = function(list) {
for(var i = 0; i < list.length; i++) {
list[i].imgId = "" + i;
}
};
module.exports = resourceObj;