dmItemView.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <view class="item-content">
  3. <view class="item-row">
  4. <view class="item_left">
  5. <view class="line" style="height: calc(100% + 12rpx);"></view>
  6. <image style="margin-left: 18rpx;
  7. width: 38rpx;
  8. height: 38rpx;" src="../../static/icons/icon_address@2x.png"
  9. mode=""></image>
  10. </view>
  11. <view class="item_right">
  12. <text class="row-visit" style="
  13. flex: 1;
  14. font-size: 32rpx;
  15. font-family: Verdana, Verdana-Bold;
  16. font-weight: 700;
  17. line-height: 44rpx;
  18. color: #333333;">
  19. <text>{{row1Pre}}{{row1Line}}{{row1Title}}</text>
  20. <text v-if="productTypeDesc">({{productTypeDesc}})</text>
  21. </text>
  22. <text class="row-adv" style="font-size: 28rpx;
  23. font-family: Verdana, Verdana-Regular;
  24. font-weight: 400;
  25. text-align: right;
  26. line-height: 40rpx;
  27. color: #333333;">{{row1right }}</text>
  28. </view>
  29. </view>
  30. <view class="item-row" style="margin-top: 2rpx;">
  31. <view class="item_left">
  32. <view class="line" style="height: calc(100% + 20rpx);"></view>
  33. <image style="margin-left: 32rpx;margin-top: 10rpx;
  34. width: 10rpx;
  35. height: 10rpx;" src="../../static/icons/icon_point@2x.png"
  36. mode=""></image>
  37. </view>
  38. <view class="item_right">
  39. <text class="row-visit-time" style="flex: 1;
  40. font-size: 20rpx;
  41. font-family: Verdana, Verdana-Regular;
  42. font-weight: 400;
  43. text-align: left;
  44. color: #999999;
  45. line-height: 28rpx;">{{row2Pre}}{{row2Line}}{{row2Title}}</text>
  46. <text class="row-desc" style="line-height: 28rpx;
  47. font-size: 20rpx;
  48. font-family: Verdana, Verdana-Regular;
  49. font-weight: 400;
  50. text-align: left;
  51. color: #999999;">{{row2right}}</text>
  52. </view>
  53. </view>
  54. <view class="item-row" style="margin-top: 18rpx;margin-bottom: 20rpx;">
  55. <view class="item_left">
  56. <view class="line" style="height: calc(100% + 32rpx);" v-if='showRow4'></view>
  57. <image style="margin-left: 20rpx;
  58. width: 34rpx;
  59. height: 34rpx;" src="../../static/icons/icon_label@2x.png"
  60. mode=""></image>
  61. </view>
  62. <view class="item_right">
  63. <view class="row-follow-time" style="
  64. line-height: 34rpx;
  65. font-size: 24rpx;
  66. font-family: Verdana, Verdana-Regular;
  67. font-weight: 400;
  68. text-align: left;
  69. color: #333333;">{{row3Pre}}{{row3Line}}{{row3Title}}</view>
  70. </view>
  71. </view>
  72. <view class="item-row" style="margin-bottom: 20rpx;" v-if='showRow4'>
  73. <view class="item_left">
  74. <image class="row-img2" style="margin-left: 32rpx;margin-top: 12rpx;
  75. width: 10rpx;
  76. height: 10rpx;" src="../../static/icons/icon_point@2x.png"
  77. mode=""></image>
  78. </view>
  79. <view class="item_right">
  80. <text class="row-protext-time" style="
  81. font-size: 24rpx;
  82. line-height: 34rpx;
  83. font-family: Verdana, Verdana-Regular;
  84. font-weight: 400;
  85. text-align: left;
  86. color: #333333;">{{row4Pre}}{{row4Line}}{{row4Title}}{{row4Las}}</text>
  87. </view>
  88. </view>
  89. </view>
  90. </template>
  91. <script>
  92. export default {
  93. props: {
  94. row1Title: {
  95. type: String,
  96. default: '',
  97. },
  98. row1Pre: {
  99. type: String,
  100. default: '',
  101. },
  102. row1Line:{
  103. type: String,
  104. default: '',
  105. },
  106. row2Title: {
  107. type: String,
  108. default: '',
  109. },
  110. row2Pre: {
  111. type: String,
  112. default: '',
  113. },
  114. row2Line:{
  115. type: String,
  116. default: '',
  117. },
  118. row3Title: {
  119. type: String,
  120. default: '',
  121. },
  122. row3Pre: {
  123. type: String,
  124. default: '',
  125. },
  126. row3Line:{
  127. type: String,
  128. default: '',
  129. },
  130. row4Title: {
  131. type: [String,Number],
  132. default: '',
  133. },
  134. row4Pre: {
  135. type: String,
  136. default: '',
  137. },
  138. row4Las: {
  139. type: String,
  140. default: '',
  141. },
  142. row4Line:{
  143. type: String,
  144. default: '',
  145. },
  146. row1right: {
  147. type: String,
  148. default: '',
  149. },
  150. row2right: {
  151. type: String,
  152. default: '',
  153. },
  154. showRow4: {
  155. type: Boolean,
  156. default: false
  157. },
  158. productTypeDesc: {
  159. type: String,
  160. default: ''
  161. }
  162. },
  163. data() {
  164. return {}
  165. },
  166. mounted() {},
  167. methods: {}
  168. }
  169. </script>
  170. <style scoped lang="scss">
  171. .item-content {
  172. margin-top: 22rpx;
  173. padding: 0 30rpx;
  174. box-sizing: border-box;
  175. width: 100%;
  176. display: flex;
  177. flex-direction: column;
  178. .item-row {
  179. display: flex;
  180. .item_left {
  181. display: flex;
  182. width: 90rpx;
  183. position: relative;
  184. .line {
  185. position: absolute;
  186. left: 37rpx;
  187. top: 0rpx;
  188. width: 2rpx;
  189. background-color: #a7b3c6;
  190. }
  191. }
  192. .item_right {
  193. flex: 1;
  194. display: flex;
  195. justify-content: space-between;
  196. height: 100%;
  197. }
  198. }
  199. }
  200. </style>