deguodaigou/pages/index/index.js
2020-01-02 14:28:07 +08:00

32 lines
542 B
JavaScript

import {request} from "../../utils/bin"
Page({
data:{
list:[],
huilv:""
},
onLoad(){
request({
url:"Goods/hotGoodsList",
data:{
page:0
}
}).then((res)=>{
console.log(res.data.result)
this.setData({
list:res.data.result
})
})
request({
url:"Index/exchangeRate"
}).then((res)=>{
console.log(res)
this.setData({
huilv:res.data.data.exchange
})
})
},
searchs(){
console.log(10)
}
})