comment.wxml 4.4 KB
<!--pages/my/comment/comment.wxml-->
<view>
        <view class='banner'>
                <view class='iconfont icon-fanhui' bindtap='get_back'></view>
                <view class='coupons'>发表评价</view>
        </view>
        <view class='content_item'>
                <view class='evaluation'>
                        <view>商品质量 “满意”</view>
                        <view class='icon_font'>
                                <view class='iconfont icon-pingjia {{arr[0].flag?"active":""}}' bindtap='changeStarId' data-index='{{1}}' data-flag='{{arr[0].flag}}'></view>
                                <view class='iconfont icon-pingjia {{arr[1].flag?"active":""}}' bindtap='changeStarId' data-index='{{2}}' data-flag='{{arr[1].flag}}'></view>
                                <view class='iconfont icon-pingjia {{arr[2].flag?"active":""}}' bindtap='changeStarId' data-index='{{3}}' data-flag='{{arr[2].flag}}'></view>
                                <view class='iconfont icon-pingjia {{arr[3].flag?"active":""}}' bindtap='changeStarId' data-index='{{4}} ' data-flag='{{arr[3].flag}}'></view>
                                <view class='iconfont icon-pingjia {{arr[4].flag?"active":""}}' bindtap='changeStarId' data-index='{{5}} ' data-flag='{{arr[4].flag}}'></view>
                        </view>
                </view>
                <view class='evaluation1'>
                        <view>物流服务 “无可挑剔”</view>
                        <view class='icon_font'>
                                <view class='iconfont icon-pingjia {{arr1[0].flag?"active":""}}' bindtap='changeStarIds' data-index='{{1}}' data-flag='{{arr1[0].flag}}'></view>
                                <view class='iconfont icon-pingjia {{arr1[1].flag?"active":""}}' bindtap='changeStarIds' data-index='{{2}}' data-flag='{{arr1[1].flag}}'></view>
                                <view class='iconfont icon-pingjia {{arr1[2].flag?"active":""}}' bindtap='changeStarIds' data-index='{{3}}' data-flag='{{ar1r[2].flag}}'></view>
                                <view class='iconfont icon-pingjia {{arr1[3].flag?"active":""}}' bindtap='changeStarIds' data-index='{{4}} ' data-flag='{{arr1[3].flag}}'></view>
                                <view class='iconfont icon-pingjia {{arr1[4].flag?"active":""}}' bindtap='changeStarIds' data-index='{{5}} ' data-flag='{{arr1[4].flag}}'></view>
                        </view>
                </view>
        </view>


        <view class='content_item'>
                <view class='item_list' wx:for='{{orderList}}' wx:key='{{item.id}}'>
                        <view>{{item.title}}*{{item.number}}</view>
                        <view class='content_btn'>
                                <view class='praise {{item.flag1?"active":""}}' bindtap='changeSupport' data-gid='{{item.id}}' >
                                        <view class='iconfont icon-zan'></view>
                                        <view>赞</view>
                                </view> 
                                <view class='step_on {{item.flag2?"active":""}}' bindtap='changeSupport2' data-gid='{{item.id}}'>
                                        <view class='iconfont icon-cai'></view>
                                        <view>踩</view>
                                </view>
                        </view>
                </view>
        </view>

        <view class='content_item1'>
                <view class='area_box'>
                        <textarea placeholder="亲,是否对商品和配送服务等还满意吗?" placeholder-class='area' class='text_area' maxlength='200' value='{{text}}' bindinput='limit'></textarea>
                        <text class="font_num">{{length}}/200</text>
                </view>

                <view class='img_box'>
                        <view class='content_img' wx:for='{{imgBox}}' wx:key='{{index}}' wx:for-index='index'>
                                <view class='iconfont icon icon-quxiao' data-index='{{item}}' bindtap='deleteImg'></view>
                                <image src='{{item}}'></image>
                        </view>
                        <view class='content_img' bindtap='changePhoto' wx:if='{{imgBox.length<9}}'>
                                <view class='iconfont icon-jia'></view>
                        </view>
                </view>
        </view>


        <view class='bottom_btn' bindtap='submitComment'>
                <view class='submit_btn'>提交</view>
        </view>
</view>