Subscribe.vue 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658
  1. <template>
  2. <div class="bookItem">
  3. <Header
  4. :headerBg="headerBg"
  5. :headerBorder="headerBorder"
  6. :userBg="userBg"
  7. :LoginNavIndex="1"
  8. ref="header"
  9. />
  10. <div class="navBar" v-if="info">
  11. <div class="navBar-left">
  12. <a class="goback" @click="$router.go(-1)"
  13. ><i class="el-icon-arrow-left"></i>主页</a
  14. >
  15. <div class="border"></div>
  16. <p>
  17. {{
  18. bookType === "jingdu"
  19. ? "二十一世纪英文报·精读课堂"
  20. : bookType === "huakan"
  21. ? "二十一世纪英文报·少儿画刊"
  22. : "二十一世纪英文报"
  23. }}
  24. </p>
  25. </div>
  26. </div>
  27. <div class="main-top" v-if="info">
  28. <div class="main-top-inner">
  29. <el-carousel
  30. class="swiper-container"
  31. trigger="click"
  32. arrow="never"
  33. height="414px"
  34. >
  35. <!-- <el-carousel-item v-for="(item1, index) in data.imgList" :key="index"> -->
  36. <el-image
  37. class="image"
  38. :src="
  39. bookType === 'jingdu'
  40. ? require('../../assets/cover-order-jingdu.png')
  41. : bookType === 'huakan'
  42. ? require('../../assets/cover-order-huakan.png')
  43. : require('../../assets/cover-order-' + studyType + '.png')
  44. "
  45. :fit="'contain'"
  46. >
  47. </el-image>
  48. <!-- </el-carousel-item> -->
  49. </el-carousel>
  50. <div class="book-info-right" v-loading="loading">
  51. <h1 class="title">
  52. {{
  53. bookType === "jingdu"
  54. ? "Teens 精读课堂(" + studyTypeName + ")"
  55. : bookType === "huakan"
  56. ? "二十一世纪英文报·少儿画刊"
  57. : "《二十一世纪学生英文报》"
  58. }}
  59. </h1>
  60. <!-- <b class="org">{{data.org}}</b><span class="date">2023.07.01-2023.07.21</span> -->
  61. <div class="sales-box">
  62. <div class="sales-left">
  63. <span>订阅价格</span>
  64. <span class="OPPOSans"
  65. >¥{{ info.price_reservation | cutMoneyFiter }}</span
  66. >
  67. <!-- <span class="old-price" v-if="info.price_discount&&info.price_discount!==info.price">¥{{info.price|cutMoneyFiter}}</span> -->
  68. <b>元 / 期</b>
  69. </div>
  70. <span class="sales-right" v-if="sales >= 1000"
  71. >累计订阅 {{ salesCn }}</span
  72. >
  73. </div>
  74. <!-- <div class="label-box">
  75. <label v-for="(itemL,indexL) in info.label_name_list" :key="indexL" :style="{background:tagBg[indexL%3],color:tagColor[indexL%3]}">
  76. {{ '# ' + itemL }}
  77. </label>
  78. </div> -->
  79. <!-- <div class="book-describe">
  80. <h2 class="title">{{data.describe.title}}</h2>
  81. <span class="author">{{'BY '+data.describe.author}}</span>
  82. <p class="describe">{{data.describe.describe}}</p>
  83. </div> -->
  84. <div class="info-box">
  85. <div class="info-item">
  86. <label>适合年龄</label>
  87. <span>{{
  88. info.issue_info
  89. ? info.issue_info.age_desc
  90. : info.iread_info.age_desc
  91. }}</span>
  92. </div>
  93. <div class="info-item">
  94. <label>期刊页数</label>
  95. <span>{{
  96. info.issue_info
  97. ? info.issue_info.page_count_desc
  98. : info.iread_info.article_count_desc
  99. }}</span>
  100. <el-tooltip placement="right" v-if="bookType === 'baozhi'">
  101. <div slot="content">双刊、特辑、寒暑假合刊除外</div>
  102. <el-button class="tooltip-btn"
  103. ><svg-icon icon-class="icon-mark"></svg-icon
  104. ></el-button>
  105. </el-tooltip>
  106. </div>
  107. <div class="info-item">
  108. <label>出版周期</label>
  109. <span>{{
  110. info.issue_info
  111. ? info.issue_info.period_desc
  112. : info.iread_info.period_desc
  113. }}</span>
  114. </div>
  115. <div class="info-item">
  116. <label>期刊定价</label>
  117. <span v-if="bookType === 'baozhi' || bookType === 'huakan'"
  118. >{{ info.issue_info.price }}元/期</span
  119. >
  120. <span v-else-if="bookType === 'jingdu'"
  121. >{{ info.iread_info.price }}元/年</span
  122. >
  123. <el-tooltip placement="right" v-if="bookType === 'baozhi'">
  124. <div slot="content">双刊、特辑、寒暑假合刊除外</div>
  125. <el-button class="tooltip-btn"
  126. ><svg-icon icon-class="icon-mark"></svg-icon
  127. ></el-button>
  128. </el-tooltip>
  129. </div>
  130. <div class="info-item" style="width: 100%">
  131. <label>主办单位</label>
  132. <span>{{
  133. info.issue_info
  134. ? info.issue_info.organizer
  135. : info.iread_info.organizer
  136. }}</span>
  137. </div>
  138. </div>
  139. <div class="info-box order-box">
  140. <div
  141. class="info-item order-item"
  142. style="margin-bottom: 16px"
  143. v-if="bookType !== 'huakan'"
  144. >
  145. <label>订阅学段</label>
  146. <div class="order-content">
  147. <ul>
  148. <li
  149. v-for="item in bookType === 'baozhi'
  150. ? $studyType
  151. : studyTypeList"
  152. :key="item.study_phase"
  153. :class="[studyType === item.study_phase ? 'active' : '']"
  154. @click="changeStudy(item)"
  155. >
  156. {{ item.study_phase_name }}
  157. </li>
  158. </ul>
  159. </div>
  160. </div>
  161. <div
  162. class="info-item order-item"
  163. style="margin-bottom: 16px"
  164. v-if="bookType === 'baozhi' || bookType === 'huakan'"
  165. >
  166. <label>订阅期数</label>
  167. <div class="order-content">
  168. <ul>
  169. <li
  170. v-for="item in orderList"
  171. :key="item.value"
  172. :class="[
  173. orderTotalNumber === item.value ? 'active' : '',
  174. totalLength < item.value && item.value !== 10000
  175. ? 'disabled'
  176. : '',
  177. ]"
  178. @click="
  179. changeOrderNumber(
  180. item,
  181. (totalLength < item.value && item.value !== 10000) ||
  182. item.value === -2
  183. )
  184. "
  185. >
  186. {{ item.label }}
  187. </li>
  188. <el-tooltip placement="right" style="height: 32px">
  189. <div slot="content" v-html="rules"></div>
  190. <el-button class="tooltip-btn"
  191. ><svg-icon icon-class="icon-mark"></svg-icon
  192. ></el-button>
  193. </el-tooltip>
  194. </ul>
  195. <div
  196. v-if="
  197. orderTotalNumber === 10000 &&
  198. info.issue_no_school_year_list.length > 0
  199. "
  200. class="custom-box"
  201. >
  202. <div class="custom-box-top">
  203. <h5>
  204. {{
  205. info.issue_no_school_year_list[customPage].year_begin +
  206. "-" +
  207. info.issue_no_school_year_list[customPage].year_end +
  208. " 学年"
  209. }}
  210. </h5>
  211. <div class="btn-box">
  212. <a @click="changeCustomPage('-')"
  213. ><i class="el-icon-arrow-left"></i
  214. ></a>
  215. <a @click="changeCustomPage('+')"
  216. ><i class="el-icon-arrow-right"></i
  217. ></a>
  218. </div>
  219. </div>
  220. <ul class="custom-box-bottom">
  221. <li
  222. v-for="(itemc, indexc) in info.issue_no_school_year_list[
  223. customPage
  224. ].issue_no_list"
  225. :key="indexc"
  226. :style="{
  227. width: itemc.width ? itemc.width * 52 + 'px' : '',
  228. borderRight: itemc.farRight ? 'none !important' : '',
  229. borderBottom: itemc.farBottom ? 'none !important' : '',
  230. }"
  231. :class="[
  232. customOrderNumberList.indexOf(itemc.issue_no) > -1
  233. ? 'active'
  234. : '',
  235. ]"
  236. @click="changeCustomOrder(itemc)"
  237. >
  238. <el-tooltip placement="bottom">
  239. <div slot="content">
  240. 第 {{ itemc.issue_no }} 期<br />
  241. 出版日期:{{ itemc.shelve_date }}
  242. </div>
  243. <el-button class="custom-btn">{{
  244. itemc.issue_no
  245. }}</el-button>
  246. </el-tooltip>
  247. </li>
  248. </ul>
  249. </div>
  250. <template v-if="orderTotalNumber !== -1">
  251. <template v-if="orderTotalNumber === -2">
  252. <el-input-number
  253. v-model="customizeNum"
  254. :min="1"
  255. :max="totalLength"
  256. label="请输入期数"
  257. @change="getInfo"
  258. ></el-input-number>
  259. </template>
  260. <template v-else>
  261. <b v-if="orderTotalNumber !== 10000"
  262. >{{ info.issue_no_begin }} - {{ info.issue_no_end }}</b
  263. >
  264. <b v-else>已选 {{ customOrderNumberList.length }} 期</b>
  265. <el-tooltip placement="bottom" style="height: 32px">
  266. <div slot="content">
  267. <el-table
  268. class="order-table"
  269. :data="orderTable"
  270. max-height="200px"
  271. style="width: 317px"
  272. >
  273. <el-table-column label="#" type="index" width="40">
  274. </el-table-column>
  275. <el-table-column
  276. property="issue_no"
  277. label="期"
  278. width="112"
  279. >
  280. </el-table-column>
  281. <el-table-column
  282. property="shelve_date"
  283. label="发行日期"
  284. width="100"
  285. >
  286. </el-table-column>
  287. <el-table-column
  288. property="price"
  289. label="价格"
  290. width="75"
  291. >
  292. <template slot-scope="scope">
  293. {{ scope.row.price | cutMoneyFiter }}
  294. </template>
  295. </el-table-column>
  296. </el-table>
  297. </div>
  298. <el-button class="tooltip-btn"
  299. ><svg-icon icon-class="icon-mark"></svg-icon
  300. ></el-button>
  301. </el-tooltip>
  302. </template>
  303. </template>
  304. </div>
  305. </div>
  306. <div class="info-item order-item" v-if="bookType === 'jingdu'">
  307. <label>有效期</label>
  308. <div class="order-content">
  309. <b>365天</b>
  310. <el-tooltip placement="right">
  311. <div slot="content">{{ validityStr }}</div>
  312. <el-button class="tooltip-btn"
  313. ><svg-icon icon-class="icon-mark"></svg-icon
  314. ></el-button>
  315. </el-tooltip>
  316. </div>
  317. </div>
  318. <div
  319. class="info-item order-item"
  320. v-if="settlement || info.settlement_price"
  321. >
  322. <label>结算价格</label>
  323. <div class="order-content">
  324. <span class="OPPOSans"
  325. >¥{{
  326. settlement
  327. ? settlement.price_settlement
  328. : info.settlement_price.price_settlement | cutMoneyFiter
  329. }}</span
  330. >
  331. <span
  332. class="old-price"
  333. v-if="
  334. (settlement &&
  335. settlement.price &&
  336. settlement.price_settlement !== settlement.price) ||
  337. (info.settlement_price &&
  338. info.settlement_price.price !==
  339. info.settlement_price.price_settlement)
  340. "
  341. >¥{{
  342. settlement
  343. ? settlement.price
  344. : info.settlement_price.price | cutMoneyFiter
  345. }}</span
  346. >
  347. </div>
  348. </div>
  349. <!-- <div class="info-item order-item" v-if="bookType === 'huakan'">
  350. <label>结算价格</label>
  351. <div class="order-content">
  352. <span class="OPPOSans">¥28.80</span>
  353. <span class="old-price">¥30.20</span>
  354. </div>
  355. </div> -->
  356. </div>
  357. <div class="btn-box">
  358. <el-button
  359. class="el-button"
  360. @click="handleChangeWay('wei')"
  361. :loading="createOrderLoading"
  362. >立即购买</el-button
  363. >
  364. <!-- <el-button class="upgrade" @click="handleChangeWay('dui')">使用兑换码</el-button> -->
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. <el-dialog
  370. :visible.sync="paymentShow"
  371. :show-close="false"
  372. :close-on-click-modal="false"
  373. width="712px"
  374. class="bookItem-dialog"
  375. v-if="paymentShow"
  376. >
  377. <Payment
  378. :data="info"
  379. :payWay="payWay"
  380. @handleClose="handleClose"
  381. @handleSuccess="handleSuccess"
  382. :orderId="orderId"
  383. :qr_code_url="qr_code_url"
  384. :order_amount="order_amount"
  385. />
  386. </el-dialog>
  387. </div>
  388. </template>
  389. <script>
  390. //这里可以导入其它文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  391. //例如:import 《组件名称》from ‘《组件路径》';
  392. import Header from "../../components/Header.vue";
  393. import { cutMoneyFiter } from "@/utils/defined";
  394. import { getLogin } from "@/api/ajax";
  395. import { mapState } from "vuex";
  396. import Payment from "../bookShelf/components/Payment.vue";
  397. import { getToken } from "@/utils/auth";
  398. export default {
  399. //import引入的组件需要注入到对象中才能使用
  400. components: { Header, Payment },
  401. props: [],
  402. filters: {
  403. cutMoneyFiter,
  404. },
  405. data() {
  406. //这里存放数据
  407. return {
  408. config: this.$route.query.headerConfig
  409. ? decodeURIComponent(this.$route.query.headerConfig)
  410. : "",
  411. LoginNavIndex: 0,
  412. userBg: "rgba(0, 0, 0, 0.24)",
  413. headerBorder: "#5C5C5C",
  414. headerBg: "#00ADEF",
  415. previousPage: "商城",
  416. data: {
  417. navTitle: "第 815 期 Celebrating new King",
  418. title: "第 815 期 Celebrating new King",
  419. org: "二十一世纪英文报",
  420. tagList: ["中英双语", "经典读物", "初中必读"],
  421. imgList: [
  422. require("../../assets/img1.png"),
  423. require("../../assets/bookcard-image.png"),
  424. ],
  425. describe: {
  426. title: "Bring books up to date",
  427. author: "TEENS",
  428. describe:
  429. "Should childrenn read the original or adapted version? 英国童书再版遭大量删改引争议 词数 372 测试见IV版 建议阅读时间 5分钟 Puffin ...",
  430. },
  431. price: "3.9",
  432. oldPrice: "5.99",
  433. isBuy: this.$route.query.isBuy ? this.$route.query.isBuy : false,
  434. },
  435. tagBg: ["#C9EBFF", "#FFFAC9", "#D7C9FF"], // 标签背景色
  436. tagColor: ["#006DAA", "#AA8500", "#7849C4"], // 标签字体颜色
  437. paymentShow: false, // 支付弹窗
  438. payWay: this.$route.query.paywei ? this.$route.query.paywei : "dui",
  439. bookType: this.$route.query.type ? this.$route.query.type : "baozhi", // 书籍类型
  440. bannerFlag: true, // 是否展示广告
  441. id: this.$route.query.id ? this.$route.query.id : "",
  442. info: null, // 信息
  443. courseList: [],
  444. sales: null,
  445. salesCn: "",
  446. isBuy: "false",
  447. studyType: this.$route.query.studyType
  448. ? this.$route.query.studyType
  449. : this.$route.query.type && this.$route.query.type === "huakan"
  450. ? 1
  451. : 11,
  452. studyTypeName: this.$route.query.studyTypeName
  453. ? decodeURIComponent(this.$route.query.studyTypeName)
  454. : "小学版",
  455. orderTotalNumber: 5,
  456. orderList: [
  457. {
  458. label: "5 期",
  459. value: 5,
  460. },
  461. {
  462. label: "10 期",
  463. value: 10,
  464. },
  465. {
  466. label: "20 期",
  467. value: 20,
  468. },
  469. {
  470. label: "40 期",
  471. value: 40,
  472. },
  473. {
  474. label: "自定义期数",
  475. value: -2,
  476. },
  477. {
  478. label: "年订阅(当月起订)",
  479. value: -1,
  480. },
  481. {
  482. label: "已发行期数自选预定",
  483. value: 10000,
  484. },
  485. ],
  486. orderTable: [
  487. {
  488. name: "915 期(合刊)",
  489. date: "2023-06-26",
  490. price: 12,
  491. },
  492. {
  493. name: "915 期(合刊)",
  494. date: "2023-06-26",
  495. price: 12,
  496. },
  497. {
  498. name: "915 期(合刊)",
  499. date: "2023-06-26",
  500. price: 12,
  501. },
  502. {
  503. name: "915 期(合刊)",
  504. date: "2023-06-26",
  505. price: 12,
  506. },
  507. {
  508. name: "915 期(合刊)",
  509. date: "2023-06-26",
  510. price: 12,
  511. },
  512. {
  513. name: "915 期(合刊)",
  514. date: "2023-06-26",
  515. price: 12,
  516. },
  517. {
  518. name: "915 期(合刊)",
  519. date: "2023-06-26",
  520. price: 12,
  521. },
  522. {
  523. name: "915 期(合刊)",
  524. date: "2023-06-26",
  525. price: 12,
  526. },
  527. {
  528. name: "915 期(合刊)",
  529. date: "2023-06-26",
  530. price: 12,
  531. },
  532. ],
  533. customizeNum: 1, // 自定义期数
  534. customPage: 0,
  535. custonList: [
  536. {
  537. title: "2019-2020 学年",
  538. total: 14,
  539. list: [
  540. {
  541. label: "759",
  542. value: "759",
  543. width: 1,
  544. number: 1, // 算完下一个去复制上一个是不是末位 如果下一个加起来的number/10有余数那就是下一行了
  545. },
  546. {
  547. label: "758",
  548. value: "758",
  549. width: 1,
  550. number: 2,
  551. },
  552. {
  553. label: "757",
  554. value: "757",
  555. width: 1,
  556. number: 3,
  557. },
  558. {
  559. label: "756",
  560. value: "756",
  561. width: 1,
  562. number: 4,
  563. },
  564. {
  565. label: "755",
  566. value: "755",
  567. width: 1,
  568. number: 5,
  569. },
  570. {
  571. label: "754",
  572. value: "754",
  573. width: 1,
  574. number: 1,
  575. },
  576. {
  577. label: "753",
  578. value: "753",
  579. width: 1,
  580. number: 1,
  581. },
  582. {
  583. label: "752",
  584. value: "752",
  585. width: 1,
  586. number: 1,
  587. },
  588. {
  589. label: "751",
  590. value: "751",
  591. width: 1,
  592. number: 1,
  593. },
  594. {
  595. label: "751",
  596. value: "751",
  597. width: 1,
  598. number: 1,
  599. farRight: true,
  600. },
  601. {
  602. label: "共同战“疫”",
  603. value: "gong",
  604. width: 2,
  605. number: 1,
  606. farBottom: true,
  607. },
  608. {
  609. label: "750",
  610. value: "750",
  611. width: 1,
  612. number: 1,
  613. farBottom: true,
  614. },
  615. {
  616. label: "769",
  617. value: "769",
  618. width: 1,
  619. number: 1,
  620. farBottom: true,
  621. },
  622. ],
  623. },
  624. ],
  625. customOrderNumberList: [],
  626. validityStr: "", // 有效期
  627. rules: "", // 折扣规则
  628. loading: false,
  629. orderId: "",
  630. qr_code_url: "",
  631. order_amount: null,
  632. userMessage: getToken() ? JSON.parse(getToken()) : null,
  633. studyTypeList: [
  634. {
  635. study_phase: 11,
  636. study_phase_name: "小学版",
  637. },
  638. {
  639. study_phase: 21,
  640. study_phase_name: "初一版",
  641. },
  642. {
  643. study_phase: 22,
  644. study_phase_name: "初二版",
  645. },
  646. {
  647. study_phase: 23,
  648. study_phase_name: "初三版",
  649. },
  650. ],
  651. settlement: null, // 结算价格
  652. createOrderLoading: false,
  653. valid_period_id: null,
  654. totalLength: 0,
  655. };
  656. },
  657. //计算属性 类似于data概念
  658. computed: {
  659. ...mapState(["$studyType"]),
  660. },
  661. //监控data中数据变化
  662. watch: {},
  663. //方法集合
  664. methods: {
  665. // 分享
  666. handleShare() {},
  667. // 收藏
  668. handlelike() {},
  669. handleChangeWay(type) {
  670. if (!this.userMessage) {
  671. this.$refs.header.handleLogin(
  672. "/subscribe?name=" +
  673. this.$route.query.name +
  674. "&type=" +
  675. this.$route.query.type +
  676. "&paywei=" +
  677. type,
  678. "url"
  679. );
  680. return false;
  681. }
  682. this.payWay = type;
  683. this.handleOrder();
  684. },
  685. // 关闭弹窗
  686. handleClose() {
  687. this.paymentShow = false;
  688. },
  689. handleSuccess() {
  690. this.paymentShow = false;
  691. },
  692. // 详情
  693. getInfo(flag) {
  694. this.loading = true;
  695. if (flag) {
  696. }
  697. if (this.bookType === "baozhi") {
  698. if (this.orderTotalNumber !== -1) {
  699. let MethodName =
  700. "/ShopServer/Client/ReservationQuery/GetReservationInfo_Issue";
  701. let data = {
  702. goods_type: 2,
  703. study_phase: this.studyType,
  704. period_count:
  705. this.orderTotalNumber !== 10000
  706. ? this.orderTotalNumber === -2
  707. ? this.customizeNum
  708. : this.orderTotalNumber
  709. : this.customOrderNumberList.length,
  710. is_custom_select_issue_no:
  711. this.orderTotalNumber !== 10000 ? "false" : "true",
  712. };
  713. getLogin(MethodName, data)
  714. .then((res) => {
  715. this.loading = false;
  716. if (res.status === 1) {
  717. this.info = res;
  718. res.issue_no_school_year_list =
  719. res.issue_no_school_year_list.reverse();
  720. this.orderTable = res.issue_no_list;
  721. res.issue_no_school_year_list.forEach((item) => {
  722. item.issue_no_list.forEach((items, indexs) => {
  723. const regex = /[\u4e00-\u9fa5]/g;
  724. if (regex.test(items.issue_no)) {
  725. items.width = Math.ceil(items.issue_no.length / 3);
  726. items.number = item.issue_no_list[indexs - 1]
  727. ? item.issue_no_list[indexs - 1].number +
  728. Math.ceil(items.issue_no.length / 3)
  729. : Math.ceil(items.issue_no.length / 3);
  730. } else {
  731. items.width = 1;
  732. items.number = item.issue_no_list[indexs - 1]
  733. ? item.issue_no_list[indexs - 1].number + 1
  734. : 1;
  735. }
  736. });
  737. });
  738. }
  739. })
  740. .catch(() => {
  741. this.loading = false;
  742. });
  743. }
  744. if (
  745. this.totalLength >=
  746. (this.orderTotalNumber !== 10000
  747. ? this.orderTotalNumber === -2
  748. ? this.customizeNum
  749. : this.orderTotalNumber
  750. : this.customOrderNumberList.length)
  751. ) {
  752. this.handleOrderPrice();
  753. } else {
  754. this.settlement = null;
  755. }
  756. } else if (this.bookType === "huakan") {
  757. this.loading = false;
  758. if (this.orderTotalNumber !== -1) {
  759. let MethodName =
  760. "/ShopServer/Client/ReservationQuery/GetReservationInfo_Issue";
  761. let data = {
  762. goods_type: 4,
  763. study_phase: 1,
  764. period_count:
  765. this.orderTotalNumber !== 10000
  766. ? this.orderTotalNumber === -2
  767. ? this.customizeNum
  768. : this.orderTotalNumber
  769. : this.customOrderNumberList.length,
  770. is_custom_select_issue_no:
  771. this.orderTotalNumber !== 10000 ? "false" : "true",
  772. };
  773. getLogin(MethodName, data)
  774. .then((res) => {
  775. this.loading = false;
  776. if (res.status === 1) {
  777. this.info = res;
  778. res.issue_no_school_year_list =
  779. res.issue_no_school_year_list.reverse();
  780. this.orderTable = res.issue_no_list;
  781. res.issue_no_school_year_list.forEach((item) => {
  782. item.issue_no_list.forEach((items, indexs) => {
  783. const regex = /[\u4e00-\u9fa5]/g;
  784. if (regex.test(items.issue_no)) {
  785. items.width = Math.ceil(items.issue_no.length / 3);
  786. items.number = item.issue_no_list[indexs - 1]
  787. ? item.issue_no_list[indexs - 1].number +
  788. Math.ceil(items.issue_no.length / 3)
  789. : Math.ceil(items.issue_no.length / 3);
  790. } else {
  791. items.width = 1;
  792. items.number = item.issue_no_list[indexs - 1]
  793. ? item.issue_no_list[indexs - 1].number + 1
  794. : 1;
  795. }
  796. });
  797. });
  798. }
  799. })
  800. .catch(() => {
  801. this.loading = false;
  802. });
  803. }
  804. // this.info = {
  805. // issue_no_end: "928",
  806. // issue_no_school_year_list: [],
  807. // issue_info: {
  808. // period_desc: "每月出版,2月、 8月休刊",
  809. // age_desc: "5-8 岁",
  810. // price: 10,
  811. // organizer: "中国日报社《二十一世纪学生英文报》",
  812. // page_count_desc: "24 页",
  813. // },
  814. // price_reservation: 10,
  815. // issue_no_begin: "929",
  816. // issue_no_list: [
  817. // {
  818. // shelve_date: "2024-07-31",
  819. // issue_no: "929",
  820. // price: 2.4,
  821. // },
  822. // {
  823. // shelve_date: "2025-07-10",
  824. // issue_no: "931",
  825. // price: 2.4,
  826. // },
  827. // {
  828. // shelve_date: "2025-08-07",
  829. // issue_no: "928",
  830. // price: 2.4,
  831. // },
  832. // ],
  833. // };
  834. if (
  835. this.totalLength >=
  836. (this.orderTotalNumber !== 10000
  837. ? this.orderTotalNumber === -2
  838. ? this.customizeNum
  839. : this.orderTotalNumber
  840. : this.customOrderNumberList.length)
  841. ) {
  842. this.handleOrderPrice();
  843. } else {
  844. this.settlement = null;
  845. }
  846. } else {
  847. let MethodName =
  848. "/ShopServer/Client/ReservationQuery/GetReservationValidPeriodList_Iread";
  849. getLogin(MethodName, {})
  850. .then((res) => {
  851. this.loading = false;
  852. if (res.status === 1) {
  853. this.valid_period_id = res.valid_period_list[0]
  854. ? res.valid_period_list[0].id
  855. : "";
  856. getLogin(
  857. "/ShopServer/Client/ReservationQuery/GetReservationInfo_Iread",
  858. {
  859. study_phase: this.studyType,
  860. valid_period_id: res.valid_period_list[0]
  861. ? res.valid_period_list[0].id
  862. : "",
  863. }
  864. )
  865. .then((ress) => {
  866. if (ress.status === 1) {
  867. this.info = ress;
  868. }
  869. })
  870. .catch(() => {});
  871. }
  872. })
  873. .catch(() => {
  874. this.loading = false;
  875. });
  876. }
  877. },
  878. // 计算结算价格
  879. handleOrderPrice(flag) {
  880. this.loading = true;
  881. let MethodName =
  882. "/ShopServer/Client/ReservationQuery/ComputeReservationSettlementPrice_Issue";
  883. let data = {
  884. goods_type: this.bookType === "huakan" ? 4 : 2,
  885. study_phase: this.studyType,
  886. period_count:
  887. this.orderTotalNumber !== 10000
  888. ? this.orderTotalNumber === -2
  889. ? this.customizeNum
  890. : this.orderTotalNumber
  891. : this.customOrderNumberList.length,
  892. is_custom_select_issue_no:
  893. this.orderTotalNumber !== 10000 ? "false" : "true",
  894. issue_no_list: this.customOrderNumberList,
  895. };
  896. getLogin(MethodName, data)
  897. .then((res) => {
  898. this.loading = false;
  899. if (res.status === 1) {
  900. this.settlement = res;
  901. }
  902. })
  903. .catch(() => {
  904. this.loading = false;
  905. });
  906. },
  907. changeCustomOrder(item) {
  908. if (this.customOrderNumberList.indexOf(item.issue_no) > -1) {
  909. this.customOrderNumberList.splice(
  910. this.customOrderNumberList.indexOf(item.issue_no),
  911. 1
  912. );
  913. this.orderTable.splice(
  914. this.customOrderNumberList.indexOf(item.issue_no),
  915. 1
  916. );
  917. } else {
  918. this.customOrderNumberList.push(item.issue_no);
  919. this.orderTable.push(item);
  920. }
  921. this.handleOrderPrice();
  922. },
  923. async changeStudy(item) {
  924. this.studyType = item.study_phase;
  925. this.studyTypeName = item.study_phase_name;
  926. this.customOrderNumberList = [];
  927. await this.handleIssueLength();
  928. },
  929. changeOrderNumber(item, flag) {
  930. if (flag && item.value !== -2) return false;
  931. this.orderTotalNumber = item.value;
  932. this.getInfo();
  933. },
  934. getDiscountRule() {
  935. let MethodName =
  936. "/OrgServer/Client/SysConfigQuery/GetSysConfig_DiscountRule";
  937. getLogin(MethodName, {}).then((res) => {
  938. if (res.status === 1) {
  939. let str = "一次性订阅:<br/>";
  940. res.rule_list.forEach((item) => {
  941. str +=
  942. item.buy_count + " 期 " + item.discount.toFixed(1) + " 折<br/>";
  943. });
  944. this.rules = str;
  945. }
  946. });
  947. },
  948. changeCustomPage(type) {
  949. if (type === "-") {
  950. if (this.customPage !== 0) {
  951. this.customPage--;
  952. } else {
  953. this.$message.warning("已经是最新学年");
  954. }
  955. } else {
  956. if (
  957. this.customPage !==
  958. this.info.issue_no_school_year_list.length - 1
  959. ) {
  960. this.customPage++;
  961. } else {
  962. this.$message.warning("后面没有数据啦");
  963. }
  964. }
  965. },
  966. // 生成订单
  967. handleOrder() {
  968. this.createOrderLoading = true;
  969. let MethodName = "/ShopServer/Client/OrderManager/CreateOrder";
  970. let data = {
  971. is_reservation: "true",
  972. sale_model: this.bookType === "jingdu" ? 1 : 0,
  973. goods_type:
  974. this.bookType === "jingdu" ? 3 : this.bookType === "huakan" ? 4 : 2,
  975. goods_study_phase: this.bookType === "huakan" ? 1 : this.studyType,
  976. period_count:
  977. this.orderTotalNumber !== 10000
  978. ? this.orderTotalNumber === -2
  979. ? this.customizeNum
  980. : this.orderTotalNumber
  981. : this.customOrderNumberList.length,
  982. is_custom_select_issue_no:
  983. this.orderTotalNumber !== 10000 ? "false" : "true",
  984. issue_no_list: this.customOrderNumberList,
  985. pay_type:
  986. this.payWay === "wei"
  987. ? 3
  988. : this.payWay === "zhi"
  989. ? 4
  990. : this.payWay === "dui"
  991. ? 5
  992. : null,
  993. valid_period_id: this.valid_period_id,
  994. };
  995. getLogin(MethodName, data)
  996. .then((res) => {
  997. this.createOrderLoading = false;
  998. if (res.status === 1) {
  999. this.order_amount = res.order_amount;
  1000. if (this.order_amount <= 0) {
  1001. } else {
  1002. this.orderId = res.id;
  1003. this.qr_code_url = res.qr_code_url;
  1004. this.paymentShow = true;
  1005. }
  1006. }
  1007. })
  1008. .catch(() => {
  1009. this.createOrderLoading = false;
  1010. });
  1011. // this.paymentShow = true;
  1012. },
  1013. getTotalSales() {
  1014. let MethodName = "/ShopServer/Client/ShopHomeQuery/GetGoodsTotalSales";
  1015. let data = {
  1016. goods_type:
  1017. this.bookType === "jingdu" ? 3 : this.bookType === "huakan" ? 4 : 2,
  1018. };
  1019. getLogin(MethodName, data)
  1020. .then((res) => {
  1021. if (res.status === 1) {
  1022. this.sales = res.sale_count;
  1023. if (this.sales < 1000) {
  1024. this.salesCn = "";
  1025. } else if (1000 <= this.sales && this.sales < 10000) {
  1026. this.salesCn = this.sales.toString().substring(0, 1) + "000+";
  1027. } else if (10000 <= this.sales && this.sales < 100000) {
  1028. this.salesCn = this.sales.toString().substring(0, 1) + "万+";
  1029. } else if (100000 <= this.sales && this.sales < 1000000) {
  1030. this.salesCn = this.sales.toString().substring(0, 1) + "0万+";
  1031. } else if (1000000 <= this.sales && this.sales < 10000000) {
  1032. this.salesCn = this.sales.toString().substring(0, 1) + "00万+";
  1033. } else if (10000000 <= this.sales && this.sales < 100000000) {
  1034. this.salesCn = this.sales.toString().substring(0, 1) + "000万+";
  1035. } else if (100000000 <= this.sales) {
  1036. this.salesCn = this.sales.toString().substring(0, 1) + "亿+";
  1037. }
  1038. }
  1039. })
  1040. .catch(() => {});
  1041. },
  1042. // 获取已发行期数
  1043. handleIssueLength() {
  1044. this.totalLength = 0;
  1045. let MethodName =
  1046. "/ShopServer/Client/ReservationQuery/GetCanReservationPeriodCount_Issue";
  1047. let data = {
  1048. goods_type: this.bookType === "baozhi" ? 2 : 4,
  1049. study_phase: this.bookType === "baozhi" ? this.studyType : 1,
  1050. };
  1051. getLogin(MethodName, data)
  1052. .then((res) => {
  1053. if (res.status === 1) {
  1054. this.totalLength = res.period_count_max;
  1055. this.getInfo();
  1056. }
  1057. })
  1058. .catch(() => {});
  1059. },
  1060. },
  1061. //生命周期 - 创建完成(可以访问当前this实例)
  1062. async created() {
  1063. if (this.config) {
  1064. let arr = this.config.split("&&&");
  1065. this.LoginNavIndex = arr[0] * 1;
  1066. this.userBg = arr[1] ? arr[1] : "rgba(0, 0, 0, 0.24)";
  1067. this.headerBorder = arr[2] ? arr[2] : "#5C5C5C";
  1068. this.headerBg = arr[3] ? arr[3] : "#00ADEF";
  1069. this.previousPage = arr[4] ? arr[4] : "商城";
  1070. }
  1071. if (this.bookType === "baozhi" || this.bookType === "huakan") {
  1072. await this.handleIssueLength();
  1073. } else {
  1074. this.getInfo();
  1075. }
  1076. this.getDiscountRule();
  1077. let date1 =
  1078. new Date().getFullYear() +
  1079. "." +
  1080. (new Date().getMonth() + 1 < 10
  1081. ? "0" + (new Date().getMonth() + 1)
  1082. : new Date().getMonth() + 1) +
  1083. "." +
  1084. new Date().getDate();
  1085. let data2 = new Date(
  1086. new Date(
  1087. new Date().getFullYear() +
  1088. 1 +
  1089. "." +
  1090. (new Date().getMonth() + 1 < 10
  1091. ? "0" + (new Date().getMonth() + 1)
  1092. : new Date().getMonth() + 1) +
  1093. "." +
  1094. new Date().getDate()
  1095. ).getTime() -
  1096. 24 * 60 * 60 * 1000
  1097. );
  1098. data2 =
  1099. data2.getFullYear() +
  1100. "." +
  1101. (data2.getMonth() + 1 < 10
  1102. ? "0" + (data2.getMonth() + 1)
  1103. : data2.getMonth() + 1) +
  1104. "." +
  1105. data2.getDate();
  1106. this.validityStr = date1 + " ~ " + data2;
  1107. if (this.$route.query.paywei) {
  1108. this.handleOrder();
  1109. }
  1110. this.getTotalSales();
  1111. },
  1112. //生命周期 - 挂载完成(可以访问DOM元素)
  1113. mounted() {},
  1114. //生命周期-创建之前
  1115. beforeCreated() {},
  1116. //生命周期-挂载之前
  1117. beforeMount() {},
  1118. //生命周期-更新之前
  1119. beforUpdate() {},
  1120. //生命周期-更新之后
  1121. updated() {},
  1122. //生命周期-销毁之前
  1123. beforeDestory() {},
  1124. //生命周期-销毁完成
  1125. destoryed() {},
  1126. //如果页面有keep-alive缓存功能,这个函数会触发
  1127. activated() {},
  1128. };
  1129. </script>
  1130. <style lang="scss" scoped>
  1131. /* @import url(); 引入css类 */
  1132. .bookItem {
  1133. background: #f7f8fa;
  1134. min-height: calc(100vh - 135px);
  1135. .main-top {
  1136. background: #ffffff;
  1137. padding: 48px 0;
  1138. margin-top: 56px;
  1139. min-height: calc(100vh - 135px);
  1140. &-inner {
  1141. width: 1200px;
  1142. margin: 0 auto;
  1143. display: flex;
  1144. .swiper-container {
  1145. width: 416px;
  1146. height: 440px;
  1147. text-align: center;
  1148. .el-image {
  1149. width: 414px;
  1150. height: 414px;
  1151. border: 1px solid #f3f3f3;
  1152. }
  1153. }
  1154. .book-info-right {
  1155. flex: 1;
  1156. padding-left: 88px;
  1157. .title {
  1158. color: #2f3742;
  1159. font-weight: 500;
  1160. font-size: 32px;
  1161. line-height: 44px;
  1162. margin: 0 0 16px 0;
  1163. }
  1164. .org,
  1165. .date {
  1166. font-weight: 500;
  1167. font-size: 14px;
  1168. line-height: 22px;
  1169. color: rgba(0, 0, 0, 0.4);
  1170. }
  1171. .date {
  1172. margin-left: 32px;
  1173. line-height: 24px;
  1174. }
  1175. .label-box {
  1176. display: flex;
  1177. flex-flow: wrap;
  1178. margin: 16px 0;
  1179. label {
  1180. margin: 0 8px 8px 0;
  1181. border-radius: 20px;
  1182. padding: 4px 12px;
  1183. font-weight: 400;
  1184. font-size: 14px;
  1185. line-height: 22px;
  1186. }
  1187. }
  1188. .book-describe {
  1189. border-top: 1px solid #e5e6eb;
  1190. border-bottom: 1px solid #e5e6eb;
  1191. padding: 16px 0;
  1192. .title {
  1193. font-weight: 500;
  1194. font-size: 16px;
  1195. line-height: 24px;
  1196. color: #000000;
  1197. margin-bottom: 8px;
  1198. }
  1199. .author {
  1200. font-weight: 400;
  1201. font-size: 12px;
  1202. line-height: 20px;
  1203. color: #000000;
  1204. margin-bottom: 8px;
  1205. display: block;
  1206. }
  1207. .describe {
  1208. font-weight: 400;
  1209. font-size: 14px;
  1210. line-height: 22px;
  1211. color: #000000;
  1212. margin: 0;
  1213. }
  1214. }
  1215. .price-box {
  1216. padding: 20px 0 16px 0;
  1217. display: flex;
  1218. align-items: flex-end;
  1219. .price {
  1220. font-weight: 500;
  1221. font-size: 32px;
  1222. line-height: 40px;
  1223. color: #ea5939;
  1224. }
  1225. .oldPrice {
  1226. padding: 0 0 2px 7px;
  1227. font-weight: 500;
  1228. font-size: 14px;
  1229. line-height: 22px;
  1230. color: rgba(0, 0, 0, 0.4);
  1231. text-decoration-line: line-through;
  1232. }
  1233. }
  1234. .info-box {
  1235. display: flex;
  1236. flex-flow: wrap;
  1237. border-bottom: 1px solid #ebebeb;
  1238. width: 680px;
  1239. margin-top: 48px;
  1240. .info-item {
  1241. width: 50%;
  1242. margin-bottom: 15px;
  1243. font-size: 14px;
  1244. line-height: 22px;
  1245. display: flex;
  1246. }
  1247. label {
  1248. color: #c2c2c2;
  1249. font-weight: 400;
  1250. margin-right: 16px;
  1251. width: 58px;
  1252. flex-shrink: 0;
  1253. display: block;
  1254. text-align: justify;
  1255. text-justify: distribute-all-lines;
  1256. text-align-last: justify;
  1257. -moz-text-align-last: justify;
  1258. -webkit-text-align-last: justify;
  1259. }
  1260. }
  1261. .order-box {
  1262. margin-bottom: 24px;
  1263. padding: 24px 0 0;
  1264. margin-top: 0;
  1265. .order-item {
  1266. margin-bottom: 24px;
  1267. width: 100%;
  1268. label {
  1269. line-height: 32px;
  1270. }
  1271. .order-content {
  1272. line-height: 32px;
  1273. ul {
  1274. margin: 0;
  1275. padding: 0;
  1276. list-style: none;
  1277. display: flex;
  1278. flex-flow: wrap;
  1279. li {
  1280. cursor: pointer;
  1281. border-radius: 2px;
  1282. background: #f2f3f5;
  1283. margin-right: 8px;
  1284. margin-bottom: 8px;
  1285. padding: 4px 15px;
  1286. color: #000;
  1287. font-size: 14px;
  1288. font-weight: 500;
  1289. line-height: 22px;
  1290. border: 1px solid #f2f3f5;
  1291. &.active {
  1292. color: #ea5939;
  1293. background: #ffffff;
  1294. border-color: #ea5939;
  1295. }
  1296. &.disabled {
  1297. cursor: not-allowed;
  1298. background: #f2f3f5;
  1299. color: #bababa;
  1300. border-color: #f2f3f5;
  1301. }
  1302. }
  1303. }
  1304. .el-table {
  1305. background: #303133;
  1306. }
  1307. }
  1308. .OPPOSans {
  1309. margin: 0 8px 0 0;
  1310. color: #ea5939;
  1311. font-size: 20px;
  1312. font-weight: 500;
  1313. line-height: 28px;
  1314. }
  1315. .old-price {
  1316. color: rgba(0, 0, 0, 1);
  1317. font-size: 12px;
  1318. font-weight: 500;
  1319. line-height: 22px;
  1320. text-decoration: line-through;
  1321. }
  1322. }
  1323. }
  1324. .btn-box {
  1325. display: flex;
  1326. .el-button {
  1327. width: 112px;
  1328. height: 40px;
  1329. background: #ea5939;
  1330. box-shadow: 0px 8px 16px rgba(234, 89, 57, 0.24);
  1331. border-radius: 4px;
  1332. font-weight: 500;
  1333. font-size: 16px;
  1334. color: #ffffff;
  1335. border: none;
  1336. }
  1337. .svg-icon {
  1338. margin-left: 7px;
  1339. }
  1340. .continue {
  1341. width: 112px;
  1342. height: 40px;
  1343. background: #175dff;
  1344. border-radius: 4px;
  1345. font-weight: 500;
  1346. font-size: 16px;
  1347. line-height: 40px;
  1348. color: rgba(255, 255, 255, 1);
  1349. display: block;
  1350. text-align: center;
  1351. box-shadow: 0px 8px 16px rgba(23, 93, 255, 0.24);
  1352. }
  1353. .upgrade {
  1354. margin-left: 16px;
  1355. display: block;
  1356. padding: 0px 24px;
  1357. height: 40px;
  1358. background: #e9e9e9;
  1359. box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.06);
  1360. border-radius: 4px;
  1361. color: #595959;
  1362. font-weight: 500;
  1363. font-size: 16px;
  1364. line-height: 40px;
  1365. text-align: center;
  1366. width: 130px;
  1367. }
  1368. }
  1369. }
  1370. }
  1371. }
  1372. .main-center {
  1373. width: 1200px;
  1374. margin: 0 auto;
  1375. padding: 40px 0;
  1376. .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  1377. border-color: #e7e7e7;
  1378. }
  1379. }
  1380. .main-bottom {
  1381. width: 1200px;
  1382. margin: 0 auto;
  1383. padding-bottom: 40px;
  1384. &-top {
  1385. display: flex;
  1386. justify-content: space-between;
  1387. p {
  1388. margin: 0;
  1389. font-weight: 500;
  1390. font-size: 24px;
  1391. line-height: 32px;
  1392. color: #1f2c5c;
  1393. font-family: initial;
  1394. }
  1395. .right {
  1396. color: rgba(0, 0, 0, 0.88);
  1397. font-weight: 400;
  1398. font-size: 16px;
  1399. line-height: 24px;
  1400. cursor: pointer;
  1401. a {
  1402. margin-right: 8px;
  1403. }
  1404. }
  1405. }
  1406. }
  1407. .list {
  1408. margin-top: 24px;
  1409. display: flex;
  1410. flex-wrap: wrap;
  1411. > div {
  1412. width: 200px;
  1413. border-radius: 8px;
  1414. overflow: hidden;
  1415. background: #ffffff;
  1416. margin-bottom: 24px;
  1417. }
  1418. }
  1419. }
  1420. .banner-box-close {
  1421. margin-top: 40px;
  1422. }
  1423. .sales-box {
  1424. display: flex;
  1425. width: 680px;
  1426. padding: 16px;
  1427. border-radius: 4px;
  1428. background: #f5f5f5;
  1429. justify-content: space-between;
  1430. align-items: flex-end;
  1431. color: #adadad;
  1432. font-size: 14px;
  1433. font-weight: 400;
  1434. line-height: 22px;
  1435. .OPPOSans {
  1436. margin: 0 8px 0 16px;
  1437. color: #ea5939;
  1438. font-size: 32px;
  1439. font-weight: 500;
  1440. line-height: 40px;
  1441. }
  1442. .old-price {
  1443. color: rgba(0, 0, 0, 0.4);
  1444. font-size: 14px;
  1445. font-weight: 500;
  1446. line-height: 22px;
  1447. text-decoration: line-through;
  1448. }
  1449. b {
  1450. color: rgba(0, 0, 0, 0.4);
  1451. font-size: 14px;
  1452. font-weight: 700;
  1453. line-height: 22px;
  1454. }
  1455. }
  1456. .custom-box {
  1457. width: 522px;
  1458. border: 1px solid #e5e6eb;
  1459. background: #fff;
  1460. margin: 4px 0 8px 0;
  1461. &-top {
  1462. padding: 8px 16px;
  1463. display: flex;
  1464. // justify-content: space-between;
  1465. align-items: center;
  1466. h5 {
  1467. margin: 0;
  1468. color: #ea5939;
  1469. font-size: 12px;
  1470. font-weight: 600;
  1471. line-height: 20px;
  1472. }
  1473. .btn-box {
  1474. a {
  1475. margin-left: 6px;
  1476. border-radius: 2px;
  1477. background: #00adef;
  1478. width: 24px;
  1479. height: 24px;
  1480. display: block;
  1481. text-align: center;
  1482. line-height: 24px;
  1483. font-size: 20px;
  1484. color: #fff;
  1485. }
  1486. }
  1487. }
  1488. &-bottom {
  1489. border-top: 1px solid #e5e6eb;
  1490. li {
  1491. padding: 8px !important;
  1492. margin: 0 !important;
  1493. background: #ffffff !important;
  1494. border: none !important;
  1495. min-width: 52px;
  1496. height: 36px;
  1497. text-align: center;
  1498. border-right: 1px solid #e5e6eb !important;
  1499. border-bottom: 1px solid #e5e6eb !important;
  1500. border-radius: 0 !important;
  1501. display: flex;
  1502. .custom-btn {
  1503. border: none;
  1504. width: 100%;
  1505. background: initial;
  1506. padding: 0;
  1507. line-height: 20px;
  1508. height: 20px;
  1509. color: #000;
  1510. }
  1511. &.active {
  1512. border-right: 1px solid #f5f5f5 !important;
  1513. border-bottom: 1px solid #f5f5f5 !important;
  1514. background: #ea5939 !important;
  1515. &:hover {
  1516. .custom-btn {
  1517. color: #fff !important;
  1518. }
  1519. }
  1520. .custom-btn {
  1521. color: #fff !important;
  1522. }
  1523. }
  1524. &:hover {
  1525. .custom-btn {
  1526. color: #000 !important;
  1527. }
  1528. }
  1529. }
  1530. }
  1531. }
  1532. </style>
  1533. <style lang="scss">
  1534. .bookItem {
  1535. .el-carousel__button {
  1536. width: 8px;
  1537. height: 8px;
  1538. background: #d9d9d9;
  1539. opacity: 1;
  1540. border-radius: 4px;
  1541. }
  1542. .el-carousel__indicator.is-active {
  1543. .el-carousel__button {
  1544. background: #5e5e5e;
  1545. }
  1546. }
  1547. .el-tabs__header {
  1548. margin: 0;
  1549. }
  1550. .el-tab-pane {
  1551. background: #f8f8f8;
  1552. border: 1px solid #e7e7e7;
  1553. border-top: none;
  1554. padding: 24px;
  1555. }
  1556. .el-tabs__item {
  1557. width: 160px;
  1558. height: 38px;
  1559. text-align: center;
  1560. font-weight: 500;
  1561. font-size: 14px;
  1562. line-height: 38px;
  1563. color: #1f2c5c;
  1564. &:hover {
  1565. background: #e7e7e7;
  1566. }
  1567. &.is-active {
  1568. // background: #3459D2;
  1569. // color: #EEF3FF;
  1570. border-bottom: none;
  1571. background: #e7e7e7;
  1572. }
  1573. }
  1574. }
  1575. .bookitem-dropdown.el-dropdown-menu {
  1576. padding: 4px;
  1577. .el-dropdown-menu__item {
  1578. font-weight: 500;
  1579. font-size: 16px;
  1580. line-height: 40px;
  1581. color: #000000;
  1582. }
  1583. .el-dropdown-menu__item:focus,
  1584. .el-dropdown-menu__item:not(.is-disabled):hover {
  1585. background: #fdecee;
  1586. border-radius: 4px;
  1587. color: #ea5939;
  1588. }
  1589. }
  1590. .bookItem-dialog {
  1591. .el-dialog__header,
  1592. .el-dialog__body {
  1593. padding: 0;
  1594. }
  1595. .el-dialog {
  1596. border: 1px solid #ebebeb;
  1597. box-shadow: 0px 6px 30px 5px rgba(0, 0, 0, 0.05),
  1598. 0px 16px 24px 2px rgba(0, 0, 0, 0.04),
  1599. 0px 8px 10px -5px rgba(0, 0, 0, 0.08);
  1600. border-radius: 8px;
  1601. overflow: hidden;
  1602. }
  1603. }
  1604. .tooltip-btn {
  1605. border: none;
  1606. padding: 0;
  1607. margin-left: 6px;
  1608. color: #bebebe;
  1609. &:focus,
  1610. &:hover {
  1611. color: #bebebe;
  1612. background: none;
  1613. }
  1614. }
  1615. .order-table.el-table {
  1616. font-size: 12px;
  1617. color: #fff;
  1618. line-height: 20px;
  1619. }
  1620. .order-table.el-table th.el-table__cell {
  1621. background: #3e424b !important;
  1622. padding: 2px 5px;
  1623. }
  1624. .order-table.el-table .el-table__cell {
  1625. padding: 2px 5px;
  1626. }
  1627. .order-table.el-table thead {
  1628. font-size: 12px;
  1629. color: #fff;
  1630. line-height: 20px;
  1631. }
  1632. .order-table.el-table td.el-table__cell,
  1633. .order-table.el-table th.el-table__cell.is-leaf {
  1634. border-bottom-color: #3e424b;
  1635. }
  1636. .order-table.el-table tr,
  1637. .order-table.el-table--enable-row-hover
  1638. .el-table__body
  1639. tr:hover
  1640. > td.el-table__cell {
  1641. background: #1d2129;
  1642. }
  1643. .order-table.el-table .cell {
  1644. padding: 0 5px !important;
  1645. }
  1646. .order-table.el-table::before {
  1647. height: 0;
  1648. }
  1649. .order-table.el-table--scrollable-y .el-table__body-wrapper::-webkit-scrollbar {
  1650. display: none;
  1651. }
  1652. </style>