|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<img :src="tempPhoto" class="face-animation" v-if="tempPhoto" ref="coverRef">
|
|
<img :src="tempPhoto" class="face-animation" v-if="tempPhoto" ref="coverRef">
|
|
|
|
|
|
- <div class="photo-layout">
|
|
|
|
|
|
+ <div class="photo-layout" v-if="disabledMap.photo">
|
|
<ButtonPane class="photo-btn fun-ctrl" size="80" @click="photo">
|
|
<ButtonPane class="photo-btn fun-ctrl" size="80" @click="photo">
|
|
<ui-icon type="photo" class="icon" />
|
|
<ui-icon type="photo" class="icon" />
|
|
</ButtonPane>
|
|
</ButtonPane>
|
|
@@ -25,9 +25,10 @@ import {basePoints} from '@/store/basePoint'
|
|
import {photos} from '@/store/photos'
|
|
import {photos} from '@/store/photos'
|
|
import { useSDK } from '@/hook/useLaser'
|
|
import { useSDK } from '@/hook/useLaser'
|
|
import {genUseLoading} from "@/hook";
|
|
import {genUseLoading} from "@/hook";
|
|
|
|
+import {disabledMap} from "@/hook/custom";
|
|
import {base64ToBlob, getId} from "@/utils";
|
|
import {base64ToBlob, getId} from "@/utils";
|
|
import {nextTick, ref} from "vue";
|
|
import {nextTick, ref} from "vue";
|
|
-import {api, uploadImage} from "@/store/sync";
|
|
|
|
|
|
+import {api, downloadImage, uploadImage} from "@/store/sync";
|
|
import {router, writeRouteName} from "@/router";
|
|
import {router, writeRouteName} from "@/router";
|
|
import {Pos, Pos3D} from "@/sdk";
|
|
import {Pos, Pos3D} from "@/sdk";
|
|
|
|
|
|
@@ -66,10 +67,12 @@ const photo = genUseLoading(async () => {
|
|
coverRef.value.removeEventListener("animationend", handler)
|
|
coverRef.value.removeEventListener("animationend", handler)
|
|
showCoverUrl.value = tempPhoto.value
|
|
showCoverUrl.value = tempPhoto.value
|
|
tempPhoto.value = null
|
|
tempPhoto.value = null
|
|
- baseLines.value.concat(list.value).forEach(item => {
|
|
|
|
- item.show = false
|
|
|
|
- })
|
|
|
|
|
|
+ // baseLines.value.concat(list.value).forEach(item => {
|
|
|
|
+ // item.show = false
|
|
|
|
+ // })
|
|
|
|
+ throw "111"
|
|
await nextTick()
|
|
await nextTick()
|
|
|
|
+ await downloadImage(blob)
|
|
const url = await upload
|
|
const url = await upload
|
|
photos.value.push({
|
|
photos.value.push({
|
|
id: getId(),
|
|
id: getId(),
|
|
@@ -96,9 +99,9 @@ const photo = genUseLoading(async () => {
|
|
})
|
|
})
|
|
showCoverUrl.value = await api.getFile(url)
|
|
showCoverUrl.value = await api.getFile(url)
|
|
dom.style.pointerEvents = "all"
|
|
dom.style.pointerEvents = "all"
|
|
- baseLines.value.concat(list.value).forEach(item => {
|
|
|
|
- item.show = true
|
|
|
|
- })
|
|
|
|
|
|
+ // baseLines.value.concat(list.value).forEach(item => {
|
|
|
|
+ // item.show = true
|
|
|
|
+ // })
|
|
}
|
|
}
|
|
coverRef.value.addEventListener("animationend", handler)
|
|
coverRef.value.addEventListener("animationend", handler)
|
|
})
|
|
})
|