瀏覽代碼

修改gif图为视频

yangg 2 月之前
父節點
當前提交
80db1ffb46

+ 1 - 1
common/config.js

@@ -1,7 +1,7 @@
 // API base URL configuration
 //线上 https://minlong.raycos.com.cn
 //测试 http://192.168.66.187:8083
-export const apiBaseUrl = 'https://minlong.raycos.com.cn';
+export const apiBaseUrl = 'http://192.168.66.187:8083';
 
 // You can add other global configuration settings here
 export const appVersion = '1.0.0';

+ 18 - 7
pages/identity-verify/identity-verify.vue

@@ -4,7 +4,18 @@
       <!-- AI数字人视频/图像显示区域 -->
       <div class="digital-human-video">
         <!-- 添加GIF图片显示区域 -->
-        <img v-if="showGif && gifUrl" :src="gifUrl" class="gif-player" alt="面试官GIF" />
+        <!-- <img v-if="showGif && gifUrl" :src="gifUrl" class="gif-player" alt="面试官GIF" /> -->
+        <video 
+        v-if="showGif && gifUrl"
+						:src="gifUrl"
+						id="mpVideo"
+						autoplay 
+						class="video-player"
+						:controls="false"
+						loop
+						muted
+						object-fit="contain"
+					></video>
         
         <!-- 视频播放区域,当showGif为false时显示 -->
         <video 
@@ -835,17 +846,17 @@ export default {
       
       // 设置对应问题的GIF图片URL
       if (this.currentVideoIndex === 0) {
-        this.gifUrl = 'http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif';
+        this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       } else if (this.currentVideoIndex === 1) {
-        this.gifUrl = 'http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif';
+        this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       } else if (this.currentVideoIndex === 2) {
-        this.gifUrl = 'http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif';
+        this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       } else if (this.currentVideoIndex === 3) {
-        this.gifUrl = 'http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif';
+        this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       } else if (this.currentVideoIndex === 4) {
-        this.gifUrl = 'http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif';
+        this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       } else if (this.currentVideoIndex === 5) {
-        this.gifUrl = 'http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif';
+        this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       }
       
       // 显示GIF图片

+ 13 - 2
pages/interview-question/interview-question.vue

@@ -4,7 +4,18 @@
       <!-- AI数字人视频/图像显示区域 -->
       <div class="digital-human-video">
         <!-- 添加GIF图片显示区域 -->
-        <img v-if="showGif && gifUrl" :src="gifUrl" class="gif-player" alt="面试官GIF" />
+        <!-- <img v-if="showGif && gifUrl" :src="gifUrl" class="gif-player" alt="面试官GIF" /> -->
+        <video 
+        v-if="showGif && gifUrl"
+						:src="gifUrl"
+						id="mpVideo"
+						autoplay 
+						class="video-player"
+						:controls="false"
+						loop
+						muted
+						object-fit="contain"
+					></video>
         
         <!-- 视频播放区域,当showGif为false时显示 -->
         <video 
@@ -837,7 +848,7 @@ export default {
       this.videoPlaying = false;
       // 设置对应问题的GIF图片URL
       // if (this.currentVideoIndex === 0) {
-        this.gifUrl = 'http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif';
+        this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       // } else if (this.currentVideoIndex === 1) {
       //   this.gifUrl = 'http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif';
       // } else if (this.currentVideoIndex === 2) {

+ 1 - 1
unpackage/dist/dev/mp-weixin/common/config.js

@@ -1,3 +1,3 @@
 "use strict";
-const apiBaseUrl = "https://minlong.raycos.com.cn";
+const apiBaseUrl = "http://192.168.66.187:8083";
 exports.apiBaseUrl = apiBaseUrl;

+ 6 - 6
unpackage/dist/dev/mp-weixin/pages/identity-verify/identity-verify.js

@@ -563,17 +563,17 @@ const _sfc_main = {
       console.log("视频播放结束");
       this.videoPlaying = false;
       if (this.currentVideoIndex === 0) {
-        this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
+        this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
       } else if (this.currentVideoIndex === 1) {
-        this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
+        this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
       } else if (this.currentVideoIndex === 2) {
-        this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
+        this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
       } else if (this.currentVideoIndex === 3) {
-        this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
+        this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
       } else if (this.currentVideoIndex === 4) {
-        this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
+        this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
       } else if (this.currentVideoIndex === 5) {
-        this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
+        this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
       }
       this.showGif = true;
       if (this.currentVideoIndex >= 1) {

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/identity-verify/identity-verify.wxml


+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/interview-question/interview-question.js

@@ -558,7 +558,7 @@ const _sfc_main = {
     handleVideoEnded() {
       console.log("视频播放结束,当前视频索引:", this.currentVideoIndex);
       this.videoPlaying = false;
-      this.gifUrl = "http://121.36.251.245:9000/minlong/tenant_1/general_uploads/5273282d971441249aeadf35a7574f01.gif";
+      this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
       this.showGif = true;
       this.showStartRecordingButton = true;
       this.startCountdown();

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/interview-question/interview-question.wxml


Some files were not shown because too many files changed in this diff