处理非遗问题

列表图片不显示,详情传承人问题
This commit is contained in:
wenc000 2020-07-16 10:05:06 +08:00
parent 72a7a813fe
commit bc3720b99d
4 changed files with 10 additions and 9 deletions

View File

@ -55,7 +55,7 @@ Page({
doGetLibraryPerson: function(libraryId) {
var self = this;
app.restAjax.get(app.restAjax.path('{libraryUrl}/app/intangiblelibraryperson/listintangiblelibrarypersonrelease', [self.data.libraryUrl]), {
id: libraryId
intangibleLibraryId: libraryId
}, null, function(code, data) {
self.setData({
libraryPersonList: data

View File

@ -1,9 +1,9 @@
.culture-swiper, swiper, .swiper-img{
width: 100%;
height: 850rpx;
height: 500rpx;
}
.culture-swiper{
position: relative;
position: fixed;
}
.prev{
width: 60rpx;
@ -39,7 +39,7 @@
}
.culture{
position: absolute;
top: 800rpx;
top: 450rpx;
left: 0;
right: 0;
border-radius:31rpx 31rpx 0px 0px;

View File

@ -37,12 +37,9 @@ Page({
page: page,
rows: self.data.rows
}, null, function(code, data) {
if(data.rows.length == 0) {
app.dialog.msg('暂无数据');
return;
}
for(var i = 0, item; item = data.rows[i++];) {
item.libraryApplyTime = item.libraryApplyTime.substring(0, item.libraryApplyTime.length - 10);
item.libraryCoverArray = item.libraryCover.split(',');
}
var libraryArray;
if(page <= 1) {
@ -55,6 +52,10 @@ Page({
currentPage: page,
libraryList: libraryArray
})
if(data.rows.length == 0) {
app.dialog.msg('暂无数据');
return;
}
}, function(code, data) {
app.dialog.msg(data.msg);
}, function() {

View File

@ -19,7 +19,7 @@
<view class="activity">
<view class="activity-box" bindtap="goDetail" data-library-id="{{item.intangibleLibraryId}}" wx:for="{{libraryList}}" wx:for-item="item" wx:for-index="index" wx:key="libraryList">
<view class="activity-img">
<image src="{{libraryUrl}}/route/file/downloadfile/true/{{item.libraryCover}}"></image>
<image src="{{libraryUrl}}/route/file/downloadfile/true/{{item.libraryCoverArray[0]}}"></image>
</view>
<view class="activity-info">
<view class="title">