| | |
| | | 张 |
| | | </view> |
| | | <view class="card-left__utils"> |
| | | <u-button @tap.stop="receiveClick(item)" text="领取" type="primary" v-if="item.carNum != 0" shape="circle"></u-button> |
| | | <u-button text="转发" type="primary" @tap.stop="forwardClick(item)" shape="circle" v-if="item.cars2 != 0"></u-button> |
| | | <u-button @tap.stop="receiveClick(item)" text="领取" type="primary" v-if="item.carNum - item.cars2 != 0" shape="circle"></u-button> |
| | | <u-button text="转发" type="primary" @tap.stop="forwardClick(item)" shape="circle" v-if="item.carNumSurplus1 != 0"></u-button> |
| | | </view> |
| | | </template> |
| | | <template v-slot:right-top> |
| | |
| | | <text class="lingqu" @tap.stop="numInput(item.id)">{{ item.receiveNum || '_______' }}</text> |
| | | 张 |
| | | </view> --> |
| | | <view v-if="item.cars == item.cars2 ? false : true">剩余{{ item.carNum - item.cars2 }}张</view> |
| | | <view v-if="item.carNum == item.cars2 ? false : true">剩余{{ item.carNum - item.cars2 }}张</view> |
| | | <view v-else>已领完</view> |
| | | </view> |
| | | </view> |
| | |
| | | duration: 1000 |
| | | }); |
| | | } else { |
| | | this.$u.toast(res.data ? res.data : '领取失败'); |
| | | this.$u.toast(res.msg ? res.msg : '领取失败'); |
| | | } |
| | | }); |
| | | } else { |