Commit 87860bc5 authored by jie zhang's avatar jie zhang

课表食谱修改

parent f9650118
...@@ -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.orgCode var url = "/wxsite/parents/getCurrentSchedule.do?orgCode=" + app.globalData.login.user.sysOrgCode
return request.get(url) return request.get(url)
} }
} }
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment