detail.vue 21 KB

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