2019-12-18 18:10:15 +08:00
|
|
|
import {request} from "../../utils/bin"
|
2019-12-13 09:50:09 +08:00
|
|
|
Page({
|
2019-12-13 10:29:54 +08:00
|
|
|
data:{
|
2019-12-18 18:10:15 +08:00
|
|
|
list:[]
|
2019-12-13 09:50:09 +08:00
|
|
|
},
|
2019-12-13 10:29:54 +08:00
|
|
|
onLoad(){
|
2019-12-18 18:10:15 +08:00
|
|
|
request({
|
|
|
|
url:"Goods/hotGoodsList",
|
|
|
|
data:{
|
|
|
|
page:0
|
|
|
|
}
|
|
|
|
}).then((res)=>{
|
|
|
|
console.log(res.data.result)
|
|
|
|
this.setData({
|
|
|
|
list:res.data.result
|
|
|
|
})
|
|
|
|
})
|
2019-12-13 14:35:22 +08:00
|
|
|
},
|
|
|
|
searchs(){
|
|
|
|
console.log(10)
|
2019-12-13 09:50:09 +08:00
|
|
|
}
|
|
|
|
})
|