let newProducts={
template:``,
props:{
title:{
type: [String],
default:'',
},
name:{
type: [String],
default:'',
},
value:{
type: [String],
default:'',
},
// str_array = new Array();
// str_array = this.title.split(" ");
// str_array = str_array[0];
// console.log(str_array)
num:Number,
},
data() {
return {
swiper:null,
url:"https://bestpeatsk.click/product_details/",
dataHot:[],
dataNew:[],
dataH:[],
listShow:true,
}
},
created() {
this.productNew();
},
mounted() {
},
methods: {
productNew(){
let that=this;
this.$http.get('/api/item/random',{params:{num:this.num,name:'hot'}}).then(async function(response){
if(response.data.code == 200){
this.listShow = false;
this.dataHot = response.data.data;
for(var i=0;i