This commit is contained in:
@fawn-nine
2023-09-22 11:15:25 +08:00
parent 648117b7a6
commit e630e70376
2 changed files with 418 additions and 284 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -8,11 +8,11 @@
<view class="wrap" > <view class="wrap" >
<u-row gutter="16" justify="flex-start"> <u-row gutter="16" justify="flex-start">
<u-col span="4" v-for="(item,index) in bookList" :key="index"> <u-col span="4" v-for="(item,index) in bookList" :key="index">
<view class="videoBox demo-layout bg-purple" @click="goToClock(item.book)"> <view class="videoBox demo-layout bg-purple" @click="goToClock(item)">
<image v-if="item.book.images != ''" :src="item.book.images" mode="scaleToFill" ></image> <image v-if="item.images != ''" :src="item.images" mode="scaleToFill" ></image>
<image v-else src="../../static/icon/wufeng.jpg" mode="scaleToFill" ></image> <image v-else src="../../static/icon/wufeng.jpg" mode="scaleToFill" ></image>
</view> </view>
<text class="bookName">{{item.book.name}}</text> <text class="bookName">{{item.name}}</text>
</u-col> </u-col>
</u-row> </u-row>
</view> </view>
@@ -66,19 +66,16 @@
// 获取打卡图书 // 获取打卡图书
getfreeBook(){ getfreeBook(){
this.$http this.$http
.post('book/userebookbuy/appbooklist', { .post('book/userebookbuy/getUserClockBookList', { // 磊哥新写
// .post('book/userebookbuy/buylist', { // .post('book/userebookbuy/appbooklist', { 原接口
// .post('book/buyorderdetail/querybuy', { 'userId': this.userInfo.id,
'userId': this.userInfo.id,
// 'page':this.page,
// 'limit':100
}) })
.then(res => { .then(res => {
if(res.code == 0){ if(res.code == 0){
//this.ygtotalPage = res.resultlist.totalCount //this.ygtotalPage = res.resultlist.totalCount
this.bookList = res.resultlist this.bookList = res.books
console.log(res,'已购买') console.log(this.bookList,'打卡列表')
this.status = 3 // this.status = 3
} }
}); });
@@ -124,7 +121,7 @@
height: 350rpx; height: 350rpx;
} }
.u-row{flex-wrap: wrap;} .u-row{flex-wrap: wrap;}
.u-col{overflow: hidden; height: 250px; margin-bottom: 30rpx; } .u-col{overflow: hidden; margin-bottom: 30rpx; }
.listenList{padding: 10rpx; box-sizing: border-box; width: calc(100% - 10rpx);} .listenList{padding: 10rpx; box-sizing: border-box; width: calc(100% - 10rpx);}
.flexbox{display: flex;} .flexbox{display: flex;}
.scroll-Y { .scroll-Y {