Commit d01cf30e authored by lvtz's avatar lvtz

fix

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