From 1403e99502a9d510fa5bd7d5988d79ed49416bc0 Mon Sep 17 00:00:00 2001 From: liangkun Date: Wed, 20 Sep 2023 09:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E4=BF=AE=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/config.js | 4 +-- .../LearunApp-2.2.0/manifest.json | 2 +- .../OpenLessonPlanOfElectiveStudent/from.vue | 34 ++++++++++--------- .../OpenLessonPlanOfElectiveStudent/list.vue | 18 +++++----- 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js index 58431177b..6b5939ba1 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js @@ -7,9 +7,9 @@ export default { "enableSignUp": true, //请求数据的接口地址;可以配置多个,开发环境下登录页会出现选择菜单供您选择 "apiHost": [ - // "http://fwh.ldyesz.edu.cn:9000/",//H5打包 + "http://fwh.ldyesz.edu.cn:9000/",//H5打包 // "http://10.10.4.45:9000/"//app打包, - "http://localhost:31173/", + // "http://localhost:31173/", ], "webHost": "http://fwh.ldyesz.edu.cn:8000/", // "webHost": "http://192.168.10.245:8009/", diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json index 339847adb..8f883a866 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json @@ -3,7 +3,7 @@ "appid" : "__UNI__E4958C9", "description" : "智慧校园移动端", "versionName" : "1.0.6", - "versionCode" : 2, + "versionCode" : 106, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/from.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/from.vue index af538afc5..2e62ee75e 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/from.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/from.vue @@ -57,26 +57,28 @@ export default{ _postData.keyValue = this.keyValue; _postData.StuNo = user.account; this.LOADING('正在提交…'); - this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/SignInByMobile', _postData, '加载数据时出错').then((res,info, code) => { - // this.HIDE_LOADING(); - console.log(res); - // console.log(info); - // console.log(code); - if (res) {// 表单数据保存成功 + this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/SignInByMobile', _postData, '加载数据时出错').then(data => { + this.HIDE_LOADING(); + this.EMIT('OpenLessonPlanOfElectiveStudent') + this.TOAST('报名成功,请耐心等待结果。'); + setTimeout(()=>{ + this.NAV_BACK() + },1000); + // if (data) {// 表单数据保存成功 //判断队列结果 // let timer = setInterval(() => { // _this.LOADING('正在提交…'); - this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/GetApplyResult', _postData, '报名状态').then((dataresult) => { - console.log(dataresult) - //clearInterval(timer); - if(!dataresult)return - this.HIDE_LOADING(); - this.EMIT('OpenLessonPlanOfElectiveStudent') - // _this.TOAST(dataresult.msg || dataresult.info); - // _this.NAV_BACK() - }); + // this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/GetApplyResult', _postData, '报名状态').then((dataresult) => { + + // //clearInterval(timer); + // if(!dataresult)return + // this.HIDE_LOADING(); + // this.EMIT('OpenLessonPlanOfElectiveStudent') + // this.TOAST('报名成功,请耐心等待结果。'); + // this.NAV_BACK() + // }); // }, 5000); - } + // } }); } diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/list.vue index 8b7669e59..52944931c 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/list.vue @@ -6,7 +6,7 @@ + :key="item.Id" @click="tapClick(item)"> 学年: {{ item.AcademicYearNo }} @@ -73,9 +73,9 @@ loadState: '向下翻以加载更多' }; }, - onUnload() { - this.OFF('OpenLessonPlanOfElectiveStudent'); - }, + // onUnload() { + // this.OFF('OpenLessonPlanOfElectiveStudent'); + // }, onShow() { if(this.data.length){ this.pullDown() @@ -88,7 +88,6 @@ Promise.all([() => {}]); // var _this = this; this.user = this.GET_GLOBAL('loginUser'); - console.log(this.user) this.fetchList(); this.ready = true; }, @@ -122,7 +121,6 @@ this.records = res.records; this.page = res.page + 1; this.loadState = res.page >= res.total ? '已加载所有项目' : '向下翻以加载更多'; - // console.log(_this.data); }); }, // 列表下拉 @@ -157,11 +155,11 @@ '加载数据时出错' ).then(data => { this.HIDE_LOADING() - // console.log(data) - if (data) { // 成功 - this.TOAST('取消报名成功!'); + this.TOAST('取消报名成功!'); + setTimeout(()=>{ this.refreshList() - } + },1000); + }) } })