healthAdvice.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="column" style="height: 100%;" >
  3. <view class="justify-center bgf" >
  4. <u-tabs :list="list1" lineWidth='30' :lineColor="color"
  5. @click="acttab"></u-tabs>
  6. </view>
  7. <view class="list-img flex-1 scrolly p20" >
  8. <view class="bgf radius20 list mtb10" v-for="item in 9" >
  9. <view class="posimg">
  10. <image src="https://beiliyo-2025.obs.cn-north-4.myhuaweicloud.com/fs/20250116/1737005549926.png" mode="aspectFill" class="img"></image>
  11. </view>
  12. <view class="p20">
  13. <view>胡斌</view>
  14. <view class="color9 fs24">
  15. 注册营养师
  16. </view>
  17. <view class="mt8 justify-between align-center zan" >
  18. <view class="justify-start align-center ">
  19. <view class="color6 fs24 zixun">点击咨询</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. src:'',
  32. zanact:true,
  33. color:'#018C39',
  34. list1: [{
  35. name: '健康',
  36. }, {
  37. name: '养生',
  38. }],
  39. }
  40. },
  41. methods: {
  42. acttab(e){
  43. console.log(e)
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .list-img{
  50. display: flex;
  51. flex-wrap: wrap;
  52. justify-content: space-between;
  53. .list{
  54. width: 48%;
  55. }
  56. }
  57. .img{
  58. width: 100%;
  59. height: 350rpx;
  60. }
  61. .ve{
  62. width: 60rpx;
  63. height: 60rpx;
  64. position: absolute;
  65. bottom: 50%;
  66. left: 40%;
  67. }
  68. .zan{
  69. flex-direction: row-reverse;
  70. .zixun{
  71. background-color: #018C39;
  72. color: #fff;
  73. padding:8rpx 20rpx;
  74. border-radius: 20rpx;
  75. }
  76. }
  77. </style>