添加登录接口
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// pages/star/star.ts
|
||||
const api = require("../../api/index")
|
||||
Page({
|
||||
|
||||
/**
|
||||
@@ -25,7 +26,7 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad() {
|
||||
|
||||
this.getList()
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -75,5 +76,14 @@ Page({
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
},
|
||||
async getList() {
|
||||
const res = await api.getMyWineList({
|
||||
current:1,
|
||||
size:10
|
||||
})
|
||||
if(res.code === 200) {
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user