deguodaigou/pages/index/index.js

32 lines
542 B
JavaScript
Raw Normal View History

2019-12-23 14:13:27 +08:00
import {request} from "../../utils/bin"
Page({
data:{
2020-01-02 14:28:07 +08:00
list:[],
huilv:""
2019-12-23 14:13:27 +08:00
},
onLoad(){
request({
url:"Goods/hotGoodsList",
data:{
page:0
}
}).then((res)=>{
console.log(res.data.result)
this.setData({
list:res.data.result
})
})
2020-01-02 14:28:07 +08:00
request({
url:"Index/exchangeRate"
}).then((res)=>{
console.log(res)
this.setData({
huilv:res.data.data.exchange
})
})
2019-12-23 14:13:27 +08:00
},
searchs(){
console.log(10)
}
})