complain.wxml 3.6 KB
<!--pages/order/complain/complain.wxml-->
<view class="content">
    <view class="state-box">

        <view class="line"></view>
        <!-- // (0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除-->
        <view class="state1">
            <view class="circle change"></view>
            <text wx:if="{{order_detail.sonType === 1}}">已发布</text>
            <text wx:if="{{order_detail.sonType === 2}}">已加入</text>
        </view>
        <view class="state2">
            <!--{{detail.status === 4 ||detail.status === 5 || detail.status === 6||detail.status === 8?'change':''}}-->
            <view class="circle change"></view>
            <text wx:if="{{order_detail.status === 5 || order_detail.status === 10}}">已取消</text>
            <text wx:if="{{order_detail.status === 11}}">已过期</text>
            <text wx:if="{{order_detail.status === 4|| order_detail.status === 6 || order_detail.status === 7 || order_detail.status === 8}}">已拼成</text>
            <text wx:if="{{order_detail.status === 2}}" class="{{order_detail.status === 2?'change-text':''}}">待拼成</text>
            <text wx:if="{{order_detail.status === 3}}" class="{{order_detail.status === 3?'change-text':''}}">未拼成</text>
        </view>
        <view class="state3">
            <view class="circle {{order_detail.status === 6?'change':''}}"></view>
            <text wx:if="{{order_detail.status === 6}}">已完成</text>
            <text wx:if="{{order_detail.status === 11 || order_detail.status === 4 || order_detail.status === 2 ||order_detail.status === 5|| order_detail.status === 3 ||order_detail.status === 8 || order_detail.status === 10}}" class="{{order_detail.status === 4 || order_detail.status === 2 ||order_detail.status === 5?'change-text':''}}">待完成</text>
        </view>
    </view>

    <view class="order-info">
        <text class="address text">{{order_detail.addr}}    {{order_detail.time}}</text>
        <view class="top">
            <view class="text">拼单发起者: </view>
            <!--<image src="../../../images/avatar@2x.png"></image>-->
            <image src="{{order_detail.userPic}}"></image>
            <image src="{{order_detail.userSex === 1?'../../../images/man.png':'../../../images/women.png'}}" class="sex-icon"></image>
            <view class="name text">{{order_detail.userName}}</view>
        </view>
        <text class="text">订单编号:{{order_detail.order_sn}}</text>
        <text class="text">交易时间:{{order_detail.create_time}}</text>
        <!--<text class="text">联系方式:{{order_detail.userTel || '暂无手机号'}}</text>-->

        <textarea maxlength="-1" placeholder="请填写您要投诉的内容" placeholder-class="placeholder"
            bindinput="inputContent"
        ></textarea>
    </view>


    <view class='upload_box'>
        <block wx:for="{{images}}" wx:for-item="image" wx:key="index">
            <view class='upload_img'>
                <view class='icon_box' catchtap="deleteImg" data-index="{{index}}">
                    <view class='iconfont icon-shanchu1'></view>
                </view>
                <image src='{{image}}' data-index="{{index}}" mode="aspectFill" bindtap="previewImg"></image>
            </view>
        </block>
        <view class='upload_img' bindtap="choose">
            <view class='iconfont icon-jia'></view>
            <text>添加照片</text>
        </view>
    </view>

    <view class="bottom" bindtap="submit">
        <text class="confirm-btn {{content===''?'gray':''}}">提交投诉</text>
    </view>
</view>