Kaynağa Gözat

修改登录及过度动画

yangg 2 ay önce
ebeveyn
işleme
661698da3b

+ 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 = 'http://192.168.66.187:8083';
+export const apiBaseUrl = 'https://minlong.raycos.com.cn';
 
 // You can add other global configuration settings here
 export const appVersion = '1.0.0';

+ 8 - 9
pages/identity-verify/identity-verify.vue

@@ -5,7 +5,7 @@
       <div class="digital-human-video">
         <!-- 添加GIF图片显示区域 -->
         <!-- <img v-if="showGif && gifUrl" :src="gifUrl" class="gif-player" alt="面试官GIF" /> -->
-        <video 
+        <!-- <video 
         v-if="showGif && gifUrl"
 						:src="gifUrl"
 						id="mpVideo"
@@ -15,11 +15,10 @@
 						loop
 						muted
 						object-fit="contain"
-					></video>
+					></video>   v-if="!showGif"-->
         
         <!-- 视频播放区域,当showGif为false时显示 -->
         <video 
-          v-if="!showGif"
           :src="videoUrl"
           id="myVideo"
           ref="videoPlayer" 
@@ -844,7 +843,7 @@ export default {
       console.log('视频播放结束');
       this.videoPlaying = false;
       
-      // 设置对应问题的GIF图片URL
+     /*  // 设置对应问题的GIF图片URL
       if (this.currentVideoIndex === 0) {
         this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       } else if (this.currentVideoIndex === 1) {
@@ -860,7 +859,7 @@ export default {
       }
       
       // 显示GIF图片
-      this.showGif = true;
+      this.showGif = true; */
       
       // 对于所有视频,都显示相应的按钮
       if (this.currentVideoIndex >= 1) {
@@ -2066,8 +2065,8 @@ export default {
         this.videoPlaying = true;
         
         // 重置GIF状态
-        this.showGif = false;
-        this.gifUrl = '';
+        /* this.showGif = false;
+        this.gifUrl = ''; */
         
         // 重置当前字幕
         this.currentSubtitle = '';
@@ -2101,9 +2100,9 @@ export default {
       // 隐藏答题按钮
       this.showAnswerButton = false;
       
-      // 重置GIF状态
+     /*  // 重置GIF状态
       this.showGif = false;
-      this.gifUrl = '';
+      this.gifUrl = ''; */
       
       // 直接进入下一个问题
       this.proceedToNextQuestion();

+ 7 - 7
pages/interview-question/interview-question.vue

@@ -5,7 +5,7 @@
       <div class="digital-human-video">
         <!-- 添加GIF图片显示区域 -->
         <!-- <img v-if="showGif && gifUrl" :src="gifUrl" class="gif-player" alt="面试官GIF" /> -->
-        <video 
+      <!--   <video 
         v-if="showGif && gifUrl"
 						:src="gifUrl"
 						id="mpVideo"
@@ -15,11 +15,11 @@
 						loop
 						muted
 						object-fit="contain"
-					></video>
+					></video>  v-if="!showGif" -->
         
         <!-- 视频播放区域,当showGif为false时显示 -->
         <video 
-          v-if="!showGif"
+        
           :src="videoUrl"
           id="myVideo"
           ref="videoPlayer" 
@@ -846,7 +846,7 @@ export default {
     handleVideoEnded() {
       console.log('视频播放结束,当前视频索引:', this.currentVideoIndex);
       this.videoPlaying = false;
-      // 设置对应问题的GIF图片URL
+     /*  // 设置对应问题的GIF图片URL
       // if (this.currentVideoIndex === 0) {
         this.gifUrl = 'http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4';
       // } else if (this.currentVideoIndex === 1) {
@@ -862,7 +862,7 @@ export default {
       // }
       
       // 显示GIF图片
-      this.showGif = true;
+      this.showGif = true; */
       
 
       // 视频结束后直接显示"开始作答"按钮
@@ -2122,9 +2122,9 @@ export default {
       // 隐藏答题按钮
       this.showAnswerButton = false;
       
-      // 重置GIF状态
+      /* // 重置GIF状态
       this.showGif = false;
-      this.gifUrl = '';
+      this.gifUrl = ''; */
       
       // 显示简短提示
       uni.showToast({

+ 1 - 1
pages/login/login.vue

@@ -2,7 +2,7 @@
   <view class="login-container">
     <image class="login-image" src="/static/login-image.png" mode="aspectFit"></image>
     <view class="login-title">登录奇才,开始面试</view>
-    <button class="login-btn" @click="handleLogin">身份验证并登录</button>
+    <button class="login-btn" @click="handleLogin">微信登录</button>
     <view class="agreement">
       <checkbox :checked="isAgreed" @tap="toggleAgreement" color="#0039b3" />
       <text class="agreement-text">

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

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

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

@@ -562,20 +562,6 @@ const _sfc_main = {
     handleVideoEnded() {
       console.log("视频播放结束");
       this.videoPlaying = false;
-      if (this.currentVideoIndex === 0) {
-        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/cae2da8f92ce4af278d3929ab8c5973f.mp4";
-      } else if (this.currentVideoIndex === 2) {
-        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/cae2da8f92ce4af278d3929ab8c5973f.mp4";
-      } else if (this.currentVideoIndex === 4) {
-        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/cae2da8f92ce4af278d3929ab8c5973f.mp4";
-      }
-      this.showGif = true;
       if (this.currentVideoIndex >= 1) {
         this.showStartRecordingButton = true;
         this.startCountdown();
@@ -1431,8 +1417,6 @@ const _sfc_main = {
       if (this.currentVideoIndex < this.videoList.length) {
         this.videoUrl = this.videoList[this.currentVideoIndex];
         this.videoPlaying = true;
-        this.showGif = false;
-        this.gifUrl = "";
         this.currentSubtitle = "";
         this.$nextTick(() => {
           const videoContext = common_vendor.index.createVideoContext("myVideo", this);
@@ -1456,8 +1440,6 @@ const _sfc_main = {
     // 修改 handleAnswerButtonClick 方法
     handleAnswerButtonClick() {
       this.showAnswerButton = false;
-      this.showGif = false;
-      this.gifUrl = "";
       this.proceedToNextQuestion();
     },
     // 处理相机错误
@@ -1816,42 +1798,35 @@ const _sfc_main = {
 };
 function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
   return common_vendor.e({
-    a: $data.showGif && $data.gifUrl
-  }, $data.showGif && $data.gifUrl ? {
-    b: $data.gifUrl
-  } : {}, {
-    c: !$data.showGif
-  }, !$data.showGif ? {
-    d: $data.videoUrl,
-    e: common_vendor.o((...args) => $options.handleVideoError && $options.handleVideoError(...args)),
-    f: common_vendor.o((...args) => $options.handleVideoEnded && $options.handleVideoEnded(...args)),
-    g: common_vendor.o((...args) => $options.handleTimeUpdate && $options.handleTimeUpdate(...args))
-  } : {}, {
-    h: $data.showAnswerButton
+    a: $data.videoUrl,
+    b: common_vendor.o((...args) => $options.handleVideoError && $options.handleVideoError(...args)),
+    c: common_vendor.o((...args) => $options.handleVideoEnded && $options.handleVideoEnded(...args)),
+    d: common_vendor.o((...args) => $options.handleTimeUpdate && $options.handleTimeUpdate(...args)),
+    e: $data.showAnswerButton
   }, $data.showAnswerButton ? {
-    i: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
+    f: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
   } : {}, {
-    j: $data.currentSubtitle
+    g: $data.currentSubtitle
   }, $data.currentSubtitle ? {
-    k: common_vendor.t($data.currentSubtitle)
+    h: common_vendor.t($data.currentSubtitle)
   } : {}, {
-    l: $data.useMiniProgramCameraComponent
+    i: $data.useMiniProgramCameraComponent
   }, $data.useMiniProgramCameraComponent ? {
-    m: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
+    j: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
   } : {}, {
-    n: $data.loading
+    k: $data.loading
   }, $data.loading ? {} : {}, {
-    o: $data.showDebugInfo
+    l: $data.showDebugInfo
   }, $data.showDebugInfo ? common_vendor.e({
-    p: $data.assistantResponse
+    m: $data.assistantResponse
   }, $data.assistantResponse ? {
-    q: common_vendor.t($data.assistantResponse)
+    n: common_vendor.t($data.assistantResponse)
   } : {}, {
-    r: $data.audioTranscript
+    o: $data.audioTranscript
   }, $data.audioTranscript ? {
-    s: common_vendor.t($data.audioTranscript)
+    p: common_vendor.t($data.audioTranscript)
   } : {}, {
-    t: common_vendor.f($data.processedResponses, (item, index, i0) => {
+    q: common_vendor.f($data.processedResponses, (item, index, i0) => {
       return common_vendor.e({
         a: item.role
       }, item.role ? {
@@ -1865,25 +1840,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
       });
     })
   }) : {}, {
-    v: $data.showStopRecordingButton
+    r: $data.showStopRecordingButton
   }, $data.showStopRecordingButton ? {
-    w: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
+    s: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
   } : {}, {
-    x: $data.isRecording
+    t: $data.isRecording
   }, $data.isRecording ? {
-    y: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
+    v: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
   } : {}, {
-    z: $data.showStartRecordingButton
+    w: $data.showStartRecordingButton
   }, $data.showStartRecordingButton ? {
-    A: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
+    x: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
   } : {}, {
-    B: $data.showRetryButton
+    y: $data.showRetryButton
   }, $data.showRetryButton ? {
-    C: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
+    z: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
   } : {}, {
-    D: $data.showCountdown
+    A: $data.showCountdown
   }, $data.showCountdown ? {
-    E: common_vendor.t($data.countdownValue)
+    B: common_vendor.t($data.countdownValue)
   } : {});
 }
 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-464e78c6"]]);

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/identity-verify/identity-verify.wxml


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

@@ -558,8 +558,6 @@ const _sfc_main = {
     handleVideoEnded() {
       console.log("视频播放结束,当前视频索引:", this.currentVideoIndex);
       this.videoPlaying = false;
-      this.gifUrl = "http://121.36.251.245:9000/minlong/cae2da8f92ce4af278d3929ab8c5973f.mp4";
-      this.showGif = true;
       this.showStartRecordingButton = true;
       this.startCountdown();
       this.showAnswerButton = false;
@@ -1442,8 +1440,6 @@ const _sfc_main = {
     // 修改 handleAnswerButtonClick 方法
     handleAnswerButtonClick() {
       this.showAnswerButton = false;
-      this.showGif = false;
-      this.gifUrl = "";
       common_vendor.index.showToast({
         title: "面试完成",
         icon: "success",
@@ -1823,42 +1819,35 @@ const _sfc_main = {
 };
 function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
   return common_vendor.e({
-    a: $data.showGif && $data.gifUrl
-  }, $data.showGif && $data.gifUrl ? {
-    b: $data.gifUrl
-  } : {}, {
-    c: !$data.showGif
-  }, !$data.showGif ? {
-    d: $data.videoUrl,
-    e: common_vendor.o((...args) => $options.handleVideoError && $options.handleVideoError(...args)),
-    f: common_vendor.o((...args) => $options.handleVideoEnded && $options.handleVideoEnded(...args)),
-    g: common_vendor.o((...args) => $options.handleTimeUpdate && $options.handleTimeUpdate(...args))
-  } : {}, {
-    h: $data.showAnswerButton
+    a: $data.videoUrl,
+    b: common_vendor.o((...args) => $options.handleVideoError && $options.handleVideoError(...args)),
+    c: common_vendor.o((...args) => $options.handleVideoEnded && $options.handleVideoEnded(...args)),
+    d: common_vendor.o((...args) => $options.handleTimeUpdate && $options.handleTimeUpdate(...args)),
+    e: $data.showAnswerButton
   }, $data.showAnswerButton ? {
-    i: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
+    f: common_vendor.o((...args) => $options.handleAnswerButtonClick && $options.handleAnswerButtonClick(...args))
   } : {}, {
-    j: $data.currentSubtitle
+    g: $data.currentSubtitle
   }, $data.currentSubtitle ? {
-    k: common_vendor.t($data.currentSubtitle)
+    h: common_vendor.t($data.currentSubtitle)
   } : {}, {
-    l: $data.useMiniProgramCameraComponent
+    i: $data.useMiniProgramCameraComponent
   }, $data.useMiniProgramCameraComponent ? {
-    m: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
+    j: common_vendor.o((...args) => $options.handleCameraError && $options.handleCameraError(...args))
   } : {}, {
-    n: $data.loading
+    k: $data.loading
   }, $data.loading ? {} : {}, {
-    o: $data.showDebugInfo
+    l: $data.showDebugInfo
   }, $data.showDebugInfo ? common_vendor.e({
-    p: $data.assistantResponse
+    m: $data.assistantResponse
   }, $data.assistantResponse ? {
-    q: common_vendor.t($data.assistantResponse)
+    n: common_vendor.t($data.assistantResponse)
   } : {}, {
-    r: $data.audioTranscript
+    o: $data.audioTranscript
   }, $data.audioTranscript ? {
-    s: common_vendor.t($data.audioTranscript)
+    p: common_vendor.t($data.audioTranscript)
   } : {}, {
-    t: common_vendor.f($data.processedResponses, (item, index, i0) => {
+    q: common_vendor.f($data.processedResponses, (item, index, i0) => {
       return common_vendor.e({
         a: item.role
       }, item.role ? {
@@ -1872,25 +1861,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
       });
     })
   }) : {}, {
-    v: $data.showStopRecordingButton
+    r: $data.showStopRecordingButton
   }, $data.showStopRecordingButton ? {
-    w: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
+    s: common_vendor.o((...args) => $options.stopRecordingAnswer && $options.stopRecordingAnswer(...args))
   } : {}, {
-    x: $data.isRecording
+    t: $data.isRecording
   }, $data.isRecording ? {
-    y: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
+    v: common_vendor.t($data.recordingTimeDisplay || "00:00 / 05:00")
   } : {}, {
-    z: $data.showStartRecordingButton
+    w: $data.showStartRecordingButton
   }, $data.showStartRecordingButton ? {
-    A: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
+    x: common_vendor.o((...args) => $options.handleStartRecordingClick && $options.handleStartRecordingClick(...args))
   } : {}, {
-    B: $data.showRetryButton
+    y: $data.showRetryButton
   }, $data.showRetryButton ? {
-    C: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
+    z: common_vendor.o((...args) => $options.retryVideoUpload && $options.retryVideoUpload(...args))
   } : {}, {
-    D: $data.showCountdown
+    A: $data.showCountdown
   }, $data.showCountdown ? {
-    E: common_vendor.t($data.countdownValue)
+    B: common_vendor.t($data.countdownValue)
   } : {});
 }
 const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2a02c54e"]]);

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
unpackage/dist/dev/mp-weixin/pages/interview-question/interview-question.wxml


+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/login/login.wxml

@@ -1 +1 @@
-<view class="login-container"><image class="login-image" src="{{a}}" mode="aspectFit"></image><view class="login-title">登录奇才,开始面试</view><button class="login-btn" bindtap="{{b}}">身份验证并登录</button><view class="agreement"><checkbox checked="{{c}}" bindtap="{{d}}" color="#0039b3"/><text class="agreement-text"> 我已阅读并同意 <text class="agreement-link" bindtap="{{e}}">《用户协议》</text></text></view></view>
+<view class="login-container"><image class="login-image" src="{{a}}" mode="aspectFit"></image><view class="login-title">登录奇才,开始面试</view><button class="login-btn" bindtap="{{b}}">微信登录</button><view class="agreement"><checkbox checked="{{c}}" bindtap="{{d}}" color="#0039b3"/><text class="agreement-text"> 我已阅读并同意 <text class="agreement-link" bindtap="{{e}}">《用户协议》</text></text></view></view>

+ 1 - 1
unpackage/dist/dev/mp-weixin/project.config.json

@@ -8,7 +8,7 @@
     "urlCheck": false,
     "es6": true,
     "postcss": false,
-    "minified": false,
+    "minified": true,
     "newFeature": true,
     "bigPackageSizeSupport": true,
     "babelSetting": {

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor