Home.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826
  1. <template>
  2. <div class="home">
  3. <header>乐团注册</header>
  4. <div class="section">
  5. <h2 class="title line_bottom">课程</h2>
  6. <!-- <p class="indate" v-if="result.payMethod >= 26" key="indate-price"><span>现价:¥{{ result.classAmount }}</span></p> -->
  7. <div class="options" v-if="result.payMethod >= 26" key="class-list">
  8. <div class="option">
  9. <div class="0_hd"><i class="check_default check_active"></i></div>
  10. <div class="o_bd">乐团声部训练</div>
  11. <span class="o_ft">
  12. 现价:¥{{ result.classAmount }}
  13. </span>
  14. </div>
  15. <div class="option">
  16. <div class="0_hd"><i class="check_default check_active"></i></div>
  17. <div class="o_bd">乐团合奏训练</div>
  18. </div>
  19. <div class="option">
  20. <div class="0_hd"><i class="check_default check_active"></i></div>
  21. <div class="o_bd">基础技能训练</div>
  22. </div>
  23. <div class="option">
  24. <div class="0_hd"><i class="check_default check_active"></i></div>
  25. <div class="o_bd">假期集中训练</div>
  26. </div>
  27. </div>
  28. <div class="options" v-else key="class-list">
  29. <div class="option">
  30. <div class="0_hd"><i class="check_default check_active"></i></div>
  31. <div class="o_bd">乐团课</div>
  32. <span class="o_ft" v-if="result.payMethod == 21 || result.payMethod == 25" key="class-price">
  33. <del>原价:¥23520</del> 现价:免费
  34. </span>
  35. <span class="o_ft" v-else key="class-price">
  36. <del>原价:¥23520</del> 现价:¥{{ result.classAmount }}
  37. </span>
  38. </div>
  39. </div>
  40. <div class="coutInfo" v-if="result.payMethod >= 26">
  41. <i class="trumpet_icon"></i>年度安排十个月训练,共计168课时,120元/课时,原价20160元,现仅支付{{ result.classAmount }}元/月(约合{{ (result.classAmount * 10 / 168).toFixed(2) }}元/课时)
  42. </div>
  43. </div>
  44. <div class="section">
  45. <h2 class="title line_bottom">乐器</h2>
  46. <div class="options" v-if="result.payMethod == 21 || result.payMethod == 22 || result.payMethod > 26 || (result.payMethod == 25 && !result.isCopperPipe)">
  47. <div v-for="(con, index) in instrument.config" :key="con.name" :class="[ instrument.config.length > 1 ? 'oc' : '' ]" @click="instrumentF(index)">
  48. <div class="option">
  49. <div class="o_"><i class="check_default" :class="[ con.checked ? 'check_active' : '' ]"></i></div>
  50. <div class="o_bd" v-if="con.marketPrice > 0" key="name">{{ instrument.name }}-<span class="c">{{ con.name }} </span></div>
  51. <div class="o_bd" v-else key="name">{{ con.name }}</div>
  52. <span class="o_ft" v-if="con.marketPrice > 0">
  53. <del>原价:¥{{ con.marketPrice }}</del> 现价:¥{{ con.referencePrice }}
  54. </span>
  55. </div>
  56. <div class="configuration" v-if="con.marketPrice > 0">
  57. <div class="config">
  58. <div class="title"><span>配置参数</span></div>
  59. <div class="content">
  60. <p>{{ instrument.configuration }} {{ con.texture}}</p>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="options" v-if="(result.payMethod == 25 && result.isCopperPipe) || result.payMethod == 26">
  67. <div v-for="con in instrument.config" :key="con.name" class="oc" @click="instrumentF2('default', con)">
  68. <div class="option" v-if="con.default">
  69. <div class="o_"><i class="check_default" :class="[ con.checked ? 'check_active' : '' ]"></i></div>
  70. <div class="o_bd">{{ instrument.name }}-<span class="c">{{ con.name }} </span>
  71. </div>
  72. <span class="o_ft" v-if="result.payMethod == 25">
  73. <del>原价:¥{{ con.marketPrice }}</del> 免费试用
  74. </span>
  75. <span class="o_ft" v-if="result.payMethod == '26'">
  76. <del>原价:¥{{ con.marketPrice }}</del> 押金:¥800
  77. </span>
  78. </div>
  79. <!-- <span class="protocol" @click="protocol" v-if="con.default">《乐器借用协议》</span> -->
  80. <div class="configuration" v-if="con.default">
  81. <div class="config">
  82. <div class="title"><span>配置参数</span></div>
  83. <div class="content">
  84. <p>{{ instrument.configuration }} {{ con.texture}}</p>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <div v-for="con in instrument.config" :key="con.marketPrice" class="oc" @click="instrumentF2('self', con)">
  90. <div class="option" v-if="con.marketPrice <= 0">
  91. <div class="o_"><i class="check_default" :class="[ con.checked ? 'check_active' : '' ]"></i></div>
  92. <div class="o_bd">{{ con.name }}
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="section">
  99. <h2 class="title line_bottom">辅件</h2>
  100. <div class="options" v-for="(instr, index) in instrument.auxiliaries" :key="instr.name" @click="auxiliarie(index)">
  101. <div class="option">
  102. <div class="o_hd"><i class="check_default" :class="[ instr.checked ? 'check_active' : '' ]"></i></div>
  103. <div class="o_bd">{{ instr.name }}</div>
  104. <span class="o_ft">
  105. <del>原价:¥{{ instr.marketPrice }}</del>
  106. {{ instr.referencePrice == 0 ? '免费' : '现价:¥' + instr.referencePrice }}
  107. </span>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="section">
  112. <h2 class="title line_bottom">其它</h2>
  113. <div class="options" v-for="base in baseInfo.other" :key="base.name">
  114. <div class="option">
  115. <div class="o_hd"><i class="check_default check_active"></i></div>
  116. <div class="o_bd">{{ base.name }}</div>
  117. <span class="o_ft">
  118. <del>原价:¥{{ base.marketPrice }}</del>
  119. {{ base.referencePrice == 0 ? '免费' : '现价:¥' + base.referencePrice }}
  120. </span>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="buy">
  125. <div class="price">
  126. <p class="oldprice">
  127. <del class="text">原价</del>
  128. <del>¥{{ orderInfo.marketPrice }}</del>
  129. </p>
  130. <p class="now_price">
  131. <span class="text">仅需支付</span>
  132. <span>¥{{ orderInfo.referencePrice }}</span>
  133. </p>
  134. </div>
  135. <a @click="onCheckSubmit">购买</a>
  136. </div>
  137. <van-popup id="protocolPopup" v-model="popupStatus" position="bottom">
  138. <protocol :proto="protocolData" @popupClose="onPopupClose"></protocol>
  139. </van-popup>
  140. <van-popup v-model="loadingOrderStatus" :close-on-click-overlay='false' class="loadingOrder">
  141. <van-loading size="36px" vertical color="#14928A">{{ loadingOrderText }}</van-loading>
  142. </van-popup>
  143. </div>
  144. </template>
  145. <script>
  146. // import { home } from '../mockjs/payment'
  147. import {instruments, baseInfo } from '../assets/front_instruments_config'
  148. import qs from 'qs'
  149. import Protocol from './protocol'
  150. import OrderPay from './orderPay'
  151. import { Dialog, CountDown } from 'vant'
  152. export default {
  153. name: 'home',
  154. components: { Protocol, Dialog, CountDown, OrderPay },
  155. data() {
  156. return {
  157. loadingOrderStatus: false, // 排队中状态
  158. loadingOrderText: '加载中...', // 排队文案
  159. resultParams: '', // 提交订单参数
  160. clickBtnCount: true, // 点击按钮次数判定
  161. paymentTimers: null, // 定时器
  162. paymentPostCount: 0, // 请求计数
  163. popupStatus: false, // 协议弹窗样式
  164. protocolData: {}, // 协议参数
  165. result: {}, // 返回结果
  166. instrument: {}, // 乐器类型
  167. baseInfo: {}, // 其它类
  168. money: 580,
  169. orderInfo: {
  170. marketPrice: 0, // 原价总金额
  171. referencePrice: 0, // 现价总金额
  172. auxiliarie: null, // 选中辅件编号
  173. instrumentId: null, // 乐器编号 99为自备乐器
  174. }, // 金额列表,金额计算
  175. form: {
  176. apiContent: '',
  177. host: '',
  178. merNo: '',
  179. notifyUrl: '',
  180. sign: '',
  181. signType: '',
  182. timestamp: '',
  183. version: '',
  184. }
  185. }
  186. },
  187. mounted() {
  188. this.baseInfo = baseInfo
  189. /**
  190. * 21 1.0
  191. * 22 2.0
  192. * 25 1.5
  193. * 26 3.0 */
  194. axios.post('/user/getUserRegisterViewDetail', qs.stringify({
  195. stuId: this.$route.query.stuId
  196. })).then((res) => {
  197. let r = res.data.data
  198. this.result = {
  199. userId: r.id_, // 学生编号
  200. payMethod: r.fee_type_,
  201. subName: r.sub_name_,
  202. grade: r.grade_,
  203. voicyPart: r.sub_name_.split('.')[1],
  204. isCopperPipe: r.isCopperPipe,
  205. patriarchName: r.patriarch_name_,
  206. patriarchPhone: r.patriarch_phone_,
  207. stuName: r.name_,
  208. stuClass: r.g_class_,
  209. classAmount: r.fee_amount_, // 课程费用
  210. course_id: r.course_id_, // 课程组
  211. }
  212. // console.log(this.orderInfo)
  213. this.instrument = instruments[this.cnToEn(this.result.voicyPart)]
  214. // if(r.fee_type_ == 25 || r.fee_type_ == 26) {
  215. // this.instrument.config.forEach(el => {
  216. // el.checked = false
  217. // })
  218. // }
  219. let homeConfig = sessionStorage.getItem('homeConfig')
  220. if(homeConfig) {
  221. homeConfig = JSON.parse(homeConfig)
  222. this.instrument.config.forEach(config => {
  223. if(config.index == homeConfig.config) {
  224. config.checked = true
  225. } else {
  226. config.checked = false
  227. }
  228. })
  229. let auxArr = homeConfig.auxiliaries.split(',')
  230. this.instrument.auxiliaries.forEach(aux => {
  231. aux.checked = false
  232. auxArr.forEach(a => {
  233. if(aux.index == parseInt(a)) {
  234. aux.checked = true
  235. }
  236. })
  237. })
  238. sessionStorage.removeItem('homeConfig') // 用完就不要了
  239. }
  240. // 初始化计算金额
  241. this.calcPrice()
  242. })
  243. },
  244. methods: {
  245. auxiliarie(index) {
  246. // 辅件切换状态
  247. this.instrument.auxiliaries[index].checked = !this.instrument.auxiliaries[index].checked
  248. // 重新计算金额
  249. this.calcPrice()
  250. },
  251. instrumentF(index) {
  252. // 乐器切换状态
  253. for(let i = 0; i < this.instrument.config.length; i++) {
  254. this.instrument.config[i].checked = false
  255. }
  256. this.instrument.config[index].checked = true
  257. // 重新计算金额
  258. this.calcPrice()
  259. },
  260. instrumentF2(type, con) {
  261. // 1.5 3.0 才会显示协议
  262. // if((this.result.payMethod == 25 || this.result.payMethod == 26) && !con.checked && con.name != '自备') {
  263. // this.protocol()
  264. // }
  265. // 专门针对25 26 收费类型写的方法
  266. for(let i = 0; i < this.instrument.config.length; i++) {
  267. this.instrument.config[i].checked = false
  268. if(type == 'default' && this.instrument.config[i].default == 1) {
  269. this.instrument.config[i].checked = true
  270. }
  271. if(type == 'self' && this.instrument.config[i].name == '自备') {
  272. this.instrument.config[i].checked = true
  273. }
  274. }
  275. // 重新计算金额
  276. this.calcPrice()
  277. },
  278. onCheckSubmit() {
  279. // 判断 1.5 3.0 弹协议 否则直接购买
  280. let instrumentName
  281. this.instrument.config.forEach(config => {
  282. if(config.checked) {
  283. instrumentName = config.name
  284. }
  285. })
  286. if(((this.result.payMethod == 25 && this.result.isCopperPipe) || this.result.payMethod == 26 || this.result.payMethod == 22) && instrumentName != '自备') {
  287. this.protocol()
  288. } else {
  289. this.buy()
  290. }
  291. },
  292. buy() {
  293. // 判断是否点击过
  294. if(!this.clickBtnCount) {
  295. return false
  296. }
  297. this.clickBtnCount = false
  298. // 确认购买
  299. let params = this.$route.query
  300. let resultParams = {
  301. branchId: params.branchId,
  302. userId: params.stuId,
  303. amount: this.orderInfo.referencePrice,
  304. courseId: this.result.course_id,
  305. classId: params.classId
  306. }
  307. // 判断是否是自备 或者 免费
  308. let iI = this.orderInfo.instrumentIndex
  309. if(iI && iI != 99 && iI != 0) {
  310. resultParams.instrument = iI
  311. }
  312. // 辅件是否有选中的
  313. let auxiliarieIndexArr // 辅件列表索引
  314. if(this.orderInfo.auxiliarie) {
  315. resultParams.adjunct = auxiliarieIndexArr = this.orderInfo.auxiliarie
  316. }
  317. // 判断乐器是否有选中
  318. let instrumentCount = 0
  319. let configIndex // 选中乐器的索引值
  320. this.instrument.config.forEach(config => {
  321. if(config.checked) {
  322. instrumentCount++
  323. configIndex = config.index
  324. }
  325. })
  326. // 保存用户选择信息保存本地
  327. sessionStorage.setItem('homeConfig', JSON.stringify({
  328. config: configIndex,
  329. auxiliaries: auxiliarieIndexArr
  330. }))
  331. if(!instrumentCount) {
  332. Dialog.alert({
  333. title: '提示',
  334. message: '请选择乐器准备方式',
  335. confirmButtonColor: '#269a93'
  336. })
  337. return false
  338. }
  339. this.resultParams = resultParams
  340. axios.post('/yqpay/toPay', qs.stringify(resultParams)).then((res) => {
  341. let result = res.data
  342. this.clickBtnCount = true
  343. if(result.code == 403) {
  344. this.loadingOrderStatus = true
  345. this.loadingOrderText = result.msg
  346. this.paymentMethods()
  347. } else {
  348. if(result.data) {
  349. this.form = result.data
  350. this.onSubmit()
  351. } else {
  352. Dialog.alert({
  353. title: '提示',
  354. message: result.msg,
  355. confirmButtonColor: '#269a93'
  356. })
  357. }
  358. }
  359. })
  360. },
  361. paymentMethods() {
  362. let resultParams = this.resultParams
  363. if(!resultParams) {
  364. return false
  365. }
  366. let that = this
  367. that.paymentTimers = setInterval(() => {
  368. that.paymentPostCount++
  369. if(that.paymentPostCount >= 30) {
  370. clearInterval(that.paymentTimers)
  371. } else {
  372. axios.post('/yqpay/toPay', qs.stringify(resultParams)).then((res) => {
  373. let result = res.data
  374. if(result.code == 403) {
  375. that.loadingOrderStatus = true
  376. that.loadingOrderText = result.msg
  377. } else {
  378. clearInterval(that.paymentTimers)
  379. that.loadingOrderStatus = false
  380. that.loadingOrderText = '加载中...'
  381. if(result.data) {
  382. that.form = result.data
  383. this.onSubmit()
  384. } else {
  385. Dialog.alert({
  386. title: '提示',
  387. message: result.msg,
  388. confirmButtonColor: '#269a93'
  389. })
  390. }
  391. }
  392. })
  393. }
  394. }, 1000 * 10)
  395. },
  396. onSubmit() {
  397. // submit 提交
  398. let f = this.form
  399. document.querySelector('#onSubmit').action = f.host
  400. document.querySelector('#apiContent').value = f.apiContent
  401. document.querySelector('#merNo').value = f.merNo
  402. document.querySelector('#notifyUrl').value = f.notifyUrl
  403. document.querySelector('#sign').value = f.sign
  404. document.querySelector('#signType').value = f.signType
  405. document.querySelector('#timestamp').value = f.timestamp
  406. document.querySelector('#version').value = f.version
  407. document.querySelector('#onSubmit').submit()
  408. },
  409. protocol() {
  410. // 协议
  411. let r = this.result
  412. let protocol = {
  413. patriarchName: r.patriarchName,
  414. patriarchPhone: r.patriarchPhone,
  415. stuName: r.stuName,
  416. grade: r.grade,
  417. subName: r.subName,
  418. voicyPart: r.voicyPart,
  419. userId: r.userId,
  420. classAmount: r.classAmount,
  421. payMethod: r.payMethod, // 缴费类型
  422. isCopperPipe: r.isCopperPipe // 是否为铜管
  423. }
  424. let c = this.instrument.config
  425. for(let i = 0; i < c.length; i++) {
  426. if(c[i].default) {
  427. protocol.name = c[i].name
  428. protocol.referencePrice = c[i].referencePrice
  429. protocol.marketPrice = c[i].marketPrice
  430. }
  431. }
  432. this.protocolData = protocol
  433. this.popupStatus = true
  434. },
  435. cnToEn(type) {
  436. let arr = {
  437. '长笛': 'flute',
  438. '单簧管': 'clarinet',
  439. '萨克斯管': 'saxophone',
  440. '小号': 'trumpet',
  441. '长号': 'trombone',
  442. '圆号': 'horn',
  443. '上低音号': 'upperBass',
  444. '小军鼓': 'snareDrum',
  445. '次中音号': 'tenorHorn',
  446. '打击乐': 'idiophonic'
  447. }
  448. return arr[type]
  449. },
  450. calcPrice() {
  451. let version = this.result.payMethod
  452. // 课程金额,乐器金额,辅件金额,其它金额
  453. let amountSummary = {
  454. // 课程金额
  455. mClass: 0, //原价
  456. rClass: 0, //现价
  457. // 乐器金额
  458. mInstrument: 0, //原价
  459. rInstrument: 0, //现价
  460. // 辅件金额
  461. mAuxiliarie: 0, //原价
  462. rAuxiliarie: 0, //现价
  463. // 其它金额
  464. mOther: 0, //原价
  465. rOther: 0, //现价
  466. } // 金额汇总
  467. let auxiliarie, // 后台需要参数列表
  468. instrumentIndex // 乐器编号
  469. // 课程
  470. if(version == 21 || version == 25) {
  471. amountSummary.mClass = 23520
  472. amountSummary.rClass = 0
  473. }
  474. if(version == 22) {
  475. amountSummary.mClass = 23520
  476. amountSummary.rClass = this.result.classAmount
  477. }
  478. if(version == 26 || version > 26) {
  479. amountSummary.mClass = 20160
  480. amountSummary.rClass = this.result.classAmount
  481. }
  482. // 乐器金额
  483. let config = this.instrument.config
  484. for(let i = 0; i < config.length; i++) {
  485. if(config[i].checked) {
  486. amountSummary.mInstrument = parseInt(config[i].marketPrice)
  487. instrumentIndex = config[i].index
  488. if(config[i].marketPrice == 0) {
  489. amountSummary.rInstrument = 0
  490. } else {
  491. // 1.5 版本 免费领用乐器
  492. // 3.0 版本 押金800
  493. if(version == 25) {
  494. if(!this.result.isCopperPipe) {
  495. amountSummary.rInstrument = parseInt(config[i].referencePrice)
  496. } else {
  497. amountSummary.rInstrument = 0
  498. instrumentIndex = 99
  499. }
  500. } else {
  501. amountSummary.rInstrument = version == 26 ? 800 : parseInt(config[i].referencePrice)
  502. }
  503. }
  504. }
  505. }
  506. // 辅件金额
  507. let auxiliaries = this.instrument.auxiliaries
  508. for(let i = 0; i < auxiliaries.length; i++) {
  509. if(auxiliaries[i].checked) {
  510. amountSummary.mAuxiliarie += parseInt(auxiliaries[i].marketPrice)
  511. amountSummary.rAuxiliarie += parseInt(auxiliaries[i].referencePrice)
  512. // 添加选中的辅件列表
  513. if(auxiliarie) {
  514. auxiliarie += ',' + auxiliaries[i].index
  515. } else {
  516. auxiliarie = auxiliaries[i].index
  517. }
  518. }
  519. }
  520. // 其它金额
  521. let base = this.baseInfo.other
  522. for(let i = 0; i < base.length; i++) {
  523. amountSummary.mOther += base[i].marketPrice
  524. amountSummary.rOther += base[i].referencePrice
  525. }
  526. this.orderInfo = {
  527. marketPrice: parseInt(amountSummary.mClass + amountSummary.mInstrument + amountSummary.mAuxiliarie + amountSummary.mOther), // 原价总金额
  528. referencePrice: parseInt(amountSummary.rClass + amountSummary.rInstrument + amountSummary.rAuxiliarie + amountSummary.rOther), // 现价总金额
  529. auxiliarie: auxiliarie,
  530. instrumentIndex: instrumentIndex
  531. }
  532. },
  533. onPopupClose(status) {
  534. document.querySelector('#protocolPopup').scroll(0, 0)
  535. this.popupStatus = false
  536. this.buy()
  537. }
  538. }
  539. }
  540. </script>
  541. <style lang="less" scoped>
  542. .home {
  543. margin-bottom: .7rem;
  544. }
  545. header {
  546. height: .40rem;
  547. line-height: .40rem;
  548. color: #000;
  549. font-size: .17rem;
  550. background: #fff;
  551. box-shadow: 0px 1px 8px 0px rgba(0,0,0,0.07);
  552. text-align: center;
  553. margin-bottom: .06rem;
  554. }
  555. .section {
  556. padding: .16rem .22rem .1rem;
  557. background: #fff;
  558. margin-bottom: .1rem;
  559. .line_bottom {
  560. border-bottom: 1px solid #ededed;
  561. }
  562. > .title {
  563. font-size: .2rem;
  564. line-height: .28rem;
  565. font-weight: bold;
  566. padding-bottom: .05rem;
  567. &::before {
  568. content: ' ';
  569. width: .04rem;
  570. height: 0.15rem;
  571. background: #14928a;
  572. display: inline-block;
  573. margin-right: .07rem;
  574. border-radius: 8px;
  575. }
  576. }
  577. .indate {
  578. font-size: .14rem;
  579. padding: .06rem 0;
  580. display: flex;
  581. // justify-content: space-between;
  582. justify-content: flex-end;
  583. span {
  584. color: #FA101D;
  585. }
  586. }
  587. .coutInfo {
  588. font-size: .12rem;
  589. color: #F85043;
  590. text-align: left;
  591. border-top: 1px solid #ededed;
  592. padding: .12rem 0 0 .15rem;
  593. margin-top: .1rem;
  594. position: relative;
  595. .trumpet_icon {
  596. width: .14rem;
  597. height: .12rem;
  598. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAAAXNSR0IArs4c6QAAAyZJREFUSA21Vk1IVFEUPufOezNilJXQD2UQRERamWhBaUWOSS3U0SawdgZai2gR0aoQXPSDm3JRCbm0xZBjbkQZS0KDjKywDCIIkoKKEIkm35uZezr32X0jQ+bY2IU359xzzj3fPXe++4PwDy0W8JdKgjYCWOkzzWIM9X5NN42RbqCKoxOHl1nR2FVJ1MRgqGzxhCxg8VDp6TSRTpCKsQL+aitqjwPRKQ3mjCVygFPz2MGKQqvG/zxW56+c7ZsXkIJH1liB8hARdQPButmD59WR8mUCuqy6ynwd686OmpsN++XjLUiYrZ0g5E6SdJmAVri2FMWDnnIz3P8gxex07Rp/owS6jQij3h1lu7G5Oe5UOF1bcc5+MTRFlBiTEH/iflLe+htYKsh0oHwzBcpztd3bHWlHxPtEUMTFHFV2YdceOglStnLiZGV6xEIlwbBF+JQaqpa6Qw246OiUOKOkICnPus4MFYGik7m80Z6MXtCpfKHIGBN6kIm2x66tLBJM7q3amak0DbqEgD84eQNzwiUkE+Wmk1vGjwtmnydTID0eQ5EpLoDZTGvjr4b2absXzGdKlwC73FloZ6aSSTKocjC7kyu3Ku8D2xOAuOk/ANKEAwhivZKqYXt7jFdyAnl7LTrgDMTcv4sOyCddnlOVnKlU6dTYaPKS5hHg5IIO77nnnfTw0h1QPTTgjWv9MrGB97ki5zvh/JmuJzOFgv4cPm9rGO6TUVD6SGezhV2sdF7OEcEB49qRqbRi0MKVLEEBHXxu8i6YabzMpx1NGJ18OIjr2pG5pHqu7r13efY1ncsK+rfxvtzPW2LY29U3Krxd/Xe4c55PiKgO+meJsNeHVIIdPd/dHHFoUToitSnpsDQrHGn1FpbmoMcoEIJPA/0BNvFEJlVgOi0rPPAWwwPfdKy6nphE1c71tL3snrK796EOSpVUX7Xano628cBgqk/157oP1Y1PcTkChDEwzRJfqNfhyrz7EO/2fPaFI8dAiGqe3sc/gc5pI3wtPFCrwVTcvBXOTuY8on7GrqBMvms8wjhodvWl/YhaEKAG//1MvMHXUO5Cn4m/ACXBMJBwQaFpAAAAAElFTkSuQmCC) no-repeat center;
  599. background-size: contain;
  600. position: absolute;
  601. left: 0;
  602. top: .14rem;
  603. }
  604. }
  605. }
  606. .options {
  607. padding-top: .08rem;
  608. .oc {
  609. &:last-child {
  610. border-top: 1px solid #ededed;
  611. margin-top: 0.08rem;
  612. padding-top: 0.09rem;
  613. }
  614. }
  615. .protocol {
  616. padding-left: .2rem;
  617. font-size: .1rem;
  618. line-height: .14rem;
  619. }
  620. .option {
  621. line-height: .26rem;
  622. font-size: .15rem;
  623. display: flex;
  624. align-items: center;
  625. position: relative;
  626. .o_bd {
  627. flex: 1;
  628. .c {
  629. font-size: .12rem;
  630. }
  631. }
  632. .o_ft {
  633. font-size: .14rem;
  634. color: #FA101D;
  635. del {
  636. color: #AAAAAA;
  637. font-size: .12rem;
  638. }
  639. }
  640. .check_default {
  641. position: relative;
  642. margin-right: .08rem;
  643. display: block;
  644. width: .14rem;
  645. height: .14rem;
  646. border-radius: 50%;
  647. border: .01rem solid #D0CFCF;
  648. &::before {
  649. position: absolute;
  650. top: .01rem;
  651. left: .01rem;
  652. content: ' ';
  653. display: inline-block;
  654. width: .12rem;
  655. height: .12rem;
  656. background: #D0CFCF;
  657. border-radius: 50%;
  658. }
  659. &.check_active {
  660. border: .01rem solid #F1111B;
  661. &::before {
  662. background: #F1111B;
  663. border-radius: 50%;
  664. }
  665. }
  666. }
  667. }
  668. }
  669. .configuration {
  670. padding-right: .05rem;
  671. padding-bottom: .09rem;
  672. .title {
  673. background:rgba(246,246,246,1);
  674. height: 1px;
  675. position: relative;
  676. margin: .15rem 0;
  677. span {
  678. position: absolute;
  679. left: .12rem;
  680. top: -.09rem;
  681. display: inline-block;
  682. background-color: #fff;
  683. font-size: .12rem;
  684. padding: 0 .04rem;
  685. }
  686. }
  687. .content {
  688. font-size: .12rem;
  689. padding-left: .16rem;
  690. line-height: .22rem;
  691. color: #ACACAC;
  692. }
  693. .options {
  694. padding-top: 0;
  695. padding-left: .16rem;
  696. .option {
  697. font-size: .14rem;
  698. color: #6F6F6F;
  699. }
  700. }
  701. }
  702. .buy {
  703. position: fixed;
  704. bottom: 0;
  705. left: 0;
  706. right: 0;
  707. height: .6rem;
  708. display: flex;
  709. align-items: center;
  710. padding: 0 .2rem;
  711. border-top: 1px solid #FFE9E9E9;
  712. color: #000000;
  713. font-size: .12rem;
  714. background: #fff;
  715. .price {
  716. flex: 1;
  717. font-size: .16rem;
  718. }
  719. font-size: .16rem;
  720. span {
  721. color: #FA101D;
  722. }
  723. .text {
  724. font-size: .12rem;
  725. width: .6rem;
  726. display: inline-block;
  727. color: #000;
  728. }
  729. del {
  730. color: #B5B5B5;
  731. &.text {
  732. color: #B5B5B5;
  733. }
  734. }
  735. a {
  736. display: inline-block;
  737. font-size: .18rem;
  738. color: #fff;
  739. background: #F1111B;
  740. border-radius: .04rem;
  741. box-shadow:0px 2px 4px 0px rgba(0,0,0,0.19);
  742. padding: .08rem .28rem;
  743. }
  744. }
  745. .iframe {
  746. width: 100%;
  747. height: 100%;
  748. -webkit-overflow-scrolling: touch;
  749. overflow-y: scroll;
  750. border-top: none !important;
  751. min-height: calc(100vh - .41rem);
  752. }
  753. .countDownContent {
  754. line-height: .4rem;
  755. text-align: center;
  756. font-size: .14rem;
  757. border-bottom: .01rem solid #ccc;
  758. .van-count-down {
  759. display: inline;
  760. color: #f00;
  761. }
  762. }
  763. .loadingOrder {
  764. width: 90%;
  765. height: 1.8rem;
  766. display: flex;
  767. align-items: center;
  768. justify-content: center;
  769. .van-loading__text {
  770. color: #444;
  771. }
  772. }
  773. </style>