修改项目配置,完成要加入的等待和审批操作,修改了部分接口定义和参数

This commit is contained in:
2024-03-22 16:45:36 +08:00
parent e07641732f
commit 2c79edb80c
24 changed files with 378 additions and 30 deletions

View File

@@ -1,20 +1,34 @@
// pages/qrCode/index.js
import request from "../../utils/request"
import { getWxCode } from "../../service/user"
import { alertInfo } from "../../utils/index";
const { OK } = request;
Page({
/**
* 页面的初始数据
*/
data: {
url: ""
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getCode()
},
async getCode() {
const { code, message, data } = await getWxCode()
if (code !== OK) {
alertInfo(message)
return
}
this.setData({
url: data
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/