This commit is contained in:
@fawn-nine
2024-07-03 16:25:22 +08:00
parent 1c20c59fda
commit 4ab1335a94
3 changed files with 22 additions and 15 deletions

View File

@@ -25,20 +25,11 @@
<view class="sear_list" v-if="this.show==1">
<view class="flexbox" style="display: flex; flex-wrap: wrap; justify-content: space-evenly;">
<view class="bl_tioa" v-for="(item,index) in bookList" @click="onBookJump(item)">
<view class="bl_tioa" v-for="(item,index) in bookList" @click="onpageJump(item)">
<image :src="item.productImages"></image>
<view>
<text class="bok_name">{{item.productName}}</text>
</view>
<!-- <view>
<text>作者<text style="color: #333;">{{item.authorName}}</text></text>
</view>
<view>
<text>出版商<text style="color: #333;">{{item.publisherName}}</text></text>
</view>
<view>
<text style="line-height: 20rpx;">{{item.title}}</text>
</view> -->
</view>
</view>
</view>
@@ -230,12 +221,15 @@
},
// 电子书内容跳转
onBookJump(e) {
onpageJump(e) {
console.log(e,'e')
uni.navigateTo({
// url: '../eBook/bookContent?Id=' + e.id
url: '../bookShop/commodityDetail?type=2&id=' + e.productId
url: '/pages/goods/index/index?id=' + e.productId
});
// uni.navigateTo({
// // url: '../eBook/bookContent?Id=' + e.id
// url: '../bookShop/commodityDetail?type=2&id=' + e.productId
// });
},
},