index.wxml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <view class="product-item" wx:for="{{list}}" wx:key="sa_quotedprice_itemsid">
  2. <navigator class="product" url="#">
  3. <view class="mian">
  4. <view class="img" data-file="{{item.attinfos}}" catchtap="viewImage">
  5. <van-image width="100%" height="100%" src="{{item.cover}}" use-loading-slot use-error-slot lazy-load>
  6. <van-loading slot="loading" type="spinner" size="20" vertical />
  7. <text slot="error" style="font-size: 24rpx;">暂无图片</text>
  8. </van-image>
  9. </view>
  10. <view class="dec">
  11. <view class="title line-1">
  12. {{item.itemname}}
  13. </view>
  14. <view class="subfield">
  15. 编号:{{item.itemno}}
  16. </view>
  17. <view class="subfield">
  18. <text class="line-1" style="margin-right: 6rpx;">品牌:{{item.brandName}}</text>
  19. <text class="line-1">产品类别:{{item.className}}</text>
  20. </view>
  21. <view class="subfield">
  22. <text class="line-1" style="margin-right: 6rpx;">规格:{{item.spec||' --'}}</text>
  23. <text class="line-1">型号:{{item.model||' --'}}</text>
  24. </view>
  25. <view class="subfield">
  26. <text class="line-1" style="margin-right: 6rpx;">牌价:{{item.showMarketprice||' --'}}</text>
  27. <text class="line-1" style="margin-right: 6rpx;">单价差额:<text style="color: {{(item.mindiscountrate-0)>(item.discountrate-0)?'var(--error)':'var(--success)'}};">{{item.discountDifferenceAmount||' --'}}</text></text>
  28. </view>
  29. <view class="subfield">
  30. <text class="line-1" style="margin-right: 6rpx;">最低授权折扣:{{item.mindiscountrate}}%</text>
  31. <text class="line-1" style="margin-right: 6rpx;">是否特价:<text style="color: {{(item.mindiscountrate-0)>(item.discountrate-0)?'var(--error)':'var(--success)'}};">{{(item.mindiscountrate-0)>(item.discountrate-0)?'是':'否'}}</text></text>
  32. </view>
  33. </view>
  34. <view class="delete" wx:if="{{disabled}}" data-item="{{item}}" catchtap="deleteProduct">
  35. <text class="iconfont icon-guanlian-shanchu" />
  36. </view>
  37. </view>
  38. </navigator>
  39. <view class="bot">
  40. <view class="row">
  41. <view style="margin-right: 40rpx;">
  42. <view class="label">数量({{item.unitname}}):</view>
  43. <input class="input" style="width: 180rpx;" type="digit" disabled="{{!disabled}}" value="{{item.qty}}" data-name="qty" data-index="{{index}}" bindblur="onBlur" />
  44. </view>
  45. <view>
  46. <view class="label">折扣(%):</view>
  47. <input class="input" style="width: 170rpx;" type="digit" disabled="{{!disabled}}" value="{{item.discountrate}}" data-name="discountrate" data-index="{{index}}" bindblur="onBlur" />
  48. </view>
  49. </view>
  50. <view class="row">
  51. <view>
  52. <view class="label">单价(元):</view>
  53. <input class="input" style="width: 180rpx;" type="digit" disabled="{{!disabled}}" value="{{item.price}}" data-name="price" data-index="{{index}}" bindblur="onBlur" />
  54. </view>
  55. <view class="money">
  56. 金额:<text>{{item.showAmount}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <My_empty wx:if="{{list.length==0}}" />