diff --git a/config.js b/config.js index 3e1848e..8663372 100644 --- a/config.js +++ b/config.js @@ -1,26 +1,26 @@ // 产线 -module.exports = { - // http://192.168.0.14:19999 - loginBaseUrl:'http://112.29.103.165:1616', - baseUrl:'http://112.29.103.165:1616/exam', - // login: 'http://112.29.103.165:1616', - login: 'http://112.29.103.165:1616/exam/exam-auth/', - // 图片展示基础地址 - fileUrl:'http://112.29.103.165:1616/exam-file/', - // 上传文件地址 - uploadUrl: 'http://112.29.103.165:1616/exam-file/file/uploadBase64', - bmwUrl: 'http://112.29.103.165:1616/exam-bmw', - // 体检-基础路径 - tjBaseUrl: 'http://112.29.103.165:1616/AppPeaManager', - tjFile: 'http://112.29.103.165:1616/medicalDocumentation/statics/', - // 应用信息 - appInfo: { - // 应用名称 - name: "作业管控智慧平台", - // 应用版本 - version: "1.1.0", - } -} +// module.exports = { +// // http://192.168.0.14:19999 +// loginBaseUrl:'http://112.29.103.165:1616', +// baseUrl:'http://112.29.103.165:1616/exam', +// // login: 'http://112.29.103.165:1616', +// login: 'http://112.29.103.165:1616/exam/exam-auth/', +// // 图片展示基础地址 +// fileUrl:'http://112.29.103.165:1616/exam-file/', +// // 上传文件地址 +// uploadUrl: 'http://112.29.103.165:1616/exam-file/file/uploadBase64', +// bmwUrl: 'http://112.29.103.165:1616/exam-bmw', +// // 体检-基础路径 +// tjBaseUrl: 'http://112.29.103.165:1616/AppPeaManager', +// tjFile: 'http://112.29.103.165:1616/medicalDocumentation/statics/', +// // 应用信息 +// appInfo: { +// // 应用名称 +// name: "作业管控智慧平台", +// // 应用版本 +// version: "1.1.0", +// } +// } // 测试环境 module.exports = { @@ -39,8 +39,8 @@ module.exports = { uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64', bmwUrl: 'http://192.168.0.14:19999/exam-bmw', // 体检-基础路径 - // tjBaseUrl: 'http://192.168.0.14:20000/AppPeaManager', - tjBaseUrl: 'http://192.168.2.147:18089/AppPeaManager', + tjBaseUrl: 'http://192.168.0.14:19100/AppPeaManager', + // tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager', tjFile: 'http://112.29.103.165:1616/medicalDocumentation/statics/', //实名制移动端-登录接口 diff --git a/pages/HealthExaminationApp/appointment/appointment.vue b/pages/HealthExaminationApp/appointment/appointment.vue index e2d6907..ba4b831 100644 --- a/pages/HealthExaminationApp/appointment/appointment.vue +++ b/pages/HealthExaminationApp/appointment/appointment.vue @@ -120,6 +120,7 @@ import Crypoto from '@/utils/aescbc' export default { data() { return { + isLoading: false, token: uni.getStorageSync('tjToken'), idcard: '', active: null, @@ -326,6 +327,15 @@ export default { }, // 确定预约 phyappoint handleSave() { + if (this.isLoading) { + // 提示 + uni.showToast({ + title: '请勿重复提交', + icon: 'none' + }) + return + } + this.isLoading = true const cry = new Crypoto() const params = { hospitalId: this.hospitalInfo.id, diff --git a/pages/HealthExaminationApp/jobAppointment/jobAppointment.vue b/pages/HealthExaminationApp/jobAppointment/jobAppointment.vue index fbf2e4b..260f8a4 100644 --- a/pages/HealthExaminationApp/jobAppointment/jobAppointment.vue +++ b/pages/HealthExaminationApp/jobAppointment/jobAppointment.vue @@ -61,6 +61,7 @@ import Crypoto from '@/utils/aescbc' export default { data() { return { + isLoading: false, token: uni.getStorageSync('tjToken'), idcard: '', active: null, @@ -230,6 +231,15 @@ export default { }, // 确定预约 phyappoint handleSave() { + if (this.isLoading) { + // 提示 + uni.showToast({ + title: '请勿重复提交', + icon: 'none' + }) + return + } + this.isLoading = true const cry = new Crypoto() const params = { hospitalId: this.hospitalInfo.id,