|
|
@@ -23,11 +23,15 @@ |
|
|
|
<view wx:else> |
|
|
|
<view class="not-data" wx:if="{{ listData.length < 1 }}"> |
|
|
|
<image class="not-data-img" src="/images/home/not-data.png" /> |
|
|
|
<view class="not-info">暂无需求</view> |
|
|
|
<view class="not-info">该用户没有发布任何需求</view> |
|
|
|
</view> |
|
|
|
<view wx:else> |
|
|
|
<view class="list-view" wx:for="{{ listData }}" wx:key="*this"> |
|
|
|
<listItem item="{{ item }}" pageStatus="myRelease"/> |
|
|
|
<view class="forced-removal" wx:if="{{ item.state == -2 }}"> |
|
|
|
<image class="forced-removal-img" src="/images/home/forced-removal-icon.png" data-outreason="{{ item.outReason }}" bindtap="showOutReason"/> |
|
|
|
已强制下架 |
|
|
|
</view> |
|
|
|
<view class="foot-btn"> |
|
|
|
<van-button |
|
|
|
plain |
|
|
@@ -37,12 +41,12 @@ |
|
|
|
class="foot-van-btn" |
|
|
|
data-item="{{ item }}" |
|
|
|
bindtap="productIsOnTop" |
|
|
|
wx:if="{{ item.state != -1 }}" |
|
|
|
wx:if="{{ item.state != -1 && item.state != -2}}" |
|
|
|
> |
|
|
|
{{ item.isOnTop ? '取消置顶' : '置顶' }} |
|
|
|
</van-button> |
|
|
|
<van-button plain type="info" size="small" round class="foot-van-btn" data-item="{{ item }}" bindtap="productEdit">修改</van-button> |
|
|
|
<van-button plain type="info" size="small" round class="foot-van-btn" data-item="{{ item }}" bindtap="productRelease"> |
|
|
|
<van-button plain type="info" size="small" round class="foot-van-btn" data-item="{{ item }}" bindtap="productRelease" wx:if="{{ item.state != -2}}"> |
|
|
|
{{ item.state == 0 ? '下架' : '上架' }} |
|
|
|
</van-button> |
|
|
|
<van-button plain type="info" size="small" round class="foot-van-btn" data-item="{{ item }}" bindtap="productDel">删除</van-button> |