This commit is contained in:
2019-12-18 18:10:15 +08:00
parent ed38614c2c
commit 3166463ac4
16 changed files with 166 additions and 21 deletions

View File

@@ -1,9 +1,20 @@
import {request} from "../../utils/bin"
Page({
data:{
list:[]
},
onLoad(){
request({
url:"Goods/hotGoodsList",
data:{
page:0
}
}).then((res)=>{
console.log(res.data.result)
this.setData({
list:res.data.result
})
})
},
searchs(){
console.log(10)

View File

@@ -1,4 +1,4 @@
<view class="box">
<search bind:tap="searchs"></search>
<list></list>
<list list="{{list}}"></list>
</view>