headImg.vue 1021 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="ezy-my-page">
  3. <img :src="userImg" alt="">
  4. <view @click="openXiangce">相册</view>
  5. <view @click="handleBack">取消</view>
  6. </view>
  7. </template>
  8. <script setup>
  9. import agreeContentDialog from '@/pages/login/agreeContentDialog.vue';
  10. import {
  11. toast,
  12. getUserIdentity
  13. } from "@/utils/common";
  14. import cacheManager from '@/utils/cacheManager.js';
  15. import {
  16. myInfo,
  17. } from '@/api/my.js'
  18. import {
  19. onLoad
  20. } from '@dcloudio/uni-app';
  21. import {
  22. reactive,
  23. ref
  24. } from "vue";
  25. import {
  26. onShow
  27. } from '@dcloudio/uni-app';
  28. let userImg = ref(null);
  29. function handleBack() {
  30. uni.redirectTo({
  31. url: '/pages/my/yingyongshezhi'
  32. })
  33. }
  34. function openXiangce() {
  35. }
  36. function isIOSorAndroid() {
  37. const systemInfo = uni.getSystemInfoSync();
  38. console.log('systemInfo', systemInfo);
  39. if (systemInfo.platform == 'ios') {
  40. return currentPlatform.value = 'ios'
  41. } else {
  42. return currentPlatform.value = 'android'
  43. }
  44. }
  45. onLoad((options) => {
  46. isIOSorAndroid()
  47. })
  48. </script>