operationBar.ttml
2.17 KB
<view class="container">
<block tt:for="{{data.links}}" tt:for-item="link" tt:key="order_code">
<block tt:if="{{link == 'closeOrder'}}">
<button class="button" formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">取消订单</button>
</block>
<block tt:if="{{link == 'readd'}}">
<view class="btn cancel" style="margin-left: 20rpx;" catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">再次购买</view>
</block>
<block tt:if="{{link == 'buyNow'}}">
<view class="btn pay" catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">立即付款</view>
</block>
<!--拼团购商品 的立即购买操作-->
<block tt:if="{{link == 'buyAtApp'}}">
<view class="btn pay" catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">立即付款</view>
</block>
<block tt:if="{{link == 'delOrder'}}">
<view class="btn cancel" catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">删除订单</view>
</block>
<block tt:if="{{link == 'getExpress'}}">
<view class="btn cancel" catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">查看物流</view>
</block>
<block tt:if="{{link == 'confirm'}}">
<button formType="submit" class="button pay" catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">确认收货</button>
</block>
<block tt:if="{{link == 'refundApply'}}"><!--link == 'refundApply'-->
<button class="button" formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">申请退款</button>
</block>
<block tt:if="{{link == 'afterService'}}">
<button formType="submit" class="pay" catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">申请售后</button>
</block>
<block tt:if="{{link == 'groupInvite'}}">
<button class="inviteBtn" size="{{defaultSize}}" plain='true' catchtap="onButtonTapped" data-item="{{data}}" data-link="{{link}}">查看拼团详情</button>
</block>
</block>
</view>