Commit d01cf30e authored by lvtz's avatar lvtz

fix

parent 33ed3b34
// business/pages/deskcenter/index.js
import {
schoolList,
loginTime
} from '../../../service/business/ucenter.js';
import {
......@@ -11,7 +10,8 @@ import {
commonwaitjobGet,
analyzeclasshourGet,
analyzeclasscourseGet,
analyzeDashboardGet
analyzeDashboardGet,
schoolDetailGet
} from '../../../service/business/common.js'
import {
......@@ -33,9 +33,7 @@ Page({
localImageRoot: '../../../images/',
imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion,
schoolList:[],
schoolTotal:0,
selectSchoolData:{},
schoolTitile:'',
sid: 0,
waitJob: 0,
memberChange: false,
......@@ -77,7 +75,7 @@ Page({
this.analyzeclasshourGet(1);
this.analyzeclasshourGet(2);
this.analyzeclasscourseGet();
this.getschoolList();
this.schoolDetailGet();
},
onShow: function () {
this.getMemberMeInfo();
......@@ -125,23 +123,17 @@ Page({
}
})
},
getschoolList(){
schoolList({
page: 1,
perPage: 100,
school_id: this.data.sid
schoolDetailGet(){
schoolDetailGet({
id: this.data.sid
}).then((res) => {
const {code, data} = res;
if (code == 200) {
this.data.schoolTotal = data.total;
if(code == 200){
this.setData({
// schoolList: data.list,
selectSchoolData: this.data.sid?data.list.find((item)=>item.id == this.data.sid):data.list[0]
schoolTitile: data.title,
})
// this.data.schoolTotal = data.total
}
}).catch(() => {
}
})
},
todocallGet(){
......
......@@ -6,7 +6,7 @@
<view class="red-dot" wx:if="{{waitJob>0}}">{{waitJob>99?'···':waitJob}}</view>
</view> -->
<view class="menu-box">
<view class="title">{{selectSchoolData.title}}</view>
<view class="title">{{schoolTitile}}</view>
</view>
</view>
</view>
......@@ -94,8 +94,6 @@
<view class="tab-item">课时概况</view>
</view>
<view class="section-wrap" id="get-height5" style="display: none;">
<view class="section column-chart-box">
<view class="section-title">
......
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