define([
'text!./index.html',
'css!./index.css'
], function (template) {
return {
template,
name: "goods_detail",
props: {
goodsInfo: {
type: Object,
default: {}
}
},
computed: {
banner() {
return Array.isArray(this.goodsInfo.slider_image) && this.goodsInfo.slider_image.length ? this.goodsInfo.slider_image : [this.goodsInfo.image];
}
},
data() {
return {
value2: 0
}
},
};
});