| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <view class='product-window {{attribute.cartAttr==true?"on":""}} {{iSbnt?"join":""}}'>
- <view class='textpic acea-row row-between-wrapper'>
- <view class='pictrue'>
- <image src='{{productSelect.image}}'></image>
- </view>
- <view class='text'>
- <view class='line1'>{{productSelect.store_name}}</view>
- <view class='money font-color'>
- ¥<text class='num'>{{productSelect.price}}</text>
- <text class='stock' wx:if="{{isShow}}">库存: {{productSelect.stock}}</text>
- <text class='stock' wx:if="{{limitNum}}">限量: {{productSelect.quota_show}}</text>
- </view>
- </view>
- <view class='iconfont icon-guanbi' bindtap='close'></view>
- </view>
- <view class='productWinList'>
- <view class='item' wx:for='{{productAttr}}' wx:key='index'>
- <view class='title'>{{item.attr_name}}</view>
- <view class='listn acea-row row-middle'>
- <view class='itemn {{item.checked==itemn.attr ?"on":""}}' wx:for='{{item.attr_value}}'
- wx:for-item='itemn' wx:for-index='indexn' data-indexw='{{index}}' data-indexn='{{indexn}}'
- bindtap='tapAttr' wx:key='index'>{{itemn.attr}}</view>
- </view>
- </view>
- </view>
- <view class='cart'>
- <view class='title'>数量</view>
- <view class='carnum acea-row row-left'>
- <view class='reduce {{productSelect.cart_num <= 1 ? "on":""}}' bindtap='CartNumDes'>-</view>
- <view class='num'>
- <input type="number" value="{{productSelect.cart_num}}" data-name="productSelect.cart_num"
- bindinput="bindCode"></input>
- </view>
- <view wx:if="{{iSplus}}" class='plus {{productSelect.cart_num >= productSelect.stock? "on":""}}'
- bindtap='CartNumInt'>+</view>
- <view wx:else
- class='plus {{(productSelect.cart_num >= productSelect.quota_show) || (productSelect.cart_num >= productSelect.product_stock) || (productSelect.cart_num >= productSelect.num)? "on":""}}'
- bindtap='CartNumInt'>+</view>
- </view>
- </view>
- <view class="joinBnt bg-color" wx:if="{{iSbnt && productSelect.product_stock>0 &&productSelect.quota>0}}"
- bindtap="goCat">我要参团</view>
- <view class="joinBnt on" wx:elif="{{(iSbnt && productSelect.quota<=0)||(iSbnt &&productSelect.product_stock<=0)}}">
- 已售罄</view>
- </view>
- <view class='mask' catchtouchmove="true" hidden='{{attribute.cartAttr==false}}' bindtap='close'></view>
|