From 924121953fb670fd3c2278fffc26b65b57620110 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 06 八月 2024 16:50:14 +0800 Subject: [PATCH] 英语书整本Bug修改结束 --- src/books/English/view/components/chapter006.vue | 40 +++++++++++++++++++++------------------- 1 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/books/English/view/components/chapter006.vue b/src/books/English/view/components/chapter006.vue index 5539a91..5ea3bbf 100644 --- a/src/books/English/view/components/chapter006.vue +++ b/src/books/English/view/components/chapter006.vue @@ -322,7 +322,7 @@ <span class="word-bc">behavioral</span> <span class="word-bc">approach</span> .Good behavior also - <span class="word-bc">determines</span> + <span class="word-bc" word="determine">determines</span> good and peaceful environment.Another way is to ensure healthy relationships among the staff; that is why communication is quite necessary.Keeping an eye on staff @@ -382,7 +382,7 @@ The work environment can greatly influence how the employees feel about their jobs.Because of this,it鈥檚 important to find an employer that - <span class="word-bc">fosters</span> + <span class="word-bc" word="foster">fosters</span> a positive atmosphere and encourages employees <span class="word-bc">consistently</span> .A positive work environment can improve employees鈥� @@ -1196,7 +1196,7 @@ You can usually find a company鈥檚 code of conduct in an employee handbook.Each company has different rules in its code of conduct,and each company has its own policies for - <span class="word-bc">enforcing</span> + <span class="word-bc" word="enforce">enforcing</span> this code. </p> <p> @@ -1259,7 +1259,7 @@ </p> <p> 5.Advertising.Products should not be - <span class="word-bc">advertised</span> + <span class="word-bc" word="advertise">advertised</span> in a <span class="word-bc">misleading</span> way. @@ -1329,7 +1329,7 @@ </p> <p> 14. - <span class="word-bc">Complaints</span> + <span class="word-bc" word="complaint">Complaints</span> .Handle the complaints fairly and quickly. </p> <p> @@ -1937,14 +1937,15 @@ and Ross and match the following information with the corresponding speaker.</b> </p> - <audio :src="resource.listenThree" controls controlslist="noplaybackrate nodownload" class="audio"></audio> + <audio :src="resource.listenThree" controls controlslist="noplaybackrate nodownload" class="audio"> + </audio> <table border="1" cellpadding="4" cellspacing="0" style="border-color: #fff" class="fz-14"> <tr class="table-tr-bc"> <td class="tl-cn wh-no table-th-bc">Sally</td> <td class="fl de-cl al-cn ju-cn"> <img src="../../assets/images/table/c2.jpg" alt=""> <dropdown :options="listenThree[1].option" @changeDropdownData="changeDropdownDataOne" - ref="choiceDropdownOne" :userAnswer="listenThree[1].value[0].userAnswer" /> + ref="choiceDropdownOne" :value="listenThree[1].value[0].userAnswer" /> <img :src="listenThree[1].value[0].isRight ? correctIcon : errorIcon" v-if="listenThree[1].isComplete"> </td> @@ -1975,7 +1976,7 @@ <td class="fl de-cl al-cn ju-cn"> <img src="../../assets/images/table/c1.jpg" alt=""> <dropdown :options="listenThree[1].option" @changeDropdownData="changeDropdownDataTwo" - ref="choiceDropdownTwo" /> + ref="choiceDropdownTwo" :value="listenThree[1].value[1].userAnswer" /> <img :src="listenThree[1].value[1].isRight ? correctIcon : errorIcon" v-if="listenThree[1].isComplete"> </td> @@ -2616,7 +2617,7 @@ watch: { showPageList: { handler(newVal) { - console.log(123, newVal, this.$refs); + }, immediate: true @@ -2630,6 +2631,7 @@ errorIcon: require('@/assets/images/error.svg'), showImg: false, showImgOne: false, + selectedValue: null, // 鐢ㄤ簬瀛樺偍褰撳墠閫変腑鐨勫�� rawData: { left: [ { @@ -3812,12 +3814,7 @@ const listenThree = localStorage.getItem('english-chapter06-listenThree') if (listenThree) { this.listenThree = JSON.parse(listenThree) - - } - - - }, methods: { arrayToString(data) { @@ -4052,10 +4049,14 @@ saveListenThree() { localStorage.setItem('english-chapter06-listenThree', JSON.stringify(this.listenThree)) }, - changeDropdownDataOne(data) { - this.$set(this.listenThree[1].value[0], 'userAnswer', data) - this.saveListenThree() - }, + changeDropdownDataOne(data) { + // 鍋囪data鏄柊鐨剈serAnswer鍊� + if (this.listenThree.length > 1 && this.listenThree[1].value && this.listenThree[1].value.length > 0) { + this.$set(this.listenThree[1].value[0], 'userAnswer', data); + this.selectedValue = data; // 鏇存柊selectedValue浠ュ弽鏄犲綋鍓嶉�変腑鐨勫�� + this.saveListenThree(); // 淇濆瓨鏇存敼鍒發ocalStorage + } + }, changeDropdownDataTwo(data) { this.$set(this.listenThree[1].value[1], 'userAnswer', data) this.saveListenThree() @@ -4095,13 +4096,14 @@ } } localStorage.removeItem('english-chapter06-listenThree') + this.$emit('empty'); }, viewListenThree() { for (let index = 0; index < this.listenThree.length; index++) { const item = this.listenThree[index]; item.isShowAnswer = !item.isShowAnswer } - } + }, }, }; </script> -- Gitblit v1.9.1