BookItem.wxml 1.7 KB

1
  1. <view class="book-item data-v-39153744"><view class="book-info data-v-39153744"><u-image vue-id="e990af30-1" width="140rpx" height="196rpx" src="{{book.cover}}" mode="aspectFill" class="data-v-39153744" bind:__l="__l"></u-image><view class="book-detail data-v-39153744"><view class="top-info data-v-39153744"><view class="book-title data-v-39153744">{{book.bookName}}</view><view class="book-tags data-v-39153744"><block wx:if="{{book.suit==1}}"><text class="tzs tag-text data-v-39153744">套装书</text></block><block wx:if="{{book.maxNum>1}}"><text class="kmdb tag-text data-v-39153744">可卖多本</text></block></view></view><view class="flex flex-j-b flex-a-c data-v-39153744"><view class="book-price data-v-39153744">{{"回收价: ¥"+recycleMoney}}</view><u-number-box class="number-box data-v-39153744" vue-id="e990af30-2" bg-color="#38c148" color="#ffffff" min="{{1}}" max="{{book.maxNum||40}}" value="{{book.num}}" data-event-opts="{{[['^blur',[['onQuantityChange']]],['^minus',[['addReduceNum',[-1]]]],['^plus',[['addReduceNum',[1]]]],['^input',[['__set_model',['$0','num','$event',[]],['book']]]]]}}" bind:blur="__e" bind:minus="__e" bind:plus="__e" bind:input="__e" bind:__l="__l"></u-number-box></view></view><view data-event-opts="{{[['tap',[['onDelete',['$event']]]]]}}" class="delete-btn data-v-39153744" bindtap="__e"><u-icon vue-id="e990af30-3" name="close" size="26" color="#999" class="data-v-39153744" bind:__l="__l"></u-icon></view></view><common-dialog vue-id="e990af30-4" title="温馨提示" data-ref="deleteDialog" data-event-opts="{{[['^confirm',[['confirmDelete']]]]}}" bind:confirm="__e" class="data-v-39153744 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><text class="data-v-39153744">确定删除这本图书吗?</text></common-dialog></view>