|
| xqd
@@ -2,174 +2,80 @@
|
|
|
<view class="page" style='background-color:white'>
|
|
|
<view class="page__bd">
|
|
|
<view class="weui-article">
|
|
|
- <view class="weui-article__h1" style='font-size:42rpx'>新品发布新品发布新品发布新品发布新品发布</view>
|
|
|
+ <view class="weui-article__h1" style='font-size:42rpx'>{{news.title}}</view>
|
|
|
<view class='container1' style='margin-left:0rpx;margin-top:0rpx'>
|
|
|
- <image src='../../../images/people.png' style='width:80rpx;height:80rpx'></image>
|
|
|
+ <image src='{{news.avatar}}' style='width:80rpx;height:80rpx'></image>
|
|
|
</view>
|
|
|
<view class="weui-article__section">
|
|
|
- <view class="weui-article__title" style='margin-left:100rpx'>天天家居汇</view>
|
|
|
+ <view class="weui-article__title" style='margin-left:100rpx'>天天家居惠</view>
|
|
|
<view class="weui-article__section">
|
|
|
- <view class="weui-article__h3" style='margin-left:100rpx'>{{time}}</view>
|
|
|
+ <view class="weui-article__h3" style='margin-left:100rpx'>{{news.created_at}}</view>
|
|
|
<view class="weui-article__p" style='font-size:35rpx'>
|
|
|
- 新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布新品发布
|
|
|
+ <import src="../../../wxParse/wxParse.wxml" />
|
|
|
+ <template is="wxParse" data="{{wxParseData:article.nodes}}" />
|
|
|
</view>
|
|
|
<view class="weui-article__p">
|
|
|
- <image src="../../../images/detail.png" mode="aspectFit" style="width: 100%" />
|
|
|
+ <image src="{{news.thumb}}" mode="aspectFit" style="width: 100%" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style='height:80rpx;width:100%;position:relative'>
|
|
|
- <view class='container1'>422</view>
|
|
|
- <image src='../../../images/眼睛.png' style='width:50rpx;height:50rpx;margin-top:15rpx'></image>
|
|
|
+ <view class='container1'>{{news.viewed}}</view>
|
|
|
+ <image src='../../../images/eyes.png' style='width:50rpx;height:50rpx;margin-top:15rpx'></image>
|
|
|
</view>
|
|
|
<view class='weui-flex'>
|
|
|
- <view class='weui-flex__item'>
|
|
|
+ <!-- <view class='weui-flex__item'>
|
|
|
<image src='../../../images/like.png' style='width:50%;height:110rpx;margin-left:25%' bindtap='like' wx:if="{{like}}"></image>
|
|
|
<image src='../../../images/like1.png' style='width:50%;height:110rpx;margin-left:25%' bindtap='like' wx:if="{{!like}}"></image>
|
|
|
</view>
|
|
|
<view class='weui-flex__item'>
|
|
|
- <image src='../../../images/一般.png' style='width:50%;height:110rpx;margin-left:25%' bindtap='normal' wx:if="{{normal}}"></image>
|
|
|
- <image src='../../../images/一般1.png' style='width:50%;height:110rpx;margin-left:25%' bindtap='normal' wx:if="{{!normal}}"></image>
|
|
|
+ <image src='../../../images/normal.png' style='width:50%;height:110rpx;margin-left:25%' bindtap='normal' wx:if="{{normal}}"></image>
|
|
|
+ <image src='../../../images/normal1.png' style='width:50%;height:110rpx;margin-left:25%' bindtap='normal' wx:if="{{!normal}}"></image>
|
|
|
</view>
|
|
|
<view class='weui-flex__item'>
|
|
|
<image src='../../../images/no.png' style='width:50%;height:110rpx;margin-left:25%' bindtap='dislike' wx:if="{{dislike}}"></image>
|
|
|
<image src='../../../images/no1.png' style='width:50%;height:110rpx;margin-left:25%' bindtap='dislike' wx:if="{{!dislike}}"></image>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class='container1' style='margin-left:55rpx;margin-top: 0rpx;' wx:if="{{like}}">
|
|
|
- 喜欢(252)
|
|
|
+ 喜欢({{news.like}})
|
|
|
</view>
|
|
|
<view class='container1' style='margin-left:290rpx;margin-top: 0rpx;' wx:if="{{normal}}">
|
|
|
- 一般(14)
|
|
|
+ 一般({{news.commonly}})
|
|
|
</view>
|
|
|
<view class='container1' style='margin-left:520rpx;margin-top: 0rpx;' wx:if="{{dislike}}">
|
|
|
- 淘汰(0)
|
|
|
+ 淘汰({{news.bad}})
|
|
|
</view>
|
|
|
<view class='container1' style='margin-left:55rpx;margin-top: 0rpx;color:#d81e06;' wx:if="{{!like}}">
|
|
|
- 喜欢(252)
|
|
|
+ 喜欢({{news.like+1}})
|
|
|
</view>
|
|
|
<view class='container1' style='margin-left:290rpx;margin-top: 0rpx;color:#d81e06;' wx:if="{{!normal}}">
|
|
|
- 一般(14)
|
|
|
+ 一般({{news.commonly+1}})
|
|
|
</view>
|
|
|
<view class='container1' style='margin-left:520rpx;margin-top: 0rpx;color:#d81e06;' wx:if="{{!dislike}}">
|
|
|
- 淘汰(0)
|
|
|
+ 淘汰({{news.bad+1}})
|
|
|
</view>
|
|
|
<view style='margin-top:80rpx;'>
|
|
|
- 全部评论(85)
|
|
|
+ 全部评论({{news_comments.total}})
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class='conment'>
|
|
|
- <view class='container1' style='margin-left:0rpx;margin-top:-20rpx'>
|
|
|
- <image src='../../../images/people.png' style='width:80rpx;height:80rpx'></image>
|
|
|
- </view>
|
|
|
- <view class='container1' style='margin-top:8rpx'>
|
|
|
- <text style='margin-left:540rpx'>20</text>
|
|
|
- <image src='../../../images/点赞.png' style='width:30rpx;height:30rpx;margin-left:10rpx;margin-top:8rpx' bindtap='zan' wx:if="{{!zan}}"></image>
|
|
|
- <image src='../../../images/已赞.png' style='width:30rpx;height:30rpx;margin-left:10rpx;margin-top:8rpx' bindtap='zan' wx:if="{{zan}}"></image>
|
|
|
- </view>
|
|
|
- <view class="weui-article__title" style='margin-left:100rpx'>梦星羽</view>
|
|
|
-
|
|
|
-
|
|
|
- <view style='font-size:35rpx;margin-left:100rpx' bindtap='toConment'>
|
|
|
- 评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内
|
|
|
+ <view class='conment' wx:for='{{news_comments.data}}'>
|
|
|
+ <view class='container1' style='margin-left:0rpx;margin-top:0rpx'>
|
|
|
+ <image src='{{item.avatar}}' style='width:80rpx;height:80rpx'></image>
|
|
|
</view>
|
|
|
- <view class='container1' style='margin-top:10rpx'>
|
|
|
- <image src='../../../images/展开全文按钮.png' style='width:60rpx;height:30rpx;margin-left:20rpx' bindtap='toConment'></image>
|
|
|
+ <view class="weui-article__title" style='margin-left:100rpx'>{{item.username}}</view>
|
|
|
+ <view class='container1' style='margin-left:100rpx;margin-top:5rpx;font-size:24rpx;color:#d3d3d3'>
|
|
|
+ {{item.created_at}}
|
|
|
</view>
|
|
|
-
|
|
|
- <view class='container1' style='margin-left:100rpx;margin-top:55rpx;font-size:24rpx;color:#d3d3d3'>
|
|
|
- 6小时前
|
|
|
+ <view style='font-size:35rpx;margin-left:100rpx;margin-top:50rpx'>
|
|
|
+ {{item.content}}
|
|
|
</view>
|
|
|
- <view style='margin:0;margin-left:100rpx'>
|
|
|
- <image src='../../../images/回复按钮.png' style='width:60rpx;height:30rpx;margin-left:100rpx;margin-top:60rpx'></image>
|
|
|
+ <view style='margin-top:5rpx;background-color:#f5f5f5;margin-left:100rpx;height:50rpx;padding:5rpx' id='{{item.id}}' bindtap='toConment' wx:if='{{item.replys.total != 0}}' >
|
|
|
+ <text style='color:#1E90FF;font-size:30rpx' decode="{{true}}" space="{{true}}">共{{item.replys.total}}条回复 ></text>
|
|
|
</view>
|
|
|
|
|
|
- <view style='margin-top:5rpx;background-color:#f5f5f5;margin-left:100rpx'>
|
|
|
- <view style='margin-left:10rpx'>
|
|
|
- <text style='font-size:30rpx;font-famaily:"黑体"'>梦星羽:</text>
|
|
|
- <text style=' font-size:30rpx;color:#606060'>评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class='container1 ' style='margin-top:10rpx'>
|
|
|
- <image src='../../../images/展开全文按钮.png ' style='width:60rpx;height:30rpx;margin-left:-70rpx;margin-top:0rpx'></image>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view style='margin-top:50rpx;margin-left:10rpx'>
|
|
|
- <text style='font-size:30rpx;font-famaily:"黑体"'>梦星羽:</text>
|
|
|
- <text style=' font-size:30rpx;color:#606060'>评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class='container1 ' style='margin-top:10rpx'>
|
|
|
- <image src='../../../images/展开全文按钮.png ' style='width:60rpx;height:30rpx;margin-left:-70rpx;margin-top:0rpx'></image>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view style='margin-top:50rpx;height:1rpx'>
|
|
|
- </view>
|
|
|
- <view class='container1' style='margin-top:0rpx'>
|
|
|
- <image src='../../../images/查看全部回复按钮.png ' style='width:160rpx;height:25rpx;margin-left:-70rpx;margin-top:0rpx'></image>
|
|
|
- </view>
|
|
|
- <view style='margin-top:50rpx;height:1rpx'>
|
|
|
- </view>
|
|
|
- <view class='container1' style='margin-top:0rpx;margin-left:0rpx'>
|
|
|
+ <view class='container1' style='margin-top:0rpx;margin-left:100rpx'>
|
|
|
<image src='../../../../images/回复与回复之间的分割线.png ' style='width:81%;height:2rpx;margin-top:0rpx;margin-left:0rpx'></image>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class='conment'>
|
|
|
- <view class='container1' style='margin-left:0rpx;margin-top:-20rpx'>
|
|
|
- <image src='../../../images/people.png' style='width:80rpx;height:80rpx'></image>
|
|
|
- </view>
|
|
|
- <view class='container1' style='margin-top:8rpx'>
|
|
|
- <text style='margin-left:540rpx'>20</text>
|
|
|
- <image src='../../../images/点赞.png' style='width:30rpx;height:30rpx;margin-left:10rpx;margin-top:8rpx' bindtap='zan' wx:if="{{!zan}}"></image>
|
|
|
- <image src='../../../images/已赞.png' style='width:30rpx;height:30rpx;margin-left:10rpx;margin-top:8rpx' bindtap='zan' wx:if="{{zan}}"></image>
|
|
|
- </view>
|
|
|
- <view class="weui-article__title" style='margin-left:100rpx'>梦星羽</view>
|
|
|
-
|
|
|
-
|
|
|
- <view style='font-size:35rpx;margin-left:100rpx' bindtap='toConment'>
|
|
|
- 评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内
|
|
|
- </view>
|
|
|
- <view class='container1' style='margin-top:10rpx'>
|
|
|
- <image src='../../../images/展开全文按钮.png' style='width:60rpx;height:30rpx;margin-left:20rpx' bindtap='toConment'></image>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class='container1' style='margin-left:100rpx;margin-top:55rpx;font-size:24rpx;color:#d3d3d3'>
|
|
|
- 6小时前
|
|
|
- </view>
|
|
|
- <view style='margin:0;margin-left:100rpx'>
|
|
|
- <image src='../../../images/回复按钮.png' style='width:60rpx;height:30rpx;margin-left:100rpx;margin-top:60rpx'></image>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view style='margin-top:5rpx;background-color:#f5f5f5;margin-left:100rpx'>
|
|
|
- <view style='margin-left:10rpx'>
|
|
|
- <text style='font-size:30rpx;font-famaily:"黑体"'>梦星羽:</text>
|
|
|
- <text style=' font-size:30rpx;color:#606060'>评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class='container1 ' style='margin-top:10rpx'>
|
|
|
- <image src='../../../images/展开全文按钮.png ' style='width:60rpx;height:30rpx;margin-left:-70rpx;margin-top:0rpx'></image>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view style='margin-top:50rpx;margin-left:10rpx'>
|
|
|
- <text style='font-size:30rpx;font-famaily:"黑体"'>梦星羽:</text>
|
|
|
- <text style=' font-size:30rpx;color:#606060'>评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class='container1' style='margin-top:10rpx'>
|
|
|
- <image src='../../../images/展开全文按钮.png ' style='width:60rpx;height:30rpx;margin-left:-70rpx;margin-top:0rpx'></image>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view style='margin-top:50rpx;height:1rpx'>
|
|
|
- </view>
|
|
|
- <view class='container1' style='margin-top:0rpx'>
|
|
|
- <image src='../../../images/查看全部回复按钮.png ' style='width:160rpx;height:25rpx;margin-left:-70rpx;margin-top:0rpx'></image>
|
|
|
- </view>
|
|
|
- <view style='margin-top:50rpx;height:1rpx'>
|
|
|
- </view>
|
|
|
- <view class='container1' style='margin-top:0rpx;margin-left:0rpx'>
|
|
|
- <image src='../../../images/回复与回复之间的分割线.png ' style='width:81%;height:2rpx;margin-top:0rpx;margin-left:0rpx'></image>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|