detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <template>
  2. <view>
  3. <nav-bar title="题库详情"></nav-bar>
  4. <view style="background-color: #FFFFFF;">
  5. <image :src="$method.splitImgHost(goodsData.coverUrl, true)" style="width: 100%;height: 400rpx;"></image>
  6. <view class="cou_title">
  7. <view class="title_name">
  8. <view class="titleTag">{{ goodsData.goodsName }}</view>
  9. </view>
  10. <view style="display: flex;justify-content: space-between;margin-top: 13rpx;">
  11. <view class="prices">
  12. <!-- <text class="price_sym"></text> -->
  13. <text v-if="goodsData.standPrice" class="price_word">¥ {{ goodsData.standPrice }}</text>
  14. <text v-else class="price_word free">免费</text>
  15. <text v-if="goodsData.linePrice" class="sale"> ¥ </text>
  16. <text v-if="goodsData.linePrice" class="price_line"> {{ goodsData.linePrice }}</text>
  17. </view>
  18. <view class="noteTag">
  19. <!-- 共 <text class="blackFont">{{ goodsData.chapterNum }} 张卷 {{goodsData || '-'}}</text> 道题 -->
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="contents">
  25. <!-- <view>
  26. <view><u-tabs :list="list" item-width="50%" font-size="30" bar-width="24" :current="current" @change="change" active-color="#007AFF"></u-tabs></view>
  27. </view> -->
  28. <view class="tabs">
  29. <view v-for="(item, index) in list" :key="index" class="tab_item"
  30. :class="[{nactive: current == index}]" @click="change(index)">{{ item.name }}</view>
  31. </view>
  32. <view class="intro" v-if="current == 0">
  33. <view v-if="goodsData.mobileDetailHtml" class="content" style="padding:10rpx;"><rich-text :nodes="goodsData.mobileDetailHtml"></rich-text></view>
  34. </view>
  35. <view class="title-list" v-if="current == 1">
  36. <view class="content">
  37. <view class="list" v-for="(item1, index1) in bankList" :key="index1">
  38. <template v-if="item1.type == 1">
  39. <view class="moduleItem" @click="clickModule(index1,item1.majorId)">
  40. <view class="courseName">{{ item1.name }}</view>
  41. <view>
  42. <image src="/static/icon/up.png" class="icon_up" v-if="!item1.showList"></image>
  43. <image src="/static/icon/down.png" class="icon_up" v-if="item1.showList"></image>
  44. </view>
  45. </view>
  46. <template v-if="item1.showList">
  47. <view v-for="(item2, index2) in item1.list" :key="index2">
  48. <view class="section" @click="changeItem(index1,index2,item2.chapterExamId,item1.type)">
  49. <!-- <image src="/static/icon/down1.png" class="icon_up" v-if="item2.showList"></image>
  50. <image src="/static/icon/up1.png" class="icon_up" v-if="!item2.showList"></image> -->
  51. <u-icon v-if="!item2.showList" name="arrow-right" color="#999" size="24"></u-icon>
  52. <u-icon v-if="item2.showList" name="arrow-down" color="#999" size="24"></u-icon>
  53. <text class="item_name">{{ item2.name }}</text>
  54. </view>
  55. <view class="article-list" v-if="item2.showList">
  56. <view class="article" :class="{ active: showTest(article.examId) }" v-for="(article, index3) in item2.list" :key="index3">
  57. <view class="flex_auto">{{ article.examName }}</view>
  58. <view class="btn" @click="goTest(item1.type,article)" v-if="showTest(article.examId)">试做</view>
  59. </view>
  60. </view>
  61. <u-line></u-line>
  62. </view>
  63. </template>
  64. </template>
  65. <template v-if="item1.type == 2">
  66. <view class="section" @click="changeItem(index1,'',item1.majorId,item1.type)" >
  67. <!-- <image src="/static/icon/down1.png" class="icon_up" v-if="item1.showList"></image>
  68. <image src="/static/icon/up1.png" class="icon_up" v-if="!item1.showList"></image> -->
  69. <u-icon v-if="!item1.showList" name="arrow-right" color="#999" size="24"></u-icon>
  70. <u-icon v-if="item1.showList" name="arrow-down" color="#999" size="24"></u-icon>
  71. <text class="item_name">{{ item1.name }}</text>
  72. </view>
  73. <view class="article-list" v-if="item1.showList" >
  74. <view class="article" :class="{active:showTest(article.examId)}" :key="index2" v-for="(article,index2) in item1.list">
  75. <view class="flex_auto">{{article.examName}}</view>
  76. <view class="btn" @click="goTest(item1.type,article)" v-if="showTest(article.examId)">试做</view>
  77. </view>
  78. </view>
  79. </template>
  80. <template v-if="item1.type == 3">
  81. <view class="article" :class="{ active: showTest(item1.majorId) }">
  82. <view class="flex_auto">{{ item1.name }}</view>
  83. <view class="btn" @click="goTest(item1.type,item1)" v-if="showTest(item1.majorId)">试做</view>
  84. </view>
  85. </template>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="bottomBox" v-if="!hideBuyState">
  91. <!-- <view class="priceTag">¥ {{ toFixed(goodsData.standPrice) }}</view> -->
  92. <view class="icons">
  93. <view class="icon_item ones">
  94. <image src="/static/index/share.png" class="share"></image>
  95. <button type="default" open-type="share" class="bt_share"></button>
  96. <view class="share_w">分享</view>
  97. </view>
  98. <view class="icon_item">
  99. <image src="/static/index/shopcar.png" class="shopcar" @click="toShopcar()"></image>
  100. <view class="share_w">购物车</view>
  101. </view>
  102. </view>
  103. <view style="display: flex;color: #FFFFFF;align-items: center;">
  104. <view class="btn1" @click="addCart">加购物车</view>
  105. <view class="btn2" @click="buy">立即购买</view>
  106. </view>
  107. </view>
  108. <!-- 已购买过课程的弹窗 -->
  109. <u-popup v-model="bugCourseModel" mode="center" border-radius="40">
  110. <view class="had_bugCourse">
  111. <image src="/pages2/static/hadBug.png" class="share"></image>
  112. <view class="tips">
  113. <view class="warns">温馨提示</view>
  114. <view class="words">您<text>已购买过</text>该商品课程</view>
  115. <view class="words">可立即前往学习</view>
  116. </view>
  117. <view class="tip_botton">
  118. <view class="cancel_btn" @click="changeKown()">知道了</view>
  119. <view class="confirm_btn" @click="toStudy()">去学习</view>
  120. </view>
  121. </view>
  122. </u-popup>
  123. <!-- 选择规格弹窗 -->
  124. <u-popup v-model="toggleSkuShow" mode="bottom" border-radius="40">
  125. <view class="popup_box">
  126. <view class="check_head">
  127. <view class="headers">
  128. <view class="grade">选择规格</view>
  129. <u-icon name="close" color="#9C9C9C" size="40" @click="closePop()"></u-icon>
  130. </view>
  131. </view>
  132. <view class="pop_prices">
  133. <view class="lefts">
  134. <!-- <image :src="$method.splitImgHost(item.coverUrl, true)" class="imgs"></image> -->
  135. <image src="" class="imgs"></image>
  136. </view>
  137. <view class="rights">
  138. <view class="goods_titles">【建筑全科】2022年一建精华 2022年一建精华班</view>
  139. <view class="goods_price">¥154.00</view>
  140. </view>
  141. </view>
  142. <view class="lines"></view>
  143. <view class="check_con">
  144. <view class="grades">班级</view>
  145. <view class="grade_names">
  146. <view class="course_items" v-for="(item, index) in courseSku" :key="index" :class="{nactive: skuIndex == index}" @click="selectSku(item, index)">
  147. {{ item }}
  148. </view>
  149. </view>
  150. <view class="areas">地区</view>
  151. <view class="grade_names">
  152. <view class="course_items" v-for="(item, index) in courseSku" :key="index" :class="{nactive: skuIndex == index}" @click="selectSku(item, index)">
  153. {{ item }}
  154. </view>
  155. </view>
  156. </view>
  157. <view class="right_now" @click="rightNowBuy()">确 定</view>
  158. </view>
  159. </u-popup>
  160. </view>
  161. </template>
  162. <script>
  163. // import { websocket } from '@/common/socket.js';
  164. import { mapGetters } from 'vuex';
  165. export default {
  166. data() {
  167. return {
  168. list: [
  169. {
  170. name: '详情'
  171. },
  172. {
  173. name: '大纲'
  174. }
  175. ],
  176. current: 0,
  177. id: '',
  178. goodsData: {},
  179. bankList: [],
  180. goodsExamConfig: [],
  181. bugCourseModel: false, // 弹窗
  182. hadBuyCourse: {}, // 已购买课程信息
  183. toggleSkuShow: false,
  184. courseSku: ['基础班', '钻石班', '基础班', '钻石班', '基础班', '钻石班'],
  185. skuItem: {},
  186. skuIndex: -1,
  187. };
  188. },
  189. filters: {
  190. formatDate: function(value) {
  191. var date = new Date(value); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  192. var Y = date.getFullYear();
  193. return Y;
  194. }
  195. },
  196. onUnload() {},
  197. computed: { ...mapGetters(['userInfo','hideBuyState']) },
  198. onLoad(option) {
  199. this.id = option.id;
  200. this.getDetail();
  201. this.goodsBankList();
  202. this.getIsBuy() // 判断是否已经购买过该课程
  203. wx.showShareMenu({
  204. withShareTicket: true,
  205. menus: ["shareAppMessage", "shareTimeline"]
  206. })
  207. },
  208. onShow() {},
  209. // 分享到朋友圈
  210. onShareTimeline() {
  211. return {
  212. title: this.goodsData.goodsName,
  213. query: 'id=' + this.id,
  214. imageUrl: this.$method.splitImgHost(this.goodsData.coverUrl, true)
  215. }
  216. },
  217. onShareAppMessage() {
  218. return {
  219. title: this.goodsData.goodsName,
  220. path: `/pages2/bank/detail?id=` + this.id,
  221. imageUrl: this.$method.splitImgHost(this.goodsData.coverUrl, true)
  222. }
  223. },
  224. methods: {
  225. toFixed(number) {
  226. if(number) {
  227. return number.toFixed(2)
  228. } else {
  229. return '0.00'
  230. }
  231. },
  232. getDetail() {
  233. // '/app/common/goods/'+ data 获取商品详细信息
  234. this.$api.commonGoodsDetail(this.id).then(res => {
  235. if (res.data.data.mobileDetailHtml) {
  236. res.data.data.mobileDetailHtml = res.data.data.mobileDetailHtml.replace(/<img/gi, '<img style="max-width:100%;"');
  237. }
  238. this.goodsData = res.data.data;
  239. this.goodsExamConfig = JSON.parse(res.data.data.goodsExamConfig);
  240. });
  241. },
  242. goodsBankList() {
  243. this.$api
  244. .goodsBankList({
  245. goodsId: this.id
  246. })
  247. .then(res => {
  248. console.log(res);
  249. this.bankList = res.data.data;
  250. this.showAllCharpter();
  251. });
  252. },
  253. /**
  254. * 展示第一个章下的节内容
  255. */
  256. showAllCharpter() {
  257. for(let i = 0; i < this.bankList.length; i++) {
  258. if(this.bankList[i].type == 1) { //第一个是模块直接展开,再展开章下面的节
  259. this.$api
  260. .goodsChapterList({
  261. moduleExamId: this.bankList[i].majorId
  262. })
  263. .then(res => {
  264. this.$set(this.bankList[i], 'showList', true);
  265. this.$set(this.bankList[i], 'list', res.data.data);
  266. this.changeItem(i,0,this.bankList[i].list[0].chapterExamId,this.bankList[i].type)
  267. });
  268. break;
  269. } else if(this.bankList[i].type == 2) { //第一个章展开下面的节
  270. this.changeItem(i,'',this.bankList[i].majorId,this.bankList[i].type)
  271. break;
  272. }
  273. }
  274. },
  275. goodsChapterList(bank, id) {
  276. this.$api
  277. .goodsChapterList({
  278. moduleExamId: id
  279. })
  280. .then(res => {
  281. this.$set(bank, 'list', res.data.data);
  282. });
  283. },
  284. goTest(type,item) {
  285. if(type == 1) {
  286. uni.setStorageSync('testname',item.examName)
  287. uni.navigateTo({
  288. url:'/pages2/bank/questionBankTest?id=' + item.examId + '&num=' + this.showTest(item.examId).num
  289. })
  290. } else if(type == 2) {
  291. uni.setStorageSync('testname',item.examName)
  292. uni.navigateTo({
  293. url:'/pages2/bank/questionBankTest?id='+item.examId+'&num='+ this.showTest(item.examId).num
  294. })
  295. } else if(type == 3) {
  296. uni.setStorageSync('testname',item.name)
  297. uni.navigateTo({
  298. url:'/pages2/bank/questionBankTest?id=' + item.majorId + '&num=' + this.showTest(item.majorId).num
  299. })
  300. }
  301. },
  302. showTest(id) {
  303. return this.goodsExamConfig.find(item => item.examId == id);
  304. },
  305. clickModule(index,id) {
  306. if (this.bankList[index].list) {
  307. this.$set(this.bankList[index], 'showList', !this.bankList[index].showList);
  308. return;
  309. }
  310. this.$api
  311. .goodsChapterList({
  312. moduleExamId: id
  313. })
  314. .then(res => {
  315. this.$set(this.bankList[index], 'showList', true);
  316. this.$set(this.bankList[index], 'list', res.data.data);
  317. });
  318. },
  319. buy() {
  320. if (this.$method.isGoLogin()) {
  321. return;
  322. }
  323. // 判断有没有规格选择
  324. if (this.goodsData.specTemplateId) {
  325. this.isCarOrBuy = 2
  326. this.toggleSkuShow = true
  327. return
  328. }
  329. this.$navTo.togo('/pages2/order/confirm_list?id=' + this.id);
  330. },
  331. addCart() {
  332. if (this.$method.isGoLogin()) {
  333. return;
  334. }
  335. // 判断有没有规格选择
  336. if (this.goodsData.specTemplateId) {
  337. this.isCarOrBuy = 1
  338. this.toggleSkuShow = true
  339. return
  340. }
  341. this.addShopCart()
  342. },
  343. addShopCart() {
  344. this.$api.addCart({ goodsId: this.id }).then(res => {
  345. if (res.data.code == 200) {
  346. uni.setStorageSync('updateCart', 1); //提醒刷新购物车
  347. uni.showToast({
  348. title: '添加成功'
  349. });
  350. } else {
  351. this.$u.toast(res.data.msg);
  352. }
  353. });
  354. },
  355. open(item) {
  356. item.showChildren = !item.showChildren;
  357. },
  358. change(index) {
  359. this.current = index;
  360. },
  361. changeItem(index1,index2,id,type) {
  362. if (type == 1) {
  363. console.log(1)
  364. if (this.bankList[index1].list[index2].list) {
  365. this.$set(this.bankList[index1].list[index2], 'showList', !this.bankList[index1].list[index2].showList);
  366. return;
  367. }
  368. this.$api
  369. .goodsExamList({
  370. chapterExamId: id
  371. })
  372. .then(res => {
  373. this.$set(this.bankList[index1].list[index2], 'showList', true);
  374. this.$set(this.bankList[index1].list[index2], 'list', res.data.data);
  375. });
  376. } else if (type == 2) {
  377. console.log(2)
  378. if (this.bankList[index1].list) {
  379. this.$set(this.bankList[index1], 'showList', !this.bankList[index1].showList);
  380. return;
  381. }
  382. this.$api
  383. .goodsExamList({
  384. chapterExamId: id
  385. })
  386. .then(res => {
  387. this.$set(this.bankList[index1], 'showList', true);
  388. this.$set(this.bankList[index1], 'list', res.data.data);
  389. });
  390. }
  391. },
  392. toShopcar() {
  393. uni.switchTab({
  394. url: '/pages/shopping/shoppingCart'
  395. })
  396. },
  397. getIsBuy() {
  398. this.$http({
  399. url: '/order/buyGoodsNotExpired',
  400. method: 'get',
  401. data: { goodsId: this.id }
  402. }).then((res) => {
  403. if (res.data.code == 200) {
  404. if (res.data.data) { // 有data返回是已经购买过的课程
  405. this.hadBuyCourse = res.data.data
  406. this.bugCourseModel = true
  407. }
  408. }
  409. })
  410. },
  411. changeKown() {
  412. this.bugCourseModel = false
  413. },
  414. toStudy() {
  415. let sysTime = this.$method.timest()
  416. const { serviceStartTime, serviceEndTime, goodsId, orderGoodsId} = this.hadBuyCourse
  417. if (serviceStartTime && serviceEndTime && (sysTime <= serviceStartTime || sysTime >= serviceEndTime)) {
  418. uni.showToast({
  419. icon: 'none',
  420. title: '不在学习服务期,不能进入学习'
  421. })
  422. return;
  423. }
  424. uni.navigateTo({
  425. url:'/pages2/bank/question_detail?id='+goodsId+'&orderGoodsId='+orderGoodsId
  426. })
  427. this.bugCourseModel = false
  428. },
  429. closePop() {
  430. this.toggleSkuShow = false
  431. },
  432. selectSku(item, index) {
  433. console.log('defhd', item, index)
  434. this.skuItem = item
  435. this.skuIndex = index
  436. },
  437. rightNowBuy() {
  438. // if (Object.keys(this.skuItem).length == 0) {
  439. // this.$u.toast('请选择科目')
  440. // return
  441. // }
  442. // if(this.$method.isGoLogin()){
  443. // return
  444. // }
  445. // this.$navTo.togo('/pages2/order/confirm_list?id='+this.skuItem.goodsId)
  446. }
  447. }
  448. };
  449. </script>
  450. <style>
  451. page {
  452. background-color: #F2F2F2;
  453. }
  454. </style>
  455. <style lang="scss" scope>
  456. @import '../../pages3/course/index.scss';
  457. .contents {
  458. width: 100%;
  459. height: 100%;
  460. background-color: #ffffff;
  461. margin-top: 16rpx;
  462. overflow: hidden;
  463. // tab
  464. .tabs {
  465. // width: 100%;
  466. height: 78rpx;
  467. display: flex;
  468. align-items: center;
  469. justify-content: space-between;
  470. background-color: #F2F7FF;
  471. border-radius: 38rpx;
  472. margin: 24rpx;
  473. padding: 0rpx 5rpx;
  474. .tab_item {
  475. width: 345rpx;
  476. height: 65rpx;
  477. line-height: 65rpx;
  478. font-size: 28rpx;
  479. font-weight: bold;
  480. border-radius: 32rpx;
  481. text-align: center;
  482. color: #333;
  483. &.nactive {
  484. color: #fff;
  485. background-color: #3577E8;
  486. }
  487. // &.twoBtn {
  488. // width: 50%;
  489. // }
  490. }
  491. }
  492. }
  493. .cou_title {
  494. padding: 24rpx 32rpx 40rpx 32rpx;
  495. display: flex;
  496. flex-direction: column;
  497. justify-content: space-around;
  498. }
  499. .prices {
  500. .price_word {
  501. font-size: 40rpx;
  502. font-weight: 800;
  503. color: #FC3F3F;
  504. }
  505. .sale {
  506. color: #999999;
  507. font-size: 28rpx;
  508. margin-left: 8rpx;
  509. }
  510. .price_line {
  511. color: #999999;
  512. font-size: 28rpx;
  513. text-decoration:line-through;
  514. font-weight: 400;
  515. }
  516. .free {
  517. font-size: 32rpx;
  518. }
  519. }
  520. .courseName {
  521. white-space: nowrap;
  522. overflow: hidden;
  523. text-overflow: ellipsis;
  524. }
  525. .icon_up {
  526. width: 32rpx;
  527. height: 32rpx;
  528. }
  529. .intro {
  530. background: #fff;
  531. padding: 16rpx 16rpx 124rpx;
  532. .content {
  533. background: #fff;
  534. border-radius: 16rpx;
  535. .top {
  536. border-radius: 16rpx;
  537. padding: 32rpx 28rpx 16rpx;
  538. font-size: 30rpx;
  539. color: #333333;
  540. }
  541. .img {
  542. width: 100%;
  543. }
  544. }
  545. }
  546. .moduleItem {
  547. height: 80rpx;
  548. color: #333333;
  549. font-size: 32rpx;
  550. line-height: 80rpx;
  551. font-weight: bold;
  552. display: flex;
  553. justify-content: space-between;
  554. }
  555. .title-list {
  556. background: #fff;
  557. padding: 16rpx 16rpx 124rpx;
  558. .content {
  559. .list {
  560. background: #fff;
  561. margin-bottom: 30rpx;
  562. overflow: hidden;
  563. border-radius: 16rpx;
  564. padding: 10rpx 16rpx;
  565. .module {
  566. font-size: 32rpx;
  567. color: #333333;
  568. .icon {
  569. margin-right: 10rpx;
  570. }
  571. }
  572. .section {
  573. font-size: 30rpx;
  574. color: #333;
  575. white-space: nowrap;
  576. overflow: hidden;
  577. text-overflow: ellipsis;
  578. padding: 20rpx 0;
  579. display: flex;
  580. align-items: center;
  581. border-bottom: 1rpx solid #eee;
  582. }
  583. .item_name {
  584. font-size: 24rpx;
  585. font-family: PingFang SC;
  586. font-weight: bold;
  587. color: #333;
  588. white-space: nowrap;
  589. overflow: hidden;
  590. text-overflow: ellipsis;
  591. margin-left: 8rpx;
  592. }
  593. // .article-list {
  594. // margin-top:20rpx;
  595. // }
  596. .article {
  597. padding:10rpx 0;
  598. min-height: 80rpx;
  599. display: flex;
  600. align-items: center;
  601. margin-left: 35rpx;
  602. font-size: 30rpx;
  603. color: #666666;
  604. border-bottom: 1rpx solid #eeeeee;
  605. display: flex;
  606. .flex_auto {
  607. flex: 1;
  608. font-size: 30rpx;
  609. color: #666666;
  610. }
  611. &:nth-last-of-type(1) {
  612. border: 0;
  613. }
  614. &.active {
  615. color: #007aff;
  616. .btn {
  617. width: 103rpx;
  618. height: 48rpx;
  619. line-height: 48rpx;
  620. text-align: center;
  621. color: #3577E8;
  622. font-size: 24rpx;
  623. border-radius: 24rpx;
  624. background: #fff;
  625. margin-left: 36rpx;
  626. border: 1rpx solid #3577E8;
  627. }
  628. }
  629. }
  630. }
  631. }
  632. }
  633. .btn2 {
  634. width: 187rpx;
  635. height: 79rpx;
  636. line-height: 79rpx;
  637. background: #FC3F3F;
  638. border-radius: 40rpx;
  639. text-align: center;
  640. font-size: 24rpx;
  641. }
  642. .btn1 {
  643. width: 187rpx;
  644. height: 79rpx;
  645. line-height: 79rpx;
  646. background: #FFB102;
  647. border-radius: 40rpx;
  648. text-align: center;
  649. margin-right: 11rpx;
  650. font-size: 24rpx;
  651. }
  652. .blackFont {
  653. color: #333333;
  654. margin: 0 4rpx;
  655. }
  656. .wk_icon {
  657. width: 24rpx;
  658. height: 24rpx;
  659. margin-right: 12rpx;
  660. }
  661. .noteTag {
  662. font-size: 24rpx;
  663. font-family: PingFang SC;
  664. font-weight: 500;
  665. color: #999999;
  666. align-items: center;
  667. }
  668. .priceTag {
  669. font-size: 30rpx;
  670. font-family: PingFang SC;
  671. font-weight: bold;
  672. color: #ff2d55;
  673. }
  674. .titleTag {
  675. font-size: 36rpx;
  676. font-weight: bold;
  677. color: #333333;
  678. // margin-left: 8rpx;
  679. }
  680. .yearTag {
  681. width: 80rpx;
  682. height: 32rpx;
  683. background: #ebf5ff;
  684. border: 2rpx solid #007aff;
  685. border-radius: 16rpx;
  686. font-size: 24rpx;
  687. color: #007aff;
  688. text-align: center;
  689. line-height: 32rpx;
  690. }
  691. .itemBox {
  692. background: #ffffff;
  693. box-shadow: 0rpx 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  694. border-radius: 24rpx;
  695. width: 100%;
  696. padding: 20rpx;
  697. margin-bottom: 20rpx;
  698. }
  699. </style>