mypublish.wxml
6.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!-- 我的发布页面 -->
<view class="nav publish_nav">
<view class="nav_item {{currentTab==0?'active':''}}" data-current="0" bindtap="navbarTap" wx:key=""><text></text>我的发布</view>
<view class="nav_item {{currentTab==1?'active':''}}" data-current="1" bindtap="navbarTap" wx:key=""><text></text>我的收藏</view>
<view class="nav_item {{currentTab==2?'active':''}}" data-current="2" bindtap="navbarTap" wx:key=""><text></text>消息提醒</view>
</view>
<!-- begin:我的发布 -->
<view wx:if="{{currentTab==0}}">
<block wx:if="{{release.length == 0}}"><text class='release_none'>暂无数据</text></block>
<block wx:else>
<view class="good_list">
<block wx:for="{{release}}" wx:key="" >
<view class="good_list_item" bindtap='skipDetail' data-goods_id="{{item.goods_id}}" data-status="{{item.status}}" >
<!-- begin:未审核 -->
<block wx:if="{{item.status == 0}}">
<view class='statu_btn notPass_box'>未审核</view>
</block>
<!-- begin:审核通过 -->
<block wx:if="{{item.status == 1}}">
<view class='statu_btn pass_box'>审核通过</view>
</block>
<!-- begin:审核未通过 -->
<block wx:if="{{item.status == 2}}">
<view class='statu_btn notPass_box'>未通过</view>
</block>
<!-- begin:已转出 -->
<block wx:if="{{item.status == 3}}">
<view class='out_box'><image src='http://bronet.ibaby88.cn/cicon12@2x.png'></image></view>
</block>
<!-- begin:已下架 -->
<block wx:if="{{item.status == 4}}">
<view class='out_box'><text class='iconfont icon-yixiajia'></text></view>
</block>
<view class="good_list_img">
<image src="{{item.images[0]}}"></image>
</view>
<view class="good_list_content">
<view class="good_list_content_name">{{item.title}}</view>
<view class="good_list_content_price">
<view class="price_num">¥{{item.price}}</view>
<view class="good_address">
<text class="price_address city_address">{{item.province}}</text>
<text class="price_address detail_address">{{item.city}}</text>
<text class="price_address detail_address">{{item.area}}</text>
</view>
</view>
<view class="good_list_use">
<view class="good_list_use_img">
<image src="{{item.avatar}}"></image>
</view>
<view class="good_list_use_name">{{item.user_nickname}}</view>
</view>
</view>
</view>
</block>
</view>
</block>
</view>
<!-- begin:我的收藏 -->
<view wx:if="{{currentTab==1}}">
<block wx:if="{{collect=='false'}}"><text class='release_none'>暂无数据</text></block>
<block wx:else>
<view class="good_list">
<block wx:for="{{collect}}" wx:key="">
<view class="good_list_item" bindtap='skipDetail' data-goods_id="{{item.goods_id}}">
<view class="good_list_img">
<image src="{{item.images[0]}}"></image>
</view>
<view class="good_list_content">
<view class="good_list_content_name">{{item.title}}</view>
<view class="good_list_content_price">
<view class="price_num">¥{{item.price}}</view>
<view class="good_address">
<text class="price_address city_address">{{item.city}}{{item.area}}</text>
<!-- <text class="price_address detail_address">{{item.village}}</text> -->
</view>
</view>
<view class="good_list_use">
<view class="good_list_use_img">
<image src="{{item.avatar}}"></image>
</view>
<view class="good_list_use_name">{{item.user_nickname}}</view>
</view>
</view>
</view>
</block>
</view>
</block>
</view>
<!-- begin:消息提醒 -->
<view wx:if="{{currentTab==2}}">
<view class='message_list' wx:for="{{content}}" wx:key="">
<view class='report_date'>{{item.create_date}}</view>
<view class='report_tab'>
<view class='mess_menu'>
<view class='report_comment'>{{item.activity}}商品有了新的评论</view>
<view class='mess_btn' bindtap='repleTap' data-replayid="{{item.id}}">回复</view>
</view>
<!-- begin:展开的内容 -->
<view class='report_con' wx:if="{{item.shows}}">
<view><text class='mess_name'>{{item.user_nickname}}评论:</text>{{item.content}}</view>
<view><text class='mess_name'>我的回复:</text>
<text wx:if="{{item.son}}">{{item.son[0].content}}</text>
</view>
</view>
<!-- begin:点击展开 -->
<view class='reply_box' bindtap='showHide' data-changeid="{{item.id}}">
<text class='reply_open' wx:if="{{item.shows}}">收起评论</text>
<text class='reply_open' wx:else>展开评论</text>
<image class='reply_img reply_rote' wx:if="{{item.shows}}" src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
<image class='reply_img' wx:else src='http://bronet.ibaby88.cn/aicon01@2x.png'></image>
</view>
</view>
</view>
</view>
<!-- begin:固定底部 -->
<view class="mypublish_foot">
<view class="mypublish_item" bindtap="used">
<view class="mypublish_img">
<image src="http://bronet.ibaby88.cn/nav11@2x.png"></image>
</view>
<view class="mypublish_name">淘好货</view>
</view>
<view class="mypublish_item" bindtap="sellidel">
<view class='center_box'>
<view class="sell_mypublish_img">
<image src="http://bronet.ibaby88.cn/nav13@2x.png"></image>
</view>
<view class="mypublish_name sellname">卖闲置</view>
</view>
</view>
<view class="mypublish_item">
<view class="mypublish_img">
<image src="http://bronet.ibaby88.cn/nav15@2x.png"></image>
</view>
<view class="mypublish_name mypublish">我的发布</view>
<view class="publishdot" wx:if="{{dot.length!=0}}"></view>
</view>
</view>
<!-- begin:我的回复弹层 -->
<view wx:if="{{repleState}}"></view>
<view class='reply_fn' catchtouchmove='true' wx:else>
<view class='reple_box'>
<view class='reple_title'>我的回复</view>
<textarea class='reple_area' placeholder='在此输入回复内容' bindinput="enterreplay"></textarea>
<view class='reple_btn' catchtap="subreply">提交</view>
<view class="iconfont icon-chahao cancel" bindtap="cancel"></view>
</view>
</view>