wangguoyu 2 kuukautta sitten
vanhempi
commit
74a556847b
2 muutettua tiedostoa jossa 62 lisäystä ja 0 poistoa
  1. 5 0
      pages.json
  2. 57 0
      pages/my/headImg.vue

+ 5 - 0
pages.json

@@ -84,6 +84,11 @@
 			"style": {
 				"navigationStyle": "custom"
 			}
+		},{
+			"path": "pages/my/headImg",
+			"style": {
+				"navigationStyle": "custom"
+			}
 		}, {
 			"path": "pages/my/xuexiJilu",
 			"style": {

+ 57 - 0
pages/my/headImg.vue

@@ -0,0 +1,57 @@
+<template>
+	<view class="ezy-my-page">
+		<img :src="userImg" alt="">
+
+		<view @click="openXiangce">相册</view>
+		<view @click="handleBack">取消</view>
+	</view>
+</template>
+
+<script setup>
+	import agreeContentDialog from '@/pages/login/agreeContentDialog.vue';
+	import {
+		toast,
+		getUserIdentity
+	} from "@/utils/common";
+	import cacheManager from '@/utils/cacheManager.js';
+	import {
+		myInfo,
+	} from '@/api/my.js'
+	import {
+		onLoad
+	} from '@dcloudio/uni-app';
+	import {
+		reactive,
+		ref
+	} from "vue";
+	import {
+		onShow
+	} from '@dcloudio/uni-app';
+
+	let userImg = ref(null);
+
+	function handleBack() {
+		uni.redirectTo({
+			url: '/pages/my/yingyongshezhi'
+		})
+	}
+
+	function openXiangce() {
+
+	}
+
+	function isIOSorAndroid() {
+		const systemInfo = uni.getSystemInfoSync();
+
+		console.log('systemInfo', systemInfo);
+
+		if (systemInfo.platform == 'ios') {
+			return currentPlatform.value = 'ios'
+		} else {
+			return currentPlatform.value = 'android'
+		}
+	}
+	onLoad((options) => {
+		isIOSorAndroid()
+	})
+</script>