09-22
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,11 +8,11 @@
|
||||
<view class="wrap" >
|
||||
<u-row gutter="16" justify="flex-start">
|
||||
<u-col span="4" v-for="(item,index) in bookList" :key="index">
|
||||
<view class="videoBox demo-layout bg-purple" @click="goToClock(item.book)">
|
||||
<image v-if="item.book.images != ''" :src="item.book.images" mode="scaleToFill" ></image>
|
||||
<view class="videoBox demo-layout bg-purple" @click="goToClock(item)">
|
||||
<image v-if="item.images != ''" :src="item.images" mode="scaleToFill" ></image>
|
||||
<image v-else src="../../static/icon/wufeng.jpg" mode="scaleToFill" ></image>
|
||||
</view>
|
||||
<text class="bookName">{{item.book.name}}</text>
|
||||
<text class="bookName">{{item.name}}</text>
|
||||
</u-col>
|
||||
</u-row>
|
||||
</view>
|
||||
@@ -66,19 +66,16 @@
|
||||
// 获取打卡图书
|
||||
getfreeBook(){
|
||||
this.$http
|
||||
.post('book/userebookbuy/appbooklist', {
|
||||
// .post('book/userebookbuy/buylist', {
|
||||
// .post('book/buyorderdetail/querybuy', {
|
||||
'userId': this.userInfo.id,
|
||||
// 'page':this.page,
|
||||
// 'limit':100
|
||||
.post('book/userebookbuy/getUserClockBookList', { // 磊哥新写
|
||||
// .post('book/userebookbuy/appbooklist', { 原接口
|
||||
'userId': this.userInfo.id,
|
||||
})
|
||||
.then(res => {
|
||||
if(res.code == 0){
|
||||
//this.ygtotalPage = res.resultlist.totalCount
|
||||
this.bookList = res.resultlist
|
||||
console.log(res,'已购买')
|
||||
this.status = 3
|
||||
this.bookList = res.books
|
||||
console.log(this.bookList,'打卡列表')
|
||||
// this.status = 3
|
||||
}
|
||||
|
||||
});
|
||||
@@ -124,7 +121,7 @@
|
||||
height: 350rpx;
|
||||
}
|
||||
.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);}
|
||||
.flexbox{display: flex;}
|
||||
.scroll-Y {
|
||||
|
||||
Reference in New Issue
Block a user