移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

60 lines
2.0 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. title="村民画像"
  5. left-arrow
  6. @click-left="$router.back(-1)"
  7. >
  8. </van-nav-bar>
  9. <van-list
  10. finished-text="没有更多了"
  11. >
  12. <van-swipe-cell v-for="(item,index) in list" :key="index">
  13. <van-cell :title="'户编号:'+item.name1" center class="van-cell-group">
  14. <template #icon>
  15. <van-icon name="../../../static/images/onlineHome/myIcon1.png" size="22" color="#FF4646" style="margin-right: 10px;" />
  16. </template>
  17. <template #label>
  18. <p><span>{{item.name2}}</span><i style="margin-right: 30px;"></i>{{item.name3}}<i style="margin-right: 30px;"></i>{{item.name4}}</p>
  19. </template>
  20. </van-cell>
  21. </van-swipe-cell>
  22. </van-list>
  23. </div>
  24. </template>
  25. <script>
  26. import onlineHomeIndex from "../onlineHomeIndex";
  27. export default {
  28. components: {
  29. onlineHomeIndex
  30. },
  31. name: "farmerPortrait",
  32. data() {
  33. return {
  34. list:[{name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'},
  35. {name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'},
  36. {name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'},
  37. {name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'},
  38. {name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'},
  39. {name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'},
  40. {name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'},
  41. {name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'},
  42. {name1:'53123123123123',name2:'张三',name3:'男',name4:'53岁'}],
  43. finished: false,
  44. loading: false,
  45. };
  46. },
  47. methods: {
  48. getList(){
  49. },
  50. },
  51. }
  52. </script>
  53. <style scoped>
  54. >>> .van-cell-group{
  55. width: 96%;margin:1% 2%;border-radius: 8px;overflow: hidden;padding-top: 20px;padding-bottom: 20px;box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  56. }
  57. </style>