cm-attributes.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template name="cm-attributes">
  2. <!-- 商品详情价格判断 -->
  3. <view class="cm-attributes">
  4. <view class="wrap-active" v-if="product.actStatus == 1">
  5. <text>活动时间:</text>
  6. <text>{{ product.beginTime }} ~ {{ product.endTime }}</text>
  7. </view>
  8. <view class="wrap-label" v-if="product.tagsList.length>0">
  9. <view class="label-a tui-skeleton-fillet" v-for="(label,index) in product.tagsList" :key="index">{{label}}</view>
  10. </view>
  11. <view class="wrap-label" v-if="goodsData.isNoneDisabled">
  12. <view class="isLower">此商品已{{goodsData.disabledText}},请浏览以下推荐商品~</view>
  13. </view>
  14. <view class="wrap-info">
  15. <view class="info-viewT" :class="goodsData.isNoneDisabled ? 'none' : ''">
  16. <view class="info-viewL tui-skeleton-fillet">品牌:<text>{{product.brandName == null? '其他' : product.brandName}}</text></view>
  17. <view class="info-viewR tui-skeleton-fillet">包装规格:<text>{{product.unit}}</text></view>
  18. </view>
  19. </view>
  20. <view class="wrap-seve" :class="goodsData.isNoneDisabled ? 'none' : ''">
  21. <text class="tui-skeleton-rect">服务:</text>
  22. <text class="iconfont icon-dui tui-skeleton-rect"><text class="text">无忧退货</text></text>
  23. <text class="iconfont icon-dui tui-skeleton-rect"><text class="text">快速退款</text></text>
  24. <text class="iconfont icon-dui tui-skeleton-rect"><text class="text">正品保证</text></text>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default{
  30. name:'cm-attributes',
  31. props:{
  32. product:{
  33. type:Object,
  34. default: {}
  35. },
  36. goodsData:{
  37. type:Object,
  38. default: {}
  39. },
  40. },
  41. data() {
  42. return{
  43. }
  44. },
  45. created() {
  46. },
  47. methods:{
  48. },
  49. }
  50. </script>
  51. <style lang="scss">
  52. </style>