处理非遗问题
列表图片不显示,详情传承人问题
This commit is contained in:
parent
72a7a813fe
commit
bc3720b99d
@ -55,7 +55,7 @@ Page({
|
|||||||
doGetLibraryPerson: function(libraryId) {
|
doGetLibraryPerson: function(libraryId) {
|
||||||
var self = this;
|
var self = this;
|
||||||
app.restAjax.get(app.restAjax.path('{libraryUrl}/app/intangiblelibraryperson/listintangiblelibrarypersonrelease', [self.data.libraryUrl]), {
|
app.restAjax.get(app.restAjax.path('{libraryUrl}/app/intangiblelibraryperson/listintangiblelibrarypersonrelease', [self.data.libraryUrl]), {
|
||||||
id: libraryId
|
intangibleLibraryId: libraryId
|
||||||
}, null, function(code, data) {
|
}, null, function(code, data) {
|
||||||
self.setData({
|
self.setData({
|
||||||
libraryPersonList: data
|
libraryPersonList: data
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
.culture-swiper, swiper, .swiper-img{
|
.culture-swiper, swiper, .swiper-img{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 850rpx;
|
height: 500rpx;
|
||||||
}
|
}
|
||||||
.culture-swiper{
|
.culture-swiper{
|
||||||
position: relative;
|
position: fixed;
|
||||||
}
|
}
|
||||||
.prev{
|
.prev{
|
||||||
width: 60rpx;
|
width: 60rpx;
|
||||||
@ -39,7 +39,7 @@
|
|||||||
}
|
}
|
||||||
.culture{
|
.culture{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 800rpx;
|
top: 450rpx;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
border-radius:31rpx 31rpx 0px 0px;
|
border-radius:31rpx 31rpx 0px 0px;
|
||||||
|
@ -37,12 +37,9 @@ Page({
|
|||||||
page: page,
|
page: page,
|
||||||
rows: self.data.rows
|
rows: self.data.rows
|
||||||
}, null, function(code, data) {
|
}, null, function(code, data) {
|
||||||
if(data.rows.length == 0) {
|
|
||||||
app.dialog.msg('暂无数据');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
for(var i = 0, item; item = data.rows[i++];) {
|
for(var i = 0, item; item = data.rows[i++];) {
|
||||||
item.libraryApplyTime = item.libraryApplyTime.substring(0, item.libraryApplyTime.length - 10);
|
item.libraryApplyTime = item.libraryApplyTime.substring(0, item.libraryApplyTime.length - 10);
|
||||||
|
item.libraryCoverArray = item.libraryCover.split(',');
|
||||||
}
|
}
|
||||||
var libraryArray;
|
var libraryArray;
|
||||||
if(page <= 1) {
|
if(page <= 1) {
|
||||||
@ -55,6 +52,10 @@ Page({
|
|||||||
currentPage: page,
|
currentPage: page,
|
||||||
libraryList: libraryArray
|
libraryList: libraryArray
|
||||||
})
|
})
|
||||||
|
if(data.rows.length == 0) {
|
||||||
|
app.dialog.msg('暂无数据');
|
||||||
|
return;
|
||||||
|
}
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
app.dialog.msg(data.msg);
|
app.dialog.msg(data.msg);
|
||||||
}, function() {
|
}, function() {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<view class="activity">
|
<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-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">
|
<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>
|
||||||
<view class="activity-info">
|
<view class="activity-info">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
|
Loading…
Reference in New Issue
Block a user