This commit is contained in:
徐哼唧L
2023-12-05 09:11:11 +08:00
6 changed files with 1027 additions and 746 deletions

View File

@@ -167,7 +167,7 @@ import { data } from 'jquery';
Files:[], Files:[],
page:1, page:1,
pageSize:10, pageSize:10,
total:0, total:0, // 资源的总页数1
status:3, status:3,
shupingList:[], shupingList:[],
bfaid:null, bfaid:null,
@@ -202,14 +202,20 @@ import { data } from 'jquery';
this.newList = [] this.newList = []
this.hotList = [] this.hotList = []
this.bookList = [] this.bookList = []
this.total = 0
this.getBookList(this.commentsListTab, false) this.getBookList(this.commentsListTab, false)
}, },
onReachBottom() { onReachBottom() {
if(this.newestpage + 1 <= this.total || this.hotestpage +1 <= this.total || this.booksetpage + 1 <= this.total){
this.newestpage++ this.newestpage++
this.hotestpage++ this.hotestpage++
this.booksetpage++ this.booksetpage++
this.getBookList(this.commentsListTab, false) this.getBookList(this.commentsListTab, false)
}else{
this.status = 1
}
}, },
onLoad(e) { onLoad(e) {
this.windowWidth = uni.getSystemInfoSync().windowWidth; this.windowWidth = uni.getSystemInfoSync().windowWidth;
@@ -261,6 +267,7 @@ import { data } from 'jquery';
this.newestpage = 1 this.newestpage = 1
this.hotestpage = 1 this.hotestpage = 1
this.booksetpage = 1 this.booksetpage = 1
this.total = 0
this.newList = [] this.newList = []
this.hotList = [] this.hotList = []
this.bookList = [] this.bookList = []
@@ -366,6 +373,7 @@ import { data } from 'jquery';
}else{ }else{
this.bookList = this.bookList.concat(res.page.records) this.bookList = this.bookList.concat(res.page.records)
} }
this.total = res.page.pages
console.log(this.newList,'this.newList') console.log(this.newList,'this.newList')
// let list = res.page.records // let list = res.page.records
// console.log(list,'list') // console.log(list,'list')
@@ -391,11 +399,11 @@ import { data } from 'jquery';
// console.log(e,'e') // console.log(e,'e')
// }) // })
// } // }
if(res.page.records.length != 10){ // if(res.page.records.length != 10){
this.status = 1 // this.status = 1
} else { // } else {
this.status = 0 this.status = 0
} // }
// uni.hideLoading(); // uni.hideLoading();
}).catch((e)=>{ }).catch((e)=>{
console.log(e,'e') console.log(e,'e')

View File

@@ -838,7 +838,7 @@
} }
.home_nar { .home_nar {
background-color: #fff; background-color: #fff;
padding: 20rpx 10rpx; padding: 40rpx 10rpx;
justify-content: space-between; justify-content: space-between;
display: flex; display: flex;
color: #333; color: #333;

View File

@@ -17,41 +17,33 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="yianList.length > 0"> <view class="mainContainer">
<view class="bookInfo3" v-for="(item,index) in yianList" :key="index"> <view class="item" v-if="yianList.length > 0">
<view class="mainContent3"> <u-row gutter="16" justify="flex-start">
<view class="item"> <u-col span="4" v-for="(item,index) in yianList" :key="index">
<view class="btns flexbox" @click.stop="toMore(item)"> <view>
<view class="title">{{item.name}}</view> <view class="videoBox demo-layout bg-purple" @click="toMore(item)">
<!-- <view class="pianshuping">{{item.forumNum}}篇医案</view> --> <image v-if="item.images != ''" :src="item.images" mode="scaleToFill"></image>
</view> <image v-else src="../../static/icon/wufeng.jpg" mode="scaleToFill"></image>
<!-- <image class="feng" v-if="item.images" :src="item.images" mode="aspectFill" @click.stop="toMore(item)"></image> </view>
<view class="shupingList"> <text class="bookName">{{item.name}}</text>
<view class="description" v-for="(item1,index1) in item.forums" :key="index1" @click.stop="toDetail1(item1)">{{item1.title}}</view> </view>
</view> </u-col>
<view class="btns flexbox" @click.stop="toMore(item)"> </u-row>
<span class="left"></span> </view>
<span class="right flexbox opbtns" style="color:#3c9cff;"> <u-divider v-else text="暂无数据"></u-divider>
全部 <view style="width: 100%;">
</span> <view v-if="status==0" style="text-align: center;">
</view> --> <u-loading-icon style="display: inline-block;"></u-loading-icon>
</view> <font style='vertical-align: super;margin-left: 10px;font-size: 26rpx;color: #909399;'>努力加载中</font>
</view> </view>
</view> <view v-if="status==1">
</view> <u-divider text="全部加载完成"></u-divider>
<view class="quesheng" v-if="status==1 && yianList.length == 0"> </view>
暂无医案内容~ </view>
</view> </view>
</view> </view>
<view v-if="status==0" style="text-align: center;">
<u-loading-icon style="display: inline-block;"></u-loading-icon>
<font style='vertical-align: super;margin-left: 10px;font-size: 26rpx;color: #909399;'>努力加载中</font>
</view>
<view v-if="status==1" style="padding-bottom: 20rpx;">
<u-divider text="全部加载完成"></u-divider>
</view>
<music-play :playData="playData"></music-play> <music-play :playData="playData"></music-play>
</view> </view>
</template> </template>
@@ -113,48 +105,40 @@ import { data } from 'jquery';
}, },
// 查看本书更多书评 // 查看本书更多书评
toMore(val){ toMore(val){
// console.log(val,'val') if (this.contentShow == 1) {
// let data = { uni.navigateTo({
// 'userId': this.userInfo.id, url: '../yian/yianList?bookid='+val.id + '&bookname='+val.name,
// 'bookId': val.id })
// }
// checkBookRight(data,res=>{
// console.log(res)
// if(res.success){
uni.navigateTo({
url: '../yian/yianList?bookid='+val.id + '&bookname='+val.name,
});
// }else{
// uni.showToast({
// title:'购买本书后方可查看此内容!',
// icon:'none'
// })
// }
// })
},
// 医案详情
toDetail1(val){
// console.log(val,'val')
let data = {
'userId': this.userInfo.id,
'bookId': val.bookid
} }
checkBookRight(data,res=>{ if (this.contentShow == 2) {
console.log(res) uni.navigateTo({
if(res.success){ url: '../eBook/bookContent?Id=' + val.id
uni.navigateTo({ });
url: '../yian/yianDetail?medicalRecordsId='+val.medicalRecordsId }
}) // console.log(val,'val')
}else{
uni.showToast({
title:'购买本书后方可查看此内容!',
icon:'none'
})
}
})
}, },
// // 医案详情
// toDetail1(val){
// // console.log(val,'val')
// let data = {
// 'userId': this.userInfo.id,
// 'bookId': val.bookid
// }
// checkBookRight(data,res=>{
// console.log(res)
// if(res.success){
// uni.navigateTo({
// url: '../yian/yianDetail?medicalRecordsId='+val.medicalRecordsId
// })
// }else{
// uni.showToast({
// title:'购买本书后方可查看此内容!',
// icon:'none'
// })
// }
// })
// },
getYianList(tushuflag){ getYianList(tushuflag){
// uni.showLoading({ // uni.showLoading({
@@ -206,261 +190,7 @@ import { data } from 'jquery';
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// @import '@/style/mixin.scss'; .mytabs {
.orderTabs {
// margin: 70rpx 0 0 0;
width: 100%;
// padding: 0 3% 3% 3%;
position: fixed;
// top: 80rpx;
background-color: #f7faf9;
z-index: 100;
.orderdefine {
display: inline-block;
padding: 20rpx 0 20rpx 0;
// margin: 40rpx 0 15rpx 0;
width:230rpx;
text-align: center;
font-size: 30rpx;
}
.ordStyle {
// border-bottom: 4rpx solid #54a966;
// color: #54a966;
font-weight: bold;
}
}
.flexbox{display: flex;}
.container{padding: 0 10px;}
.star{display: inline-block; width: 20px; height: 20px; margin-right: 10rpx;}
.starGray{ background : url(../../static/icon/star_greey.png) no-repeat; background-size: contain; }
.starLight{ background : url(../../static/icon/star_light.png) no-repeat; background-size: contain;}
.cuIcon-emoji {
background : url(../../static/biaoqing.png) no-repeat; background-size: contain; display: block; margin-right: 20rpx;
width: 30px; }
.cuIcon-keyboard{background : url(../../static/biaoqing.png) no-repeat; background-size: contain; display: block;
width: 30px; }
.tanchu {
padding: 40rpx 30rpx 40rpx 30rpx;
position: relative;
.dp_title {
font-size: 32rpx;
margin-bottom: 50rpx;
color: #555;
text-align: center;
font-weight: bold;
}
.dp_add {
position: absolute;
top: 40rpx;
right: 30rpx;
font-size: 22rpx;
background-color: #fd6004;
color: #fff;
border-radius: 10rpx;
padding: 5rpx 10rpx;
.u-icon {
display: inline-block;
margin-right: 5rpx;
}
}}
.quesheng{text-align: center; margin-top: 100rpx; color: #8b8a91; padding-bottom: 20rpx; padding-top: 20rpx;}
.gengduoshuping{text-align: right; color: #0044ff; padding-bottom: 20rpx; padding-top: 20rpx;}
.bookInfo{
justify-content: space-between;
// margin-bottom: 15px;
background-color: #fff;
padding:20rpx;
border: 1px splid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
margin-bottom: 20rpx;
// .imageradius{
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
// }
// .bookInfo-inner{ padding-left: 30rpx; box-sizing: border-box; width: calc(100% - 150px);
// .title{font-size: 32rpx; margin-top: 0rpx; margin-bottom: 20rpx;font-weight: 700; display: block;}
// .author{font-size: 30rpx;margin-top: 0rpx;margin-bottom: 20rpx;font-weight: 500; display: block; }
// .description{
// font-size: 28rpx;
// line-height: 20px;
// width: 100%;
// color:#888;
// padding-left: 0;
// overflow:hidden;
// text-overflow: ellipsis;
// -webkit-line-clamp: 9;
// display: -webkit-box;
// -webkit-box-orient: vertical;
// }
// }
// .bookinfoimage{width: 150px !important; }
}
.mainContent{
background-color: #fff;
.item{
// padding: 10px;
// margin-bottom: 30rpx;
// border: 1px solid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
// margin-bottom: 20rpx;
}
.feng{
margin:10rpx 20rpx 0 0;
height: 160rpx;
width: 140rpx;
float:left;
border-radius: 20rpx;
border:1rpx solid #e9e9e9;
}
.title{font-size: 30rpx; font-weight: 700; color: #000; overflow: hidden;}
/deep/.description{
overflow: hidden;
color: #666;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
line-clamp: 5;
-webkit-box-orient: vertical;
font-size: 26rpx;
margin-bottom: 20rpx;
margin-top:10rpx;
height: 172rpx;
img{
width: 100% !important;
}
}
.btns{
font-size: 22rpx;
justify-content: space-between;
align-items: center;
.left{
width: 300rpx;
color: #a1a1a1;
}
.right{
width: 300rpx;
display: flex;
justify-content: flex-end;
align-items: center;
}
.gzicon{
margin:0 0 0 20rpx;
height: 40rpx;
width: 40rpx;
// float:left;
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
}
.opbtns{
.pingjia{margin-left: 10px;}
}
}
}
.mb30{margin-bottom: 30rpx; overflow: hidden;}
.bookInfo3{
justify-content: space-between;
// margin-bottom: 15px;
background-color: #fff;
padding:20rpx;
border: 1px splid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
margin-bottom: 20rpx;
.mainContent3{
background-color: #fff;
.item{
// padding: 10px;
// margin-bottom: 30rpx;
// border: 1px solid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
// margin-bottom: 20rpx;
}
.feng{
margin:10rpx 20rpx 0 0;
height: 240rpx;
width: 164rpx;
float:left;
border-radius: 20rpx;
border:1rpx solid #e9e9e9;
}
.title{font-size: 30rpx; font-weight: 700; color: #000; overflow: hidden;}
.pianshuping{
font-size: 24rpx;
color: red;
}
.shupingList{
min-height: 212rpx;
}
/deep/.description{
overflow: hidden;
color: #666;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
line-clamp: 1;
-webkit-box-orient: vertical;
font-size: 26rpx;
margin-bottom: 20rpx;
margin-top:10rpx;
img{
width: 100% !important;
}
}
.btns{
font-size: 22rpx;
justify-content: space-between;
align-items: center;
.left{
width: 300rpx;
color: #a1a1a1;
}
.right{
width: 300rpx;
display: flex;
justify-content: flex-end;
align-items: center;
}
.gzicon{
margin:0 0 0 20rpx;
height: 40rpx;
width: 40rpx;
// float:left;
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
}
.opbtns{
.pingjia{margin-left: 10px;}
}
}
}
}
.mytabs {
// background: url('@/static/icon/bgtushu.png') no-repeat left top; // background: url('@/static/icon/bgtushu.png') no-repeat left top;
height: 80rpx; height: 80rpx;
// margin-bottom: 30rpx; // margin-bottom: 30rpx;
@@ -485,4 +215,55 @@ import { data } from 'jquery';
margin-right: 20rpx; margin-right: 20rpx;
} }
} }
.tip {
padding: 20rpx;
background-color: #fff;
text {
font-size: 36rpx;
}
}
.flexbox {
display: flex;
}
.container {
padding: 10px;
}
.bookName {
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
font-size: 30rpx;
color: #333;
padding: 10rpx 0;
}
uni-image {
width: auto !important;
height: 350rpx;
}
.listenList {
padding: 10rpx;
box-sizing: border-box;
width: calc(100% - 10rpx);
}
.u-row {
flex-wrap: wrap;
}
.u-col {
overflow: hidden;
margin-bottom: 20rpx;
}
.mb30 {
margin-bottom: 30rpx;
overflow: hidden;
}
</style> </style>

View File

@@ -150,8 +150,16 @@
this.$http this.$http
.post('book/bookMedicalRecords/getById?medicalRecordsId=' + this.medicalRecordsId ) .post('book/bookMedicalRecords/getById?medicalRecordsId=' + this.medicalRecordsId )
.then(res => { .then(res => {
console.log(res,'res') // console.log(res,'res')
this.productInfo = res.entity this.productInfo = res.entity
// console.log('cursor: nwse-resize', this.productInfo.content.includes('cursor: nwse-resize'))
// if(this.productInfo.content.includes('cursor: nwse-resize')){
// // this.productInfo.content = this.productInfo.content.replaceAll('cursor: nwse-resize;', 'cursor: nwse-resize;max-width:100%;')
// }else{
this.productInfo.content = this.productInfo.content.replaceAll('img src', 'img style="max-width:100%;" src')
// }
// console.log(this.productInfo.content,'res')
uni.hideLoading(); uni.hideLoading();
}).catch((e)=>{ }).catch((e)=>{
console.log(e,'e') console.log(e,'e')
@@ -305,6 +313,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/.ql-align-center{
text-align: center;
}
.addPl{padding-top: 0rpx; margin-bottom: 0rpx;} .addPl{padding-top: 0rpx; margin-bottom: 0rpx;}
.pinglunMain{ .pinglunMain{
.pl-item{ .pl-item{

View File

@@ -1,155 +1,177 @@
<template> <template>
<view class="container"> <!--父组件-->
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module> <view class="container" style="padding-bottom: 10rpx;">
<view class="header"> <!-- <view class="mini"></view> -->
<!-- 顶部导航栏 --> <view>
<z-nav-bar :title="'医案-'+bookname"></z-nav-bar> <z-nav-bar :title="'医案-'+bookname"></z-nav-bar>
</view> <!-- 基本信息 -->
<view class="ordersTabs" style="z-index:0;position:unset;height: 10px;"> <view class="book_neir">
<view class="ordersdefine"> </view> <view class="flexbox info">
</view> <view class="item">
<view> <image class="bn_img" v-if="bookInfo.images != ''" :src="bookInfo.images" mode="widthFix">
<!-- <view class="" style="padding:40rpx 20rpx;"> </image>
<view class="mytabs flexbox"> <image class="bn_img" style="border:1px solid #eee" v-else src="../../static/icon/wufeng.jpg"
<view :class="['item','item1', contentShow == 1 ? 'active' :'']" @click="setData(1)"> mode="widthFix"></image>
已购图书
</view> </view>
<view :class="['item','item2', contentShow == 2 ? 'active' :'']" @click="setData(2)"> <!-- <img :src="bookInfo.images" class="bn_img"> -->
推荐图书 <view class="item">
<!-- <b class="leiXing" v-if="bookInfo.isVip==1" style="background: #c79119;">VIP</b>
<b class="leiXing" v-if="bookInfo.isVip==2" style="background: #c74119;">付费</b> -->
<view class="bn_nes">
<view style="font-weight: bold;margin-bottom: 30rpx;">
{{bookInfo.name}}
</view>
<view v-if="bookInfo.author != null"
style="color: #9b9b9b;font-size: 28rpx;margin:20rpx 0 0 0;max-width: 400rpx;line-height: 38rpx;">
<p @click="onAuCHJump(bookInfo.author.id,1)" style="margin-bottom: 20rpx;">
{{bookInfo.author.authorName}} [] >
</p>
<p @click="onAuCHJump(item.id,2)" v-for="item in this.bookInfo.publisherNIList">
{{item.title}} >
</p>
</view>
<view class="tags">
<uni-tag class="tag" @click="toMore()" :inverted="true" text="书评"
type="success"></uni-tag>
<!-- 1:打卡2不打卡 -->
<uni-tag @click="gotoclock()" v-if="bookInfo.clockIn == 1" class="tag" :inverted="true"
text="签到" type="warning"></uni-tag>
</view>
</view>
</view> </view>
</view> </view>
</view> -->
<view v-if="yianList.length > 0"> </view>
<view class="bookInfo3" v-for="(item,index) in yianList" :key="index"> <!-- end -->
<view class="mainContent3"> <view class="playList" v-if="yianList.length > 0">
<view class="item"> <view class="item" v-for="(item,index) in yianList" :key="index">
<view class="btns flexbox" @click.stop="toMore(item)"> <view>
<view class="title">{{item.title}}</view> <view @click="toDetail(item)" class="flexbox muluitem">
<!-- <view class="pianshuping">{{item.forumNum}}篇医案</view> --> <span>{{item.title}}</span>&nbsp;&nbsp;
</view> <!-- <view >
<!-- <image class="feng" v-if="item.images" :src="item.images" mode="aspectFill" @click.stop="toMore(item)"></image> <uni-tag v-if="item.voices != ''" class="tag" size="small" :inverted="true" text="音频"
<view class="shupingList"> type="success" /></view> -->
<view class="description" v-for="(item1,index1) in item.forums" :key="index1" @click.stop="toDetail1(item1)">{{item1.title}}</view> <view ><uni-tag v-if="item.content != ''" class="tag" size="small" :inverted="true" text="文字"
</view> type="primary" /></view>
<view class="btns flexbox" @click.stop="toMore(item)"> <!-- <image class="playingFig" src="/static/playingGif.gif" mode="aspectFill"></image> -->
<span class="left"></span> </view>
<span class="right flexbox opbtns" style="color:#3c9cff;"> </view>
全部 </view>
</span> <view style="width: 100%;">
</view> --> <view v-if="status==0" style="text-align: center;">
</view> <u-loading-icon style="display: inline-block;"></u-loading-icon>
</view> <font style='vertical-align: super;margin-left: 10px;font-size: 26rpx;color: #909399;'>努力加载中</font>
</view> </view>
</view> <view v-if="status==1">
<view class="quesheng" v-if="status==1 && yianList.length == 0"> <u-divider text="全部加载完成"></u-divider>
暂无医案内容~ </view>
</view> </view>
</view> </view>
<u-divider v-else text="暂无讲书目录"></u-divider>
<view v-if="status==0" style="text-align: center;"> <music-play :playData="playData"></music-play>
<u-loading-icon style="display: inline-block;"></u-loading-icon> <!-- 公共组件-每个页面必须引入 -->
<font style='vertical-align: super;margin-left: 10px;font-size: 26rpx;color: #909399;'>努力加载中</font> <public-module></public-module>
<!-- <z-navigation></z-navigation> -->
</view> </view>
<view v-if="status==1" style="padding-bottom: 20rpx;">
<u-divider text="全部加载完成"></u-divider>
</view>
<music-play :playData="playData"></music-play>
</view> </view>
</template> </template>
<script> <script>
import $http from '@/config/requestConfig.js'; // import textScroll from '@/components/textScroll/index.vue'
import emotion from '@/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue'; // import cxAdudioPlay from '@/components/cx-audio-play/cx-audio-play.vue'
import musicPlay from '@/components/music.vue' import musicPlay from '@/components/music.vue'
import { data } from 'jquery'; import $http from '../../config/requestConfig';
import { import {
mapState, mapMutations mapState,
} from 'vuex'; mapMutations
import { } from 'vuex';
checkBookRight import {
} from '@/config/utils'; checkBookRight
} from '@/config/utils';
export default { export default {
components: {
// cxAdudioPlay,
// textScroll,
musicPlay
},
data() { data() {
return { return {
playData:{}, isBuy: false, // true 已购买false 未购买
windowWidth:0, playData: {},
bookid:null, bookInfo: {
author:{
authorName:''
}
}, // 书籍详情
bookid: null, // 书籍id
status:3,
freeChapterCount: 0, // 免费章节数
yianList: [], // 书籍目录
videoList: [], //音频文件
page:1, page:1,
pageSize:10, totalPage:0,
total:0,
status:3,
booksetpage: 1,
yianList:[],
contentShow: 1,
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
console.log('下拉刷新了') console.log('下拉刷新了')
uni.stopPullDownRefresh(); this.yianList = []
this.page = 1
this.booksetpage = 1 this.totalPage = 0
this.yianList = [] this.getyianList()
this.getYianList(false) uni.stopPullDownRefresh();
}, },
onReachBottom() { onReachBottom() {
this.booksetpage++ console.log('到底了',this.page+1 , this.totalPage)
this.getYianList(false)
if(this.page+1 <= this.totalPage){
this.page++
this.status = 0
this.getyianList()
}else{
this.status = 1
}
}, },
onHide() {
this.yianList = []
this.page = 1
},
//第一次加载
onLoad(e) { onLoad(e) {
this.windowWidth = uni.getSystemInfoSync().windowWidth; console.log('------------------')
console.log(e,'onload') // 隐藏原生的tabbar
console.log(e, 'e')
uni.hideTabBar();
this.bookid = e.bookid this.bookid = e.bookid
this.bookname = e.bookname this.bookname = e.bookname
this.getYianList(false) },
onShow() {
// this.yianList = []
// this.page = 1
// this.totalPage = 0
this.getyianList()
this.getBookInfo()
}, },
computed:{ computed: {
...mapState(['userInfo']), ...mapState(['userInfo'])
}, },
methods: { methods: {
...mapMutations(['setLoadingShow']), ...mapMutations(['setUserInfo']),
setData(e) {
this.contentShow = e
this.getYianList(true)
},
// 查看本书更多书评 // 查看本书更多书评
toMore(val){ toMore(val) {
// console.log(val,'val') // console.log(val, 'val')
let data = { let data = {
'userId': this.userInfo.id, 'userId': this.userInfo.id,
'bookId': val.id 'bookId': this.bookid
}
// checkBookRight(data,res=>{
// console.log(res)
// if(res.success){
uni.navigateTo({
url: '../yian/yianDetail?medicalRecordsId='+val.medicalRecordsId,
});
// }else{
// uni.showToast({
// title:'购买本书后方可查看此内容!',
// icon:'none'
// })
// }
// })
},
// 医案详情
toDetail1(val){
// console.log(val,'val')
let data = {
'userId': this.userInfo.id,
'bookId': val.bookid
} }
checkBookRight(data,res=>{ checkBookRight(data,res=>{
console.log(res) console.log(res)
if(res.success){ if(res.success){
uni.navigateTo({ uni.navigateTo({
url: '../yian/yianDetail?medicalRecordsId='+val.medicalRecordsId url: '../comments/comments?bookid=' + this.bookid,
}) });
}else{ }else{
uni.showToast({ uni.showToast({
title:'购买本书后方可查看此内容!', title:'购买本书后方可查看此内容!',
@@ -159,323 +181,301 @@ import { data } from 'jquery';
}) })
}, },
getYianList(){ // 去打卡
gotoclock() {
// uni.showLoading({ uni.navigateTo({
// title: '加载中' url: '../clock/clock?bookid=' + this.bookid,
// }); });
},
getBookInfo() {
// 获取书本基本信息
this.$http
.post('book/book/getBookInfo', {
'bookId': this.bookid,
'userId': this.userInfo.id
})
.then(res => {
if (res.code == 0) {
console.log(res, 'res')
this.bookInfo = res.book
// this.isBuy = res.book.isBuy
// this.freeChapterCount = res.book.freeChapterCount
} else {
console.log(res.msg)
}
console.log(res, 'res基本信息')
}).catch((error) => {
console.log(error)
})
},
// 详细
toDetail(item) {
console.log('点击了', item)
// uni.navigateTo({
// url: './talkBookDetail?teachId=' + item.teachId +"&bookId="+item.bookId
// });
uni.navigateTo({
url: '../yian/yianDetail?medicalRecordsId='+item.medicalRecordsId,
});
},
// 信息介绍跳转
onAuCHJump(id, e) {
uni.navigateTo({
url: '../eBook/bookMessage?Id=' + id + '&typ=' + e
});
},
// 获取章节列表
getyianList() {
$http.request({ $http.request({
url: "book/bookMedicalRecords/listByBookId", url: "book/bookMedicalRecords/listByBookId",
method: "POST", method: "POST",
data: { data: {
"page": this.booksetpage, "page": this.page,
"limit": 10, "limit": 20,
"bookId": this.bookid "bookId": this.bookid
}, },
header: { //默认 无 说明:请求头 header: { //默认 无 说明:请求头
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
}).then(res => {
this.yianList = this.yianList.concat(res.page.records)
console.log(this.yianList,'this.yianList')
if(res.page.records.length != 10){
this.status = 1
} else {
this.status = 0
}
}).catch(e => {
console.log(e)
}) })
// this.$http
// .post('book/teach/getBookTeachItems', {
// 'bookId': this.bookid,
// 'limit': 20,
// 'page': this.page
// // 'userid': this.userInfo.id,
// // 'bookid':
// // 'id': this.playid
// })
.then(res => {
if (res.code == 0) {
console.log(res, '章节目录')
if (res.page.records.length > 0) {
this.yianList = this.yianList.concat(res.page.records)
this.status = 3
this.totalPage = res.page.pages
if(this.totalPage = res.page.current){
this.status = 1
}
} else {
this.yianList = []
this.totalPage = 0
}
}
}).catch((e) => {
console.log(e.msg)
})
}, },
}, },
components:{
musicPlay,
emotion
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="less">
// @import '@/style/mixin.scss'; .muluitem{
.orderTabs { span{
// margin: 70rpx 0 0 0; white-space: nowrap;
width: 100%; overflow-x: hidden;
// padding: 0 3% 3% 3%;
position: fixed;
// top: 80rpx;
background-color: #f7faf9;
z-index: 100;
.orderdefine {
display: inline-block;
padding: 20rpx 0 20rpx 0;
// margin: 40rpx 0 15rpx 0;
width:230rpx;
text-align: center;
font-size: 30rpx;
}
.ordStyle {
// border-bottom: 4rpx solid #54a966;
// color: #54a966;
font-weight: bold;
}
}
.flexbox{display: flex;}
.container{padding: 0 10px;}
.star{display: inline-block; width: 20px; height: 20px; margin-right: 10rpx;}
.starGray{ background : url(../../static/icon/star_greey.png) no-repeat; background-size: contain; }
.starLight{ background : url(../../static/icon/star_light.png) no-repeat; background-size: contain;}
.cuIcon-emoji {
background : url(../../static/biaoqing.png) no-repeat; background-size: contain; display: block; margin-right: 20rpx;
width: 30px; }
.cuIcon-keyboard{background : url(../../static/biaoqing.png) no-repeat; background-size: contain; display: block;
width: 30px; }
.tanchu {
padding: 40rpx 30rpx 40rpx 30rpx;
position: relative;
.dp_title {
font-size: 32rpx;
margin-bottom: 50rpx;
color: #555;
text-align: center;
font-weight: bold;
}
.dp_add {
position: absolute;
top: 40rpx;
right: 30rpx;
font-size: 22rpx;
background-color: #fd6004;
color: #fff;
border-radius: 10rpx;
padding: 5rpx 10rpx;
.u-icon {
display: inline-block;
margin-right: 5rpx;
}
}}
.quesheng{text-align: center; margin-top: 100rpx; color: #8b8a91; padding-bottom: 20rpx; padding-top: 20rpx;}
.gengduoshuping{text-align: right; color: #0044ff; padding-bottom: 20rpx; padding-top: 20rpx;}
.bookInfo{
justify-content: space-between;
// margin-bottom: 15px;
background-color: #fff;
padding:20rpx;
border: 1px splid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
margin-bottom: 20rpx;
// .imageradius{
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
// }
// .bookInfo-inner{ padding-left: 30rpx; box-sizing: border-box; width: calc(100% - 150px);
// .title{font-size: 32rpx; margin-top: 0rpx; margin-bottom: 20rpx;font-weight: 700; display: block;}
// .author{font-size: 30rpx;margin-top: 0rpx;margin-bottom: 20rpx;font-weight: 500; display: block; }
// .description{
// font-size: 28rpx;
// line-height: 20px;
// width: 100%;
// color:#888;
// padding-left: 0;
// overflow:hidden;
// text-overflow: ellipsis;
// -webkit-line-clamp: 9;
// display: -webkit-box;
// -webkit-box-orient: vertical;
// }
// }
// .bookinfoimage{width: 150px !important; }
}
.mainContent{
background-color: #fff;
.item{
// padding: 10px;
// margin-bottom: 30rpx;
// border: 1px solid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
// margin-bottom: 20rpx;
}
.feng{
margin:10rpx 20rpx 0 0;
height: 160rpx;
width: 140rpx;
float:left;
border-radius: 20rpx;
border:1rpx solid #e9e9e9;
}
.title{font-size: 30rpx; font-weight: 700; color: #000; overflow: hidden;}
/deep/.description{
overflow: hidden;
color: #666;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
line-clamp: 5;
-webkit-box-orient: vertical;
font-size: 26rpx;
margin-bottom: 20rpx;
margin-top:10rpx;
height: 172rpx;
img{
width: 100% !important;
}
}
.btns{
font-size: 22rpx;
justify-content: space-between;
align-items: center;
.left{
width: 300rpx;
color: #a1a1a1;
}
.right{
width: 300rpx;
display: flex;
justify-content: flex-end;
align-items: center;
}
.gzicon{
margin:0 0 0 20rpx;
height: 40rpx;
width: 40rpx;
// float:left;
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
}
.opbtns{
.pingjia{margin-left: 10px;}
}
} }
} }
.mb30{margin-bottom: 30rpx; overflow: hidden;} .playingFig {
width: 100rpx;
height: 100rpx;
display: inline-block;
vertical-align: middle;
}
.bookInfo3{ .price {
justify-content: space-between; margin-top: 160rpx;
// margin-bottom: 15px; overflow: hidden;
background-color: #fff;
padding:20rpx; .light {
border: 1px splid #999; font-size: 50rpx;
box-sizing: border-box; font-weight: bold;
// padding-bottom: 20rpx; color: #f05654;
}
}
.tags {
.tag {
margin-left: 0;
margin-right: 10rpx;
}
}
.charType {
display: inline;
width: 20px !important;
}
.graytitle {
color: #999;
}
.yigoumai {
background-color: #ffc773;
}
.shiting {
background-color: #f47983;
}
.playing {
color: #1daa5c;
}
.chaoshi {
background-color: #1daa5c;
}
.home_nar {
margin: 30rpx 0;
justify-content: space-between;
}
.hn_cl_tit {
width: 48%;
text-align: center;
border-radius: 20rpx; border-radius: 20rpx;
margin-bottom: 20rpx; padding-top: 10rpx;
.mainContent3{ // line-height: 110upx;
background-color: #fff; display: flex;
.item{ align-content: center;
// padding: 10px; justify-content: center;
// margin-bottom: 30rpx;
// border: 1px solid #999; image {
box-sizing: border-box;
// padding-bottom: 20rpx; width: 80upx;
border-radius: 20rpx; height: 80upx;
// margin-bottom: 20rpx; display: inline-block;
} // margin: 0 auto;
.feng{ // margin: 0 20rpx;
margin:10rpx 20rpx 0 0; }
height: 240rpx;
width: 164rpx; text {
float:left; height: 100upx;
border-radius: 20rpx; display: inline-block;
border:1rpx solid #e9e9e9; line-height: 80upx;
} color: #fff;
.title{font-size: 30rpx; font-weight: 700; color: #000; overflow: hidden;} font-size: 38rpx;
.pianshuping{ }
font-size: 24rpx; }
color: red;
} .flexbox {
.shupingList{ display: flex;
min-height: 212rpx; }
}
/deep/.description{ .book_neir {
overflow: hidden; margin-top: 80rpx;
color: #666; padding: 20rpx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden; .bn_img {
text-overflow: ellipsis; width: 300rpx !important;
display: -webkit-box; }
-webkit-line-clamp: 1; }
line-clamp: 1;
-webkit-box-orient: vertical; .info {
font-size: 26rpx; overflow: hidden;
margin-bottom: 20rpx; width: 100%;
margin-top:10rpx; }
img{
width: 100% !important; .book_neir {
} margin: 20rpx 0 0 0;
} position: relative;
.btns{
font-size: 22rpx;
justify-content: space-between;
align-items: center;
.left{
width: 300rpx;
color: #a1a1a1;
}
.right{
width: 300rpx;
display: flex;
justify-content: flex-end;
align-items: center;
}
.gzicon{
margin:0 0 0 20rpx;
height: 40rpx;
width: 40rpx;
// float:left;
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
}
.opbtns{
.pingjia{margin-left: 10px;}
}
}
}
}
.mytabs {
// background: url('@/static/icon/bgtushu.png') no-repeat left top;
height: 80rpx;
// margin-bottom: 30rpx;
.item { .item {
border-radius: 10rpx; display: inline-block;
background-color: #c6ead0; float: left;
width: 48%; width: 50%;
// margin: 0 10rpx; overflow: hidden;
text-align: center; }
color: #3c7f56;
.bn_img {
float: left;
width: 250upx;
height: 320upx;
}
.bn_nes {
float: left;
font-size: 36rpx; font-size: 36rpx;
line-height: 80rpx; margin-left: 40rpx;
view {
margin: 20rpx 0 0 0;
}
} }
.item.active { .leiXing {
background-color: #3c7f56; display: block;
padding: 5rpx 10rpx;
border-radius: 10rpx;
text-align: center;
color: #fff; color: #fff;
} font-weight: normal;
background: #27b386;
.item1 { position: absolute;
margin-right: 20rpx; left: -15upx;
top: 10upx;
font-size: 16rpx;
} }
} }
</style>
.container {
background-color: #fff;
}
.playTitle {
width: 80%;
margin: 20rpx auto;
margin-top: 50rpx;
}
.libTitle {
font-size: 40rpx;
margin: 40rpx 0;
display: block;
text-align: center;
}
.tanchu {
padding: 40rpx 30rpx 40rpx 30rpx;
}
.playList {
padding: 20rpx;
color: #666;
}
.playList .item {
display: block;
line-height: 80rpx;
white-space: nowrap;
overflow-x: hidden;
font-size: 36rpx;
text-overflow: ellipsis;
}
.tag {
margin-left: 20rpx;
}
.playNow {
color: #27b386;
}
.pageTabBox {
width: 150px;
margin: 20rpx auto;
font-size: 60rpx;
}
.cxAdudioPlay {
position: fixed;
bottom: 150rpx;
left: 0;
}
</style>

481
pages/yian/yianList1.vue Normal file
View File

@@ -0,0 +1,481 @@
<template>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<view class="header">
<!-- 顶部导航栏 -->
<z-nav-bar :title="'医案-'+bookname"></z-nav-bar>
</view>
<view class="ordersTabs" style="z-index:0;position:unset;height: 10px;">
<view class="ordersdefine"> </view>
</view>
<view>
<!-- <view class="" style="padding:40rpx 20rpx;">
<view class="mytabs flexbox">
<view :class="['item','item1', contentShow == 1 ? 'active' :'']" @click="setData(1)">
已购图书
</view>
<view :class="['item','item2', contentShow == 2 ? 'active' :'']" @click="setData(2)">
推荐图书
</view>
</view>
</view> -->
<view v-if="yianList.length > 0">
<view class="bookInfo3" v-for="(item,index) in yianList" :key="index">
<view class="mainContent3">
<view class="item">
<view class="btns flexbox" @click.stop="toMore(item)">
<view class="title">{{item.title}}</view>
<!-- <view class="pianshuping">{{item.forumNum}}篇医案</view> -->
</view>
<!-- <image class="feng" v-if="item.images" :src="item.images" mode="aspectFill" @click.stop="toMore(item)"></image>
<view class="shupingList">
<view class="description" v-for="(item1,index1) in item.forums" :key="index1" @click.stop="toDetail1(item1)">{{item1.title}}</view>
</view>
<view class="btns flexbox" @click.stop="toMore(item)">
<span class="left"></span>
<span class="right flexbox opbtns" style="color:#3c9cff;">
全部
</span>
</view> -->
</view>
</view>
</view>
</view>
<view class="quesheng" v-if="status==1 && yianList.length == 0">
暂无医案内容~
</view>
</view>
<view v-if="status==0" style="text-align: center;">
<u-loading-icon style="display: inline-block;"></u-loading-icon>
<font style='vertical-align: super;margin-left: 10px;font-size: 26rpx;color: #909399;'>努力加载中</font>
</view>
<view v-if="status==1" style="padding-bottom: 20rpx;">
<u-divider text="全部加载完成"></u-divider>
</view>
<music-play :playData="playData"></music-play>
</view>
</template>
<script>
import $http from '@/config/requestConfig.js';
import emotion from '@/bkhumor-emojiplus/components/bkhumor-emojiplus/bkhumor-emojiplus.vue';
import musicPlay from '@/components/music.vue'
import { data } from 'jquery';
import {
mapState, mapMutations
} from 'vuex';
import {
checkBookRight
} from '@/config/utils';
export default {
data() {
return {
playData:{},
windowWidth:0,
bookid:null,
page:1,
pageSize:10,
total:0,
status:3,
booksetpage: 1,
yianList:[],
contentShow: 1,
}
},
onPullDownRefresh() {
console.log('下拉刷新了')
uni.stopPullDownRefresh();
this.booksetpage = 1
this.yianList = []
this.getYianList(false)
},
onReachBottom() {
this.booksetpage++
this.getYianList(false)
},
onLoad(e) {
this.windowWidth = uni.getSystemInfoSync().windowWidth;
console.log(e,'onload')
this.bookid = e.bookid
this.bookname = e.bookname
this.getYianList(false)
},
computed:{
...mapState(['userInfo']),
},
methods: {
...mapMutations(['setLoadingShow']),
setData(e) {
this.contentShow = e
this.getYianList(true)
},
// 查看本书更多书评
toMore(val){
// console.log(val,'val')
let data = {
'userId': this.userInfo.id,
'bookId': val.id
}
// checkBookRight(data,res=>{
// console.log(res)
// if(res.success){
uni.navigateTo({
url: '../yian/yianDetail?medicalRecordsId='+val.medicalRecordsId,
});
// }else{
// uni.showToast({
// title:'购买本书后方可查看此内容!',
// icon:'none'
// })
// }
// })
},
// 医案详情
toDetail1(val){
// console.log(val,'val')
let data = {
'userId': this.userInfo.id,
'bookId': val.bookid
}
checkBookRight(data,res=>{
console.log(res)
if(res.success){
uni.navigateTo({
url: '../yian/yianDetail?medicalRecordsId='+val.medicalRecordsId
})
}else{
uni.showToast({
title:'购买本书后方可查看此内容!',
icon:'none'
})
}
})
},
getYianList(){
// uni.showLoading({
// title: '加载中'
// });
$http.request({
url: "book/bookMedicalRecords/listByBookId",
method: "POST",
data: {
"page": this.booksetpage,
"limit": 10,
"bookId": this.bookid
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
},
}).then(res => {
this.yianList = this.yianList.concat(res.page.records)
console.log(this.yianList,'this.yianList')
if(res.page.records.length != 10){
this.status = 1
} else {
this.status = 0
}
}).catch(e => {
console.log(e)
})
},
},
components:{
musicPlay,
emotion
}
}
</script>
<style lang="scss" scoped>
// @import '@/style/mixin.scss';
.orderTabs {
// margin: 70rpx 0 0 0;
width: 100%;
// padding: 0 3% 3% 3%;
position: fixed;
// top: 80rpx;
background-color: #f7faf9;
z-index: 100;
.orderdefine {
display: inline-block;
padding: 20rpx 0 20rpx 0;
// margin: 40rpx 0 15rpx 0;
width:230rpx;
text-align: center;
font-size: 30rpx;
}
.ordStyle {
// border-bottom: 4rpx solid #54a966;
// color: #54a966;
font-weight: bold;
}
}
.flexbox{display: flex;}
.container{padding: 0 10px;}
.star{display: inline-block; width: 20px; height: 20px; margin-right: 10rpx;}
.starGray{ background : url(../../static/icon/star_greey.png) no-repeat; background-size: contain; }
.starLight{ background : url(../../static/icon/star_light.png) no-repeat; background-size: contain;}
.cuIcon-emoji {
background : url(../../static/biaoqing.png) no-repeat; background-size: contain; display: block; margin-right: 20rpx;
width: 30px; }
.cuIcon-keyboard{background : url(../../static/biaoqing.png) no-repeat; background-size: contain; display: block;
width: 30px; }
.tanchu {
padding: 40rpx 30rpx 40rpx 30rpx;
position: relative;
.dp_title {
font-size: 32rpx;
margin-bottom: 50rpx;
color: #555;
text-align: center;
font-weight: bold;
}
.dp_add {
position: absolute;
top: 40rpx;
right: 30rpx;
font-size: 22rpx;
background-color: #fd6004;
color: #fff;
border-radius: 10rpx;
padding: 5rpx 10rpx;
.u-icon {
display: inline-block;
margin-right: 5rpx;
}
}}
.quesheng{text-align: center; margin-top: 100rpx; color: #8b8a91; padding-bottom: 20rpx; padding-top: 20rpx;}
.gengduoshuping{text-align: right; color: #0044ff; padding-bottom: 20rpx; padding-top: 20rpx;}
.bookInfo{
justify-content: space-between;
// margin-bottom: 15px;
background-color: #fff;
padding:20rpx;
border: 1px splid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
margin-bottom: 20rpx;
// .imageradius{
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
// }
// .bookInfo-inner{ padding-left: 30rpx; box-sizing: border-box; width: calc(100% - 150px);
// .title{font-size: 32rpx; margin-top: 0rpx; margin-bottom: 20rpx;font-weight: 700; display: block;}
// .author{font-size: 30rpx;margin-top: 0rpx;margin-bottom: 20rpx;font-weight: 500; display: block; }
// .description{
// font-size: 28rpx;
// line-height: 20px;
// width: 100%;
// color:#888;
// padding-left: 0;
// overflow:hidden;
// text-overflow: ellipsis;
// -webkit-line-clamp: 9;
// display: -webkit-box;
// -webkit-box-orient: vertical;
// }
// }
// .bookinfoimage{width: 150px !important; }
}
.mainContent{
background-color: #fff;
.item{
// padding: 10px;
// margin-bottom: 30rpx;
// border: 1px solid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
// margin-bottom: 20rpx;
}
.feng{
margin:10rpx 20rpx 0 0;
height: 160rpx;
width: 140rpx;
float:left;
border-radius: 20rpx;
border:1rpx solid #e9e9e9;
}
.title{font-size: 30rpx; font-weight: 700; color: #000; overflow: hidden;}
/deep/.description{
overflow: hidden;
color: #666;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
line-clamp: 5;
-webkit-box-orient: vertical;
font-size: 26rpx;
margin-bottom: 20rpx;
margin-top:10rpx;
height: 172rpx;
img{
width: 100% !important;
}
}
.btns{
font-size: 22rpx;
justify-content: space-between;
align-items: center;
.left{
width: 300rpx;
color: #a1a1a1;
}
.right{
width: 300rpx;
display: flex;
justify-content: flex-end;
align-items: center;
}
.gzicon{
margin:0 0 0 20rpx;
height: 40rpx;
width: 40rpx;
// float:left;
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
}
.opbtns{
.pingjia{margin-left: 10px;}
}
}
}
.mb30{margin-bottom: 30rpx; overflow: hidden;}
.bookInfo3{
justify-content: space-between;
// margin-bottom: 15px;
background-color: #fff;
padding:20rpx;
border: 1px splid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
margin-bottom: 20rpx;
.mainContent3{
background-color: #fff;
.item{
// padding: 10px;
// margin-bottom: 30rpx;
// border: 1px solid #999;
box-sizing: border-box;
// padding-bottom: 20rpx;
border-radius: 20rpx;
// margin-bottom: 20rpx;
}
.feng{
margin:10rpx 20rpx 0 0;
height: 240rpx;
width: 164rpx;
float:left;
border-radius: 20rpx;
border:1rpx solid #e9e9e9;
}
.title{font-size: 30rpx; font-weight: 700; color: #000; overflow: hidden;}
.pianshuping{
font-size: 24rpx;
color: red;
}
.shupingList{
min-height: 212rpx;
}
/deep/.description{
overflow: hidden;
color: #666;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
line-clamp: 1;
-webkit-box-orient: vertical;
font-size: 26rpx;
margin-bottom: 20rpx;
margin-top:10rpx;
img{
width: 100% !important;
}
}
.btns{
font-size: 22rpx;
justify-content: space-between;
align-items: center;
.left{
width: 300rpx;
color: #a1a1a1;
}
.right{
width: 300rpx;
display: flex;
justify-content: flex-end;
align-items: center;
}
.gzicon{
margin:0 0 0 20rpx;
height: 40rpx;
width: 40rpx;
// float:left;
// border-radius: 20rpx;
// border:1rpx solid #e9e9e9;
}
.opbtns{
.pingjia{margin-left: 10px;}
}
}
}
}
.mytabs {
// background: url('@/static/icon/bgtushu.png') no-repeat left top;
height: 80rpx;
// margin-bottom: 30rpx;
.item {
border-radius: 10rpx;
background-color: #c6ead0;
width: 48%;
// margin: 0 10rpx;
text-align: center;
color: #3c7f56;
font-size: 36rpx;
line-height: 80rpx;
}
.item.active {
background-color: #3c7f56;
color: #fff;
}
.item1 {
margin-right: 20rpx;
}
}
</style>