(14条消息) 微信小程序如何实现列表数据的详情页功能
<!--pages/detail/detail.wxml--> <view class="detailContainer"> <image class="headImg" src="{{detailObj.detail_img}}"></image> <image catchtap="handleMusicPlay" class="musicImg" src="{{isMusicPlay ? '/images/music/music-start.png' : '/images/music/music-stop.png'}}"></image> <view class="avatar_date"> <image src="{{detailObj.avatar}}"></image> <text>{{detailObj.author}}</text> <text>发布于</text> <text>{{detailObj.date}}</text> </view> <text class="company">{{detailObj.title}}</text> <view class="collection_share_container"> <view class="collection_share"> <image catchtap="handleCollection" wx:if="{{!isCollected}}" src="/images/icon/collection-anti.png"></image> <image catchtap="handleCollection" wx:if="{{isCollected}}" src="/images/icon/collection.png"></image> <image catchtap="handleShare" src="../../images/icon/share.png"></image> </view> <view class="line"></view> </view> <button open-type="share">转发文章</button> <text class="content">{{detailObj.detail_content}}</text> </view>