Commit f271537a authored by lvtz's avatar lvtz

fix

parent 11c0bede
......@@ -12,6 +12,7 @@ import {
classrecentlyrecordsGet,
behaviorlogPost,
} from '../../../service/business/classservice.js'
import permissionUtils from '../../../utilities/permission.js'
var app = getApp();
Page({
data: {
......@@ -53,6 +54,7 @@ Page({
from,
guideDailogShow: from && from == 'onekeydeployment' ? true : false,
})
permissionUtils.myMenulistGet(sid)
},
onShow: function () {
......
......@@ -107,23 +107,25 @@
</view>
</view>
</view>
<view class="recently-class" style="{{emptyPage ? 'min-height: 450rpx;' : ''}}">
<view class="title">
<view class="left"><image class="recently-clock" src="{{imageRoot}}2b/classservice/recently-clock.png?{{imageRoot}}" mode="aspectFit|aspectFill|widthFix" />最近关注的班级</view>
<view class="right" bindtap="goclasslist" data-btnname="goclasslist2">更多班级 <image class="icon-arr" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"/></view>
</view>
<view class="content-box" wx:if="{{!emptyPage}}">
<view class="class-item" wx:for="{{classrecentlyList}}" wx:key="{{index}}" data-item="{{item}}" bindtap="goClassDetail">
<view class="icon"></view>
<view class="name">{{item.class.title}}</view>
<permission-box cinfigid="3">
<view class="recently-class" style="{{emptyPage ? 'min-height: 450rpx;' : ''}}" slot="menubtn">
<view class="title">
<view class="left"><image class="recently-clock" src="{{imageRoot}}2b/classservice/recently-clock.png?{{imageRoot}}" mode="aspectFit|aspectFill|widthFix" />最近关注的班级</view>
<view class="right" bindtap="goclasslist" data-btnname="goclasslist2">更多班级 <image class="icon-arr" src="{{imageRoot}}2b/organizationalmgt/right.png?{{imageVersion}}"/></view>
</view>
<view class="content-box" wx:if="{{!emptyPage}}">
<view class="class-item" wx:for="{{classrecentlyList}}" wx:key="{{index}}" data-item="{{item}}" bindtap="goClassDetail">
<view class="icon"></view>
<view class="name">{{item.class.title}}</view>
</view>
</view>
<empty-content text="暂无数据~" emptyimg="" wx:if="{{emptyPage}}"></empty-content>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view>
</view>
<empty-content text="暂无数据~" emptyimg="" wx:if="{{emptyPage}}"></empty-content>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view>
<permission-box cinfigid="3">
<view class="wanted-btn" bindtap="gotodolist" slot="menubtn">我要点名</view>
</permission-box>
</view>
</permission-box>
<permission-box cinfigid="3">
<view class="wanted-btn" bindtap="gotodolist" slot="menubtn">我要点名</view>
</permission-box>
</view>
<view class="modal {{modelHideClass? 'hide': ''}}" hidden="{{!modalshow}}">
<view class="mask" bindtap="hidemodal"></view>
......
......@@ -132,6 +132,7 @@ Page({
LocalStorage.removeItem('dakarole');
LocalStorage.removeItem('user');
LocalStorage.removeItem('teacher');
LocalStorage.removeItem('permission');
},
goShopedit(){
wx.navigateTo({
......
......@@ -32,7 +32,7 @@ import {
imagify,
LocalStorage
} from '../../../utilities/index.js';
import permissionUtils from '../../../utilities/permission.js';
var app = getApp();
Page({
data: {
......@@ -540,6 +540,7 @@ Page({
if (res.code == 200) { // 成功的操作
if (this.data.sid == 0) { // 新增的操作
LocalStorage.setItem('dakarole', 1);
permissionUtils.myMenulistGet(res.data.id)
wx.reLaunch({
url: `/business/pages/classmgt/index?sid=${res.data.id}&newcreate=1`,
})
......
......@@ -20,7 +20,7 @@
</view>
</view>
</view>
<block wx:if="{{dakarole!=2}}">
<block wx:if="{{dakarole!=2 || sid==0}}">
<view class="box">
<view class="box-title">
<view class="title">完善机构信息</view>
......
......@@ -47,7 +47,7 @@
</view>
<view class="bottom-box">
<view class="btn-group">
<view class="btn btn-primary {{(courseDetail.my_leave && (courseDetail.my_leave.status==1 || courseDetail.my_leave.status==3)) || courseDetail.call_time || (courseDetail.schedule_remind && courseDetail.schedule_remind.confirm_status==2)?'btn-disabled':''}}" bindtap="bindArriveStatus" wx:if="{{courseDetail.my_leave.status!=3}}">{{courseDetail.schedule_remind && courseDetail.schedule_remind.confirm_status==2?'已确认':'我会准时到课'}}</view>
<view class="btn btn-primary {{(courseDetail.my_leave && (courseDetail.my_leave.status==1 || courseDetail.my_leave.status==3)) || courseDetail.call_time || (courseDetail.schedule_remind && courseDetail.schedule_remind.confirm_status==2)?'btn-disabled':''}}" bindtap="bindArriveStatus" wx:if="{{courseDetail.my_leave.status!=1}}">{{courseDetail.schedule_remind && courseDetail.schedule_remind.confirm_status==2?'已确认':'我会准时到课'}}</view>
<view class="btn" bindtap="bindShowModalLeave" wx:if="{{!courseDetail.my_leave || (courseDetail.my_leave.status!=1 && courseDetail.my_leave.status!=3)}}">我要请假</view>
<view class="btn" bindtap="bindBackLeave" wx:if="{{courseDetail.my_leave.status && courseDetail.my_leave.status==1}}">撤销请假</view>
......
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