Commit f27fbece authored by lvtz's avatar lvtz

fix

parent ccf545fd
...@@ -65,7 +65,7 @@ page{ ...@@ -65,7 +65,7 @@ page{
} }
.tip-box .text{ .tip-box .text{
font-size: 24rpx; font-size: 24rpx;
color:000; color:#000;
} }
.nav-box{ .nav-box{
display: flex; display: flex;
...@@ -73,7 +73,6 @@ page{ ...@@ -73,7 +73,6 @@ page{
} }
.nav-box .nav-item { .nav-box .nav-item {
flex: 1; flex: 1;
} }
.nav-box .nav-item .icon{ .nav-box .nav-item .icon{
height: 60rpx; height: 60rpx;
...@@ -94,10 +93,11 @@ page{ ...@@ -94,10 +93,11 @@ page{
} }
.footer-btn{ .footer-btn{
position: fixed; position: fixed;
left: 168rpx; left: 50%;
transform: translateX(-50%);
bottom: 215rpx; bottom: 215rpx;
width:414rpx; width: 414rpx;
height:70rpx; height: 70rpx;
background:rgba(101,184,244,1); background:rgba(101,184,244,1);
border-radius:35rpx; border-radius:35rpx;
font-size:30rpx; font-size:30rpx;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</view> </view>
<view class="empty-content" wx:if="{{emptyPage}}"> <view class="empty-content" wx:if="{{emptyPage}}">
<image class='empty-img' src='{{imageRoot}}2c/rankinglist/empty.png?{{imageVersion}}'></image> <image class='empty-img' src='{{imageRoot}}2c/common/emptyimg.png?{{imageVersion}}'></image>
<view class="empty-text">咋肥事咧,一个班级也没有~</view> <view class="empty-text">咋肥事咧,一个班级也没有~</view>
</view> </view>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view> <view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view>
......
...@@ -30,7 +30,7 @@ Page({ ...@@ -30,7 +30,7 @@ Page({
sid: 0, sid: 0,
rollcalllist:[], rollcalllist:[],
page: 1, page: 1,
perPage: 10, perPage: 6,
hasmore: true, hasmore: true,
rollcallTotal: 0, rollcallTotal: 0,
emptyPage: false, emptyPage: false,
...@@ -85,7 +85,7 @@ Page({ ...@@ -85,7 +85,7 @@ Page({
page:1, page:1,
hasmore:true hasmore:true
},()=>{ },()=>{
this.schedulesGet('up') this.schedulesGet('down')
}) })
}, },
...@@ -93,14 +93,7 @@ Page({ ...@@ -93,14 +93,7 @@ Page({
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function () {
this.schedulesGet('down') this.schedulesGet('up')
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}, },
schedulesGet(type) { schedulesGet(type) {
if (!this.data.hasmore) { if (!this.data.hasmore) {
...@@ -117,7 +110,7 @@ Page({ ...@@ -117,7 +110,7 @@ Page({
perPage: this.data.perPage, perPage: this.data.perPage,
my: this.data.my, my: this.data.my,
school_id: this.data.sid, school_id: this.data.sid,
status:1 status: 1
}).then((res) => { }).then((res) => {
const { code, data } = res; const { code, data } = res;
this.setData({ this.setData({
......
<!--business/pages/classservice/rollcall .wxml--> <!--business/pages/classservice/rollcall .wxml-->
<wxs src="../../../filter/index.wxs" module="filter" /> <wxs src="../../../filter/index.wxs" module="filter" />
<view class="container"> <view class="container">
<view class="content-box" hover-class="none" hover-stop-propagation="false"> <view class="content-box" hover-class="none" hover-stop-propagation="false" wx:if="{{rollcallList.length>0}}">
<view class="content-item" hover-class="none" hover-stop-propagation="false" wx:for="{{rollcallList}}" wx:key="{{key}}" data-item="{{item}}" bindtap="gorollcallindex"> <view class="content-item" hover-class="none" hover-stop-propagation="false" wx:for="{{rollcallList}}" wx:key="{{key}}" data-item="{{item}}" bindtap="gorollcallindex">
<view class="top-box" hover-class="none" hover-stop-propagation="false"> <view class="top-box" hover-class="none" hover-stop-propagation="false">
<view class="time" hover-class="none" hover-stop-propagation="false">{{filter.matchTime(item.start_time,'month')}} {{filter.matchTime(item.start_time,'hour')}}-{{filter.matchTime(item.end_time,'hour')}}</view> <view class="time" hover-class="none" hover-stop-propagation="false">{{filter.matchTime(item.start_time,'month')}} {{filter.matchTime(item.start_time,'hour')}}-{{filter.matchTime(item.end_time,'hour')}}</view>
<!-- <view class="status {{item.call_time?'done-status':''}}" hover-class="none" hover-stop-propagation="false">{{item.call_time?'已点名':'未点名'}}</view> --> <view class="status {{item.call_time?'done-status':''}}" hover-class="none" hover-stop-propagation="false">{{item.call_time?'已点名':'未点名'}}</view>
</view> </view>
<view class="info-box" hover-class="none" hover-stop-propagation="false"> <view class="info-box" hover-class="none" hover-stop-propagation="false">
<view class="info-item" hover-class="none" hover-stop-propagation="false"> <view class="info-item" hover-class="none" hover-stop-propagation="false">
<image class="icon" src="{{imageRoot}}2b/classservice/class.png?{{imageVersion}}"></image> <image class="icon" src="{{imageRoot}}2b/classservice/class.png?{{imageVersion}}"></image>
<view class="text" hover-class="none" hover-stop-propagation="false">{{item.class.title}}</view> <view class="text" hover-class="none" hover-stop-propagation="false">{{item.course.title}}</view>
</view> </view>
<view class="info-item" hover-class="none" hover-stop-propagation="false"> <view class="info-item" hover-class="none" hover-stop-propagation="false">
<image class="icon" src="{{imageRoot}}2b/classservice/map.png?{{imageVersion}}"></image> <image class="icon" src="{{imageRoot}}2b/classservice/map.png?{{imageVersion}}"></image>
<view class="text" hover-class="none" hover-stop-propagation="false">{{item.class.title}}</view> <view class="text" hover-class="none" hover-stop-propagation="false">{{item.class_room.title}}</view>
</view> </view>
<view class="info-item" hover-class="none" hover-stop-propagation="false"> <view class="info-item" hover-class="none" hover-stop-propagation="false">
<image class="icon" src="{{imageRoot}}2b/classservice/adress.png?{{imageVersion}}"></image> <image class="icon" src="{{imageRoot}}2b/classservice/adress.png?{{imageVersion}}"></image>
...@@ -23,8 +23,10 @@ ...@@ -23,8 +23,10 @@
</view> </view>
</view> </view>
<list-loading loading="{{listLoading}}"></list-loading> <list-loading loading="{{listLoading}}"></list-loading>
<view class="empty-content-box" wx:if="{{emptyPage}}">
<empty-content text="暂无数据"></empty-content>
</view>
</view> </view>
<view class="empty-content" wx:if="{{emptyPage}}">
<image class='empty-img' src='{{imageRoot}}2c/common/emptyimg.png?{{imageVersion}}'></image>
<view class="empty-text">暂无数据~</view>
</view>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore && page>1}}">没有更多了</view>
</view> </view>
...@@ -5,9 +5,8 @@ ...@@ -5,9 +5,8 @@
overflow: hidden; overflow: hidden;
} }
.content-box{ .content-box{
padding: 0 24rpx; padding: 30rpx 24rpx 0;
background:rgba(243,244,246,1); background:rgba(243,244,246,1);
padding-top: 30rpx;
} }
.content-box .content-item{ .content-box .content-item{
background:rgba(255,255,255,1); background:rgba(255,255,255,1);
...@@ -15,6 +14,9 @@ ...@@ -15,6 +14,9 @@
margin-bottom: 30rpx; margin-bottom: 30rpx;
padding-bottom: 40rpx; padding-bottom: 40rpx;
} }
.content-box .content-item:last-of-type{
margin-bottom: 0;
}
.content-box .content-item .top-box{ .content-box .content-item .top-box{
display: flex; display: flex;
height: 98rpx; height: 98rpx;
...@@ -73,4 +75,30 @@ ...@@ -73,4 +75,30 @@
color:rgba(0,0,0,1); color:rgba(0,0,0,1);
line-height: 1; line-height: 1;
padding-left: 35rpx; padding-left: 35rpx;
}
/* 空场景 */
.empty-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
display: flex;
flex-direction: column;
align-items: center;
line-height: 45rpx;
}
.empty-content .empty-img {
width: 263rpx;
height: 219rpx;
}
.empty-content .empty-text {
font-size: 26rpx;
color: rgba(0, 0, 0, 0.6);
}
.has-nomore{
font-size: 26rpx;
color: #9C9C9D;
padding: 75rpx 0;
text-align: center;
} }
\ No newline at end of file
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
transform: translateY(100%); transform: translateY(100%);
} }
} }
.container{
padding-bottom: 166rpx;
}
.header-card{ .header-card{
width:680rpx; width:680rpx;
height:293rpx; height:293rpx;
......
...@@ -90,7 +90,7 @@ Page({ ...@@ -90,7 +90,7 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function () {
wx.stopPullDownRefresh()
}, },
/** /**
......
/* business/pages/classservice/rollcallindex.wxss */ /* business/pages/classservice/rollcallindex.wxss */
.container{ .container{
padding-bottom: 90rpx; padding-bottom: 120rpx;
} }
.bule-box{ .bule-box{
height: 226rpx; height: 226rpx;
...@@ -94,6 +94,8 @@ ...@@ -94,6 +94,8 @@
height:60rpx; height:60rpx;
line-height: 60rpx; line-height: 60rpx;
text-align: center; text-align: center;
border-bottom: 1px solid rgba(0,0,0,.05);
border-top: 1px solid rgba(0,0,0,.05);
} }
.line-16{ .line-16{
height:16rpx; height:16rpx;
...@@ -107,10 +109,11 @@ ...@@ -107,10 +109,11 @@
} }
.search-box{ .search-box{
padding: 36rpx 25rpx 16rpx 25rpx; padding: 50rpx 24rpx 26rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
background: #fff;
} }
.search-box .btn{ .search-box .btn{
width:110rpx; width:110rpx;
...@@ -152,103 +155,132 @@ ...@@ -152,103 +155,132 @@
border: none; border: none;
height: 60rpx; height: 60rpx;
} }
.student-list{}
.student-list .title-box{ .student-list .title-box{
padding: 50rpx 24rpx 24rpx 24rpx; padding: 24rpx 0 24rpx 24rpx;
box-shadow:0px 2rpx 16rpx 0px rgba(0, 0, 0, 0.1); box-shadow: 0 2rpx 16rpx 0 rgba(0, 0, 0, 0.1);
display: flex; display: flex;
font-size:24rpx; justify-content: space-between;
font-family:PingFang-SC-Regular; align-items: center;
font-weight:400; font-size: 24rpx;
color:rgba(0,0,0,.7); color:rgba(0,0,0,.7);
line-height:1; line-height: 1;
z-index: -1;
position: relative;
} }
.student-list .title-box .long-text{ .student-list .title-box .left-box .long-text{
font-size:24rpx; font-size:24rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(0,0,0,.7); color:rgba(0,0,0,.7);
line-height:1; line-height: 1;
padding-right: 266rpx;
} }
.student-list .title-box .text{ .student-list .title-box .right-box{
font-size:24rpx; display: flex;
font-family:PingFang-SC-Regular; align-items: center;
font-weight:400; }
color:rgba(0,0,0,.7); .student-list .title-box .right-box .text{
line-height:1; width: 92rpx;
padding-right: 48rpx; display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
color: rgba(0,0,0,.7);
} }
.student-list .list-item{ .student-list .list-item{
padding: 0 24rpx; display: flex;
justify-content: space-between;
align-items: center;
padding: 24rpx 0 24rpx 24rpx;
height: 110rpx; height: 110rpx;
border-bottom: 1px solid rgba(0,0,0,.05); display: flex;
align-items: center;
position: relative;
}
.student-list .list-item::after{
content: '';
width: 100%;
height: 1px;
background: rgba(0,0,0,0.05);
position: absolute;
left: 0;
bottom: 0;
}
.student-list .list-item .item-left{
display: flex; display: flex;
align-items: center; align-items: center;
} }
.student-list .list-item .adavar{ .student-list .list-item .item-left .adavar{
width:66rpx; width: 66rpx;
height:66rpx; height: 66rpx;
border-radius:50%; border-radius:50%;
margin-right: 28rpx;
} }
.student-list .list-item .content{ .student-list .list-item .item-left .content{
padding-left: 28rpx;
} }
.student-list .list-item .content .name{ .student-list .list-item .item-left .content .name{
font-size:26rpx; font-size:26rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(0,0,0,1); color:rgba(0,0,0,1);
line-height: 1; line-height: 1;
padding-bottom: 16rpx; padding-bottom: 16rpx;
} }
.student-list .list-item .content .count{ .student-list .list-item .item-left .content .count{
display: flex; display: flex;
align-items: center; align-items: center;
padding-right: 120rpx;
} }
.student-list .list-item .content .count .count-name{ .student-list .list-item .item-left .content .count .count-name{
font-size:24rpx; font-size:24rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(119,119,119,1); color:rgba(119,119,119,1);
line-height: 1; line-height: 1;
} }
.student-list .list-item .content .count .count-data{ .student-list .list-item .item-left .content .count .count-data{
font-size:26rpx; font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500; font-weight:500;
color:rgba(255,185,122,1); color:#777;
line-height:1; line-height:1;
} }
.student-list .icon{ .student-list .list-item .item-right{
width:32rpx; display: flex;
height:32rpx; align-items: center;
background:rgba(255,255,255,1); }
border:2rpx solid rgba(153,153,153,1); .student-list .list-item .item-right .icon{
border-radius:50%; width: 92rpx;
margin-right: 12rpx; display: flex;
margin-right: 60rpx; align-items: center;
justify-content: center;
position: relative;
}
.student-list .list-item .item-right .icon .inner-icon{
width: 32rpx;
height: 32rpx;
border: 2rpx solid #BDBDBD;
border-radius: 50%;
position: relative; position: relative;
} }
.student-list .icon .count{ .student-list .list-item .item-right .icon .inner-icon.act-icon{
border: 2rpx solid #FFB97A;
}
.student-list .list-item .item-right .icon .inner-icon.act-icon::after{
content: '';
width: 20rpx;
height: 20rpx;
background:#FFB97A;
border-radius: 50%;
position: absolute; position: absolute;
left: -8rpx; top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.student-list .list-item .item-right .icon .count{
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -32rpx; bottom: -32rpx;
font-size:24rpx; font-size:24rpx;
font-family:PingFang-SC-Regular; color:#FF8517;
font-weight:400; line-height: 1;
color:rgba(255,133,23,.7);
line-height:1;
}
.student-list .act-icon{
border:2rpx solid #FFB97A;
}
.student-list .icon .inner-icon{
width:21rpx;
height:21rpx;
background:rgba(255,185,122,1);
border-radius:50%;
margin: 5rpx;
} }
.footer-box{ .footer-box{
width:100%; width:100%;
...@@ -258,33 +290,29 @@ ...@@ -258,33 +290,29 @@
bottom: 0; bottom: 0;
border-top:1px solid rgba(0,0,0,.05); border-top:1px solid rgba(0,0,0,.05);
display: flex; display: flex;
background: #fff;
z-index: 9;
} }
.footer-box .count{ .footer-box .count-box{
width: 328rpx; width: 328rpx;
padding-top: 16rpx;
}
.footer-box .count .count-item{
display: flex; display: flex;
padding: 0 47rpx 14rpx 26rpx; flex-wrap: wrap;
justify-content: space-between;
} }
.footer-box .count .count-item .item{ .footer-box .count-box .count-item{
width: 50%;
display: flex; display: flex;
padding: 0 24rpx;
line-height: 1;
align-items: center;
} }
.footer-box .count .count-item .item .name{ .footer-box .count-box .count-item .name{
font-size:24rpx; font-size: 24rpx;
font-family:PingFang-SC-Regular; color:#777777;
font-weight:400;
color:rgba(119,119,119,1);
line-height:1;
padding-right: 20rpx; padding-right: 20rpx;
} }
.footer-box .count .count-item .item .data{ .footer-box .count-box .count-item .data{
font-size:24rpx; font-size: 26rpx;
font-family:PingFang-SC-Regular; color: #65B8F4;
font-weight:400;
color:rgba(101,184,244,1);
line-height:1;
} }
.footer-box .btn{ .footer-box .btn{
flex: 1; flex: 1;
...@@ -296,6 +324,7 @@ ...@@ -296,6 +324,7 @@
line-height:90rpx; line-height:90rpx;
text-align: center; text-align: center;
} }
.dailog{ .dailog{
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -314,12 +343,11 @@ ...@@ -314,12 +343,11 @@
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 50%; top: 50%;
margin-left: -300rpx; transform: translate(-50%,-50%);
margin-top: -179rpx; width: 600rpx;
width:600rpx;
height:358rpx;
background:rgba(255,255,255,1); background:rgba(255,255,255,1);
border-radius:20rpx; border-radius: 20rpx;
overflow: hidden;
} }
.dailog .dailog-content .title{ .dailog .dailog-content .title{
font-size:32rpx; font-size:32rpx;
...@@ -331,8 +359,6 @@ ...@@ -331,8 +359,6 @@
} }
.dailog .dailog-content .text{ .dailog .dailog-content .text{
font-size:32rpx; font-size:32rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(0,0,0,1); color:rgba(0,0,0,1);
line-height: 1; line-height: 1;
text-align: center; text-align: center;
...@@ -341,27 +367,36 @@ ...@@ -341,27 +367,36 @@
.dailog .dailog-content .footer{ .dailog .dailog-content .footer{
height: 96rpx; height: 96rpx;
display: flex; display: flex;
border-top:1px solid rgba(0,0,0,.05); border-top:1px solid rgba(0,0,0,.05);
display: flex;
} }
.dailog .dailog-content .footer .cancle{ .dailog .dailog-content .footer .btn{
flex: 1; flex: 1;
font-size:30Rpx; height: 100%;
font-family:PingFang-SC-Bold; display: flex;
font-weight:bold; align-items: center;
color:rgba(67,67,67,1); justify-content: center;
text-align: center; color: #434343;
line-height: 96rpx; font-weight: bold;
border-right:1px solid rgba(0,0,0,.05); font-size: 30rpx;
position: relative;
} }
.dailog .dailog-content .footer .sure{ .dailog .dailog-content .footer .btn::after{
flex: 1; content: '';
font-size:30Rpx; width: 1px;
font-family:PingFang-SC-Bold; height: 100%;
font-weight:bold; background: rgba(0,0,0,.05);
color:#65B8F4; position: absolute;
text-align: center; right: 0;
line-height: 96rpx; top: 0;
} }
.dailog .dailog-content .footer .btn:last-of-type::after{
display: none;
}
.dailog .dailog-content .footer .btn.btn-sure{
color: #65B8F4;
}
.dailog .dailog-content .ipt-box{ .dailog .dailog-content .ipt-box{
display: flex; display: flex;
border-radius:10rpx; border-radius:10rpx;
...@@ -378,16 +413,17 @@ ...@@ -378,16 +413,17 @@
text-align: center; text-align: center;
color: #fff; color: #fff;
} }
.dailog .dailog-content.ipt-box .add-btn{ .dailog .dailog-content .ipt-box .add-btn{
border-radius:0px 10rpx 10rpx 0px; border-radius: 0px 10rpx 10rpx 0px;
} }
.dailog .dailog-content .ipt-box .cut-btn{ .dailog .dailog-content .ipt-box .cut-btn{
border-radius: 10rpx 0px 0px 10rpx;
border-radius:10rpx 0px 0px 10rpx;
} }
.dailog .dailog-content .ipt-box .iteminput{ .dailog .dailog-content .ipt-box .iteminput{
width: 66rpx; width: 66rpx;
height:60rpx; height:60rpx;
line-height: 60rpx; line-height: 60rpx;
text-align: center; text-align: center;
border-bottom: 1px solid rgba(0,0,0,.05);
border-top: 1px solid rgba(0,0,0,.05);
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</view> </view>
</view> </view>
<view class="content-box"> <view class="content-box" wx:if="{{rollcalllist.length>0}}">
<view class="content-item" wx:for="{{rollcalllist}}" wx:key="{{key}}" bindtap="gorollcalldetail" data-item="{{item}}"> <view class="content-item" wx:for="{{rollcalllist}}" wx:key="{{key}}" bindtap="gorollcalldetail" data-item="{{item}}">
<view class="top-box"> <view class="top-box">
<view class="time">{{filter.matchTime(item.start_time,'hour')}}-{{filter.matchTime(item.end_time,'hour')}}</view> <view class="time">{{filter.matchTime(item.start_time,'hour')}}-{{filter.matchTime(item.end_time,'hour')}}</view>
...@@ -32,10 +32,13 @@ ...@@ -32,10 +32,13 @@
<view class="text">海创科技中心校区余杭塘路北校区</view> <view class="text">海创科技中心校区余杭塘路北校区</view>
</view> </view>
</view> </view>
</view> </view>
<view class="empty-content-box" wx:if="{{rollcalllist.length==0}}"> </view>
<empty-content text="暂无数据"></empty-content>
</view> <view class="empty-content" wx:if="{{rollcalllist.length==0}}">
<image class='empty-img' src='{{imageRoot}}2c/common/emptyimg.png?{{imageVersion}}'></image>
<view class="empty-text">暂无数据</view>
</view> </view>
<!-- <view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view> -->
</view> </view>
...@@ -147,4 +147,30 @@ ...@@ -147,4 +147,30 @@
color:rgba(0,0,0,1); color:rgba(0,0,0,1);
line-height: 1; line-height: 1;
padding-left: 35rpx; padding-left: 35rpx;
}
/* 空场景 */
.empty-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
display: flex;
flex-direction: column;
align-items: center;
line-height: 45rpx;
}
.empty-content .empty-img {
width: 263rpx;
height: 219rpx;
}
.empty-content .empty-text {
font-size: 26rpx;
color: rgba(0, 0, 0, 0.6);
}
.has-nomore{
font-size: 26rpx;
color: #9C9C9D;
padding: 75rpx 0;
text-align: center;
} }
\ No newline at end of file
<!--business/pages/classservice/index.wxml--> <!--business/pages/classservice/index.wxml-->
<view class="nav-header" hover-class="none" hover-stop-propagation="false" style="padding-top: {{statusBarHeight}}px;height: {{titleBarHeight+20}}px;"> <view class="nav-header" style="padding-top: {{statusBarHeight}}px;">
<view class="nav-custombox"> <view class="nav-custombox" style="height: {{titleBarHeight}}px;">
<view class="message" hover-class="none" hover-stop-propagation="false" bindtap="gotodotasks"> <view class="message" bindtap="gotodotasks">
<image class="icon" src="{{imageRoot}}2b/deskcenter/message.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /> <image class="icon" src="{{imageRoot}}2b/deskcenter/message.png" />
<view class="red-dot" wx:if="{{waitJob>0}}"></view> <view class="red-dot" wx:if="{{waitJob>0}}"></view>
</view> </view>
<view class="menu-box" hover-class="none" hover-stop-propagation="false" bindtap="selectSchool"> <view class="menu-box" bindtap="selectSchool">
<view class="title" hover-class="none" hover-stop-propagation="false">{{selectSchoolData.title}}</view> <view class="title">{{selectSchoolData.title}}</view>
<image class="arrowwhite {{schoolShow ? 'up' : 'down'}}" src="{{imageRoot}}2b/common/arrowblack.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image> <image class="arrowwhite {{schoolShow ? 'up' : 'down'}}" src="{{imageRoot}}2b/common/arrowblack.png?{{imageVersion}}" ></image>
</view> </view>
</view> </view>
</view>
<view class="classselectedmodal" hover-class="none" hover-stop-propagation="false" hidden="{{!schoolShow}}">
<view class="modalmask" hover-class="none" hover-stop-propagation="false" bindtap="selectSchool"></view> <view class="classselectedmodal" hidden="{{!schoolShow}}">
<view class="classbox" hover-class="none" hover-stop-propagation="false"> <view class="modalmask" bindtap="selectSchool"></view>
<view class="classitem" hover-class="none" hover-stop-propagation="false" bindtap="sureSelect" data-item="{{item}}" wx:for="{{schoolList}}" wx:key="{{index}}"> <view class="classbox" style="top:{{statusBarHeight+titleBarHeight}}px">
<view class="classitemname" selectable="false" space="false" decode="false">{{item.title}}</view> <view class="classitem" bindtap="sureSelect" data-item="{{item}}" wx:for="{{schoolList}}" wx:key="{{index}}">
<image class="selecticon" wx:if="{{item.id == selectSchoolData.id}}" src="{{imageRoot}}2b/circleindex/rightblack.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image> <view class="classitemname" selectable="false" space="false" decode="false">{{item.title}}</view>
</view> <image class="selecticon" wx:if="{{item.id == selectSchoolData.id}}" src="{{imageRoot}}2b/circleindex/rightblack.png?{{imageVersion}}" ></image>
</view> </view>
</view> </view>
</view> </view>
<view class="container">
<view class="white-box" hover-class="none" hover-stop-propagation="false"> <view class="container" style="padding-top: {{statusBarHeight+titleBarHeight+12}}px">
<view class="count-box" hover-class="none" hover-stop-propagation="false"> <view class="white-box">
<view class="count-item" hover-class="none" hover-stop-propagation="false"> <view class="count-box">
<view class="num" hover-class="none" hover-stop-propagation="false">{{statisticalData.expend_count}}</view> <view class="count-item">
<view class="name" hover-class="none" hover-stop-propagation="false">本月课时</view> <view class="num">{{statisticalData.expend_count}}</view>
<view class="name">本月课时</view>
</view> </view>
<view class="count-item" hover-class="none" hover-stop-propagation="false"> <view class="count-item">
<view class="num" hover-class="none" hover-stop-propagation="false">{{statisticalData.schedule_count}}</view> <view class="num">{{statisticalData.call_count}}</view>
<view class="name" hover-class="none" hover-stop-propagation="false">本月课次</view> <view class="name">本月已上课次</view>
</view> </view>
</view> </view>
<view class="tip-wrap" wx:if="{{todocallTotal>0}}"> <view class="tip-wrap" wx:if="{{todocallTotal>0}}">
<view class="tip-box" hover-class="none" hover-stop-propagation="false" bindtap="gotodolist"> <view class="tip-box" bindtap="gotodolist">
<image class="" src="{{imageRoot}}2b/classservice/tips.png?{{imageVersion}}"></image> <image class="" src="{{imageRoot}}2b/classservice/tips.png?{{imageVersion}}"></image>
<view class="text" hover-class="none" hover-stop-propagation="false">本周有{{todocallTotal}}个课次超时未点评,请及时处理</view> <view class="text">本周有{{todocallTotal}}个课次超时未点评,请及时处理</view>
</view> </view>
</view> </view>
<view class="nav-box" hover-class="none" hover-stop-propagation="false"> <view class="nav-box">
<view class="nav-item" hover-class="none" hover-stop-propagation="false" bindtap="goclasslist"> <view class="nav-item" bindtap="goclasslist">
<view class="icon" hover-class="none" hover-stop-propagation="false"> <view class="icon">
<image class="" src="{{imageRoot}}2b/classservice/myclass.png?{{imageVersion}}"></image> <image class="" src="{{imageRoot}}2b/classservice/myclass.png?{{imageVersion}}"></image>
</view> </view>
<view class="text" hover-class="none" hover-stop-propagation="false">我的班级</view> <view class="text">我的班级</view>
</view> </view>
<view class="nav-item" hover-class="none" hover-stop-propagation="false" bindtap="gorollcalllist"> <view class="nav-item" bindtap="gorollcalllist">
<view class="icon" hover-class="none" hover-stop-propagation="false"> <view class="icon">
<image class="" src="{{imageRoot}}2b/classservice/classlist.png?{{imageVersion}}"></image> <image class="" src="{{imageRoot}}2b/classservice/classlist.png?{{imageVersion}}"></image>
</view> </view>
<view class="text" hover-class="none" hover-stop-propagation="false">我的课表</view> <view class="text">我的课表</view>
</view> </view>
<view class="nav-item" hover-class="none" hover-stop-propagation="false" bindtap="goNoComment" > <view class="nav-item" bindtap="goNoComment" >
<view class="icon" hover-class="none" hover-stop-propagation="false"> <view class="icon">
<image class="" src="{{imageRoot}}2b/classservice/work.png?{{imageVersion}}"></image> <image class="" src="{{imageRoot}}2b/classservice/work.png?{{imageVersion}}"></image>
</view> </view>
<view class="text" hover-class="none" hover-stop-propagation="false">作业点评</view> <view class="text">作业点评</view>
</view> </view>
<view class="nav-item" hover-class="none" hover-stop-propagation="false" bindtap="goPointsMgt"> <view class="nav-item" bindtap="goPointsMgt">
<view class="icon" hover-class="none" hover-stop-propagation="false"> <view class="icon">
<image class="" src="{{imageRoot}}2b/classservice/data.png?{{imageVersion}}"></image> <image class="" src="{{imageRoot}}2b/classservice/data.png?{{imageVersion}}"></image>
</view> </view>
<view class="text" hover-class="none" hover-stop-propagation="false">积分管理</view> <view class="text">积分管理</view>
</view> </view>
<view class="nav-item" hover-class="none" hover-stop-propagation="false" bindtap="goRecord"> <view class="nav-item" bindtap="goRecord">
<view class="icon" hover-class="none" hover-stop-propagation="false"> <view class="icon">
<image class="" src="{{imageRoot}}2b/classservice/record.png?{{imageVersion}}"></image> <image class="" src="{{imageRoot}}2b/classservice/record.png?{{imageVersion}}"></image>
</view> </view>
<view class="text" hover-class="none" hover-stop-propagation="false">上课记录</view> <view class="text">上课记录</view>
</view> </view>
</view> </view>
</view> </view>
<view class="footer-btn" hover-class="none" hover-stop-propagation="false" bindtap="gorollcalllist">我要点名</view> <view class="footer-btn" bindtap="gorollcalllist">我要点名</view>
<btabbar <btabbar
sid="{{sid}}" sid="{{sid}}"
......
...@@ -2,7 +2,14 @@ ...@@ -2,7 +2,14 @@
page{ page{
background:#F3F4F6; background:#F3F4F6;
} }
.container{
background:#fff;
}
.nav-header{ .nav-header{
width: 100%;
position: fixed;
top: 0;
left: 0;
background: #fff; background: #fff;
} }
.nav-custombox{ .nav-custombox{
...@@ -73,19 +80,40 @@ page{ ...@@ -73,19 +80,40 @@ page{
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
background-color: rgba(0,0,0,0.5); background: linear-gradient(to bottom,transparent 0,transparent 170rpx,rgba(0,0,0,.5) 170rpx ,rgba(0,0,0,.5) 100%)
} }
.classselectedmodal .classbox { .classselectedmodal .classbox {
position: relative; position: relative;
z-index: 1; z-index: 1;
max-height: 600rpx; max-height: 500rpx;
overflow-y: auto; overflow-y: auto;
background-color: #fff; background-color: #fff;
top: 140rpx; }
.classselectedmodal .classbox::after{
content: '';
width: 100%;
height: 1px;
background: rgba(0,0,0,.05);
position: absolute;
left: 0;
top: 0;
transform: scaleY(.5);
} }
.classselectedmodal .classbox .classitem { .classselectedmodal .classbox .classitem {
position: relative; position: relative;
border-bottom: 2rpx solid rgba(0,0,0,0.05); }
.classselectedmodal .classbox .classitem::after{
content: '';
width: 100%;
height: 1px;
background: rgba(0,0,0,.05);
position: absolute;
left: 0;
bottom: 0;
transform: scaleY(.5);
}
.classselectedmodal .classbox .classitem:last-of-type::after{
display: none;
} }
.classselectedmodal .classbox .classitemname { .classselectedmodal .classbox .classitemname {
max-width: 600rpx; max-width: 600rpx;
...@@ -94,7 +122,7 @@ page{ ...@@ -94,7 +122,7 @@ page{
overflow: hidden; overflow: hidden;
text-overflow:ellipsis; text-overflow:ellipsis;
white-space: nowrap; white-space: nowrap;
line-height: 88rpx; line-height: 80rpx;
} }
.classselectedmodal .classbox .selecticon { .classselectedmodal .classbox .selecticon {
display: block; display: block;
...@@ -106,13 +134,7 @@ page{ ...@@ -106,13 +134,7 @@ page{
transform: translateY(-50%); transform: translateY(-50%);
} }
.container{ .white-box{}
padding-top: 50rpx;
/* min-height: 100vh; */
background:rgba(255,255,255,1);
}
.white-box{
}
.count-box{ .count-box{
width: 680rpx; width: 680rpx;
height: 250rpx; height: 250rpx;
...@@ -120,7 +142,7 @@ page{ ...@@ -120,7 +142,7 @@ page{
border:1px solid rgba(229,229,229,1); border:1px solid rgba(229,229,229,1);
box-shadow:0px 8rpx 16rpx 0px rgba(0, 0, 0, 0.06); box-shadow:0px 8rpx 16rpx 0px rgba(0, 0, 0, 0.06);
border-radius:20rpx; border-radius:20rpx;
margin: 0 auto 35rpx; margin: 0 auto;
display: flex; display: flex;
align-items: center; align-items: center;
} }
...@@ -169,15 +191,14 @@ page{ ...@@ -169,15 +191,14 @@ page{
} }
.tip-box .text{ .tip-box .text{
font-size: 24rpx; font-size: 24rpx;
color:000; color:#000;
} }
.nav-box{ .nav-box{
display: flex; display: flex;
padding: 60rpx; padding: 60rpx 0;
} }
.nav-box .nav-item { .nav-box .nav-item {
flex: 1; flex: 1;
} }
.nav-box .nav-item .icon{ .nav-box .nav-item .icon{
height: 60rpx; height: 60rpx;
...@@ -198,16 +219,17 @@ page{ ...@@ -198,16 +219,17 @@ page{
} }
.footer-btn{ .footer-btn{
position: fixed; position: fixed;
left: 168rpx; left: 50%;
transform: translateX(-50%);
bottom: 215rpx; bottom: 215rpx;
width:414rpx; width: 414rpx;
height:70rpx; height: 70rpx;
background:rgba(101,184,244,1); background:rgba(101,184,244,1);
border-radius:35rpx; border-radius:35rpx;
font-size:30rpx; font-size:30rpx;
font-family:PingFang-SC-Medium; font-family:PingFang-SC-Medium;
font-weight:500; font-weight:500;
color:rgba(255,255,255,1); color:rgba(255,255,255,1);
line-height:70rpx; line-height: 70rpx;
text-align: center; text-align: center;
} }
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</view> </view>
<view class="empty-content" wx:else> <view class="empty-content" wx:else>
<image class='empty-img' src='{{imageRoot}}2c/rankinglist/empty.png?{{imageVersion}}'></image> <image class='empty-img' src='{{imageRoot}}2c/common/emptyimg.png?{{imageVersion}}'></image>
<view class="empty-text">暂无数据~</view> <view class="empty-text">暂无数据~</view>
</view> </view>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view> <view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view>
......
// business/pages/deskcenter/index.js // business/pages/deskcenter/index.js
import { import {
schoolList schoolList,
loginTime
} from '../../../service/business/ucenter.js'; } from '../../../service/business/ucenter.js';
import { import {
LocalStorage LocalStorage
...@@ -25,7 +26,7 @@ Page({ ...@@ -25,7 +26,7 @@ Page({
schoolTotal:0, schoolTotal:0,
selectSchoolData:{}, selectSchoolData:{},
sid: 0, sid: 0,
waitJob:0, waitJob: 0,
}, },
/** /**
...@@ -108,7 +109,10 @@ Page({ ...@@ -108,7 +109,10 @@ Page({
schoolShow: false, schoolShow: false,
selectSchoolData:item selectSchoolData:item
}, () => { }, () => {
loginTime({
id: this.data.sid,
type: 1
})
}) })
}, },
getschoolList(){ getschoolList(){
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</view> </view>
<view class="menu-box" bindtap="selectSchool"> <view class="menu-box" bindtap="selectSchool">
<view class="title">{{selectSchoolData.title}}</view> <view class="title">{{selectSchoolData.title}}</view>
<image class="arrowwhite {{schoolShow ? 'up' : 'down'}}" src="{{imageRoot}}2b/common/arrowblack.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image> <image class="arrowwhite {{schoolShow ? 'up' : 'down'}}" src="{{imageRoot}}2b/common/arrowblack.png?{{imageVersion}}" ></image>
</view> </view>
</view> </view>
</view> </view>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<view class="classbox" style="top:{{statusBarHeight+titleBarHeight}}px"> <view class="classbox" style="top:{{statusBarHeight+titleBarHeight}}px">
<view class="classitem" bindtap="sureSelect" data-item="{{item}}" wx:for="{{schoolList}}" wx:key="{{index}}"> <view class="classitem" bindtap="sureSelect" data-item="{{item}}" wx:for="{{schoolList}}" wx:key="{{index}}">
<view class="classitemname" selectable="false" space="false" decode="false">{{item.title}}</view> <view class="classitemname" selectable="false" space="false" decode="false">{{item.title}}</view>
<image class="selecticon" wx:if="{{item.id == selectSchoolData.id}}" src="{{imageRoot}}2b/circleindex/rightblack.png?{{imageVersion}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image> <image class="selecticon" wx:if="{{item.id == selectSchoolData.id}}" src="{{imageRoot}}2b/circleindex/rightblack.png?{{imageVersion}}" ></image>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -14,7 +14,8 @@ import { ...@@ -14,7 +14,8 @@ import {
} from '../../../service/business/ucenter.js'; } from '../../../service/business/ucenter.js';
import messages from '../../../constants/messages.js'; import messages from '../../../constants/messages.js';
import { import {
bTokenExchange bTokenExchange,
getMember
} from '../../../service/common.js' } from '../../../service/common.js'
import { import {
...@@ -296,6 +297,41 @@ Page({ ...@@ -296,6 +297,41 @@ Page({
// 微信登录 // 微信登录
wxLogin(){ wxLogin(){
const visitor = LocalStorage.getItem('visitor') || {}; const visitor = LocalStorage.getItem('visitor') || {};
let user = LocalStorage.getItem('user');
let teacher = LocalStorage.getItem('teacher');
let dakarole = LocalStorage.getItem('dakarole');
console.log(visitor,user,dakarole)
// getMember({
// consumer_id: visitor && visitor.id
// }).then(res=>{
// const {data,code} = res;
// if(data.teacher.length>0){
// LocalStorage.setItem('user', {
// // expires_in: data.expires_in,
// token: `bearer ${data.token}`,
// })
// LocalStorage.setItem('dakarole', 2);
// wx.redirectTo({
// url: `/business/pages/classservice/tindex?sid=${data.teacher[0].id}`
// })
// }else{
// wx.showModal({
// title: '提示',
// content: '暂未加入校区,如已加入请联系机构确认',
// showCancel: false,
// confirmColor: '#FFD146',
// success(){
// wx.navigateBack({
// delta: 2
// })
// }
// })
// }
// console.log(res)
// })
if(this.data.loginStatus){ if(this.data.loginStatus){
const token = visitor.token.replace('bearer ','') const token = visitor.token.replace('bearer ','')
bTokenExchange({ bTokenExchange({
...@@ -319,7 +355,7 @@ Page({ ...@@ -319,7 +355,7 @@ Page({
mask: true, mask: true,
success(){ success(){
wx.reLaunch({ wx.reLaunch({
url: `/business/pages/organizationalmgt/index?sid=${res.data.list[0].id}` url: `/business/pages/classservice/tindex?sid=${res.data.list[0].id}`
}) })
LocalStorage.setItem('teacher', { LocalStorage.setItem('teacher', {
expires_in: res2.data.expires_in, expires_in: res2.data.expires_in,
......
...@@ -49,14 +49,13 @@ ...@@ -49,14 +49,13 @@
<view class="short-line short-line-right" hover-class="none" hover-stop-propagation="false"></view> <view class="short-line short-line-right" hover-class="none" hover-stop-propagation="false"></view>
</view> </view>
</view> </view>
<view class="empty-content" hover-class="none" hover-stop-propagation="false" wx:if="{{emptyPage}}">
<view class="empty-img-box" hover-class="none" hover-stop-propagation="false"> <view class="empty-content" wx:if="{{emptyPage}}">
<image class="empty-icon" src="{{imageRoot}}2b/organizationalmgt/empty-icon.png?{{imageVersion}}" lazy-load="false" binderror="" bindload=""></image> <image class='empty-img' src='{{imageRoot}}2c/common/emptyimg.png?{{imageVersion}}'></image>
</view> <view class="empty-text">暂无数据~</view>
<view class="empty-text" hover-class="none" hover-stop-propagation="false">
暂无数据
</view>
</view> </view>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore}}">没有更多了</view>
<view class="videodialog" hover-class="none" hover-stop-propagation="false" wx:if="{{videostatus.videoShow}}" > <view class="videodialog" hover-class="none" hover-stop-propagation="false" wx:if="{{videostatus.videoShow}}" >
<view class="videodialogmask" hover-class="none" hover-stop-propagation="false" bindtap="closeVideo"></view> <view class="videodialogmask" hover-class="none" hover-stop-propagation="false" bindtap="closeVideo"></view>
<video <video
......
...@@ -78,28 +78,7 @@ page{ ...@@ -78,28 +78,7 @@ page{
.nocomment-list .list-right .down-icon.up { .nocomment-list .list-right .down-icon.up {
transform:rotate(-90deg); transform:rotate(-90deg);
} }
.empty-content {
padding-top: 152rpx;
}
.empty-content .empty-img-box {
width: 263rpx;
height: 219rpx;
margin: 0 auto;
}
.empty-content .empty-img-box .empty-icon {
width: 263rpx;
height: 219rpx;
}
.empty-content .empty-text {
padding-top: 47rpx;
text-align: center;
font-size: 26rpx;
color: rgba(0, 0, 0, 0.5);
padding-bottom: 217rpx;
}
.videodialog { .videodialog {
position: fixed; position: fixed;
width: 100%; width: 100%;
...@@ -115,4 +94,30 @@ page{ ...@@ -115,4 +94,30 @@ page{
.videodialog video { .videodialog video {
width: 100%; width: 100%;
height: 600rpx; height: 600rpx;
}
/* 空场景 */
.empty-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
display: flex;
flex-direction: column;
align-items: center;
line-height: 45rpx;
}
.empty-content .empty-img {
width: 263rpx;
height: 219rpx;
}
.empty-content .empty-text {
font-size: 26rpx;
color: rgba(0, 0, 0, 0.6);
}
.has-nomore{
font-size: 26rpx;
color: #9C9C9D;
padding: 75rpx 0;
text-align: center;
} }
\ No newline at end of file
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
<view class="short-line short-line-right"></view> <view class="short-line short-line-right"></view>
</view> </view>
</view> </view>
<view class="empty-content" wx:if="{{!hasData }}"> <view class="empty-content" wx:if="{{!hasData}}">
<image class="emptyimg" src="{{imageRoot}}2b/potentialcustomer/emptyimg.png?{{imageVersion}}"></image> <image class='empty-img' src='{{imageRoot}}2c/common/emptyimg.png?{{imageVersion}}'></image>
<text class="empty-text" >暂无学员线索</text> <view class="empty-text">暂无学员线索~</view>
<button class="submitbtn" wx:if="{{addInfo.status == 1}}" bindtap="goCircleIndex">分享班级,马上拓客</button>
</view> </view>
<go-top wx:if="{{backTopValue}}"></go-top> <go-top wx:if="{{backTopValue}}"></go-top>
<view class="detail-info-dia" wx:if="{{detailShow}}"> <view class="detail-info-dia" wx:if="{{detailShow}}">
<view class="detail-info-mask" bindtap="closeInfoDia"></view> <view class="detail-info-mask" bindtap="closeInfoDia"></view>
...@@ -90,5 +90,6 @@ ...@@ -90,5 +90,6 @@
</view> </view>
</view> </view>
<button class="form-fixbtn" wx:if="{{addInfo.status == 1}}" bindtap="goCircleIndex">分享班级,马上拓客</button>
</view> </view>
</view> </view>
...@@ -200,32 +200,30 @@ ...@@ -200,32 +200,30 @@
font-weight:500; font-weight:500;
color:rgba(101,184,244,1); color:rgba(101,184,244,1);
} }
/* 空场景 */
.empty-content { .empty-content {
text-align: center; position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
display: flex;
flex-direction: column;
align-items: center;
line-height: 45rpx;
} }
.empty-content .emptyimg { .empty-content .empty-img {
width: 255rpx; width: 263rpx;
height: 198rpx; height: 219rpx;
margin: 200rpx auto 62rpx;
display: block;
} }
.empty-content .empty-text { .empty-content .empty-text {
font-size: 28rpx; font-size: 26rpx;
color: rgba(0,0,0,0.5); color: rgba(0, 0, 0, 0.6);
} }
.submitbtn { .has-nomore{
display: block; font-size: 26rpx;
margin: 133rpx auto 100rpx; color: #9C9C9D;
width: 372rpx; padding: 75rpx 0;
height: 80rpx;
line-height: 80rpx;
background:rgba(101,184,244,1);
border-radius: 40rpx;
font-size: 34rpx;
color: #fff;
letter-spacing: 2rpx;
text-align: center; text-align: center;
padding: 0;
} }
@keyframes fadeIn { @keyframes fadeIn {
from { from {
......
<!--business/pages/studentcenter/index.wxml--> <!--business/pages/studentcenter/index.wxml-->
<wxs src="../../../filter/index.wxs" module="filter" /> <wxs src="../../../filter/index.wxs" module="filter" />
<view class="container" hover-class="none" hover-stop-propagation="false"> <view class="container" >
<!-- <view class="header-box" hover-class="none" hover-stop-propagation="false"> <!-- <view class="header-box" >
<view class="header-tab" hover-class="none" hover-stop-propagation="false"> <view class="header-tab" >
<view class="left {{coursetabsIndex==0?'act-course-tabs':''}}" hover-class="none" hover-stop-propagation="false" data-index="{{0}}" bindtap="courseTabChange">在读学员</view> <view class="left {{coursetabsIndex==0?'act-course-tabs':''}}" data-index="{{0}}" bindtap="courseTabChange">在读学员</view>
<view class="right {{coursetabsIndex==1?'act-course-tabs':''}}" hover-class="none" hover-stop-propagation="false" data-index="{{1}}" bindtap="courseTabChange">历史学员</view> <view class="right {{coursetabsIndex==1?'act-course-tabs':''}}" data-index="{{1}}" bindtap="courseTabChange">历史学员</view>
</view> </view>
</view> --> </view> -->
<view class="search-box" hover-class="none" hover-stop-propagation="false"> <view class="search-box" >
<view class="ipt-box" hover-class="none" hover-stop-propagation="false"> <view class="ipt-box" >
<image class="ipt-iocn" src="{{imageRoot}}2b/themeindex/w-icon.png" mode="aspectFit|aspectFill|widthFix" <image class="ipt-iocn" src="{{imageRoot}}2b/themeindex/w-icon.png" mode="aspectFit|aspectFill|widthFix"
lazy-load="false" binderror="" bindload=""></image> lazy-load="false" binderror="" bindload=""></image>
<input type="text" placeholder-class="placeholderclass" class="search-input" value="{{searchName}}" <input type="text" placeholder-class="placeholderclass" class="search-input" value="{{searchName}}"
bindinput="searchinput" placeholder="搜索学员姓名/昵称"></input> bindinput="searchinput" placeholder="搜索学员姓名/昵称"></input>
<image class="close-iocn" src="{{imageRoot}}2b/common/closeicon.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" bindtap="clearSearch" wx:if="{{searchName}}"></image> <image class="close-iocn" src="{{imageRoot}}2b/common/closeicon.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" bindtap="clearSearch" wx:if="{{searchName}}"></image>
</view> </view>
<view class="btn" hover-class="none" hover-stop-propagation="false" bindtap="search">搜索</view> <view class="btn" bindtap="search">搜索</view>
</view> </view>
<view class="student-list" hover-class="none" hover-stop-propagation="false" wx:if="{{!emptyPage}}"> <view class="userlist-box" wx:if="{{!emptyPage}}">
<view class="list-item" hover-class="none" hover-stop-propagation="false" wx:for="{{memberList}}" wx:key="{{index}}" bindtap="godetail" data-item="{{item}}"> <view class="list-item" wx:for="{{memberList}}" wx:key="{{index}}" bindtap="godetail" data-item="{{item}}">
<image class="adavar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image> <image class="avatar" src="{{filter.imagify(item.avatar, 'image/resize,w_160/format,jpg')}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""></image>
<view class="content" hover-class="none" hover-stop-propagation="false"> <view class="item-content" >
<view class="name" hover-class="none" hover-stop-propagation="false">{{item.name}}</view> <view class="name" >{{item.name}}</view>
<view class="count" hover-class="none" hover-stop-propagation="false"> <view class="info-box" >
<view class="count-name" hover-class="none" hover-stop-propagation="false">剩余课时:</view> <view class="info-label" >剩余课时:</view>
<view class="count-data" hover-class="none" hover-stop-propagation="false">{{item.surplus?item.surplus:0}}</view> <view class="num" >{{item.surplus?item.surplus:0}}</view>
</view> </view>
</view> </view>
</view> </view>
......
/* business/pages/studentcenter/index.wxss */ @import '../../../style/userlist.wxss';
.container{ .container{
padding-bottom: 166rpx; padding-bottom: 166rpx;
} }
...@@ -38,15 +38,8 @@ ...@@ -38,15 +38,8 @@
background:rgba(101,184,244,1); background:rgba(101,184,244,1);
color:rgba(255,255,255,1); color:rgba(255,255,255,1);
} }
.search-box {
padding: 25rpx 25rpx 40rpx 25rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.search-box{ .search-box{
padding: 36rpx 25rpx 16rpx 25rpx; padding: 36rpx 25rpx 28rpx 25rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -91,51 +84,6 @@ ...@@ -91,51 +84,6 @@
border: none; border: none;
height: 60rpx; height: 60rpx;
} }
.student-list{
padding-top: 30rpx;
}
.student-list .list-item{
padding: 0 24rpx;
height: 110rpx;
border-bottom: 1px solid rgba(0,0,0,.05);
display: flex;
align-items: center;
}
.student-list .list-item .adavar{
width:66rpx;
height:66rpx;
border-radius:50%;
}
.student-list .list-item .content{
padding-left: 28rpx;
}
.student-list .list-item .content .name{
font-size:26rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(0,0,0,1);
line-height: 1;
padding-bottom: 16rpx;
}
.student-list .list-item .content .count{
display: flex;
align-items: center;
}
.student-list .list-item .content .count .count-name{
font-size:24rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(119,119,119,1);
line-height: 1;
}
.student-list .list-item .content .count .count-data{
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,185,122,1);
line-height:1;
}
/* 空场景 */ /* 空场景 */
.empty-content { .empty-content {
position: absolute; position: absolute;
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<view class="empty-content" wx:if="{{emptyPage}}"> <view class="empty-content" wx:if="{{emptyPage}}">
<image class='empty-img' src='{{imageRoot}}2c/rankinglist/empty.png?{{imageVersion}}'></image> <image class='empty-img' src='{{imageRoot}}2c/rankinglist/empty.png?{{imageVersion}}'></image>
<view class="empty-text">暂无数据~</view> <view class="empty-text">暂无数据~</view>
</view> </view>
<view class="has-nomore" wx:if="{{!emptyPage && !hasmore && page>1}}">没有更多了</view> <view class="has-nomore" wx:if="{{!emptyPage && !hasmore && page>1}}">没有更多了</view>
</view> </view>
\ No newline at end of file
...@@ -10,6 +10,7 @@ const apis = { ...@@ -10,6 +10,7 @@ const apis = {
judgeJoinAd: `${api}student/website/ad/showMy`, judgeJoinAd: `${api}student/website/ad/showMy`,
joinAdPost: `${api}student/website/ad`, joinAdPost: `${api}student/website/ad`,
getMemberId: `${api}common/user/get_member_id`, getMemberId: `${api}common/user/get_member_id`,
getMember: `${api}common/user/get_member`,//新 获取B端用户校区信息
teacherPcLoginReport: `${api}teacher/common/report`, teacherPcLoginReport: `${api}teacher/common/report`,
getVerifyCode: `${api}common/sms`,//发送短信获取验证码 getVerifyCode: `${api}common/sms`,//发送短信获取验证码
customer: { customer: {
...@@ -277,6 +278,7 @@ const apis = { ...@@ -277,6 +278,7 @@ const apis = {
deletesubjects: `${api}member/subjects`, //删除(作业和日历), deletesubjects: `${api}member/subjects`, //删除(作业和日历),
analyzeclasshour: `${api}member/erp/analyze/class_hour`,//课时分析 analyzeclasshour: `${api}member/erp/analyze/class_hour`,//课时分析
analyzeclasscourse: `${api}member/erp/analyze/class_course`,//课程分析 analyzeclasscourse: `${api}member/erp/analyze/class_course`,//课程分析
loginTime: `${api}member/erp/stronghold/login_time`,//b端身份 切换校区
}, },
shopeditor: { shopeditor: {
infoGet: `${api}member/clock/address/get`, infoGet: `${api}member/clock/address/get`,
......
...@@ -25,7 +25,19 @@ function schoolListT ({ page, perPage, needToken, header }) { ...@@ -25,7 +25,19 @@ function schoolListT ({ page, perPage, needToken, header }) {
errorresolve: 1, errorresolve: 1,
}) })
} }
function loginTime (data) {
return wxRequest({
url: apis.business.common.loginTime,
data,
role: '2b',
needToken: true,
// header: header || null,
method: 'POST',
errorresolve: 1,
})
}
export { export {
schoolList, schoolList,
schoolListT, schoolListT,
loginTime
} }
\ No newline at end of file
...@@ -340,6 +340,14 @@ function getMemberId (data) { ...@@ -340,6 +340,14 @@ function getMemberId (data) {
errorresolve: 1, errorresolve: 1,
}) })
} }
function getMember (data) {
return wxRequest({
url: apis.getMember,
data,
method: 'GET',
errorresolve: 1,
})
}
function teacherPcLoginReport (data) { function teacherPcLoginReport (data) {
return wxRequest({ return wxRequest({
url: apis.teacherPcLoginReport, url: apis.teacherPcLoginReport,
...@@ -403,6 +411,7 @@ export { ...@@ -403,6 +411,7 @@ export {
joinAdPost, joinAdPost,
generatePiiic, generatePiiic,
getMemberId, getMemberId,
getMember,
teacherPcLoginReport, teacherPcLoginReport,
bTokenExchange, bTokenExchange,
getVerifyCode getVerifyCode
......
...@@ -91,7 +91,7 @@ Page({ ...@@ -91,7 +91,7 @@ Page({
page: this.data.page, page: this.data.page,
perPage: this.data.perPage, perPage: this.data.perPage,
school_id: this.data.sid, school_id: this.data.sid,
type: this.data.statusType, status: this.data.statusType,
}).then((res) => { }).then((res) => {
const { const {
code, code,
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
<view class="item {{item.statusType == statusType?'active':''}}" wx:for="{{statusTab}}" wx:key="" bindtap="subjectStatusShift" data-statustype="{{item.statusType}}">{{item.tabname}}</view> <view class="item {{item.statusType == statusType?'active':''}}" wx:for="{{statusTab}}" wx:key="" bindtap="subjectStatusShift" data-statustype="{{item.statusType}}">{{item.tabname}}</view>
</view> </view>
</view> </view>
<view class="commonlist-bigwrap" wx:if="{{!emptyPage}}"> <view class="commonlist-bigwrap" wx:if="{{courseTatal>0}}">
<view class="commonlist-box"> <view class="commonlist-box">
<block wx:for="{{courseList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex"> <block wx:for="{{courseList}}" wx:for-item="bigitem" wx:key="bigindex" wx:for-index="bigindex">
<view class="commonlist-item" wx:for="{{bigitem}}" wx:for-item="item" data-theme="{{item}}" bindtap="" wx:key="{{index}}"> <view class="commonlist-item" wx:for="{{bigitem}}" wx:for-item="item" data-theme="{{item}}" bindtap="" wx:key="{{index}}">
<view class="item-titlebox"> <view class="item-titlebox">
<view class="item-title">{{item.course.title}}</view> <view class="item-title">{{item.course.title}}</view>
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
<list-loading loading="{{listLoading}}"></list-loading> <list-loading loading="{{listLoading}}"></list-loading>
</view> </view>
<view class="empty-content" wx:else>
<view class="empty-content" wx:if="{{emptyPage}}">
<image class='empty-img' src='{{imageRoot}}2c/rankinglist/empty.png?{{imageVersion}}'></image> <image class='empty-img' src='{{imageRoot}}2c/rankinglist/empty.png?{{imageVersion}}'></image>
<view class="empty-text">暂无数据~</view> <view class="empty-text">暂无数据~</view>
</view> </view>
......
...@@ -36,15 +36,21 @@ ...@@ -36,15 +36,21 @@
.commonlist-bigwrap{ .commonlist-bigwrap{
padding-top: 122rpx; padding-top: 125rpx;
background:#fff;
padding-bottom: 0;
border-bottom: 20rpx solid #F3F4F6;
} }
.commonlist-item .item-contentbox .content-item .item-label{ .commonlist-item .item-contentbox .content-item .item-label{
width: 170rpx; width: 170rpx;
} }
.empty-content { .empty-content {
padding: 184rpx 0 43rpx; position: absolute;
text-align:center; top: 50%;
left: 50%;
transform: translate(-50%,-50%);
text-align: center;
line-height: 45rpx; line-height: 45rpx;
} }
.empty-content .empty-img { .empty-content .empty-img {
......
@import '../../../style/commonform.wxss'; @import '../../../style/commonform.wxss';
page{
background: #F7F7F9;
}
page::after{ page::after{
content: ''; content: '';
width: 100%; width: 100%;
...@@ -9,4 +11,14 @@ page::after{ ...@@ -9,4 +11,14 @@ page::after{
top: 0; top: 0;
right: 0; right: 0;
transform: scaleY(.5); transform: scaleY(.5);
}
.form-box .form-item:last-of-type::after{
content: '';
width: 100%;
height: 1px;
background: transparent;
position: absolute;
bottom: 0;
right: 0;
transform: scaleY(.5);
} }
\ No newline at end of file
...@@ -24,7 +24,8 @@ import { ...@@ -24,7 +24,8 @@ import {
formIdCreate, formIdCreate,
getActivities, getActivities,
activityLog, activityLog,
getMemberId getMemberId,
getMember
} from '../service/common.js'; } from '../service/common.js';
import { import {
getClassInfo, getClassInfo,
...@@ -277,16 +278,57 @@ Page({ ...@@ -277,16 +278,57 @@ Page({
let user = LocalStorage.getItem('user'); let user = LocalStorage.getItem('user');
let teacher = LocalStorage.getItem('teacher'); let teacher = LocalStorage.getItem('teacher');
let dakarole = LocalStorage.getItem('dakarole'); let dakarole = LocalStorage.getItem('dakarole');
console.log(user,dakarole) console.log(visitor,user,dakarole)
// wx.navigateTo({ getMember({
// url: `/business/pages/loginregistermgt/login` consumer_id: visitor && visitor.id
// }) }).then(res=>{
// return const {data,code} = res;
if(data.member.length>0){
LocalStorage.setItem('user', {
// expires_in: data.expires_in,
token: `bearer ${data.token}`,
})
LocalStorage.setItem('dakarole', 1);
wx.redirectTo({
url: `/business/pages/deskcenter/index?sid=${data.member[0].id}`
})
}else{
wx.showModal({
title: '提示',
content: '暂无校区',
showCancel: false
})
}
console.log(res)
})
console.log(dakarole,user) return
if (!user) { if (!user) {
getMember({
consumer_id: visitor && visitor.id
}).then(res=>{
const {data,code} = res;
if(data.last_login_school_id){
LocalStorage.setItem('user', {
// expires_in: data.expires_in,
token: `bearer ${data.token}`,
})
LocalStorage.setItem('dakarole', 1);
wx.redirectTo({
url: `/business/pages/deskcenter/index?sid=${data.member[0].id}`
})
}
console.log(res)
})
return
getMemberId({ getMemberId({
open_id: visitor && visitor.openid, open_id: visitor && visitor.openid,
}).then((res) => { }).then((res) => {
......
...@@ -43,21 +43,6 @@ Page({ ...@@ -43,21 +43,6 @@ Page({
}, },
onHide: function () { // Do something when page hide. onHide: function () { // Do something when page hide.
},
onUnload: function () { // Do something when page close.
},
onPullDownRefresh: function () { // Do something when pull down.
},
onReachBottom: function () { // Do something when page reach bottom.
},
onShareAppMessage: function () { // return custom share data when user share.
},
onPageScroll: function () { // Do something when page scroll
}, },
onTabItemTap(item) {}, onTabItemTap(item) {},
// Event handler. // Event handler.
......
<view class="container"> <view class="container">
<view class="wechatinfoget-container"> <view class="wechatinfoget-container">
<image class="hi-icon" src="{{imageRoot}}2b/common/hi.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /> <view class="hi-box">
<view class="text" hover-class="none" hover-stop-propagation="false">欢迎来到“轻校通”!</view> <image class="hi-icon" src="{{imageRoot}}2b/common/hi.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<view class="text" hover-class="none" hover-stop-propagation="false">欢迎来到“轻校通”!</view>
</view>
<image class="center-img" src="{{imageRoot}}2b/common/wechatinfoget.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" /> <image class="center-img" src="{{imageRoot}}2b/common/wechatinfoget.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
<button class="btn" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo" hover-class="none" hover-stop-propagation="false">进入轻校通</button> <button class="btn" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo" hover-class="none" hover-stop-propagation="false">进入轻校通</button>
</view> </view>
</view> </view>
\ No newline at end of file
page{
min-height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.container{}
.wechatinfoget-container { .wechatinfoget-container {
height: 100vh; display: flex;
flex-direction: column;
justify-content: center;
}
.hi-box{
padding: 0 96rpx;
} }
.hi-box .hi-icon {
.wechatinfoget-container .hi-icon {
width: 105rpx; width: 105rpx;
height: 74rpx; height: 74rpx;
display: block; display: block;
margin: 160rpx 0 27rpx 96rpx;
} }
.hi-box .text {
.wechatinfoget-container .text {
font-size: 40rpx; font-size: 40rpx;
font-family: Alibaba-PuHuiTi-R;
font-weight: 400;
color: rgba(0, 0, 0, 1); color: rgba(0, 0, 0, 1);
line-height: 1; line-height: 1;
margin-left: 96rpx; padding-top: 27rpx;
} }
.center-img { .center-img {
width: 554rpx; width: 554rpx;
height: 512rpx; height: 512rpx;
margin: 148rpx 0 0 128rpx; margin: 148rpx 0 162rpx 128rpx;
} }
.btn { .btn {
width: 561rpx; width: 561rpx;
height: 90rpx; height: 90rpx;
margin: 162rpx 0 0 96rpx;
background: linear-gradient(90deg, rgba(255, 186, 38, 1), rgba(255, 162, 0, 1)); background: linear-gradient(90deg, rgba(255, 186, 38, 1), rgba(255, 162, 0, 1));
box-shadow: 0px 8rpx 16rpx 0px rgba(255, 187, 17, 0.4); box-shadow: 0px 8rpx 16rpx 0px rgba(255, 187, 17, 0.4);
border-radius: 45rpx; border-radius: 45rpx;
font-size: 30rpx; font-size: 30rpx;
font-family: PingFang-SC-Bold; font-family: PingFang-SC-Bold;
font-weight: bold; font-weight: bold;
color: rgba(255, 255, 255, 1); color: #fff;
text-align: center; text-align: center;
line-height: 90rpx; line-height: 90rpx;
} }
\ No newline at end of file
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