Authored by 李奇

订单详情页优惠券0.00不显示

import OrderListService from '../../pages/orderList/orderListService.js';
import OrderActionService from './orderActionService.js';
import event from '../../utils/event';
Component({
properties: {
show: {
... ...
... ... @@ -8,7 +8,7 @@
</view>
<block wx:else>
<scroll-view class="coupon-scroll" scroll-y>
<block wx:for="{{coupons}}" wx:key="index">
<block wx:for="{{coupons}}" wx:key="{{item.coupon_code}}">
<view class="coupon-item">
<view class="left">
<text class="value">{{item.coupon_value_str}}</text>
... ...
... ... @@ -117,8 +117,6 @@ Page({
data.buttons = data.buttons.filter(item => {
return item.code !== 'modify_address';
});
console.log(data.buttons)
}
if (data && data.buttons && data.buttons.length > 0) {
... ... @@ -183,7 +181,7 @@ Page({
}
router.go('logistics', params);
} else {
if (actionCode === 'cancel_order') {
if (actionCode === 'cancel_order' && this.data.data.isOffline !== 'Y') {
return ctx.setData({
cancelConfirm: true,
cancelOrderCode: orderCode
... ...
... ... @@ -43,8 +43,10 @@
<text class='order-detail-sum-grey-txt'>¥{{data.priceInfo.feePrice}}</text>
</view>
<view class='order-detail-count-view' wx:if="{{data.priceInfo.couponCutPrice}}">
<text class='order-detail-sum-grey-txt'>优惠券:</text>
<text class='order-detail-sum-grey-txt'>-¥{{data.priceInfo.couponCutPrice}}</text>
<block wx:if="{{data.priceInfo.couponCutPrice != '0.00' && data.priceInfo.couponCutPrice != '0'}}">
<text class='order-detail-sum-grey-txt'>优惠券:</text>
<text class='order-detail-sum-grey-txt'>-¥{{data.priceInfo.couponCutPrice}}</text>
</block>
</view>
<view class='order-detail-count-view'>
<text class='order-detail-sum-black-txt'>实际金额:</text>
... ...