cm-attributes.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template name="cm-attributes">
  2. <!-- 商品详情价格判断 -->
  3. <view class="cm-attributes">
  4. <view class="wrap-label" v-if="goodsData.isNoneDisabled">
  5. <view class="isLower">此商品已{{goodsData.disabledText}},请浏览以下推荐商品~</view>
  6. </view>
  7. <view class="wrap-info">
  8. <view class="info-viewT" :class="goodsData.isNoneDisabled ? 'none' : ''">
  9. <view class="info-viewL tui-skeleton-fillet">起订量:<text>{{product.minBuyNumber}}</text></view>
  10. <view class="info-viewR tui-skeleton-fillet">品牌:<text>{{product.brandName == null? '其他' : product.brandName}}</text></view>
  11. </view>
  12. <view class="info-viewT" :class="goodsData.isNoneDisabled ? 'none' : ''">
  13. <view class="info-viewL tui-skeleton-fillet">包装规格:<text>{{product.unit}}</text></view>
  14. <view class="info-viewR tui-skeleton-fillet">商品编码:<text>{{product.productCode}}</text></view>
  15. </view>
  16. <view class="info-viewT" :class="goodsData.isNoneDisabled ? 'none' : ''" v-if="product.productCode!=''&&product.productCode!=null">
  17. <view class="info-viewL tui-skeleton-fillet">库存:<text>{{product.stock}}</text></view>
  18. <view class="info-viewR tui-skeleton-fillet"></view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default{
  25. name:'cm-attributes',
  26. props:{
  27. product:{
  28. type:Object,
  29. default: {}
  30. },
  31. goodsData:{
  32. type:Object,
  33. default: {}
  34. },
  35. },
  36. data() {
  37. return{
  38. }
  39. },
  40. created() {
  41. },
  42. methods:{
  43. },
  44. }
  45. </script>
  46. <style lang="scss">
  47. .bmCode{
  48. float: left;
  49. width: 702rpx;
  50. padding: 20rpx 24rpx 0 24rpx;
  51. border-bottom: 1px solid #F8F8F8
  52. }
  53. </style>