123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <view class="container">
- <view class="post-comment">
- <view class="goods">
- <view class="img">
- <image src="{{topic.picUrl}}"></image>
- </view>
- <view class="info">
- <view class="t">
- <text class="name">{{topic.title}}</text>
- </view>
- <view class="attr">{{topic.subtitle}}</view>
- </view>
- </view>
- <view class="rater">
- <text class="rater-title">评分</text>
- <block wx:for="{{stars}}" wx:key="*this" wx:for-item="item">
- <van-icon name="star" bindtap="selectRater" color="#ab956d" data-star="{{item}}" wx:if="{{item < star}}"/>
- <van-icon name="star-o" bindtap="selectRater" data-star="{{item}}" wx:else/>
- </block>
- <text class="rater-desc">{{starText}}</text>
- </view>
- <view class="input-box">
- <textarea class="content" focus="true" bindinput="bindInputValue" maxlength="140" placeholder="留言经过筛选后,对所有人可见" />
- <text class="count">{{140 - content.length}}</text>
- </view>
- <view class="weui-uploader">
- <view class="weui-uploader__hd">
- <view class="weui-uploader__title">图片上传</view>
- <view class="weui-uploader__info">{{picUrls.length}}/{{files.length}}</view>
- </view>
- <view class="weui-uploader__bd">
- <view class="weui-uploader__files" id="uploaderFiles">
- <block wx:for="{{files}}" wx:key="*this">
- <view class="weui-uploader__file" bindtap="previewImage" id="{{item}}">
- <image class="weui-uploader__img" src="{{item}}" mode="aspectFill" />
- </view>
- </block>
- <view class="weui-uploader__input-box">
- <view class="weui-uploader__input" bindtap="chooseImage"></view>
- </view>
- </view>
- </view>
- </view>
- <view class="btns">
- <view class="close" bindtap="onClose">取消</view>
- <view class="post" bindtap="onPost">发表</view>
- </view>
- </view>
- </view>
|