Browse Source

选修调试

娄底高职分支
liangkun 1 year ago
parent
commit
1403e99502
4 changed files with 29 additions and 29 deletions
  1. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
  2. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json
  3. +18
    -16
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/from.vue
  4. +8
    -10
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/list.vue

+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js View File

@@ -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/",


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/manifest.json View File

@@ -3,7 +3,7 @@
"appid" : "__UNI__E4958C9",
"description" : "智慧校园移动端",
"versionName" : "1.0.6",
"versionCode" : 2,
"versionCode" : 106,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {


+ 18
- 16
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/from.vue View File

@@ -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);
}
// }
});
}


+ 8
- 10
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OpenLessonPlanOfElectiveStudent/list.vue View File

@@ -6,7 +6,7 @@
<l-scroll-list v-if="ready" @pullDown="pullDown" @toBottom="fetchList()" ref="data">
<l-customlist :tips="loadState" showTips>
<view class="pageBox customlist-item" showDelete="true" v-for="(item, ind) in data"
:key="item.MakeDate" @click="tapClick(item)">
:key="item.Id" @click="tapClick(item)">
<view class="">
<text>学年:</text>
{{ 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);
})
}
})


Loading…
Cancel
Save