zjList.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <template>
  2. <view class="content">
  3. <view class="box" v-for="(item,index) in list">
  4. <view class="img">
  5. <image :src=item.img mode=""></image>
  6. </view>
  7. <view class="title-box">
  8. <view class="title-top">
  9. <view class="title-left">
  10. <text>{{item.name}}</text>
  11. <text>{{item.job}}</text>
  12. </view>
  13. <view class="zj">
  14. 专家
  15. </view>
  16. </view>
  17. <view class="title-bottom">
  18. <view class="img1">
  19. <image src="../../static/img/address.png" mode=""></image>
  20. </view>
  21. <text>{{item.address}}</text>
  22. </view>
  23. </view>
  24. </view>
  25. <ubottom class="ubottom"></ubottom>
  26. </view>
  27. </template>
  28. <script>
  29. import ubottom from '@/components/ubottom.vue'
  30. export default {
  31. components:{
  32. ubottom
  33. },
  34. data() {
  35. return {
  36. list:[
  37. {
  38. img:'../../static/error/missing-face.png',
  39. name:'古太医',
  40. job:'精通药理学病理中医神经学',
  41. address:'台州市椒江区市府大道',
  42. },
  43. {
  44. img:'../../static/error/missing-face.png',
  45. name:'古太医',
  46. job:'精通药理学病理中医神经学',
  47. address:'台州市椒江区市府大道',
  48. }
  49. ]
  50. };
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. page {
  56. width: 100%;
  57. height: 100%;
  58. margin: 0;
  59. padding: 0;
  60. }
  61. // .content{
  62. // width: 100%;
  63. // height: 100%;
  64. // }
  65. .box {
  66. margin: 20rpx 20rpx ;
  67. display: flex;
  68. width: 710rpx;
  69. height: 210rpx;
  70. background: #FFFFFF;
  71. box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 0, 0, 0.1);
  72. border-radius: 10rpx;
  73. .img {
  74. width: 180rpx;
  75. height: 180rpx;
  76. border-radius: 10rpx;
  77. margin-left: 10rpx;
  78. image {
  79. width: 100%;
  80. height: 100%;
  81. }
  82. }
  83. .title-box {
  84. display: flex;
  85. flex-direction: column;
  86. justify-content: space-around;
  87. margin-left: 20rpx;
  88. .title-top {
  89. display: flex;
  90. .title-left {
  91. width: 400rpx;
  92. display: flex;
  93. flex-direction: column;
  94. text:nth-child(1){
  95. font-size: 30rpx;
  96. font-family: PingFang SC;
  97. font-weight: bold;
  98. color: #333333;
  99. margin-top: -20rpx;
  100. line-height: 54rpx;
  101. }
  102. text:nth-child(2){
  103. font-size: 22rpx;
  104. font-family: PingFang SC;
  105. font-weight: 500;
  106. color: #666666;
  107. }
  108. }
  109. .zj {
  110. text-align: center;
  111. width: 66rpx;
  112. height: 40rpx;
  113. font-size: 24rpx;
  114. font-family: PingFang SC;
  115. font-weight: 500;
  116. color: #FFFFFF;
  117. background: linear-gradient(120deg, #FFC063, #FFA163);
  118. border-radius: 8rpx;
  119. line-height: 40rpx;
  120. }
  121. }
  122. .title-bottom {
  123. display: flex;
  124. .img1 {
  125. width: 17rpx;
  126. height: 24rpx;
  127. image {
  128. width: 100%;
  129. height: 100%;
  130. }
  131. }
  132. text {
  133. font-size: 24rpx;
  134. font-family: PingFang SC;
  135. font-weight: 500;
  136. color: #999999;
  137. }
  138. }
  139. }
  140. .ubottom{
  141. position: fixed;
  142. bottom: 0;
  143. }
  144. }
  145. </style>