<template>
	<!-- <addressSelectedVue></addressSelectedVue> -->
</template>

<script setup>
import { onMounted } from 'vue';
	onMounted(() => {
		getUrl()
	})
	
	const getUrl = async () => {
		const res = await uni.request({
			url: 'http://123.249.108.160:8888/api/file/downloadFile',
			method: 'GET',
			data: {
				objectKey: 'feiyi/test/2/ZFdyLLBg-VCG211334705187.png'
			}
		})
		console.log(base64Data)
		
	}
	// import { onMounted } from 'vue';
	// import addressSelectedVue from '../Shopping-cart/component/addressSelected.vue';
	
	// onMounted(() => {
	// 	console.log(Decode64(Encode64(`<p style="text-align: center;">富文本测试</p>`)))
	// })
	
	
	// /**
	//   * 编码base64
	//   */
	// function Encode64(str) {
	//   return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g,
	//     function toSolidBytes(match, p1) {
	//       return String.fromCharCode('0x' + p1);
	//     }));
	// }
	// /**
	// * 解码base64
	// */
	// function Decode64(str) {
	//   return decodeURIComponent(atob(str).split('').map(function (c) {
	//     return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
	//   }).join(''));
	// }
	
</script>

<style scoped lang="scss">
 
</style>
