uni app公共图片路径 main.js Vue.prototype.getImgSrc = function(img){ return "http://r0uver0ez.hd-bkt.clouddn.com" + img; } 在页面中使用 <!-- 图片 --> <image :src="getImgSrc(item.banner)" mode="aspectFit">