|
@@ -31,10 +31,12 @@
|
|
|
<view style="color: #AFB3BF; margin-top: 4rpx;">{{item.updateDate}}</view>
|
|
|
</view>
|
|
|
<view class="flex" style="width: 40%; justify-content: flex-end;margin: 40rpx;">
|
|
|
- <view style="color: #FE6430;" v-if="item.status == '审核中' || item.status == '未审核'|| item.status == '待审核'">{{item.status}}</view>
|
|
|
+ <view style="color: #FE6430;"
|
|
|
+ v-if="item.status == '审核中' || item.status == '未审核'|| item.status == '待审核'">{{item.status}}
|
|
|
+ </view>
|
|
|
<view style="color: #22C572;" v-if="item.status == '已通过'">{{item.status}}</view>
|
|
|
<view style="color: #FB1E1E;" v-if="item.status == '已驳回'">{{item.status}}</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="title">{{item.title}}</view>
|
|
@@ -61,6 +63,14 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view v-show="isLoadMore">
|
|
|
+ <!-- <uni-load-more :status="loadStatus"></uni-load-more> -->
|
|
|
+ <!-- <u-loadmore :status="status" /> -->
|
|
|
+ <u-loadmore :status="loadStatus" icon icon-type="circle" margin-bottom="80" margin-top="60rpx" />
|
|
|
+ </view>
|
|
|
+ <view style='height:12vh;background:#F5F6FA;line-height:12vh;text-align:center;' v-if='release.length == 0'>
|
|
|
+ 当前暂无结果
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -99,14 +109,16 @@
|
|
|
changeCss: "label",
|
|
|
}
|
|
|
],
|
|
|
- release: [{
|
|
|
- imgList: [],
|
|
|
- }],
|
|
|
+ release: [],
|
|
|
+ releaseInfo: [],
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
imgList: [],
|
|
|
userName: "",
|
|
|
searchType: "",
|
|
|
+ searchTypeInfo: "",
|
|
|
+ isLoadMore: false,
|
|
|
+ loadStatus: "loading",
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -118,6 +130,25 @@
|
|
|
this.portraits = this.userInfo.avatarUrl
|
|
|
this.getRelease()
|
|
|
},
|
|
|
+ //下拉刷新
|
|
|
+ onPullDownRefresh() {
|
|
|
+ this.getRelease()
|
|
|
+ setTimeout(function() {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ }, 1000);
|
|
|
+ },
|
|
|
+ onReachBottom() { //上拉触底函数
|
|
|
+ var that = this
|
|
|
+ if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
|
|
|
+ this.isLoadMore = true
|
|
|
+ this.currentPage += 1
|
|
|
+ setTimeout(function() {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ that.getRelease()
|
|
|
+ }, 1000);
|
|
|
+ // this.getRelease()
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
navBack() {
|
|
|
uni.navigateBack(1)
|
|
@@ -138,7 +169,7 @@
|
|
|
this.searchType = "2"
|
|
|
} else if (item.name == "未通过") {
|
|
|
this.searchType = "3"
|
|
|
- } else{
|
|
|
+ } else {
|
|
|
this.searchType = ""
|
|
|
}
|
|
|
this.getRelease()
|
|
@@ -152,12 +183,53 @@
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
+ if (!this.searchType) {
|
|
|
+ this.releaseInfo = res.data.data.records
|
|
|
+ if (this.releaseInfo.length > 0) {
|
|
|
+ this.release = this.release.concat(this.releaseInfo)
|
|
|
+ this.count = this.release.length
|
|
|
+ this.isLoadMore = false
|
|
|
+ for (let i = 0; i < this.release.length; i++) {
|
|
|
+ this.release[i].imgList = this.release[i].address.split(",")
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.loadStatus = 'nomore'
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ debugger
|
|
|
+ if (this.searchTypeInfo == this.searchType) {
|
|
|
+ this.releaseInfo = res.data.data.records
|
|
|
+ if (this.releaseInfo.length > 0) {
|
|
|
+ this.release = this.release.concat(this.releaseInfo)
|
|
|
+ this.count = this.release.length
|
|
|
+ this.isLoadMore = false
|
|
|
+ for (let i = 0; i < this.release.length; i++) {
|
|
|
+ this.release[i].imgList = this.release[i].address.split(",")
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.loadStatus = 'nomore'
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.release = []
|
|
|
+ this.releaseInfo = res.data.data.records
|
|
|
+ if (this.releaseInfo.length > 0) {
|
|
|
+ this.release = this.release.concat(this.releaseInfo)
|
|
|
+ this.count = this.release.length
|
|
|
+ this.isLoadMore = false
|
|
|
+ for (let i = 0; i < this.release.length; i++) {
|
|
|
+ this.release[i].imgList = this.release[i].address.split(",")
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.loadStatus = 'nomore'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.searchTypeInfo = this.searchType
|
|
|
|
|
|
- this.release = res.data.data.records
|
|
|
- this.count = this.release.length
|
|
|
- for (let i = 0; i < this.release.length; i++) {
|
|
|
- this.release[i].imgList = this.release[i].address.split(",")
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -222,11 +294,18 @@
|
|
|
|
|
|
.modular {
|
|
|
width: 94%;
|
|
|
- margin: 0 auto;
|
|
|
+ margin: 40rpx auto;
|
|
|
background-color: #FFFFFF;
|
|
|
border-radius: 40rpx;
|
|
|
- margin-top: 40rpx;
|
|
|
+ // margin-top: 40rpx;
|
|
|
+ }
|
|
|
|
|
|
+ .modular {
|
|
|
+ width: 94%;
|
|
|
+ margin: 20rpx auto;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ border-radius: 40rpx;
|
|
|
+ margin-top: 40rpx;
|
|
|
}
|
|
|
|
|
|
.introduce {
|
|
@@ -286,7 +365,7 @@
|
|
|
}
|
|
|
|
|
|
.titleText {
|
|
|
- font-size: 34rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
margin-left: 30rpx;
|
|
|
margin-top: 10rpx;
|
|
|
}
|