mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 10:56:47 +08:00
提交
This commit is contained in:
@@ -50,6 +50,9 @@
|
|||||||
<!-- <view v-show="statusSelectShow" class="sea-show">
|
<!-- <view v-show="statusSelectShow" class="sea-show">
|
||||||
<text :class="[articleList.status == status.value? 'sea-active':'','sea-index']" v-for="(status,index) in selectData" :key="index" @click="chooseStatus(status)">{{status.label}}</text>
|
<text :class="[articleList.status == status.value? 'sea-active':'','sea-index']" v-for="(status,index) in selectData" :key="index" @click="chooseStatus(status)">{{status.label}}</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
<view v-if="articleList.list.length == 0 && loadStatus == 'noMore'" style="text-align: center;margin-top: 100upx;color: #666;">
|
||||||
|
暂未搜索到内容
|
||||||
|
</view>
|
||||||
<view style="padding-top: 14upx;">
|
<view style="padding-top: 14upx;">
|
||||||
<!-- 文章内容 下面需要把样式提到class中-->
|
<!-- 文章内容 下面需要把样式提到class中-->
|
||||||
<view class="article_one" v-for="(item, index) of articleList.list" :key="item.id">
|
<view class="article_one" v-for="(item, index) of articleList.list" :key="item.id">
|
||||||
@@ -167,6 +170,7 @@ export default {
|
|||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (rs.status == 200) {
|
if (rs.status == 200) {
|
||||||
this.articleList.count = rs.result.count;
|
this.articleList.count = rs.result.count;
|
||||||
|
|
||||||
if (rs.result.list.length != 0) {
|
if (rs.result.list.length != 0) {
|
||||||
let userIds = [];
|
let userIds = [];
|
||||||
rs.result.list.forEach(item => {
|
rs.result.list.forEach(item => {
|
||||||
@@ -180,11 +184,17 @@ export default {
|
|||||||
userIds.push(item.sysCreateAid);
|
userIds.push(item.sysCreateAid);
|
||||||
});
|
});
|
||||||
await this.loadUserInfos(rs.result.list, userIds);
|
await this.loadUserInfos(rs.result.list, userIds);
|
||||||
|
if (this.articleList.list.length < this.articleList.count) {
|
||||||
|
this.loadStatus = 'more';
|
||||||
|
} else {
|
||||||
|
this.loadStatus = 'noMore';
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
this.loadStatus = 'noMore';
|
||||||
title: '查无数据',
|
// uni.showToast({
|
||||||
icon: 'none'
|
// title: '查无数据',
|
||||||
});
|
// icon: 'none'
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// uni.hideLoading();
|
// uni.hideLoading();
|
||||||
|
|||||||
@@ -51,14 +51,14 @@
|
|||||||
<view class="" style="height: 50upx;">
|
<view class="" style="height: 50upx;">
|
||||||
<image v-if="showLevel== index+1" style="width:32upx;height:16upx" src="../../static/images/triangle.png" mode=""></image>
|
<image v-if="showLevel== index+1" style="width:32upx;height:16upx" src="../../static/images/triangle.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="medal-img-index">
|
<view class="medal-img-index" @click="tabQu(ru,index+1)">
|
||||||
<image v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" style="width:104upx;height:120upx" :src="fileBaseUrl+rulesData.icon" mode=""></image>
|
<image v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" style="width:104upx;height:120upx" :src="fileBaseUrl+rulesData.icon" mode=""></image>
|
||||||
<image @click="tabQu(ru)" v-else style="width:104upx;height:120upx" :src="fileBaseUrl+rulesData.iconGrey" mode=""></image>
|
<image v-else style="width:104upx;height:120upx" :src="fileBaseUrl+rulesData.iconGrey" mode=""></image>
|
||||||
<text v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" class="img-name">{{medalData.medalName}} </text>
|
<text v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" class="img-name">{{medalData.medalName}} </text>
|
||||||
<text class="img-level">LV.{{index+1}}</text>
|
<text class="img-level">LV.{{index+1}}</text>
|
||||||
</view>
|
</view>
|
||||||
<text v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" style="color: #387DF7;font-size: 24upx;">LV.{{index+1}}</text>
|
<text v-if="index+1 < medalData.medalLevel || index+1 == medalData.medalLevel" style="color: #387DF7;font-size: 24upx;">LV.{{index+1}}</text>
|
||||||
<text v-else @click="tabQu(ru)" style="color: color: #666666;font-size: 24upx;">LV.{{index+1}}</text>
|
<text v-else style="color: color: #666666;font-size: 24upx;">LV.{{index+1}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -91,9 +91,11 @@
|
|||||||
this.getConfig();
|
this.getConfig();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
tabQu(ru) {
|
tabQu(ru,index) {
|
||||||
this.medalData.requirement = ru.remark;
|
if(index == this.medalData.medalLevel || index > this.medalData.medalLevel) {
|
||||||
this.showLevel = ru.level;
|
this.medalData.requirement = ru.remark;
|
||||||
|
this.showLevel = ru.level;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
back(){
|
back(){
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
|
|||||||
Reference in New Issue
Block a user