微信支付完成
This commit is contained in:
@@ -1602,12 +1602,12 @@ import { nextTick } from "vue";
|
||||
})
|
||||
//return
|
||||
if (this.domIndex > this.curPage.text[this.curPage.text.length - 1].paragraph) { // 是否跨页 是的话就翻页
|
||||
// console.log(this.curPage.text[this.curPage.text.length - 1].paragraph,'该翻页了')
|
||||
// this.musicItem.page = this.currentPage + 1
|
||||
|
||||
console.log(this.currentPage,'this.currentPage')
|
||||
this.musicItem ={
|
||||
page:this.currentPage + 1,
|
||||
musicIndexDom: this.domIndex
|
||||
musicIndexDom: this.domIndex,
|
||||
musicPlaying:true
|
||||
}
|
||||
this.goNextPage()
|
||||
|
||||
@@ -2364,7 +2364,7 @@ import { nextTick } from "vue";
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
this.showAnimation = true
|
||||
this.showAnimation = false // 关闭动画
|
||||
this.prePage.pageTranslate = [
|
||||
`(${-this.windowWidth}px,0)`,
|
||||
`(${-this.windowWidth}px,0)`,
|
||||
@@ -3214,9 +3214,10 @@ import { nextTick } from "vue";
|
||||
// page = $("#flipbook").turn('page')
|
||||
if(newVal.musicPlaying){
|
||||
// 开启听书
|
||||
console.log(newVal.page,'newVal.page')
|
||||
if(newVal.page > 0){ // 翻页
|
||||
console.log('翻页翻页', newVal.page+2)
|
||||
$("#flipbook").turn('page', newVal.page+2)
|
||||
$("#flipbook").turn('page', newVal.page+3)
|
||||
}
|
||||
$("#flipbook .paragraph").css({color:"#333"})
|
||||
$("#flipbook .paragraph"+newVal.musicIndexDom).css({color:"#e5d6a0"})
|
||||
@@ -3261,7 +3262,7 @@ import { nextTick } from "vue";
|
||||
var classname = ''
|
||||
var styleconteent = ''
|
||||
newVal.SimulationText[i][j].class == 'jushou' ? classname = 'shouhang' : 'notshouhang'
|
||||
newVal.SimulationText[i][j].class == 'jushou' ? styleconteent = "'text-indent:2em ;font-size:"+newVal.fontSize+"px; color: #5d5d5d; line-height:"+newVal.lineHeight*newVal.fontSize+"px;'": styleconteent = "'font-size:"+newVal.fontSize+"px ; line-height:"+newVal.lineHeight*newVal.fontSize+"px; color: #5d5d5d;'"
|
||||
newVal.SimulationText[i][j].class == 'jushou' ? styleconteent = "'text-indent:2em ;font-size:"+newVal.fontSize+"px; color: #5d5d5d; line-height:"+newVal.lineHeight*newVal.fontSize+"px;'": styleconteent = "'font-size:"+newVal.fontSize+"px ; display:inline;line-height:"+newVal.lineHeight*newVal.fontSize+"px; color: #5d5d5d;'"
|
||||
conntentHtml += "<p class='paragraph " + classname + " paragraph" + newVal.SimulationText[i][j].paragraph +"' style="+styleconteent+">" + newVal.SimulationText[i][j].list + "</p>"
|
||||
}
|
||||
var page1 = i+1
|
||||
|
||||
Reference in New Issue
Block a user