Commit d1782d0b authored by lvtz's avatar lvtz

fix

parent 17550d34
......@@ -12,7 +12,9 @@
<view class="header-wrap">
<view class="header-box">
<view class="edit" bindtap="circleSetting">编辑班级</view>
<permission-box cinfigid="30012">
<view class="edit" bindtap="circleSetting" slot="menubtn">编辑班级</view>
</permission-box>
<view class="box-top">
<view class="coursename">{{circleInfo.course.title}}</view>
<view class="circlename">{{circleInfo.title}}</view>
......@@ -25,18 +27,24 @@
</view>
<view class="opt-btngroup">
<view class="opt-btnitem" bindtap="bindInvite">
<permission-box cinfigid="70000">
<view class="opt-btnitem" bindtap="bindInvite" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_invite.png?{{imageVersion}}"></image>
<view class="title">邀请学员</view>
</view>
<view class="opt-btnitem" bindtap="goClocklist">
</permission-box>
<permission-box cinfigid="30002">
<view class="opt-btnitem" bindtap="goClocklist" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_clock.png?{{imageVersion}}"></image>
<view class="title">作业打卡</view>
</view>
<view class="opt-btnitem" bindtap="bindRankingList">
</permission-box>
<permission-box>
<view class="opt-btnitem" bindtap="bindRankingList" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_rank.png?{{imageVersion}}"></image>
<view class="title">排行榜</view>
</view>
</permission-box>
</view>
<view class="devided-line"></view>
......@@ -96,22 +104,30 @@
<view class="nickname">{{optStudentInfo.name}}</view>
</view>
<view class="opt-tabbox">
<view class="opt-tabitem" bindtap="goReviewStudent">
<permission-box cinfigid="3">
<view class="opt-tabitem" bindtap="goReviewStudent" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_classreview.png?{{imageVersion}}"></image>
<view class="title">课堂点评</view>
</view>
<view class="opt-tabitem" bindtap="gorewardstudent">
</permission-box>
<permission-box cinfigid="90004">
<view class="opt-tabitem" bindtap="gorewardstudent" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_studentreward.png?{{imageVersion}}"></image>
<view class="title">奖励学员</view>
</view>
<view class="opt-tabitem" bindtap="goExchangeClass">
</permission-box>
<permission-box cinfigid="30015">
<view class="opt-tabitem" bindtap="goExchangeClass" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_exchange.png?{{imageVersion}}"></image>
<view class="title">调班</view>
</view>
<view class="opt-tabitem" bindtap="bindRemoveStudent">
</permission-box>
<permission-box cinfigid="30014">
<view class="opt-tabitem" bindtap="bindRemoveStudent" slot="menubtn">
<image class="icon" src="{{imageRoot}}2b/circleindex/icon_studentremove.png?{{imageVersion}}"></image>
<view class="title">移除</view>
</view>
</permission-box>
</view>
<view class="btn-cancel" bindtap="hideStudentOptModal">取消</view>
</view>
......
......@@ -19,7 +19,7 @@ page{
position: relative;
}
.header-box .box-top{
padding: 30rpx 40rpx 66rpx;
padding: 30rpx 150rpx 66rpx 40rpx;
}
.header-box .edit{
position: absolute;
......@@ -73,12 +73,13 @@ page{
align-items: center;
}
.opt-btngroup .opt-btnitem{
flex: 1;
/* flex: 1; */
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
padding: 30rpx 0;
width: 250rpx;
}
.opt-btngroup .opt-btnitem .icon{
width: 44rpx;
......
......@@ -120,7 +120,9 @@
</view>
<empty-content text="暂无数据~" emptyimg="" wx:if="{{emptyPage}}"></empty-content>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view>
<view class="wanted-btn" bindtap="gotodolist">我要点名</view>
<permission-box cinfigid="3">
<view class="wanted-btn" bindtap="gotodolist" slot="menubtn">我要点名</view>
</permission-box>
</view>
</view>
<view class="modal {{modelHideClass? 'hide': ''}}" hidden="{{!modalshow}}">
......
......@@ -2,6 +2,7 @@
"navigationBarTitleText": "打卡",
"enablePullDownRefresh": true,
"usingComponents": {
"expiredTip": "../../components/expiredTip"
"expiredTip": "../../components/expiredTip",
"permission-box":"../../components/permissionbox"
}
}
\ No newline at end of file
<view class="container">
<view class="top-nav">
<permission-box cinfigid="30002">
<view class="top-nav" slot="menubtn">
<view class="nav-item bg-FFA922" bindtap="addTheme" data-createtype="1">
<image class="item-icon" src="{{imageRoot}}2b/deskcenter2/add_zuoye2.png?{{imageRoot}}"/>
<view class="item-title-box">
......@@ -22,7 +23,7 @@
</view>
</view>
</view>
</permission-box>
<view class="class-select-box" bindtap="showClassSelectModal" wx:if="{{tag!=1}}">
<view class="label">班级:</view>
<view class="title">{{selectClass.title}}</view>
......
{
"usingComponents": {
"expiredTip": "../../components/expiredTip"
"expiredTip": "../../components/expiredTip",
"permission-box":"../../components/permissionbox"
},
"navigationBarTitleText": "积分管理"
}
\ No newline at end of file
<wxs src="./../../../filter/index.wxs" module="filter" />
<view class="container {{choiceBoxShow?'containerDisabledScroll':''}}">
<view class="header-box">
<view class="btnitem" bindtap="toPointsRuleSet" wx:if="{{!my}}">
<permission-box cinfigid="900">
<view class="btnitem" bindtap="toPointsRuleSet" slot="menubtn">
<view class="iconbox">
<image class="icon scoresetting" src="{{imageRoot}}2b/scoremgt/scoresetting.png?{{imageVersion}}"></image>
</view>
<view class="btnname">积分设置</view>
</view>
<view class="btnitem" bindtap="toIntegralChange">
</permission-box>
<permission-box cinfigid="90004">
<view class="btnitem" bindtap="toIntegralChange" slot="menubtn">
<view class="iconbox">
<image class="icon change" src="{{imageRoot}}2b/scoremgt/change.png?{{imageVersion}}"></image>
</view>
<view class="btnname">积分变动</view>
</view>
<view class="btnitem" bindtap="toAddPointsGift">
</permission-box>
<permission-box cinfigid="90001">
<view class="btnitem" bindtap="toAddPointsGift" slot="menubtn">
<view class="iconbox">
<image class="icon addprize" src="{{imageRoot}}2b/scoremgt/addprize.png?{{imageVersion}}"></image>
</view>
<view class="btnname">添加奖品</view>
</view>
<view class="btnitem" bindtap="toPointsExchangeRecord">
</permission-box>
<permission-box cinfigid="0">
<view class="btnitem" bindtap="toPointsExchangeRecord" slot="menubtn">
<view class="iconbox">
<image class="icon exchangeprize" src="{{imageRoot}}2b/scoremgt/exchangeprize.png?{{imageVersion}}"></image>
</view>
<view class="btnname">兑换记录</view>
</view>
<view class="btnitem" bindtap="quickExchange">
</permission-box>
<permission-box cinfigid="0">
<view class="btnitem" bindtap="quickExchange" slot="menubtn">
<view class="iconbox">
<image class="icon scan" src="{{imageRoot}}2b/scoremgt/scan.png?{{imageVersion}}"></image>
</view>
<view class="btnname">扫码核销</view>
</view>
</permission-box>
</view>
<view class="divideline"></view>
<view wx:if="{{pointsGoodsList.length>0 || pointsCardList.length>0}}" class="goods-box">
......@@ -48,8 +58,12 @@
</view>
</view>
<view class="operatebox">
<view class="operatebtn" bindtap="editGoodsOrCard" data-item="{{item}}">修改</view>
<view class="operatebtn" bindtap="downGoodsOrCard" data-item="{{item}}">删除</view>
<permission-box cinfigid="90002">
<view class="operatebtn" bindtap="editGoodsOrCard" data-item="{{item}}" slot="menubtn">修改</view>
</permission-box>
<permission-box cinfigid="90003">
<view class="operatebtn" bindtap="downGoodsOrCard" data-item="{{item}}" slot="menubtn">删除</view>
</permission-box>
</view>
</view>
</view>
......@@ -73,8 +87,12 @@
</view>
<view class="couponcardname">{{item.title}}</view>
<view class="operatebox">
<view class="operatebtn" bindtap="editGoodsOrCard" data-item="{{item}}">修改</view>
<view class="operatebtn" bindtap="downGoodsOrCard" data-item="{{item}}">删除</view>
<permission-box cinfigid="90002">
<view class="operatebtn" bindtap="editGoodsOrCard" data-item="{{item}}" slot="menubtn">修改</view>
</permission-box>
<permission-box cinfigid="90003">
<view class="operatebtn" bindtap="downGoodsOrCard" data-item="{{item}}" slot="menubtn">删除</view>
</permission-box>
</view>
</view>
</view>
......
......@@ -118,6 +118,9 @@ export default{
}, {
key: 30014,
name: '移除学员',
}, {
key: 30015,
name: '学员调班',
}],
}],
}],
......@@ -135,6 +138,9 @@ export default{
btns: [{
key: 40000,
name: '选班',
}, {
key: 40001,
name: '快捷邀请老师',
}],
}],
}, {
......@@ -280,6 +286,9 @@ export default{
}, {
key: 110001,
name: '删除单课/专栏',
}, {
key: 110008,
name: '评论管理',
}],
}],
}, {
......@@ -329,5 +338,5 @@ export default{
}],
}],
},
]
],
}
\ No newline at end of file
......@@ -79,9 +79,10 @@ Page({
title: '已确认',
duration: 200,
success(){
that.getCourseDetail();
that.setData({
'coueseDetail.schedule_remind': {
confirm_status: 2
confirm_status: this.data.courseDetail.schedule_remind &&this.data.courseDetail.schedule_remind.confirm_status==2?1:2
}
})
}
......@@ -310,11 +311,15 @@ Page({
icon: 'success',
duration: 500,
success: function(){
that.getCourseDetail()
that.setData({
'courseDetail.my_leave': {
status: res.data.status,
id: data.id
},
'courseDetail.schedule_remind': {
confirm_status: 1,
},
leaveContent: '',
modalLeaveShow: false
})
......@@ -372,10 +377,14 @@ Page({
icon: 'success',
duration: 500,
success: function(){
that.getCourseDetail();
that.setData({
'courseDetail.my_leave':{
status: 2,
},
'courseDetail.schedule_remind':{
confirm_status: 1
},
modalBackLeaveShow: false,
})
}
......
......@@ -47,9 +47,9 @@
</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">{{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!=3}}">{{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)}}">我要请假{{coueseDetail.schedule_remind.confirm_status}}</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>
<view class="btn" wx:if="{{courseDetail.my_leave && courseDetail.my_leave.status==3}}">请假已通过</view>
</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