complain.wxml
3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!--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>已拍下</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>