diff --git a/App.vue b/App.vue index 6b92edd..e5483db 100644 --- a/App.vue +++ b/App.vue @@ -20,6 +20,30 @@ export default { } }) + // 取出初始播放信息 + uni.getStorage({ + key: 'playingInfo', + success: function (res) { + console.log(res,'playingInfo本地初始化') + store.commit('setUserInfo',{'playingInfo': res.data}) + store.commit('setUserInfo',{ + 'playTitle':res.data.chapterName, + 'fengImg':res.data.images + }) + console.log(store.state.userInfo,'初始化') + }, + fail:function(e){ + console.log(e,'playingInfo本地初始化失败') + store.commit('setUserInfo',{'playingInfo': { + 'images':'../../static/icon/fengziIcon.jpg', + 'chapterName':'暂无播放信息', + }}) + store.commit('setUserInfo',{ + 'playTitle': '暂无播放信息', + 'fengImg': '../../static/icon/fengziIcon.jpg' + }) + }, + }) // 取出播放列表 uni.getStorage({ key: 'playData', @@ -39,7 +63,7 @@ export default { fail:function(e){ // 如果没有,就查询一下线上的播放记录 console.log('本地无数据'); music.setList([]) - store.commit('setUserInfo',{'playingInfo': {'bookid':0,'chapterId':0}}); + //store.commit('setUserInfo',{'playingInfo': {'bookid':0,'chapterId':0}}); store.commit('setUserInfo',{'playVisible': false}) // music.setCoverImg('../../static/icon/x1.jpg') store.commit('setUserInfo',{ diff --git a/components/clockDate.vue b/components/clockDate.vue new file mode 100644 index 0000000..9addcce --- /dev/null +++ b/components/clockDate.vue @@ -0,0 +1,40 @@ + + + + + \ No newline at end of file diff --git a/components/cx-audio-play/cx-audio-play.vue b/components/cx-audio-play/cx-audio-play.vue index 194da3c..552b33e 100644 --- a/components/cx-audio-play/cx-audio-play.vue +++ b/components/cx-audio-play/cx-audio-play.vue @@ -127,11 +127,9 @@ }, created() { this.libLIst = this.$bgm.musicList - this.fengImg = this.userInfo.fengImg + this.fengImg = this.userInfo.fengImg this.userInfo.playTimes ? this.setUserInfo({'currentTime': this.userInfo.playTimes}) : '' - console.log(this.userInfo.currentTime,'组件读到的历史记录') - }, computed: { @@ -143,11 +141,7 @@ overTimer() { this.duration = this.userInfo.duration return calcTimer(this.userInfo.duration) - }, - // fengImg(){ - // console.log(this.userInfo.fengImg,'-------------') - // return this.userInfo.fengImg - // } + }, }, watch: { diff --git a/components/music.vue b/components/music.vue index 0808565..88d1934 100644 --- a/components/music.vue +++ b/components/music.vue @@ -6,7 +6,8 @@ - + + @@ -77,9 +78,7 @@ created() { // this.fengImg = this.$music.getCoverImg() this.fengImg = this.userInfo.fengImg - // this.libLIst = this.$music.getLibList() this.libLIst = this.userInfo.myList - // console.log(this.userInfo.playIndex,'this.userInfo.playIndex') }, mounted() { @@ -246,7 +245,7 @@ .nextMusic{width:50rpx;height:50rpx; display: none;} } - .fuchuang{position: fixed; padding-right: 10px; padding-left: 0; bottom:120rpx; right:0; z-index: 888; background-color:rgba(255, 255, 255, 1); } + .fuchuang{position: fixed; padding-right: 10px; padding-left: 0; bottom:180rpx; right:0; z-index: 888; background-color:rgba(255, 255, 255, 1); } .playAnimate{ -webkit-transform: rotate(360deg); animation: rotation 6s linear infinite; diff --git a/components/z-navigation/z-navigation.vue b/components/z-navigation/z-navigation.vue index fb51b66..d1abde8 100644 --- a/components/z-navigation/z-navigation.vue +++ b/components/z-navigation/z-navigation.vue @@ -28,14 +28,14 @@ path: '', navigationList: [{ pagePath: 'pages/peanut/home', - iconPath: 'static/tab/icon1_n.png', - selectedIconPath: 'static/tab/icon1_y.png', + iconPath: 'static/tab/tab1.png', + selectedIconPath: 'static/tab/tab1-1.png', text: '首页' }, { "pagePath": "pages/library/library", - "iconPath": "static/tab/icon3_n.png", - "selectedIconPath": "static/tab/icon3_y.png", + "iconPath": "static/tab/tab2.png", + "selectedIconPath": "static/tab/tab2-1.png", "text": "我的图书" }, // { @@ -46,15 +46,15 @@ // }, { pagePath: 'pages/bookShop/orderList', - iconPath: 'static/tab/icon2_n.png', - selectedIconPath: 'static/tab/icon2_y.png', + iconPath: 'static/tab/tab3.png', + selectedIconPath: 'static/tab/tab3-1.png', text: '我的订单' }, { pagePath: 'pages/peanut/mine', - iconPath: 'static/tab/icon4_n.png', - selectedIconPath: 'static/tab/icon4_y.png', + iconPath: 'static/tab/tab4.png', + selectedIconPath: 'static/tab/tab4.png', text: '我的' } ], diff --git a/components/zsy-calendar/dateBox.vue b/components/zsy-calendar/dateBox.vue new file mode 100644 index 0000000..7bda82e --- /dev/null +++ b/components/zsy-calendar/dateBox.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/components/zsy-calendar/js/utils.js b/components/zsy-calendar/js/utils.js new file mode 100644 index 0000000..2c2ae4d --- /dev/null +++ b/components/zsy-calendar/js/utils.js @@ -0,0 +1,68 @@ +/** + * 时间格式化 + * @param {String} time + * @param {String} cFormat + */ +export function parseTime(time, cFormat) { + if (arguments.length === 0) { + return null + } + if (!time) return '' + /* 修复IOS系统上面的时间不兼容*/ + if (time.toString().indexOf('-') > 0) { + time = time.replace(/-/g, '/') + } + const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}' + let date + if (typeof time === 'object') { + date = time + } else { + if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) { + time = parseInt(time) + } + if ((typeof time === 'number') && (time.toString().length === 10)) { + time = time * 1000 + } + date = new Date(time) + } + const formatObj = { + y: date.getFullYear(), + m: date.getMonth() + 1, + d: date.getDate(), + h: date.getHours(), + i: date.getMinutes(), + s: date.getSeconds(), + a: date.getDay() + } + const time_str = format.replace(/{([ymdhisa])+}/g, (result, key) => { + const value = formatObj[key] + // Note: getDay() returns 0 on Sunday + if (key === 'a') { + return ['日', '一', '二', '三', '四', '五', '六'][value] + } + return value.toString().padStart(2, '0') + }) + return time_str +} + +/** + * This is just a simple version of deep copy + * Has a lot of edge cases bug + * If you want to use a perfect deep copy, use lodash's _.cloneDeep + * @param {Object} source + * @returns {Object} + */ +export function deepClone(source) { + if (!source && typeof source !== 'object') { + throw new Error('error arguments', 'deepClone') + } + const targetObj = Object.prototype.toString.call(source) === "[object Array]" ? [] : {} + Object.keys(source).forEach(keys => { + if (source[keys] && typeof source[keys] === 'object') { + targetObj[keys] = deepClone(source[keys]) + } else { + targetObj[keys] = source[keys] + } + }) + return targetObj +} \ No newline at end of file diff --git a/components/zsy-calendar/zsy-calendar v1.0.vue b/components/zsy-calendar/zsy-calendar v1.0.vue new file mode 100644 index 0000000..54d8878 --- /dev/null +++ b/components/zsy-calendar/zsy-calendar v1.0.vue @@ -0,0 +1,641 @@ + + + + + diff --git a/components/zsy-calendar/zsy-calendar.vue b/components/zsy-calendar/zsy-calendar.vue new file mode 100644 index 0000000..07183d3 --- /dev/null +++ b/components/zsy-calendar/zsy-calendar.vue @@ -0,0 +1,536 @@ + + + + + diff --git a/pages/bookShop/classify.vue b/pages/bookShop/classify.vue index 956e6ff..9a39600 100644 --- a/pages/bookShop/classify.vue +++ b/pages/bookShop/classify.vue @@ -86,7 +86,7 @@ bgiStyle: { background: '#2ab58833' }, - iconStyle: { + iconStyle: { fontSize: '40rpx', fontWeight: 'bold', color: '#54a966', diff --git a/pages/bookShop/commodityDetail.vue b/pages/bookShop/commodityDetail.vue index 1a8d952..ee206b2 100644 --- a/pages/bookShop/commodityDetail.vue +++ b/pages/bookShop/commodityDetail.vue @@ -29,8 +29,10 @@

赠送听书权益

- - {{item.name}}立即试听 + + {{item.name}} + + @@ -294,6 +296,12 @@ this.goPurse() } }, + goToListenNone(){ + uni.showToast({ + title:'该书暂未生成音频内容,敬请期待!', + icon:'none' + }) + }, // 加入购物车 addCart() { if (this.productInfo.productStock == 0) { @@ -466,7 +474,7 @@ formatRichText (html) { //控制小程序中图片大小 .tingshuList{margin-top: 20rpx; background-color: #fff; padding: 20rpx; border-radius: 20rpx; margin-bottom: 20rpx; padding-top: 40rpx; background-image: linear-gradient(0deg, #f7fffc 0%, #def0ea 100%); - .item{margin-bottom: 20rpx;} + .item{margin-bottom: 20rpx; vertical-align: middle; } h4{color: #5fb386; font-size: 40rpx; margin-bottom: 20rpx;} text{color: #444; font-size: 32rpx; padding-left: 20rpx;} } diff --git a/pages/bookShop/orderLCont.vue b/pages/bookShop/orderLCont.vue index 89dc66c..e20d85b 100644 --- a/pages/bookShop/orderLCont.vue +++ b/pages/bookShop/orderLCont.vue @@ -49,14 +49,13 @@
+ - 评价 - 追评 + 评价 + 追评 - -
@@ -183,6 +182,7 @@ export default { data() { return { + userRecordid:null, // 用户的评价状态 playData:{}, title: 'Hello', isShowEmj: false, @@ -197,6 +197,7 @@ img:[], html:'' }, + pingID:null, productID:null, // 订单商品id imageStyles:{ width:64, @@ -267,11 +268,12 @@ this.pjType = 'zhuiping' this.pingjiaShow = true this.productID = val + this.pingID = pingid }, // 追加评论 zhuiping(){ let data = { - //'oid':'', + 'oid': this.userRecordid, 'userId': this.userInfo.id, 'bookid': this.productID, 'conTent': this.Pform.comment @@ -287,15 +289,21 @@ }).then(res => { if (res.code == 0) { uni.showToast({ - title:'成功!', + title:'追评成功!', icon:'success' }) this.pingjiaShow = false this.pjType = '' this.productID = null, + this.userRecordid = null this.Pform.comment = '' this.Pform.html = '' this.emoji = [] + setTimeout(()=>{ + uni.navigateBack({ + delta:1 + }) + },2000) } }) }, @@ -429,6 +437,11 @@ this.Pform.comment = '' this.Pform.html = '' this.emoji = [] + setTimeout(()=>{ + uni.navigateBack({ + delta:1 + }) + },2000) } }) }else{ @@ -505,11 +518,13 @@ }, // 获取订单列表 getOrderList() { + console.log('this.orderType',this.orderType) this.$http .post(`book/buyorder/appGetOrderInfo/${this.orderType}?orderId=${this.orderID}`) .then(res => { - console.log(res,'res') + console.log('res+++',res) this.orderContet = res.buyOrder + this.userRecordid = res.userRecordid this.productIDs = res.buyOrder.products.map(item => { return item.productId }) diff --git a/pages/bookShop/settlementBook.vue b/pages/bookShop/settlementBook.vue index 1e5e825..4e13ff4 100644 --- a/pages/bookShop/settlementBook.vue +++ b/pages/bookShop/settlementBook.vue @@ -292,7 +292,8 @@ // this.getYunFei() }, - onShow() { + onShow() { + console.log('进来了这个页面') this.getProid() // return false // if (this.typeId == 1) { diff --git a/pages/clock/clock.vue b/pages/clock/clock.vue index 522c6b5..144061b 100644 --- a/pages/clock/clock.vue +++ b/pages/clock/clock.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/pages/clock/clockList - 副本.vue b/pages/clock/clockList - 副本.vue new file mode 100644 index 0000000..96f353e --- /dev/null +++ b/pages/clock/clockList - 副本.vue @@ -0,0 +1,393 @@ + + + + + \ No newline at end of file diff --git a/pages/clock/clockList.vue b/pages/clock/clockList.vue new file mode 100644 index 0000000..6346bc5 --- /dev/null +++ b/pages/clock/clockList.vue @@ -0,0 +1,413 @@ + + + + + \ No newline at end of file diff --git a/pages/clock/index.vue b/pages/clock/index.vue new file mode 100644 index 0000000..1ee96d1 --- /dev/null +++ b/pages/clock/index.vue @@ -0,0 +1,213 @@ + + + + + + diff --git a/pages/library/library.vue b/pages/library/library.vue index 0e32bc4..7223fbe 100644 --- a/pages/library/library.vue +++ b/pages/library/library.vue @@ -2,21 +2,45 @@ - - - - - - 搜索... + + + + + + + + + + 请输入想要搜索的书名 + + + + 搜索 + + + + + + + + + + + + 已购图书 + + + 推荐图书 - - - + + @@ -25,11 +49,11 @@ - - + @@ -42,35 +66,36 @@ - {{item.bookName}} + {{item.bookName}} + - + - - + + - + 读 书 - + 听 书 - + 评 书 - {{item.productName}} + {{item.product.productName}} @@ -100,11 +125,16 @@ export default { data() { return { + list3: [ + // '../../static/icon/home_ban_1.jpg', + '../../static/icon/home_ban_2.jpg', + '../../static/icon/home_ban_3.jpg', + ], showEbook:false, playData:{}, loadingNow : false, bookList:[], - contentShow:0, + contentShow:1, page:1, // 页码 status: 3, ygtotalPage:1, @@ -127,13 +157,13 @@ onPullDownRefresh() { console.log('下拉刷新了') uni.stopPullDownRefresh(); - if(this.contentShow == 0){ - this.page=1, // 页码 + if(this.contentShow == 1){ + // this.page=1, // 页码 this.bookList = [] this.getfreeBook() } - else if(this.contentShow == 1){ - this.tjPage=1, // 页码 + else if(this.contentShow == 2){ + // this.tjPage=1, // 页码 this.tjBookLIst = [] this.getListDate() } @@ -142,33 +172,33 @@ this.loadingNow = true console.log('到底了') - if(this.contentShow == 0){ - //console.log(this.page , this.ygtotalPage) - if(this.page < this.ygtotalPage){ - this.page++ - console.log('加载',this.page) - this.status = 0 - this.getfreeBook() + // if(this.contentShow == 1){ + // //console.log(this.page , this.ygtotalPage) + // if(this.page < this.ygtotalPage){ + // this.page++ + // console.log('加载',this.page) + // this.status = 0 + // this.getfreeBook() - }else{ - this.status = 1 - console.log('加载完成了',this.page) - return - } + // }else{ + // this.status = 1 + // console.log('加载完成了',this.page) + // return + // } - }else if(this.contentShow == 1){ - if(this.tjPage < this.tjTotalPage){ - this.tjPage++ - console.log('加载',this.tjPage) - this.status = 0 - this.getListDate() + // }else if(this.contentShow == 2){ + // if(this.tjPage < this.tjTotalPage){ + // this.tjPage++ + // console.log('加载',this.tjPage) + // this.status = 0 + // this.getListDate() - }else{ - this.status = 1 - console.log('加载完成了',this.tjPage) - return - } - } + // }else{ + // this.status = 1 + // console.log('加载完成了',this.tjPage) + // return + // } + // } }, components:{ musicPlay @@ -177,36 +207,24 @@ ...mapState(['userInfo']) }, methods: { + setData(e){ + this.contentShow = e + }, // 未购买图书,评书跳转 wgGoPingshu(item){ console.log('未购买评书',item) - if(item.bookId == null || item.bookId.length <= 0){ - //uni.showModal() - uni.showModal({ - title: '提示', - showCancel:false, - content: '当前未关联图书信息,请联系联系管理员', - success: function (res) { - if (res.confirm) { - console.log('好的'); - } - } - }); - }else{ uni.navigateTo({ - url: '../comments/comments?bookid='+item.bookId[0], + url: '../comments/comments?bookid='+item.bookId, // url:'../bookShop/commodityDetail' }); - } + }, // 跳转到评书 goPingshu(val){ console.log('评书',val) uni.navigateTo({ url: '../comments/comments?bookid='+val, - // url:'../bookShop/commodityDetail' - }); }, contentButtonClick(e){ @@ -214,6 +232,7 @@ }, // 获取已购买书籍 getfreeBook(){ + console.log('获取已购买书籍') this.$http .post('book/userebookbuy/buylist', { // .post('book/buyorderdetail/querybuy', { @@ -224,8 +243,16 @@ .then(res => { if(res.code == 0){ - this.ygtotalPage = res.page.totalPage - this.bookList = this.bookList.concat(res.page.list) + // this.ygtotalPage = res.page.totalPage + //var arr = res.page + res.page.forEach(item => { + if(item.canListen){ + this.bookList.push(item) + } + }) + // console.log(this.bookList,'arr') + //this.bookList = arr + // this.bookList = this.bookList.concat(res.page.list) console.log(res,'已购买') this.status = 3 } @@ -235,6 +262,7 @@ // 获取推荐图书(未购买) getListDate(){ + console.log('获取推荐图书(未购买)') this.loadingNow = false // 获取书架列表 this.$http @@ -244,63 +272,52 @@ 'page':this.tjPage }) .then(res => { - console.log(res) + console.log(res,'获取推荐图书(未购买)') if(res.code == 0){ - this.tjTotalPage = res.pages.totalPage + // this.tjTotalPage = res.pages.totalPage var arr = [] - if(res.pages.list.length > 0){ - for (var i=0; i 0){ + // for (var i=0; i @import '@/style/mixin.scss'; + .home_lunbo { + margin: 40rpx 30rpx 0 30rpx; + } + .mytabs{ + // background: url('@/static/icon/bgtushu.png') no-repeat left top; + height:110rpx ; margin-bottom: 50rpx; + .item{ + border-radius: 10rpx;background-color: #adb6b7; width: 48%; margin: 0 10rpx; text-align: center; color:#fff ; font-size: 36rpx; line-height:110rpx ; + } + .item.active{ + background-color: #73837b; + } + .item1{ + background-color: #adb6b7; + } + } .listenItem{ .btns{margin-top: 60rpx; margin-left: 20rpx; font-size: 34rpx; justify-content: space-between; .item{ margin-bottom:30rpx; @@ -398,35 +431,33 @@ } } .home_bg { - background-image: url('@/static/icon/home_bg.jpg'); + background-image: url('@/static/icon/home_bg1.jpg'); background-position: center center; background-repeat: no-repeat; background-size: cover; - padding: 100rpx 0 40rpx 0; + padding: 100rpx 20rpx 40rpx 20rpx; position: relative; - + height: 400rpx; margin-bottom: 130rpx; .icon_hua_1 { - margin: 0 auto; + // margin: 0 auto; width: 150rpx; height: 150rpx; } - - .search_box { - width: 90%; - height: 64upx; - background-color: #fff; - border-radius: 32upx; - display: flex; - align-items: center; - padding: 0upx 40upx; - position: absolute; - margin-left: -46%; - left: 50%; - bottom: -40rpx; - box-shadow: 0 0px 10px 1px #54a96633; - + .icon_hua{width: 150rpx; display: block;} + .search_box { margin-top: 20rpx; align-items: center; + width: calc(100% - 300rpx); + + .search{height: 80upx; + display: flex; + width: 100%; + align-items: center; + padding: 0upx 40upx; + background-color: #fff; + border-radius: 20upx; + box-shadow: 0 0px 10px 1px #54a96633; + } .prompt { - color: #cccccc; + color: #838383; font-size: 24rpx; } @@ -435,10 +466,14 @@ background-position: center center; background-repeat: no-repeat; background-size: cover; - width: 29upx; - height: 28upx; + width:36upx; + height: 36upx; margin-right: 20upx; } } + .searBtn{ + width: 80rpx; align-items: center; + font-size: 30rpx; color: #fff; + } } diff --git a/pages/listen/home.vue b/pages/listen/home.vue index 67296b6..5ea3348 100644 --- a/pages/listen/home.vue +++ b/pages/listen/home.vue @@ -17,32 +17,25 @@ + - - + + + + + {{item.bookName}} - {{item.bookName}} - - - - + + + - {{item.productName}} + {{item.product.productName}} @@ -115,7 +117,10 @@ playid:null, // 正在播放的章节id playchapName:'', // 正在播放的章节名称 playIndex:null, // 正在播放的序号值 - onlineH:{}, // 线上的历史听书 + onlineH:{ // 线上的历史听书 + playIndex:null, // 存储的播放index + time:0, // 存储的播放秒数 + }, currentTime:{ time:0, flag:'' @@ -200,7 +205,7 @@ console.log(this.muteBgMusic,this.muteBgMusic?'已关闭音乐####':'已开启音乐####'); }, // 获取线上听书进度 - getListenRate(val,op){ + getListenRate(){ let data = { bookId: this.bookid, userId: this.userInfo.id, @@ -216,46 +221,42 @@ console.log(res,'历史记录') if(res.readRate.chapterId){ var item = res.readRate + if(this.$bgm._options.src != '' && res.readRate.chapterId == this.userInfo.playingInfo.chapterId && res.readRate.bookId == this.userInfo.playingInfo.bookid ){ + // console.log(this.$bgm) + if(this.$bgm.playing){ + console.log('线上存储进度是同一条数据,不做处理') + }else{ // 暂停状态下 + this.$bgm.play() + } + return false + } + this.onlineH.time = item.precent // 有听书进度时 - this.onlineH.playIndex = bgm.musicList.findIndex(function(info){ + this.onlineH.playIndex = this.libLIst.findIndex(function(info){ // console.log(info,'info') if(item.chapterId == info.chapterId && item.bookId == info.bookid ){ return info; } - }) - //store.commit('setUserInfo',{'playingInfo':bgm.musicList[bgm.playIndex] }) - console.log('线上的播放index是:',this.onlineH.playIndex) + }) + console.log('线上的播放index是:',this.onlineH.playIndex) }else{ - // 没有听书进度 + // 没有听书进度 + this.onlineH.playIndex = 0 + this.onlineH.time = 0 } + console.log('到这') + this.$music.setList(this.libLIst,'autoPlay',this.onlineH.playIndex, this.onlineH.time) }) }, addMusicList(){ - if (this.userInfo.playFlag) { - // 暂停 - // this.$music.playBgm({mute:true}) - // this.$bgm.pause() - uni.showToast({ - title:'已经在播放音频', - icon:'none' - }) - } else { - // 播放 - // this.$music.playBgm({mute:false}) - if(this.$bgm._options.src == ''){ - this.$music.playBgm({mute:false}) - }else{ - this.$bgm.play() - } - } - + this.getListenRate() // this.playData = { // 'myList' : this.libLIst, // // 'fengImg' : this.fengImg, // } // 显示播放组件 - this.setUserInfo({'playVisible':true}) + this.setUserInfo({'playVisible':true}) uni.setStorage({ key: 'playVisible', data: true, @@ -268,10 +269,8 @@ }, // 播放单个音频 - listenOne(item,index){ - - console.log('点击了',index) - + listenOne(item,index){ + console.log('点击了',index) if(this.libLIst.length > 0){ this.setUserInfo({'playIndex': index}) this.$music.setList(this.libLIst,'autoPlay',index) @@ -330,48 +329,7 @@ url: '../eBook/bookMessage?Id=' + id + '&typ=' + e }); }, - // 获取听书进度 - getListenRate(){ - // this.forceRefresh = false - let data = { - bookId: this.bookid, - userId: this.userInfo.id, - } - $http.request({ - url: "book/listening/getReadRate", - method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档 - data, - header: { //默认 无 说明:请求头 - 'Content-Type': 'application/json' - }, - }).then(res => { - console.log(res,'历史记录') - if(res.readRate.chapterId){ // 有听书进度时 - this.playid = res.readRate.chapterId - this.currentTime.time = res.readRate.precent - this.currentTime.flag = 'init' - // this.forceRefresh = true - for (var i =0; i= this.libLIst.length - 1 ? this.jia = true : this.jia = false - this.playIndex > 0 ? this.jian = true : this.jian = false - - // this.firstListen() - - - }else{ // 没有听书进度时 - // this.listen(this.libLIst[0],0) - } - - - }) - }, // 第一次加载音乐播放器 firstListen(){ this.forceRefresh = false diff --git a/pages/peanut/home.vue b/pages/peanut/home.vue index a06b1cd..db0a4f5 100644 --- a/pages/peanut/home.vue +++ b/pages/peanut/home.vue @@ -1,11 +1,23 @@