lsc 11 月之前
父節點
當前提交
5963aa7dad

+ 1 - 1
dist/index.html

@@ -27,7 +27,7 @@
     html,
     body{
       font-family: '黑体';
-    }</style><link href=./static/css/app.9771b96a7e0d3407625bad30d5def966.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.9ee7cb8cb3c0161956b8.js></script><script type=text/javascript src=./static/js/app.a4d745b40a6f66d6bc3e.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.7f090b8e464530f848c82737321461ba.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.9ee7cb8cb3c0161956b8.js></script><script type=text/javascript src=./static/js/app.0dd0f9ed82e3c73f0e03.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.7f090b8e464530f848c82737321461ba.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.7f090b8e464530f848c82737321461ba.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.0dd0f9ed82e3c73f0e03.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.0dd0f9ed82e3c73f0e03.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 27 - 14
src/components/EnglishVoice2/component/right.vue

@@ -61,7 +61,8 @@
           <span>/</span>
           <span>{{ checkJson.length }}</span>
         </div>
-        <div class="audio_index_next" :class="{ disabled: checkType == (checkJson.length - 1) }" @click="checkIndex('1')">
+        <div class="audio_index_next" :class="{ disabled: checkType == (checkJson.length - 1) }"
+          @click="checkIndex('1')">
           <img src="../../../assets/icon/englishVoice/coin.png" alt="">
         </div>
       </div>
@@ -520,27 +521,39 @@ export default {
     },
     answerCode(msg) {
       var _this = this;
-      _this.ajax.post('https://gpt4.cocorobo.cn/assistants_completion_response', {
-        uid: _this.id,
-        message: msg,
-      }).then(function (response) {
-        console.log(response);
+      if (msg) {
+        _this.ajax.post('https://gpt4.cocorobo.cn/assistants_completion_response', {
+          uid: _this.id,
+          message: msg,
+        }).then(function (response) {
+          console.log(response);
+          _this.answerArray.push(
+            {
+              isY: false,
+              content: response.data.FunctionResponse,
+              name: _this.answerArray[0].name,
+              img: _this.answerArray[0].img
+            }
+          )
+          console.log(_this.answerArray);
+          _this.$forceUpdate()
+          _this.isloading = false
+          _this.$emit('setWork', _this.answerArray, _this.checkType)
+        }).catch(function (error) {
+          _this.isloading = false
+          console.log(error);
+        });
+      } else {
         _this.answerArray.push(
           {
             isY: false,
-            content: response.data.FunctionResponse,
+            content: "抱歉,您刚刚没有成功录入内容,请再说一遍!",
             name: _this.answerArray[0].name,
             img: _this.answerArray[0].img
           }
         )
-        console.log(_this.answerArray);
-        _this.$forceUpdate()
         _this.isloading = false
-        _this.$emit('setWork', _this.answerArray, _this.checkType)
-      }).catch(function (error) {
-        _this.isloading = false
-        console.log(error);
-      });
+      }
     },
     guid() {
       var _num,

+ 2 - 2
src/components/checkEnglishVoice/component/right.vue

@@ -38,8 +38,8 @@
       <div v-if="LuAudioUrl" class="audio_b">
         <mini-audio :audio-source="LuAudioUrl" class="audio_class"></mini-audio>
       </div>
-      <div v-else>
-        未上传录音
+      <div v-else-if="cjson.type !== 'createRole'">
+        未上传录音1
       </div>
       <!-- <div v-if="LuAudioUrl" class="audio_rerecord" @click="restart()">
         <span>录音</span>

+ 1 - 1
src/components/courseDetail.vue

@@ -1331,7 +1331,7 @@ export default {
 							type:"error",
 						}).then(() => {
 							if(this.courseDetail.state == 1 || this.courseDetail.state == 2){
-								window.parent.postMessage({ tools: "openCourseUpdate",cid:this.id }, "*");
+								window.parent.postMessage({ tools: "openNewCourseUpdate",cid:this.id }, "*");
 							}else if(this.courseDetail.state == 3 || this.courseDetail.state == 4){
 								window.parent.postMessage({ tools: "openCourseEUpdate",cid:this.id }, "*");
 							}

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