Commit 8f064cbe authored by 吴颖's avatar 吴颖

'修改问题'

parent bab50453
...@@ -136,6 +136,10 @@ Page({ ...@@ -136,6 +136,10 @@ Page({
}, },
callback : (data) => { callback : (data) => {
base.toast('课程完结') base.toast('课程完结')
app.globalData.classRush = true
wx.switchTab({
url: '/pages/tabbar/index/index',
})
} }
} }
base.newRequest(params) base.newRequest(params)
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
</view> </view>
<view class="date"> <view class="date">
<text>{{item.updated_at}}</text> <text>{{item.updated_at}}</text>
<!-- <text>10:00</text> -->
</view> </view>
</view> </view>
<view class="comments">{{item.comment_reply}}</view> <view class="comments">{{item.comment_reply}}</view>
......
...@@ -53,7 +53,7 @@ Page({ ...@@ -53,7 +53,7 @@ Page({
this.getList() this.getList()
}, },
onShow() { onShow() {
if (app.globalData.classRush) { // 抢班成功之后刷新当前页面 if (app.globalData.classRush) { // 抢班成功之后刷新当前页面 或者课程完结以后
this.initData() this.initData()
this.getAllList() this.getAllList()
this.getList() this.getList()
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<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}}" mode="aspectFill"></image> <image src="/images/default_head.png" wx:if="{{item.child.thumb == null}}" mode="aspectFill"></image>
<image src="{{item.child.thumb}}" mode="aspectFill" wx:else ></image> <image src="{{item.child.thumb}}" mode="aspectFill" wx:else ></image>
<view class="name">{{item.child.nick_name}}</view> <view class="name">{{item.child.nick_name ? item.child.nick_name : item.child.child_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