From aa2c08b3be23a01d44205b2c19d21a2bf53f944f Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 01 四月 2024 16:15:38 +0800 Subject: [PATCH] 图书服务列表、详情页bug修改 --- packageBookService/pages/bookServices/examination/questionList/index.js | 39 +++++++++++++++++++++++++++++++-------- 1 files changed, 31 insertions(+), 8 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionList/index.js b/packageBookService/pages/bookServices/examination/questionList/index.js index dfb3b6e..2b484c8 100644 --- a/packageBookService/pages/bookServices/examination/questionList/index.js +++ b/packageBookService/pages/bookServices/examination/questionList/index.js @@ -16,9 +16,21 @@ type: Number, value: 1 }, - isNight:{ - type:Boolean, - value:false + isNight: { + type: Boolean, + value: false + }, + answerType: { + type: String, + value: '' + }, + sliderValue: { + type: Number, + } + }, + observers: { + 'questionList': function (newValue) { + console.log(newValue); } }, created() { @@ -29,13 +41,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, }, @@ -45,17 +60,16 @@ methods: { // 鍒囨崲棰樼洰 changeSwiper(e) { - console.log(e); this.setData({ showIndex: e.detail.current }) var myEventDetail = { index: e.detail.current - } // detail瀵硅薄锛屾彁渚涚粰浜嬩欢鐩戝惉鍑芥暟 + } var myEventOption = { bubbles: true, composed: true, - } // 瑙﹀彂浜嬩欢鐨勯�夐」 + } this.triggerEvent('changeSwiper', myEventDetail, myEventOption) }, // 鍗曢�� 瀵屾枃鏈杈撳叆 瑙﹀彂 @@ -91,5 +105,14 @@ } // 瑙﹀彂浜嬩欢鐨勯�夐」 this.triggerEvent('onChangeInput', myEventDetail, myEventOption) }, + // 鎴戠殑閿欓锛屾敹钘忔煡鐪嬭В鏋愭寜閽� + viewParsing() { + var myEventDetail = {} + var myEventOption = { + bubbles: true, + composed: true, + } + this.triggerEvent('viewParsing', myEventDetail, myEventOption) + } } -}) +}) \ No newline at end of file -- Gitblit v1.9.1