mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 03:48:47 +08:00
返现插件优化
This commit is contained in:
parent
9f343861e4
commit
00811f746d
@ -144,6 +144,19 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
// 订单详情
|
||||
list_submit_order_event(e) {
|
||||
var oid = e.currentTarget.dataset.oid || null;
|
||||
if (oid != null)
|
||||
{
|
||||
wx.navigateTo({
|
||||
url: "/pages/user-order-detail/user-order-detail?id="+oid
|
||||
});
|
||||
} else {
|
||||
app.showToast('订单id有误');
|
||||
}
|
||||
},
|
||||
|
||||
// 立即结算事件
|
||||
list_submit_settlement_event(e) {
|
||||
var index = e.currentTarget.dataset.index || 0;
|
||||
|
@ -10,7 +10,7 @@
|
||||
<view class="data-list">
|
||||
<view class="item bg-white spacing-mb" wx:if="{{data_list.length > 0}}" wx:for="{{data_list}}" wx:key="key">
|
||||
<view class="base oh br-b">
|
||||
<text class="cr-666">{{item.add_time_time}}</text>
|
||||
<text class="cr-666">{{item.add_time}}</text>
|
||||
<text class="fr cr-main">{{item.status_name}}</text>
|
||||
</view>
|
||||
<navigator url="/pages/plugins/excellentbuyreturntocash/profit-detail/profit-detail?id={{item.id}}" hover-class="none">
|
||||
@ -37,8 +37,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</navigator>
|
||||
<view wx:if="{{item.status == 2}}" class="operation tr br-t-dashed">
|
||||
<button class="cr-888 br" type="default" size="mini" hover-class="none" class="br" data-index="{{index}}" data-id="{{item.id}}" bindtap="list_submit_settlement_event">立即结算</button>
|
||||
<view class="operation tr br-t-dashed">
|
||||
<button class="br" type="default" size="mini" hover-class="none" data-oid="{{item.order_id}}" bindtap="list_submit_order_event">查看订单</button>
|
||||
<button wx:if="{{item.status == 2}}" class="settlement-submit" type="default" size="mini" hover-class="none" data-index="{{index}}" bindtap="list_submit_settlement_event">立即结算</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -38,9 +38,9 @@
|
||||
.data-list .item .operation {
|
||||
padding: 20rpx 10rpx;
|
||||
}
|
||||
.data-list .item .submit-order {
|
||||
border: 1px solid #e5e5e5;
|
||||
color: #888 !important;
|
||||
.data-list .item .settlement-submit {
|
||||
border: 1px solid #d2364c;
|
||||
color: #d2364c !important;
|
||||
}
|
||||
.data-list .item .operation button:not(:first-child) {
|
||||
margin-left: 30rpx;
|
||||
|
Loading…
Reference in New Issue
Block a user