zhongshujie
2024-08-06 924121953fb670fd3c2278fffc26b65b57620110
src/books/English/view/components/chapter006.vue
@@ -322,7 +322,7 @@
              <span class="word-bc">behavioral</span>&nbsp;
              <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’s 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’s 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) {
@@ -4053,8 +4050,12 @@
      localStorage.setItem('english-chapter06-listenThree', JSON.stringify(this.listenThree))
    },
    changeDropdownDataOne(data) {
      this.$set(this.listenThree[1].value[0], 'userAnswer', data)
      this.saveListenThree()
      // 假设data是新的userAnswer值
      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(); // 保存更改到localStorage
      }
    },
    changeDropdownDataTwo(data) {
      this.$set(this.listenThree[1].value[1], 'userAnswer', data)
@@ -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>