77 lines
2.7 KiB
Plaintext
77 lines
2.7 KiB
Plaintext
<!--packageI/newMedia/newMediaAdDetails/newMediaAdDetails.wxml-->
|
|
|
|
<!-- 轮播图 -->
|
|
<view class="banner" wx:if="{{type=='news'}}">
|
|
<swiper class="banner_swiper" autoplay interval="3000" circular="{{true}}">
|
|
<swiper-item catchtap='tapUrl' wx:for="{{details.images}}" wx:key="index">
|
|
<image src="{{item}}" mode="aspectFill"></image>
|
|
</swiper-item>
|
|
</swiper>
|
|
</view>
|
|
|
|
<view class="page" wx:if="{{type!=''}}">
|
|
|
|
<template wx:if="{{type!=='audio'}}" is="header" data="{{isReward:true,details}}"></template>
|
|
|
|
<view class="content-text" wx:if="{{type!=='audio'}}">
|
|
{{details.content}}
|
|
</view>
|
|
|
|
<!-- 音频 -->
|
|
<view class="audio-wrapper" wx:if="{{type=='audio'}}">
|
|
<template is="header" data="{{isReward:false,details}}"></template>
|
|
<view class="audio-player">
|
|
<audio-play audioSrc="{{details.resources_url}}" drag="{{false}}"></audio-play>
|
|
</view>
|
|
<template is="rewardBtn" data="{{fixed:true,details}}"></template>
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- 打赏弹窗 -->
|
|
<reward-popup show="{{rewardShow}}" details="{{details}}" bind:close="setRewardShow"></reward-popup>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 底部信息 -->
|
|
<view style="height:calc(5.32rem + env(safe-area-inset-bottom) )"></view>
|
|
<content-statistics-bar details="{{details}}" bind:commentClick="setCommentShow" bind:reward="handAttentionRewaed" bind:favorites="handFavorites" bind:like="handLike"></content-statistics-bar>
|
|
|
|
|
|
<!-- 评论 -->
|
|
<comment wx:if="{{details.id>0}}" commentsShow="{{commentsShow}}" autoRequest="{{true}}" advertisingt_id="{{details.id}}" bind:closeComment="setCommentShow" bind:reward="handAttentionRewaed" bind:commentSuccess="handCommentSuccess"></comment>
|
|
|
|
<!-- 关注后是否奖励信息 -->
|
|
<attention-rewaed attentionRewaedShow="{{attentionRewaedShow}}" attentionRewaedData="{{attentionRewaedData}}" bind:submit="setAttentionRewaedShow"></attention-rewaed>
|
|
|
|
|
|
<!-- header部分 -->
|
|
<template name="header">
|
|
<view class="content-title">{{details.title}}</view>
|
|
<view class="content-author-bar">
|
|
<view class="content-author-left">
|
|
<image class="content_author-avatar"
|
|
src="{{details.avatar}}"></image>
|
|
<view class="content_author-nickname">{{details.nickname}}</view>
|
|
<view class="content_author-follow" wx:if="{{!details.is_self}}" bindtap="sendAttention">
|
|
<block wx:if="{{details.is_attention}}">已</block>
|
|
{{details.attention_name}}
|
|
</view>
|
|
</view>
|
|
<template is="rewardBtn" data="{{details}}" wx:if="{{isReward}}"></template>
|
|
</view>
|
|
</template>
|
|
|
|
|
|
<!-- 打赏按钮 -->
|
|
<template name="rewardBtn">
|
|
<view class="content_author-reward {{fixed ? 'content_author-reward_fixed' : ''}}" bindtap="setRewardShow">
|
|
<i class="iconfont icon-fontclass-dashang"></i>
|
|
<text>{{details.reward_name}}</text>
|
|
</view>
|
|
</template>
|
|
|
|
|