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

        <view class="line"></view>
        <!--(0全部,2待处理,4已拼成,5已取消,6已完成)-->
        <view class="state1">
            <view class="circle change"></view>
            <text>已拍下</text>
        </view>
        <view class="state2">
            <view class="circle {{order_detail.status === 4 ||order_detail.status === 5 ?'change':''}}"></view>
            <text wx:if="{{order_detail.status === 5}}">已取消</text>
            <text wx:if="{{order_detail.status === 4}}">已拼成</text>
            <text wx:if="{{order_detail.status === 2}}" class="{{order_detail.status === 2?'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 === 4 || order_detail.status === 2 ||order_detail.status === 5}}" 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>
            <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>