密码强度+试听权限错乱

This commit is contained in:
@fawn-nine
2023-10-07 17:00:45 +08:00
parent 285e69d0cf
commit ddccf69de2
3 changed files with 213 additions and 146 deletions

View File

@@ -52,7 +52,7 @@
<view class="playList" v-if="libLIst.length > 0">
<view class="item" v-for="(item,index) in libLIst" :key="index" >
<view >
<view v-if="3 > index"
<view v-if="item.isFree == 1"
:class="[
userInfo.playingInfo.bookId==item.bookId && userInfo.playingInfo.id == item.id ? 'playing' : '']" @click="listenOne(item, index)">
<span :class="['graytitle']">{{item.chapter}}</span>&nbsp;&nbsp;
@@ -155,7 +155,9 @@
onPageScroll(e) {
this.scrollTop = e.scrollTop;
},
onHide() {
this.libLIst = []
},
//第一次加载
onLoad(e) {
this.bookId = e.Id
@@ -302,8 +304,14 @@
.then(res => {
if(res.code == 0){
console.log(res,999)
if(res.BookCatalogue.length > 0){
this.libLIst = res.BookCatalogue
if(res.BookCatalogue.length > 0){
res.BookCatalogue.map( item => {
if(item.isFree == 1){
this.libLIst.push(item)
}
})
console.log('改变后的试听目录',this.libLIst)
//this.libLIst = res.BookCatalogue
// this.fengImg = res.images
}
}