argument.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="wrapper">
  3. <view class="paddingY18" style="border-bottom: 2rpx solid #EEEEEE">
  4. <view class="flex-align paddingT8">
  5. <view class="color-2 font2" style=" width: 92rpx">参数</view>
  6. <scroll-view scroll-x class="scroll-wrapper flex1">
  7. <view v-for="item in parameter" :key="item.label" class="item">
  8. <view class="color-2">{{item.label}}</view>
  9. <view class="paddingT8 color-1">{{item.value}}</view>
  10. </view>
  11. </scroll-view>
  12. </view>
  13. <view class="paddingT20 flex-align">
  14. <view class="color-2 font2 flex-shrink0" style=" width: 92rpx">IP</view>
  15. <text class="color-1 font4">{{data.worksName}}</text>
  16. </view>
  17. <view class="paddingT20 flex-align" v-if="data.brandName">
  18. <view class="color-2 font2" style=" width: 92rpx">品牌</view>
  19. <text class="color-1 font4">{{data.brandName}}</text>
  20. </view>
  21. </view>
  22. <view class="paddingY15 flex-align">
  23. <view class="flex1">
  24. <view class="flex-align-between">
  25. <image :src="resource.vip_title2" style="width: 224rpx; height: 26rpx" />
  26. <view class="font1 marginL10 hint-intro">
  27. 专业包装<text class="marginL2">{{ depositData.serviceItem && depositData.serviceItem.split(',').map(item => serviceList[item.trim()]).join(' ') || '' }}</text>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import resource from '@/utils/resource'
  36. export default {
  37. props: {
  38. data: Object,
  39. depositData: Object
  40. },
  41. data() {
  42. return {
  43. resource,
  44. parameter: [],
  45. serviceList: {
  46. 'SEVEN_DAYS': '支持七天无理由退换货',
  47. 'SEVEN_DAYS_NO': '不支持七天无理由退换货',
  48. 'FREE_SHIP': '包邮',
  49. 'FREIGHT_COLLECT': '到付'
  50. }
  51. }
  52. },
  53. mounted() {
  54. if (this.data.parameter) {
  55. this.parameter = JSON.parse(this.data.parameter)
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. .wrapper {
  62. margin-top: 20rpx;
  63. background: #fff;
  64. border-radius: 20rpx;
  65. padding: 0 28rpx;
  66. .scroll-wrapper {
  67. overflow: hidden;
  68. white-space: nowrap;
  69. width: 100%;
  70. .item {
  71. display: inline-block;
  72. font-size: 28rpx;
  73. min-width: 152rpx;
  74. padding: 0 20rpx;
  75. border-right: 2rpx solid #eeeeee;
  76. &:first-child {
  77. padding-left: 0;
  78. }
  79. }
  80. }
  81. }
  82. .hint-intro {
  83. overflow: scroll;
  84. white-space: nowrap;
  85. }
  86. .hint-intro::-webkit-scrollbar {
  87. display: none;
  88. }
  89. </style>