From 68a06a99b1218f313c7fce2dd6eacd956ebf7a7f Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期日, 20 八月 2023 19:09:43 +0800 Subject: [PATCH] Update: 添加 sandbox 屬性 allow-popups 解決無法開啟原始 Youtube 連結的情形 --- PAMapp/pages/index.vue | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PAMapp/pages/index.vue b/PAMapp/pages/index.vue index 9adeb1c..6136bea 100644 --- a/PAMapp/pages/index.vue +++ b/PAMapp/pages/index.vue @@ -59,7 +59,7 @@ <p>�批嚗{gender}}</p> <p>撟湧翩嚗{appointmentDetail.age | toAgeLabel }}</p> <p>�璆哨�{appointmentDetail.job}}</p> - <p>隢株岷�撘�{appointmentDetail.consultationMethod | toConsulType }}</p> + <p>隢株岷�撘�{appointmentDetail.consultationMethod | toConsultationMethod }}</p> <p>��瘙�{ appointmentDetail.requirement ? appointmentDetail.requirement.split(',').join('��') : '--'}}</p> <p v-for="(item, index) in hopeContactTime" @@ -148,9 +148,10 @@ style="position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; justify-content: flex-end;" > <iframe - width=��780�� - height=��440�� + id="ytplayer" type="text/html" width="360" height="270" + frameborder="0" allowfullscreen + sandbox="allow-scripts allow-same-origin allow-popups" :src="filmVideoSrc" ></iframe> <div class="close-btn" @click="closeVideo()">X</div> @@ -285,8 +286,8 @@ get filmVideoSrc() { if (!this.fromAccess) return ''; return this.fromAccess === AccessFroms.FILM_1 - ? 'https://www.youtube.com/embed/zVBLW9hWD0g?autoplay=1&mute=1' - : 'https://www.youtube.com/embed/655JnwbuRGA?autoplay=1&mute=1'; + ? 'https://www.youtube.com/embed/zVBLW9hWD0g?autoplay=1&mute=1&loop=1&playlist=zVBLW9hWD0g' + : 'https://www.youtube.com/embed/655JnwbuRGA?autoplay=1&mute=1&loop=1&playlist=655JnwbuRGA'; } @@ -576,7 +577,7 @@ /* 蝣箔�� .video-container ��撠�/蝯����摰祝摨� */ .video-container { position: relative; - width: 600px; /* �����蔣��偕撖貉矽� */ + width: auto; /* �����蔣��偕撖貉矽� */ } /* �����見撘� */ -- Gitblit v1.8.0