You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
596 B
27 lines
596 B
10 months ago
|
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
|
||
|
}
|
||
|
},
|
||
|
};
|
||
|
|
||
|
});
|