Merge branch 'master-xie'
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user