添加登录代码

This commit is contained in:
2023-05-15 14:30:16 +08:00
parent 8e3beb44d9
commit 9cb8aa0bac
16 changed files with 330 additions and 21 deletions

View File

@@ -1,5 +1,6 @@
// pages/home/home.ts
const api = require("../../api/index")
const app = getApp<IAppOption>()
Page({
/**
* 页面的初始数据
@@ -97,6 +98,8 @@ Page({
})
},
async getList() {//获取列表
app.globalData.isLogin = api.checkLogin(1)
// app.globalData.isLogin = login_state
const res = await api.getWineList({
current:1,
size:10