闫增涛
2024-04-11 0bbc91dbf3a58da857ef098b34f9d2f86361c766
packageBookService/pages/bookServices/examination/questionList/index.js
@@ -16,13 +16,24 @@
      type: Number,
      value: 1
    },
    isNight:{
      type:Boolean,
      value:false
    isNight: {
      type: Boolean,
      value: false
    },
    answerType:{
      type:Boolean,
      value:''
    answerType: {
      type: String,
      value: ''
    },
    sliderValue: {
      type: Number,
    },
    noData: {
      type: Boolean,
    }
  },
  observers: {
    'questionList': function (newValue) {
      console.log(newValue);
    }
  },
  created() {
@@ -33,13 +44,16 @@
   */
  data: {
    inputstyle: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx;',
    shortAnswer: 'font-size: 28rpx',
    placeholderstyle: "font-size:28rpx",
    current: 2,
    autoplay: true,
    duration: 500,
    interval: 5000,
    paginationPosition: 'bottom-right',
    navigation: { type: 'fraction' },
    navigation: {
      type: 'fraction'
    },
    showIndex: 0,
  },
@@ -54,11 +68,11 @@
      })
      var myEventDetail = {
        index: e.detail.current
      } // detail对象,提供给事件监听函数
      }
      var myEventOption = {
        bubbles: true,
        composed: true,
      } // 触发事件的选项
      }
      this.triggerEvent('changeSwiper', myEventDetail, myEventOption)
    },
    // 单选  富文本框输入  触发
@@ -94,5 +108,14 @@
      } // 触发事件的选项
      this.triggerEvent('onChangeInput', myEventDetail, myEventOption)
    },
    // 我的错题,收藏查看解析按钮
    viewParsing() {
      var myEventDetail = {}
      var myEventOption = {
        bubbles: true,
        composed: true,
      }
      this.triggerEvent('viewParsing', myEventDetail, myEventOption)
    }
  }
})
})