| | |
| | | process.env.VUE_APP_RESOURCE_CTX + |
| | | (process.env.VUE_APP_ENV == "product" |
| | | ? process.env.VUE_APP_BOOK_ID |
| | | : "sportsAndHealth") |
| | | : "mathBook") |
| | | ); |
| | | // 测试试读30页 |
| | | // this.activeBook.tryPageCount = 10; |
| | |
| | | </div> |
| | | </div> |
| | | <div class="page-box padding-116" page="10"> |
| | | <!-- <drag :question="dragQuestion" :page="10"/> --> |
| | | <graffiti style="width:100%" /> |
| | | <drag :question="dragQuestion" :page="10"/> |
| | | <!-- <graffiti style="width:100%" /> --> |
| | | </div> |
| | | <!-- 函数控件弹窗 --> |
| | | <el-dialog |
| | |
| | | maxX: null, |
| | | maxY: null, |
| | | spaceList: [], |
| | | submitState:false, |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | // 3.限制鼠标松开要在空格的范围内 |
| | | mousedown(e) { |
| | | e.preventDefault(); |
| | | if(this.submitState) return false |
| | | console.log("鼠标按下", e); |
| | | this.moveDom = e.toElement; |
| | | this.parentDom = this.getParentWithClass(e.toElement, "question-box"); |
| | |
| | | }, |
| | | // 提交 |
| | | submitData() { |
| | | this.submitState = true |
| | | let arr = []; |
| | | const data = this.drageQuestion; |
| | | for (let index = 0; index < data.length; index++) { |
| | |
| | | item.isRight = arr == item.answer |
| | | item.isComplete = true |
| | | } |
| | | |
| | | console.log(arr,this.drageQuestion[0]); |
| | | }, |
| | | redio() { |
| | | this.submitState = false |
| | | localStorage.removeItem( |
| | | this.config.activeBook.name + "-drag-" + this.page |
| | | ); |