detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  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 v-if="Object.keys(skuItem).length" class="pop_prices">
  133. <view class="lefts">
  134. <image :src="$method.splitImgHost(skuItem.coverUrl, true)" class="imgs"></image>
  135. </view>
  136. <view class="rights">
  137. <view class="goods_titles">{{ skuItem.goodsName }}</view>
  138. <view class="goods_price">¥{{ skuItem.standPrice }}</view>
  139. </view>
  140. </view>
  141. <view class="lines"></view>
  142. <view class="check_con">
  143. <view v-for="(item, index) in specList" :key="index" class="check_items">
  144. <view class="grades">{{ item.name }}</view>
  145. <view class="grade_names">
  146. <view class="course_items" v-for="(child, c_index) in item.specAttrList" :key="c_index" :class="{'nactive': child.check }"
  147. @click="selectSku(child, index)">
  148. {{ child.name }}
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. <view class="right_now" @click="rightNowBuy()">确 定</view>
  154. </view>
  155. </u-popup>
  156. </view>
  157. </template>
  158. <script>
  159. // import { websocket } from '@/common/socket.js';
  160. import { mapGetters } from 'vuex';
  161. export default {
  162. data() {
  163. return {
  164. list: [
  165. {
  166. name: '详情'
  167. },
  168. {
  169. name: '大纲'
  170. }
  171. ],
  172. current: 0,
  173. id: '',
  174. goodsData: {},
  175. bankList: [],
  176. goodsExamConfig: [],
  177. bugCourseModel: false, // 弹窗
  178. hadBuyCourse: {}, // 已购买课程信息
  179. toggleSkuShow: false,
  180. skuItem: {},
  181. isCarOrBuy: 1, // 1加入购物车 2立即购买
  182. specList: [], // 规格列表
  183. };
  184. },
  185. filters: {
  186. formatDate: function(value) {
  187. var date = new Date(value); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  188. var Y = date.getFullYear();
  189. return Y;
  190. }
  191. },
  192. onUnload() {},
  193. computed: {
  194. ...mapGetters(['userInfo','hideBuyState']),
  195. isCheckSku() {
  196. let checkCout = 0
  197. this.specList.forEach((item, index) => {
  198. if (item.specAttrList && item.specAttrList.length) {
  199. item.specAttrList.forEach((child, c_index) => {
  200. if (child.check) {
  201. checkCout++
  202. }
  203. })
  204. }
  205. })
  206. return checkCout
  207. },
  208. },
  209. onLoad(option) {
  210. this.id = option.id;
  211. this.getDetail();
  212. this.goodsBankList();
  213. this.getIsBuy() // 判断是否已经购买过该课程
  214. wx.showShareMenu({
  215. withShareTicket: true,
  216. menus: ["shareAppMessage", "shareTimeline"]
  217. })
  218. },
  219. onShow() {},
  220. // 分享到朋友圈
  221. onShareTimeline() {
  222. return {
  223. title: this.goodsData.goodsName,
  224. query: 'id=' + this.id,
  225. imageUrl: this.$method.splitImgHost(this.goodsData.coverUrl, true)
  226. }
  227. },
  228. onShareAppMessage() {
  229. return {
  230. title: this.goodsData.goodsName,
  231. path: `/pages2/bank/detail?id=` + this.id,
  232. imageUrl: this.$method.splitImgHost(this.goodsData.coverUrl, true)
  233. }
  234. },
  235. methods: {
  236. toFixed(number) {
  237. if(number) {
  238. return number.toFixed(2)
  239. } else {
  240. return '0.00'
  241. }
  242. },
  243. getDetail() {
  244. // '/app/common/goods/'+ data 获取商品详细信息
  245. this.$api.commonGoodsDetail(this.id).then(res => {
  246. if (res.data.data.mobileDetailHtml) {
  247. res.data.data.mobileDetailHtml = res.data.data.mobileDetailHtml.replace(/<img/gi, '<img style="max-width:100%;"');
  248. }
  249. this.goodsData = res.data.data;
  250. this.goodsExamConfig = JSON.parse(res.data.data.goodsExamConfig);
  251. });
  252. },
  253. goodsBankList() {
  254. this.$api
  255. .goodsBankList({
  256. goodsId: this.id
  257. })
  258. .then(res => {
  259. console.log(res);
  260. this.bankList = res.data.data;
  261. this.showAllCharpter();
  262. });
  263. },
  264. /**
  265. * 展示第一个章下的节内容
  266. */
  267. showAllCharpter() {
  268. for(let i = 0; i < this.bankList.length; i++) {
  269. if(this.bankList[i].type == 1) { //第一个是模块直接展开,再展开章下面的节
  270. this.$api
  271. .goodsChapterList({
  272. moduleExamId: this.bankList[i].majorId
  273. })
  274. .then(res => {
  275. this.$set(this.bankList[i], 'showList', true);
  276. this.$set(this.bankList[i], 'list', res.data.data);
  277. this.changeItem(i,0,this.bankList[i].list[0].chapterExamId,this.bankList[i].type)
  278. });
  279. break;
  280. } else if(this.bankList[i].type == 2) { //第一个章展开下面的节
  281. this.changeItem(i,'',this.bankList[i].majorId,this.bankList[i].type)
  282. break;
  283. }
  284. }
  285. },
  286. goodsChapterList(bank, id) {
  287. this.$api
  288. .goodsChapterList({
  289. moduleExamId: id
  290. })
  291. .then(res => {
  292. this.$set(bank, 'list', res.data.data);
  293. });
  294. },
  295. goTest(type,item) {
  296. if(type == 1) {
  297. uni.setStorageSync('testname',item.examName)
  298. uni.navigateTo({
  299. url:'/pages2/bank/questionBankTest?id=' + item.examId + '&num=' + this.showTest(item.examId).num
  300. })
  301. } else if(type == 2) {
  302. uni.setStorageSync('testname',item.examName)
  303. uni.navigateTo({
  304. url:'/pages2/bank/questionBankTest?id='+item.examId+'&num='+ this.showTest(item.examId).num
  305. })
  306. } else if(type == 3) {
  307. uni.setStorageSync('testname',item.name)
  308. uni.navigateTo({
  309. url:'/pages2/bank/questionBankTest?id=' + item.majorId + '&num=' + this.showTest(item.majorId).num
  310. })
  311. }
  312. },
  313. showTest(id) {
  314. return this.goodsExamConfig.find(item => item.examId == id);
  315. },
  316. clickModule(index,id) {
  317. if (this.bankList[index].list) {
  318. this.$set(this.bankList[index], 'showList', !this.bankList[index].showList);
  319. return;
  320. }
  321. this.$api
  322. .goodsChapterList({
  323. moduleExamId: id
  324. })
  325. .then(res => {
  326. this.$set(this.bankList[index], 'showList', true);
  327. this.$set(this.bankList[index], 'list', res.data.data);
  328. });
  329. },
  330. buy() {
  331. if (this.$method.isGoLogin()) {
  332. return;
  333. }
  334. // 判断有没有规格选择
  335. if (this.goodsData.specTemplateId) {
  336. this.isCarOrBuy = 2
  337. this.toggleSkuShow = true
  338. return
  339. }
  340. this.$navTo.togo('/pages2/order/confirm_list?id=' + this.id);
  341. },
  342. addCart() {
  343. // this.getSpecDetail()
  344. // return
  345. if (this.$method.isGoLogin()) {
  346. return;
  347. }
  348. // 判断有没有规格选择
  349. if (this.goodsData.specTemplateId) {
  350. this.isCarOrBuy = 1
  351. this.toggleSkuShow = true
  352. return
  353. }
  354. this.addShopCart()
  355. },
  356. addShopCart() {
  357. this.$api.addCart({ goodsId: this.id }).then(res => {
  358. if (res.data.code == 200) {
  359. uni.setStorageSync('updateCart', 1); //提醒刷新购物车
  360. uni.showToast({
  361. title: '添加成功'
  362. });
  363. } else {
  364. this.$u.toast(res.data.msg);
  365. }
  366. });
  367. },
  368. getSpecDetail() {
  369. this.$http({
  370. url: `/app/common/spec/${this.goodsData.specTemplateId}`,
  371. method: 'get',
  372. noToken: true
  373. }).then((res) => {
  374. if (res.data.code == 200) {
  375. this.toggleSkuShow = true
  376. let data = res.data.data
  377. if (data) {
  378. this.specList = data && (data.specList || [])
  379. this.specList.forEach((item, index) => {
  380. item.specAttrList.forEach((child, i_index) => {
  381. this.$set(this.specList[index].specAttrList[i_index], 'check', false)
  382. })
  383. })
  384. }
  385. } else {
  386. this.$u.toast('暂无数据')
  387. }
  388. })
  389. },
  390. change(index) {
  391. this.current = index;
  392. },
  393. changeItem(index1,index2,id,type) {
  394. if (type == 1) {
  395. console.log(1)
  396. if (this.bankList[index1].list[index2].list) {
  397. this.$set(this.bankList[index1].list[index2], 'showList', !this.bankList[index1].list[index2].showList);
  398. return;
  399. }
  400. this.$api
  401. .goodsExamList({
  402. chapterExamId: id
  403. })
  404. .then(res => {
  405. this.$set(this.bankList[index1].list[index2], 'showList', true);
  406. this.$set(this.bankList[index1].list[index2], 'list', res.data.data);
  407. });
  408. } else if (type == 2) {
  409. console.log(2)
  410. if (this.bankList[index1].list) {
  411. this.$set(this.bankList[index1], 'showList', !this.bankList[index1].showList);
  412. return;
  413. }
  414. this.$api
  415. .goodsExamList({
  416. chapterExamId: id
  417. })
  418. .then(res => {
  419. this.$set(this.bankList[index1], 'showList', true);
  420. this.$set(this.bankList[index1], 'list', res.data.data);
  421. });
  422. }
  423. },
  424. toShopcar() {
  425. uni.switchTab({
  426. url: '/pages/shopping/shoppingCart'
  427. })
  428. },
  429. getIsBuy() {
  430. this.$http({
  431. url: '/order/buyGoodsNotExpired',
  432. method: 'get',
  433. data: { goodsId: this.id }
  434. }).then((res) => {
  435. if (res.data.code == 200) {
  436. if (res.data.data) { // 有data返回是已经购买过的课程
  437. this.hadBuyCourse = res.data.data
  438. this.bugCourseModel = true
  439. }
  440. }
  441. })
  442. },
  443. changeKown() {
  444. this.bugCourseModel = false
  445. },
  446. toStudy() {
  447. let sysTime = this.$method.timest()
  448. const { serviceStartTime, serviceEndTime, goodsId, orderGoodsId} = this.hadBuyCourse
  449. if (serviceStartTime && serviceEndTime && (sysTime <= serviceStartTime || sysTime >= serviceEndTime)) {
  450. uni.showToast({
  451. icon: 'none',
  452. title: '不在学习服务期,不能进入学习'
  453. })
  454. return;
  455. }
  456. uni.navigateTo({
  457. url:'/pages2/bank/question_detail?id='+goodsId+'&orderGoodsId='+orderGoodsId
  458. })
  459. this.bugCourseModel = false
  460. },
  461. closePop() {
  462. this.toggleSkuShow = false
  463. this.skuItem = {}
  464. },
  465. selectSku(item, index) {
  466. this.specList[index].specAttrList.forEach((i_item, i_index) => {
  467. if (item.specAttributeId == i_item.specAttributeId) {
  468. this.$set(this.specList[index].specAttrList[i_index], 'check', true)
  469. } else {
  470. this.$set(this.specList[index].specAttrList[i_index], 'check', false)
  471. }
  472. })
  473. // console.log('this.specList', this.specList, this.isCheckSku)
  474. if (this.specList.length == this.isCheckSku) {
  475. let specAttrIds = []
  476. this.specList.forEach((item) => {
  477. let result = item.specAttrList.find(e => e.check)
  478. if (result) {
  479. specAttrIds.push(result.specAttributeId)
  480. }
  481. })
  482. this.getGoodsInfos(specAttrIds)
  483. }
  484. },
  485. // 获取规格属性值对应的商品信息
  486. getGoodsInfos(specAttrIds) {
  487. this.$http({
  488. url: '/app/common/attr/goods',
  489. method: 'get',
  490. data: {
  491. specTemplateId: this.goodsData.specTemplateId,
  492. specAttrIds: specAttrIds.join(',')
  493. },
  494. noToken: true
  495. }).then((res) => {
  496. if (res.data.code == 200) {
  497. this.skuItem = res.data.data || {}
  498. }
  499. })
  500. },
  501. rightNowBuy() {
  502. if (this.specList.length != this.isCheckSku) {
  503. this.$u.toast('请先选择所有的规格')
  504. return
  505. }
  506. if (this.isCarOrBuy == 1) { // 加入购物车
  507. this.addShopCart()
  508. } else {
  509. this.$navTo.togo('/pages2/order/confirm_list?id='+this.id);
  510. }
  511. this.closePop()
  512. }
  513. }
  514. };
  515. </script>
  516. <style>
  517. page {
  518. background-color: #F2F2F2;
  519. }
  520. </style>
  521. <style lang="scss" scope>
  522. @import '../../pages3/course/index.scss';
  523. .contents {
  524. width: 100%;
  525. height: 100%;
  526. background-color: #ffffff;
  527. margin-top: 16rpx;
  528. overflow: hidden;
  529. // tab
  530. .tabs {
  531. // width: 100%;
  532. height: 78rpx;
  533. display: flex;
  534. align-items: center;
  535. justify-content: space-between;
  536. background-color: #F2F7FF;
  537. border-radius: 38rpx;
  538. margin: 24rpx;
  539. padding: 0rpx 5rpx;
  540. .tab_item {
  541. width: 345rpx;
  542. height: 65rpx;
  543. line-height: 65rpx;
  544. font-size: 28rpx;
  545. font-weight: bold;
  546. border-radius: 32rpx;
  547. text-align: center;
  548. color: #333;
  549. &.nactive {
  550. color: #fff;
  551. background-color: #3577E8;
  552. }
  553. // &.twoBtn {
  554. // width: 50%;
  555. // }
  556. }
  557. }
  558. }
  559. .cou_title {
  560. padding: 24rpx 32rpx 40rpx 32rpx;
  561. display: flex;
  562. flex-direction: column;
  563. justify-content: space-around;
  564. }
  565. .prices {
  566. .price_word {
  567. font-size: 40rpx;
  568. font-weight: 800;
  569. color: #FC3F3F;
  570. }
  571. .sale {
  572. color: #999999;
  573. font-size: 28rpx;
  574. margin-left: 8rpx;
  575. }
  576. .price_line {
  577. color: #999999;
  578. font-size: 28rpx;
  579. text-decoration:line-through;
  580. font-weight: 400;
  581. }
  582. .free {
  583. font-size: 32rpx;
  584. }
  585. }
  586. .courseName {
  587. white-space: nowrap;
  588. overflow: hidden;
  589. text-overflow: ellipsis;
  590. }
  591. .icon_up {
  592. width: 32rpx;
  593. height: 32rpx;
  594. }
  595. .intro {
  596. background: #fff;
  597. padding: 16rpx 16rpx 124rpx;
  598. .content {
  599. background: #fff;
  600. border-radius: 16rpx;
  601. .top {
  602. border-radius: 16rpx;
  603. padding: 32rpx 28rpx 16rpx;
  604. font-size: 30rpx;
  605. color: #333333;
  606. }
  607. .img {
  608. width: 100%;
  609. }
  610. }
  611. }
  612. .moduleItem {
  613. height: 80rpx;
  614. color: #333333;
  615. font-size: 32rpx;
  616. line-height: 80rpx;
  617. font-weight: bold;
  618. display: flex;
  619. justify-content: space-between;
  620. }
  621. .title-list {
  622. background: #fff;
  623. padding: 16rpx 16rpx 124rpx;
  624. .content {
  625. .list {
  626. background: #fff;
  627. margin-bottom: 30rpx;
  628. overflow: hidden;
  629. border-radius: 16rpx;
  630. padding: 10rpx 16rpx;
  631. .module {
  632. font-size: 32rpx;
  633. color: #333333;
  634. .icon {
  635. margin-right: 10rpx;
  636. }
  637. }
  638. .section {
  639. font-size: 30rpx;
  640. color: #333;
  641. white-space: nowrap;
  642. overflow: hidden;
  643. text-overflow: ellipsis;
  644. padding: 20rpx 0;
  645. display: flex;
  646. align-items: center;
  647. border-bottom: 1rpx solid #eee;
  648. }
  649. .item_name {
  650. font-size: 24rpx;
  651. font-family: PingFang SC;
  652. font-weight: bold;
  653. color: #333;
  654. white-space: nowrap;
  655. overflow: hidden;
  656. text-overflow: ellipsis;
  657. margin-left: 8rpx;
  658. }
  659. // .article-list {
  660. // margin-top:20rpx;
  661. // }
  662. .article {
  663. padding:10rpx 0;
  664. min-height: 80rpx;
  665. display: flex;
  666. align-items: center;
  667. margin-left: 35rpx;
  668. font-size: 30rpx;
  669. color: #666666;
  670. border-bottom: 1rpx solid #eeeeee;
  671. display: flex;
  672. .flex_auto {
  673. flex: 1;
  674. font-size: 30rpx;
  675. color: #666666;
  676. }
  677. &:nth-last-of-type(1) {
  678. border: 0;
  679. }
  680. &.active {
  681. color: #007aff;
  682. .btn {
  683. width: 103rpx;
  684. height: 48rpx;
  685. line-height: 48rpx;
  686. text-align: center;
  687. color: #3577E8;
  688. font-size: 24rpx;
  689. border-radius: 24rpx;
  690. background: #fff;
  691. margin-left: 36rpx;
  692. border: 1rpx solid #3577E8;
  693. }
  694. }
  695. }
  696. }
  697. }
  698. }
  699. .btn2 {
  700. width: 187rpx;
  701. height: 79rpx;
  702. line-height: 79rpx;
  703. background: #FC3F3F;
  704. border-radius: 40rpx;
  705. text-align: center;
  706. font-size: 24rpx;
  707. }
  708. .btn1 {
  709. width: 187rpx;
  710. height: 79rpx;
  711. line-height: 79rpx;
  712. background: #FFB102;
  713. border-radius: 40rpx;
  714. text-align: center;
  715. margin-right: 11rpx;
  716. font-size: 24rpx;
  717. }
  718. .blackFont {
  719. color: #333333;
  720. margin: 0 4rpx;
  721. }
  722. .wk_icon {
  723. width: 24rpx;
  724. height: 24rpx;
  725. margin-right: 12rpx;
  726. }
  727. .noteTag {
  728. font-size: 24rpx;
  729. font-family: PingFang SC;
  730. font-weight: 500;
  731. color: #999999;
  732. align-items: center;
  733. }
  734. .priceTag {
  735. font-size: 30rpx;
  736. font-family: PingFang SC;
  737. font-weight: bold;
  738. color: #ff2d55;
  739. }
  740. .titleTag {
  741. font-size: 36rpx;
  742. font-weight: bold;
  743. color: #333333;
  744. // margin-left: 8rpx;
  745. }
  746. .yearTag {
  747. width: 80rpx;
  748. height: 32rpx;
  749. background: #ebf5ff;
  750. border: 2rpx solid #007aff;
  751. border-radius: 16rpx;
  752. font-size: 24rpx;
  753. color: #007aff;
  754. text-align: center;
  755. line-height: 32rpx;
  756. }
  757. .itemBox {
  758. background: #ffffff;
  759. box-shadow: 0rpx 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  760. border-radius: 24rpx;
  761. width: 100%;
  762. padding: 20rpx;
  763. margin-bottom: 20rpx;
  764. }
  765. </style>