添加登录接口

This commit is contained in:
2023-05-08 11:12:18 +08:00
parent c15952e9bc
commit 8e3beb44d9
4 changed files with 81 additions and 3 deletions

View File

@@ -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) {
}
}
})