Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
Kindergarten
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Kindergarten
Commits
87860bc5
Commit
87860bc5
authored
6 years ago
by
jie zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课表食谱修改
parent
f9650118
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
parrent.js
api/parrent.js
+5
-4
request.js
api/request.js
+4
-4
No files found.
api/parrent.js
View file @
87860bc5
...
@@ -30,14 +30,15 @@ module.exports = {
...
@@ -30,14 +30,15 @@ module.exports = {
}
}
return
request
.
post
(
'/wxsite/parents/updateStudentPicture.do'
,
param
)
return
request
.
post
(
'/wxsite/parents/updateStudentPicture.do'
,
param
)
},
},
/**
* 获取食谱
*/
getRecipe
()
{
getRecipe
()
{
return
request
.
get
(
"/wxsite/parents/getCurrentRecipe.do?orgCode="
+
app
.
globalData
.
login
.
user
.
sysOrgCode
)
return
request
.
get
(
"/wxsite/parents/getCurrentRecipe.do?orgCode="
+
app
.
globalData
.
login
.
user
.
currentDepart
.
orgCode
)
},
},
getSchedule
(
classId
)
{
getSchedule
(
classId
)
{
var
url
=
"/wxsite/parents/getCurrentSchedule.do?orgCode="
+
app
.
globalData
.
login
.
user
.
currentDepart
.
o
rgCode
var
url
=
"/wxsite/parents/getCurrentSchedule.do?orgCode="
+
app
.
globalData
.
login
.
user
.
sysO
rgCode
return
request
.
get
(
url
)
return
request
.
get
(
url
)
}
}
}
}
This diff is collapsed.
Click to expand it.
api/request.js
View file @
87860bc5
...
@@ -11,14 +11,14 @@ const ERR_NOT_ACCESS_TOKEN = 21;
...
@@ -11,14 +11,14 @@ const ERR_NOT_ACCESS_TOKEN = 21;
var
DEF_APP_CONFIG
=
{
var
DEF_APP_CONFIG
=
{
appId
:
"wxe19b38d5dbc061c6"
,
// 勾芒小程序测试号
appId
:
"wxe19b38d5dbc061c6"
,
// 勾芒小程序测试号
// 开发环境
// 开发环境
//
domain: 'https://dev.gomoretech.com/preschool',
domain
:
'https://dev.gomoretech.com/preschool'
,
//
baseUrl: "https://dev.gomoretech.com/preschool"
baseUrl
:
"https://dev.gomoretech.com/preschool"
// 川哥本地环境
// 川哥本地环境
// domain: 'http://192.168.199.230:8080/preschool',
// domain: 'http://192.168.199.230:8080/preschool',
// baseUrl: "http://192.168.199.230:8080/preschool",
// baseUrl: "http://192.168.199.230:8080/preschool",
// 正式环境
// 正式环境
domain
:
'https://preschool.gomoretech.com/preschool'
,
//
domain: 'https://preschool.gomoretech.com/preschool',
baseUrl
:
"https://preschool.gomoretech.com/preschool"
//
baseUrl: "https://preschool.gomoretech.com/preschool"
}
}
const
extConfig
=
wx
.
getExtConfigSync
?
wx
.
getExtConfigSync
()
:
DEF_APP_CONFIG
;
const
extConfig
=
wx
.
getExtConfigSync
?
wx
.
getExtConfigSync
()
:
DEF_APP_CONFIG
;
const
APP_ID
=
extConfig
.
appId
||
DEF_APP_CONFIG
.
appId
;
const
APP_ID
=
extConfig
.
appId
||
DEF_APP_CONFIG
.
appId
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment