update
This commit is contained in:
@@ -14,11 +14,8 @@ defineProps({
|
||||
const isMusicOn = ref(false);
|
||||
const audioElement = ref(null);
|
||||
onMounted(() => {
|
||||
// 创建音频
|
||||
audioElement.value = new Audio(faceFamily);
|
||||
// 尝试自动播放
|
||||
tryAutoPlay();
|
||||
//TODO 判断登录之后获取浏览器参数fromid, mergeid
|
||||
})
|
||||
|
||||
// 尝试自动播放
|
||||
@@ -81,12 +78,12 @@ const navigateSelectTemplatePage = () => {
|
||||
const isMyPhotoVisible = ref(false);
|
||||
const isPhotoSquareVisible = ref(false);
|
||||
|
||||
|
||||
const activeTab = ref('my-photo')
|
||||
|
||||
const showMyPhoto = () => { activeTab.value = 'my-photo', isMyPhotoVisible.value = true; }
|
||||
const showMyPhoto = () => {
|
||||
isMyPhotoVisible.value = true;
|
||||
isPhotoSquareVisible.value = false;
|
||||
}
|
||||
const showPhotoSquare=()=>{
|
||||
activeTab.value='photo-square',
|
||||
isMyPhotoVisible.value = false;
|
||||
isPhotoSquareVisible.value = true;
|
||||
}
|
||||
</script>
|
||||
@@ -133,8 +130,8 @@ const showPhotoSquare=()=>{
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<MyPhoto v-if="activeTab === 'my-photo'" @go-photo-square="showPhotoSquare" v-model:show="isMyPhotoVisible" />
|
||||
<PhotoSquare v-else @go-my-photo="showMyPhoto" v-model:show="isPhotoSquareVisible" />
|
||||
<MyPhoto @go-photo-square="showPhotoSquare" v-model:show="isMyPhotoVisible" />
|
||||
<PhotoSquare @go-my-photo="showMyPhoto" v-model:show="isPhotoSquareVisible" />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user