|
|
@@ -36,7 +36,7 @@
|
36
|
36
|
<view class="right">
|
37
|
37
|
<view class="top">
|
38
|
38
|
<text class="title">{{ goodsInfo.name }}</text>
|
39
|
|
- <text class="inventory" wx:if="{{ goodsInfo.inventory > 0 }}"
|
|
39
|
+ <text class="inventory" wx:if="{{ goodsInfo.inventory > 0 && goodsInfo.goods_status != 2 }}"
|
40
|
40
|
>仅剩{{ goodsInfo.inventory }}个</text
|
41
|
41
|
>
|
42
|
42
|
<text class="inventory" wx:else>库存不足</text>
|
|
|
@@ -65,14 +65,14 @@
|
65
|
65
|
<import src="/template/btn/btn.wxml"></import>
|
66
|
66
|
<view class="btn-footer">
|
67
|
67
|
<view
|
68
|
|
- class="btn-footer-container {{hasAddress && goodsInfo.inventory > 0 ? '' : 'btn-footer-container-disabled'}}">
|
69
|
|
- <view class="left" wx:if="{{ total > 0 & goodsInfo.inventory > 0 }}">
|
|
68
|
+ class="btn-footer-container {{hasAddress && goodsInfo.inventory > 0 && goodsInfo.goods_status != 2 ? '' : 'btn-footer-container-disabled'}}">
|
|
69
|
+ <view class="left" wx:if="{{ total > 0 & goodsInfo.inventory > 0 && goodsInfo.goods_status != 2 }}">
|
70
|
70
|
<text class="money">¥{{ total / 100 }}</text>
|
71
|
71
|
</view>
|
72
|
72
|
<view class="right">
|
73
|
73
|
<template
|
74
|
74
|
is="iconBtn"
|
75
|
|
- data="{{btnClass: 'button4', btnTxt: goodsInfo.inventory > 0 ? '立即支付' : '库存不足', disabled: !(hasAddress && goodsInfo.inventory > 0), action: 'confirm'}}"
|
|
75
|
+ data="{{btnClass: 'button4', btnTxt: goodsInfo.inventory > 0 && goodsInfo.goods_status != 2 ? '立即支付' : '库存不足', disabled: !(hasAddress && goodsInfo.inventory > 0 && goodsInfo.goods_status != 2), action: 'confirm'}}"
|
76
|
76
|
></template>
|
77
|
77
|
</view>
|
78
|
78
|
</view>
|