1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

api接口baseUrl通过全局变量引入;代码格式化

This commit is contained in:
2022-11-05 16:45:52 +08:00
parent 3e0c182bc9
commit 5cf1ed3a49
22 changed files with 477 additions and 406 deletions

View File

@@ -1,4 +1,7 @@
// pages/apply/apply.js
const app = getApp()
const baseUrl = app.globalData.baseUrl
// console.log("baseUrl", baseUrl)
var dateTimePicker = require('./dateTimePicker.js');
Page({
data: {
@@ -95,7 +98,7 @@ Page({
apply: function () {
var data = this.data;
wx.request({
url: 'http://127.0.0.1:8080/apply/applySub',
url: `${baseUrl}/apply/applySub`,
data: {
stu_id: data.id,
issue: data.issue,