|
@@ -2,16 +2,21 @@
|
|
|
<!-- 顶部学生信息 -->
|
|
|
<view class="head-view">
|
|
|
<view class="head-left">
|
|
|
- <view class="head-img-view" wx:for="{{userItems}}" wx:key="index" data-id="{{item.studentId}}" bindtap="changeStu" wx:if="{{curStu.orgId == item.orgId}}">
|
|
|
- <image class="{{curStu.studentId == item.studentId ? 'curStu' : 'stuHead'}}" src="{{item.imageUrl}}"></image>
|
|
|
- </view>
|
|
|
+ <view class="head-img-view" wx:for="{{userItems}}" wx:key="index" data-id="{{item.studentId}}" bindtap="changeStu"
|
|
|
+ wx:if="{{curStu.orgId == item.orgId}}">
|
|
|
+ <!-- <image class="{{curStu.studentId == item.studentId ? 'curStu' : 'stuHead'}}" src="{{item.imageUrl}}"></image> -->
|
|
|
+ <view class="{{curStu.studentId == item.studentId ? 'curStu' : 'stuHead'}} headName">{{item.headName}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="head-right">
|
|
|
<view class="section">
|
|
|
- <picker class="picker-box" bindchange="bindPickerChange" value="{{index}}" range="{{orgItems}}" range-key="orgName">
|
|
|
+ <picker class="picker-box" bindchange="bindPickerChange" value="{{index}}" range="{{orgItems}}"
|
|
|
+ range-key="orgName">
|
|
|
<view class="picker">
|
|
|
{{orgItems[index].orgName}}
|
|
|
- <view class="toDown"><image src="/images/toDown.png"></image></view>
|
|
|
+ <view class="toDown">
|
|
|
+ <image src="/images/toDown.png"></image>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</picker>
|
|
|
</view>
|
|
@@ -21,21 +26,22 @@
|
|
|
|
|
|
<!-- 轮播图 -->
|
|
|
<view class="swiper">
|
|
|
- <swiper class="banner" autoplay circular interval="3000">
|
|
|
- <block wx:for="{{bannerList}}" wx:key="index">
|
|
|
- <swiper-item class="banner-box" >
|
|
|
- <image lazy-load mode="aspectFill" class="bb-image" src="{{item.imageUrl}}"></image>
|
|
|
- </swiper-item>
|
|
|
- </block>
|
|
|
- </swiper>
|
|
|
- </view>
|
|
|
+ <swiper class="banner" autoplay circular interval="3000">
|
|
|
+ <block wx:for="{{bannerList}}" wx:key="index">
|
|
|
+ <swiper-item class="banner-box">
|
|
|
+ <image lazy-load mode="aspectFill" class="bb-image" src="{{item.imageUrl}}"></image>
|
|
|
+ </swiper-item>
|
|
|
+ </block>
|
|
|
+ </swiper>
|
|
|
+ </view>
|
|
|
<!-- end -->
|
|
|
|
|
|
<!-- 课程数据 -->
|
|
|
<view class="class-view">
|
|
|
<view class="title">课程数据</view>
|
|
|
<view class="class-list">
|
|
|
- <view class="class-box" wx:for="{{classList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage" wx:if="{{index == 1 ? isShow : true}}">
|
|
|
+ <view class="class-box" wx:for="{{classList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage"
|
|
|
+ wx:if="{{index == 1 ? isShow : true}}">
|
|
|
<view class="class-img">
|
|
|
<image src="{{item.img}}"></image>
|
|
|
</view>
|
|
@@ -52,7 +58,8 @@
|
|
|
<view class="app-view">
|
|
|
<view class="title">我的应用</view>
|
|
|
<view class="app-list">
|
|
|
- <view class="app-box" wx:for="{{appList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage" wx:if="{{index == 1 ? isShow : true}}">
|
|
|
+ <view class="app-box" wx:for="{{appList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage"
|
|
|
+ wx:if="{{index == 1 ? isShow : true}}">
|
|
|
<view class="app-img">
|
|
|
<image src="{{item.img}}"></image>
|
|
|
</view>
|
|
@@ -74,8 +81,8 @@
|
|
|
</view>
|
|
|
<!-- end -->
|
|
|
|
|
|
- <!-- 老师秀 -->
|
|
|
- <view class="show-view" wx:if="{{isShow}}">
|
|
|
+ <!-- 老师秀 -->
|
|
|
+ <view class="show-view" wx:if="{{isShow}}">
|
|
|
<view class="title-view">
|
|
|
<view class="title">老师秀</view>
|
|
|
<view class="more" bindtap="getMoreShow" data-type="1">更多</view>
|
|
@@ -86,4 +93,28 @@
|
|
|
</view>
|
|
|
<!-- end -->
|
|
|
|
|
|
+ <!-- 优惠券弹窗 -->
|
|
|
+ <view class="quan-bg" wx:if="{{quanTipFlag}}"></view>
|
|
|
+ <view class="quan-tip" wx:if="{{quanTipFlag}}">
|
|
|
+ <image src="/images/quan-tip.png"></image>
|
|
|
+ <view class="quan-tip-content">
|
|
|
+ <view class="quan-tip-title">恭喜获得优惠券4张</view>
|
|
|
+ <view class="quan-tip-list">
|
|
|
+ <view class="quan-tip-list-box" wx:for="{{4}}" wx:key="index">
|
|
|
+ <view class="quan-tip-list-title view-left">钢琴类通用</view>
|
|
|
+ <view class="quan-tip-list-price"><text>¥</text>20</view>
|
|
|
+ <view class="quan-tip-list-date view-left">有效期至2021/07/01</view>
|
|
|
+ <view class="quan-tip-list-code">满200可用</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="quan-tip-bottom">
|
|
|
+ <view class="quan-tip-btn" bindtap="toQuan">去看看</view>
|
|
|
+ <view class="tip-font">已自动存至优惠券</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="close-tip" bindtap="closeTip">X</view>
|
|
|
+ </view>
|
|
|
+ <!-- end -->
|
|
|
+ <tabbar curIndex="0"></tabbar>
|
|
|
+
|
|
|
</view>
|