index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="myIndex">
  3. <!-- 个人信息 -->
  4. <view class="myIndex_header">
  5. <view class="myIndex_header_icon">
  6. <image src="../../static/header.png" class="header_icon"></image>
  7. </view>
  8. <view class="myIndex_header_info">
  9. <view class="myIndex_header_name">
  10. <view class="myIndex_header_name_text">王*军</view>
  11. <image :src="eyeIcon.nowIcon" class="myIndex_header_eyeIcon"></image>
  12. </view>
  13. <view class="myIndex_header_address">上海市黄浦区*******</view>
  14. </view>
  15. </view>
  16. <!-- 菜单列表 -->
  17. <view>
  18. <uni-list>
  19. <uni-list-item thumb="/static/user_info.png" showArrow title="个人信息"/>
  20. <uni-list-item thumb="/static/about.png" showArrow title="关于我们"/>
  21. </uni-list>
  22. </view>
  23. </view>
  24. </template>
  25. <script setup>
  26. import http from '@/utils/request';
  27. import { ref,reactive } from "vue";
  28. import {onLoad,onShow,onUnload,onPullDownRefresh} from "@dcloudio/uni-app";
  29. const eyeIcon=reactive({
  30. nowIcon:'',
  31. showIcon:'/static/whiteDisplay.png',
  32. hideIcon:'/static/whiteHide.png'
  33. })
  34. onShow(()=>{
  35. eyeIcon.nowIcon=eyeIcon.hideIcon
  36. })
  37. </script>
  38. <style lang="scss" scoped>
  39. @import './index.scss'
  40. </style>