Commit 68326a62 authored by 石盼盼's avatar 石盼盼

Merge branch 'shipanpan' into 'master'

Shipanpan

See merge request !42
parents dc8316a1 372b6a0e
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<block wx:for="{{list}}" wx:key='index'> <block wx:for="{{list}}" wx:key='index'>
<view class="item flex-h flex-vc flex-hb"> <view class="item flex-h flex-vc flex-hb">
<view class="flex-h flex-vc"> <view class="flex-h flex-vc">
<image src="{{item.child.thumb !=null ? item.child.thumb: '/images/default_head.png'}}"></image> <image src="{{item.child.thumb !=null ? item.child.thumb: '/images/default_head.png'}}" mode="aspectFill"></image>
<view> <view>
<view class="name">{{item.child.nick_name != null ? item.child.nick_name: ''}}</view> <view class="name">{{item.child.nick_name != null ? item.child.nick_name: ''}}</view>
<view class="big_name">大名:{{item.child.child_name}}</view> <view class="big_name">大名:{{item.child.child_name}}</view>
......
...@@ -28,6 +28,9 @@ page { ...@@ -28,6 +28,9 @@ page {
line-height: 64rpx; line-height: 64rpx;
text-align: center; text-align: center;
} }
.instant image{
margin-left: 12rpx;
}
.top image{ .top image{
width: 41rpx; width: 41rpx;
height: 32rpx; height: 32rpx;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="item" wx:for="{{list}}" wx:key="index"> <view class="item" wx:for="{{list}}" wx:key="index">
<view class="top flex-h flex-vc flex-hb"> <view class="top flex-h flex-vc flex-hb">
<view class="row"> <view class="row">
<image src="{{item.child.wx_user.avatarurl}}"></image> <image src="{{item.child.wx_user.avatarurl}}" mode="aspectFill"></image>
<view class="name">{{item.child.wx_user.nickname}}</view> <view class="name">{{item.child.wx_user.nickname}}</view>
</view> </view>
<view class="date"> <view class="date">
......
...@@ -111,7 +111,7 @@ Page({ ...@@ -111,7 +111,7 @@ Page({
this.setData({ this.setData({
locked: true locked: true
}) })
this.onLoadFun(); this.onLoad();
} }
wx.stopPullDownRefresh() wx.stopPullDownRefresh()
}, },
......
{ {
"enablePullDownRefresh": true,
"usingComponents": { "usingComponents": {
"van-empty": "/components/vant/empty/index" "van-empty": "/components/vant/empty/index"
}, },
......
...@@ -90,6 +90,7 @@ Page({ ...@@ -90,6 +90,7 @@ Page({
afterCalendarRender(e) { afterCalendarRender(e) {
const calendar = this.selectComponent('#calendar').calendar; const calendar = this.selectComponent('#calendar').calendar;
calendar.cancelSelectedDates()
const toSet = [ const toSet = [
{ {
year: this.data.curDate.split('-')[0], year: this.data.curDate.split('-')[0],
...@@ -204,4 +205,21 @@ Page({ ...@@ -204,4 +205,21 @@ Page({
url: '/pages/index/classDetail/classDetail?class_id=' + item.class_id + '&lesson_id=' + item.id, url: '/pages/index/classDetail/classDetail?class_id=' + item.class_id + '&lesson_id=' + item.id,
}) })
}, },
initData : function (){
this.setData({
allList : [],
list : [],
locked : false
})
},
onPullDownRefresh : function () {
this.initData()
if (!this.data.locked) {
this.setData({
locked: true
})
this.onLoad()
}
wx.stopPullDownRefresh()
}
}) })
\ No newline at end of file
{ {
"enablePullDownRefresh": true,
"usingComponents": { "usingComponents": {
"van-count-down": "/components/vant/count-down/index", "van-count-down": "/components/vant/count-down/index",
"van-empty": "/components/vant/empty/index", "van-empty": "/components/vant/empty/index",
......
{ {
"usingComponents": {}, "usingComponents": {},
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的",
"enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#FFC600" "navigationBarBackgroundColor": "#FFC600"
} }
\ No newline at end of file
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<text>本班学员</text> <text>本班学员</text>
<view class="stu flex-h flex-hw"> <view class="stu flex-h flex-hw">
<view class="stus column" wx:for="{{studentList}}" wx:key="index" wx:for-item="item"> <view class="stus column" wx:for="{{studentList}}" wx:key="index" wx:for-item="item">
<image src="/images/default_head.png" wx:if="{{item.child.thumb == null}}"></image> <image src="/images/default_head.png" wx:if="{{item.child.thumb == null}}" mode="aspectFill"></image>
<image src="{{item.child.thumb}}" wx:else></image> <image src="{{item.child.thumb}}" mode="aspectFill" wx:else ></image>
<view class="name">{{item.child.child_name}}</view> <view class="name">{{item.child.nick_name}}</view>
</view> </view>
</view> </view>
</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