diff --git a/config.js b/config.js index 61e05ae..0977875 100644 --- a/config.js +++ b/config.js @@ -4,10 +4,10 @@ module.exports = { // 若在同一台机器调试:使用 localhost:8066 // 若手机在同一局域网:替换为本机局域网 IP,例如 172.16.96.111:8066 // 页面在 https://zhxg.gxsdxy.cn 下访问,接口同域同协议以避免 CORS - // baseUrl: 'https://zhxg.gxsdxy.cn/prod_api', - // baseUrl: 'https://zhxg.gxsdxy.cn/prod_api', + baseUrl: 'https://zhxg.gxsdxy.cn/prod_api', + //baseUrl: 'https://zhxg.gxsdxy.cn/prod_api', // 若本地/内网以 HTTP 访问页面,可改为: - baseUrl: 'http://localhost:8085', + //baseUrl: 'http://localhost:8085', // 应用信息 appInfo: { // 应用名称 diff --git a/manifest.json b/manifest.json index cd22618..02c753e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "sassImplementationName" : "node-sass", "name" : "学工系统", - "appid" : "__UNI__CB00986", + "appid" : "__UNI__4E0771D", "description" : "", "versionName" : "1.1.0", "versionCode" : "100", diff --git a/pages/sub/StuApply.vue b/pages/sub/StuApply.vue index f0291ab..5863497 100644 --- a/pages/sub/StuApply.vue +++ b/pages/sub/StuApply.vue @@ -9,7 +9,7 @@ - 主题:{{v.surveyName}} + 主题:{{v.surveyName}} @@ -34,7 +34,7 @@ :type="v.isSubmit=='是'?'success':'error'" plain> - 审核状态: + 审核状态: @@ -114,7 +114,7 @@ - + @@ -136,7 +136,7 @@ - + @@ -167,7 +167,7 @@ - + @@ -239,7 +239,7 @@ - 主题:{{v.surveyName}} + 主题:{{v.surveyName}} + 状态: @@ -603,14 +603,14 @@ }); return; } - if (isEmpty(sdata.scheduledReturnTime)) { - uni.showToast({ - title: "请选择预计返校时间", - icon: "none", - mask: true - }); - return; - } + // if (isEmpty(sdata.scheduledReturnTime)) { + // uni.showToast({ + // title: "请选择预计返校时间", + // icon: "none", + // mask: true + // }); + // return; + // } } // console.log("表单", sdata) return; @@ -633,10 +633,10 @@ let res = await that.getConfigSignature(); that.info += JSON.stringify(res) ww.register({ - corpId: 'wx129e6bf0f36b8b3d', // 必填,当前用户企业所属企业ID - agentId: 1000093, // 必填,当前应用的AgentID - jsApiList: ["getLocation", "openLocation"], // 必填,需要使用的JSAPI列表 - // getAgentConfigSignature: that.getAgentConfigSignature, // 必填,根据url生成应用签名的回调函数 + corpId: 'wx129e6bf0f36b8b3d', // 必填,当前用户企业所属企业ID + agentId: 1000093, // 必填,当前应用的AgentID + jsApiList: ["getLocation", "openLocation"], // 必填,需要使用的JSAPI列表 + // getAgentConfigSignature: that.getAgentConfigSignature, // 必填,根据url生成应用签名的回调函数 getConfigSignature() { // console.log(res) return res @@ -646,7 +646,7 @@ // 初始化微信 JS-SDK async getConfigSignature() { return new Promise((resolve, reject) => { - // 调用后端接口获取签名信息(需要后端支持) + // 调用后端接口获取签名信息(需要后端支持) getWxConfig("corpId").then(res => { const { timestamp, @@ -665,7 +665,7 @@ }, async getAgentConfigSignature() { return new Promise((resolve, reject) => { - // 调用后端接口获取签名信息(需要后端支持) + // 调用后端接口获取签名信息(需要后端支持) getWxConfig("agentId").then(res => { const { timestamp, @@ -742,13 +742,13 @@ this.formData.name = this.ownName; this.formData.stuNo = this.ownStuNo; - // 安全检查:确保moreDeptList存在且不为空,并且能找到匹配的部门 + // 安全检查:确保moreDeptList存在且不为空,并且能找到匹配的部门 if (this.moreDeptList && this.moreDeptList.length > 0 && this.ownDeptName) { const matchedDept = this.moreDeptList.filter(x => x && x.dictValue && x.dictValue.includes(this.ownDeptName)); if (matchedDept.length > 0) { this.formData.moreDeptName = matchedDept[0].dictValue; } else { - // 如果没有找到匹配的部门,使用第一个部门或者设置为空 + // 如果没有找到匹配的部门,使用第一个部门或者设置为空 this.formData.moreDeptName = this.moreDeptList[0] && this.moreDeptList[0].dictValue ? this.moreDeptList[0].dictValue : ''; } } else { @@ -824,7 +824,7 @@ } .bottom-div { - /* 此处不需要特别设置,因为它默认就在下面的位置 */ + /* 此处不需要特别设置,因为它默认就在下面的位置 */ } diff --git a/pages/sub/StudoEdit.vue b/pages/sub/StudoEdit.vue index a61076b..b1d9337 100644 --- a/pages/sub/StudoEdit.vue +++ b/pages/sub/StudoEdit.vue @@ -542,14 +542,14 @@ import { }); return; } - if (isEmpty(sdata.scheduledReturnTime)) { - uni.showToast({ - title: "请选择预计返校时间", - icon: "none", - mask: true - }); - return; - } + // if (isEmpty(sdata.scheduledReturnTime)) { + // uni.showToast({ + // title: "请选择预计返校时间", + // icon: "none", + // mask: true + // }); + // return; + // } const today = new Date(); today.setHours(0, 0, 0, 0); const willLeaveTime = new Date(sdata.willLeaveTime.replace(/-/g, '/')); diff --git a/pages/sub/add.vue b/pages/sub/add.vue index 5d3326b..cb017a6 100644 --- a/pages/sub/add.vue +++ b/pages/sub/add.vue @@ -49,7 +49,7 @@ template> - + @@ -71,7 +71,7 @@ template> - +