order-payment.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. <template>
  2. <view class="container cashier" :style="{ paddingTop: CustomBar + 'px' }">
  3. <ws-custom
  4. :systeminfo="systeminfo"
  5. :navbar-data="nvabarData"
  6. :headerBtnPosi="headerBtnPosi"
  7. :isBackType="true"
  8. :path="'/pages/user/cart/cart'"
  9. ></ws-custom>
  10. <template v-if="isPaySwitch">
  11. <view class="container-cash clearfix">
  12. <view class="pay-bring-title">线上支付功能正在维护中,请使用线下转账方式支付订单</view>
  13. <view class="container-wrapper">
  14. <view class="pay-content">
  15. <view class="pay-p"><text>待付金额</text></view>
  16. <view class="pay-money">
  17. <text class="pay-sm">¥</text> <text class="pay-bg">{{ showIndexOfMoney }}</text>
  18. <text class="pay-sm">{{ smallMoney }}</text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="pay-bring-wrapper clearfix">
  23. <view class="pay-bring-content">
  24. <view class="text-v title">转账信息</view>
  25. <view class="text-v">开户行:中信银行(深圳泰然支行)</view>
  26. <view class="text-v">银行卡号:{{ bankNumber }}</view> <view class="text-v">户名:周仁声</view>
  27. <view class="text-v"
  28. >订单标识:{{ payOrderId }}
  29. <text class="clipboard" @click.stop="clipboard(payOrderId)">复制</text></view
  30. >
  31. <view class="text-v title">特别注意</view>
  32. <view class="text-v bg-color"
  33. >请在转账备注中填写上述订单标识,方便财务快速审核,提高发货速度</view
  34. >
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <template v-else>
  40. <view class="container-cash clearfix" v-if="invoiceStatus">
  41. <view class="pay-bring-title"> <text class="iconfont icon-tongzhi"></text> {{ payBringTitle }} </view>
  42. <view class="container-wrapper">
  43. <view class="pay-content">
  44. <view class="pay-p"><text>待付金额</text></view>
  45. <view class="pay-money">
  46. <text class="pay-sm">¥</text> <text class="pay-bg">{{ showIndexOfMoney }}</text>
  47. <text class="pay-sm">{{ smallMoney }}</text>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="pay-bring-wrapper clearfix">
  52. <view class="pay-bring-content">
  53. <view class="text-v title"><text class="line"></text>转账信息</view>
  54. <view class="text-v">开户行:<text class="span">中信银行(深圳泰然支行)</text></view>
  55. <view class="text-v"
  56. >银行卡号:<text class="span">{{ bankNumber }}</text>
  57. </view>
  58. <view class="text-v">户名: <text class="span">周仁声</text></view>
  59. <!-- <view class="text-v">订单标识:{{ payOrderId }} <text class="clipboard" @click.stop="clipboard(payOrderId)">复制</text></view>
  60. <view class="text-v title">特别注意</view>
  61. <view class="text-v bg-color">请在转账备注中填写上述订单标识,方便财务快速审核,提高发货速度</view> -->
  62. </view>
  63. </view>
  64. </view>
  65. <view class="container-cash clearfix" v-else>
  66. <view class="container-wrapper">
  67. <view class="pay-content">
  68. <view class="pay-p"><text>待付金额</text></view>
  69. <view class="pay-money">
  70. <text class="pay-sm">¥</text> <text class="pay-bg">{{ showIndexOfMoney }}</text>
  71. <text class="pay-sm">{{ smallMoney }}</text>
  72. </view>
  73. </view>
  74. <view class="pay-check">
  75. <view class="pay-checked">
  76. <view
  77. class="pay-item"
  78. :class="{ current: tabCurrentIndex === 0 }"
  79. @click="tabClick(0)"
  80. v-if="isUnbindWxPay"
  81. >
  82. <view class="item-l">
  83. <view class="item-icon"><text class="iconfont icon-weixinzhifu"></text></view>
  84. <view class="item-texts"><text>微信支付</text></view>
  85. </view>
  86. </view>
  87. <view class="pay-item" :class="{ current: tabCurrentIndex === 1 }" @click="tabClick(1)">
  88. <view class="item-l">
  89. <view class="item-icon"><text class="iconfont icon-qiyewangyinzhifu"></text></view>
  90. <view class="item-text">
  91. <view class="txt-p">企业网银支付</view>
  92. <view class="txt-t">需要在电脑端汇款</view>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="pay-item" :class="{ current: tabCurrentIndex === 2 }" @click="tabClick(2)">
  97. <view class="item-l">
  98. <view class="item-icon"><text class="iconfont icon-gerenwangyinzhifu"></text></view>
  99. <view class="item-text">
  100. <view class="txt-p">个人网银支付</view>
  101. <view class="txt-t">需要在电脑端汇款</view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="pay-button">
  109. <view class="btn" @click.stop="goOrderCash" :style="{ background: btnColor }">{{
  110. buttonText
  111. }}</view>
  112. </view>
  113. <view class="pay-statustext">
  114. <view class="pay-statustext-inner">
  115. <view class="pay-icon"> <text class="iconfont icon-gantanhao-yuankuang"></text> </view>
  116. <view class="pay-text">
  117. <text>{{ payStatusText }}</text>
  118. </view>
  119. </view>
  120. </view>
  121. <view
  122. class="pay-bring clearfix"
  123. :style="{ paddingBottom: isIphoneX ? '68rpx' : '24rpx' }"
  124. @click.stop="showTips"
  125. v-if="isReceiptStatus"
  126. >
  127. <view class="pay-bring-line"><text class="line"></text></view>
  128. <view class="pay-bring-content" v-if="!isShowTip">
  129. <view class="text bg-color">查看转账信息</view> <view class="text">除了以上两种支付方式</view>
  130. <view class="text">您还可以通过线下转账的方式付款</view>
  131. </view>
  132. <view class="pay-bring-content" v-else>
  133. <view class="text-v title">转账信息</view>
  134. <view class="text-v">开户行:中信银行(深圳泰然支行)</view>
  135. <view class="text-v">银行卡号:{{ bankNumber }}</view> <view class="text-v">户名:周仁声</view>
  136. <view class="text-v"
  137. >订单标识:{{ payOrderId }}
  138. <text class="clipboard" @click.stop="clipboard(payOrderId)">复制</text></view
  139. >
  140. <view class="text-v title">特别注意</view>
  141. <view class="text-v bg-color"
  142. >请在转账备注中填写上述订单标识,方便财务快速审核,提高发货速度</view
  143. >
  144. </view>
  145. </view>
  146. </view>
  147. <view class="alert spec" :class="specClass" v-if="isHttpUrlShowTip">
  148. <!-- 选择支付弹窗说明 -->
  149. <view class="freight-alert" @tap="hideTips">
  150. <view class="content">
  151. <view class="title">
  152. <text>支付链接</text>
  153. <text class="iconfont icon-iconfontguanbi" @click.stop="hideTips"></text>
  154. </view>
  155. <view class="text-content">
  156. <view class="text"
  157. >请复制以下链接,并发送至电脑端,在浏览器访问该链接并选择银行尽快完成支付</view
  158. >
  159. <view class="text-p">{{ payHttpUrl }}</view> <view class="text-b">链接有效期为24小时</view>
  160. </view>
  161. <view class="text-button" @click.stop="clipboard(payHttpUrl)">复制链接</view>
  162. </view>
  163. </view>
  164. </view>
  165. </template>
  166. </view>
  167. </template>
  168. <script>
  169. import thorui from '@/components/clipboard/clipboard.thorui.js'
  170. export default {
  171. data() {
  172. return {
  173. orderID: '',
  174. payableAmount: 0,
  175. ableUserMoney: '',
  176. showIndexOfMoney: '0',
  177. smallMoney: '.00',
  178. emptyWrapperH: '',
  179. bankNumber: '6217 6803 0362 0897',
  180. payOrderId: '',
  181. nvabarData: {
  182. //顶部自定义导航
  183. haveBack: true,
  184. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  185. title: '选择支付方式', // 导航栏 中间的标题
  186. textLeft: this.$store.state.isIphone
  187. },
  188. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  189. systeminfo: this.setSysteminfo(), //获取设备信息
  190. isIphoneX: this.$store.state.isIphoneX,
  191. CustomBar: this.CustomBar, // 顶部导航栏高度
  192. tabCurrentIndex: 0,
  193. isShowTip: false,
  194. isReceiptStatus: false,
  195. buttonText: '使用微信支付',
  196. btnColor: '#09BB07',
  197. receiptStatus: '',
  198. invoiceStatus: false,
  199. isPaySwitch: false,
  200. optionType: '',
  201. onlinePayFlag: '',
  202. payBringTitle: '线上支付功能正在维护中,请使用线下转账方式支付订单',
  203. payStatusText:
  204. '使用微信和网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。若着急发货,可以选择使用线下转账进行付款。',
  205. pageType: '',
  206. payType: '',
  207. isHttpUrlShowTip: false,
  208. isUnbindWxPay: true
  209. }
  210. },
  211. onLoad(option) {
  212. this.initData(option)
  213. },
  214. filters: {
  215. NumFormat(value) {
  216. if (!value) return '0.00'
  217. /*原来用的是Number(value).toFixed(0),这样取整时有问题,例如0.51取整之后为1,感谢Nils指正*/
  218. /*后来改成了 Number(value)|0,但是输入超过十一位就为负数了,具体见评论 */
  219. var intPart = Number(value) - (Number(value) % 1) //获取整数部分(这里是windy93的方法)
  220. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') //将整数部分逢三一断
  221. var floatPart = '.00' //预定义小数部分
  222. var value2Array = value.toString().split('.')
  223. //=2表示数据有小数位
  224. if (value2Array.length == 2) {
  225. floatPart = value2Array[1].toString() //拿到小数部分
  226. if (floatPart.length == 1) {
  227. //补0,实际上用不着
  228. return intPartFormat + '.' + floatPart + '0'
  229. } else {
  230. return intPartFormat + '.' + floatPart
  231. }
  232. } else {
  233. return intPartFormat + floatPart
  234. }
  235. }
  236. },
  237. methods: {
  238. initData(e) {
  239. this.orderId = e.orderId
  240. this.payOrderId = '#' + e.orderId + '#'
  241. this.optionType = e.type
  242. console.log(this.optionType)
  243. this.invoiceStatus = true
  244. this.nvabarData.haveBack = true
  245. this.nvabarData.haveHome = true
  246. this.nvabarData.title = '收银台'
  247. this.initAbleUserMoney(e.money)
  248. },
  249. initAbleUserMoney(money) {
  250. //拆分金额并转千分位格式显示
  251. if (money == 0) {
  252. this.showIndexOfMoney = '0'
  253. this.smallMoney = '.00'
  254. } else {
  255. this.ableUserMoney = this.$api.FormatMoney(money)
  256. let i = this.ableUserMoney.toString().lastIndexOf('.')
  257. if (i == -1) {
  258. this.showIndexOfMoney = this.$api.FormatMoney(this.ableUserMoney)
  259. this.smallMoney = '.00'
  260. } else {
  261. this.smallMoney = this.ableUserMoney.toString().substring(i)
  262. this.showIndexOfMoney = this.$api.FormatMoney(this.ableUserMoney.toString().substring(0, i))
  263. if (this.smallMoney.length == 2) {
  264. //补0,实际上用不着
  265. this.smallMoney = this.smallMoney + '0'
  266. }
  267. }
  268. console.log(this.smallMoney)
  269. }
  270. },
  271. hanldNavigateBack() {
  272. //页面返回
  273. uni.navigateBack({
  274. delta: 1
  275. })
  276. },
  277. hideTips() {
  278. //隐藏弹窗
  279. this.isHttpUrlShowTip = false
  280. },
  281. showTips() {
  282. this.isShowTip = !this.isShowTip
  283. },
  284. clipboard(data) {
  285. thorui.getClipboardData(data, res => {
  286. if (res) {
  287. this.$util.msg('复制成功', 2000, true, 'success')
  288. setTimeout(() => {
  289. this.$api.navigateTo(`/pages/user/order/order-details?state=0&orderId=${this.orderId}`)
  290. }, 2000)
  291. } else {
  292. this.$util.msg('复制失败', 2000, true, 'none')
  293. }
  294. })
  295. },
  296. setHeaderBtnPosi() {
  297. // 获得胶囊按钮位置信息
  298. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  299. return headerBtnPosi
  300. },
  301. setSysteminfo() {
  302. let systeminfo
  303. uni.getSystemInfo({
  304. // 获取设备信息
  305. success: res => {
  306. systeminfo = res
  307. }
  308. })
  309. return systeminfo
  310. }
  311. },
  312. onShow() {}
  313. }
  314. </script>
  315. <style lang="scss">
  316. page {
  317. height: auto !important;
  318. background-color: #ffffff;
  319. }
  320. .container-cash {
  321. width: 100%;
  322. .pay-bring-title {
  323. box-sizing: border-box;
  324. width: 100%;
  325. min-height: 90rpx;
  326. padding: 0 24rpx;
  327. line-height: 90rpx;
  328. text-align: left;
  329. font-size: $font-size-24;
  330. background: #fff3e2;
  331. color: #ff9723;
  332. padding-left: 84rpx;
  333. position: relative;
  334. .icon-tongzhi {
  335. width: 60rpx;
  336. line-height: 90rpx;
  337. text-align: center;
  338. display: block;
  339. position: absolute;
  340. left: 24rpx;
  341. top: 0;
  342. color: #ff9723;
  343. font-size: 36rpx;
  344. }
  345. }
  346. .container-wrapper {
  347. width: 100%;
  348. margin: 0 auto;
  349. .pay-content {
  350. width: 100%;
  351. height: 280rpx;
  352. background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-user-bg@2x.png) no-repeat;
  353. background-size: cover;
  354. float: left;
  355. box-sizing: border-box;
  356. padding: 40rpx 84rpx;
  357. border-bottom: 10px solid #f7f7f7;
  358. .pay-p {
  359. font-size: $font-size-26;
  360. color: #ffffff;
  361. line-height: 66rpx;
  362. }
  363. .pay-money {
  364. color: #ffffff;
  365. line-height: 100rpx;
  366. font-weight: bold;
  367. .pay-sm {
  368. font-size: 42rpx;
  369. font-weight: normal;
  370. }
  371. .pay-bg {
  372. font-size: 64rpx;
  373. }
  374. }
  375. }
  376. .pay-check {
  377. width: 100%;
  378. height: auto;
  379. float: left;
  380. .check-title {
  381. width: 622rpx;
  382. height: 40rpx;
  383. line-height: 40rpx;
  384. padding: 0 20rpx;
  385. margin-top: 24rpx;
  386. .text {
  387. font-size: $font-size-28;
  388. color: $text-color;
  389. text-align: left;
  390. float: left;
  391. }
  392. .icon {
  393. width: 40rpx;
  394. height: 40rpx;
  395. border-radius: 50%;
  396. line-height: 40rpx;
  397. text-align: center;
  398. color: #ffffff;
  399. font-size: $font-size-24;
  400. background: radial-gradient(
  401. circle,
  402. rgba(225, 86, 22, 1) 0%,
  403. rgba(255, 170, 0, 1) 67%,
  404. rgba(249, 185, 156, 1) 100%
  405. );
  406. float: right;
  407. }
  408. }
  409. .pay-checked {
  410. width: 100%;
  411. height: auto;
  412. box-sizing: border-box;
  413. padding: 0 24rpx;
  414. .pay-item {
  415. width: 100%;
  416. height: 120rpx;
  417. border: 1px solid #f5f5f5;
  418. border-radius: 8rpx;
  419. padding: 20rpx;
  420. margin: 24rpx 0;
  421. display: flex;
  422. background-color: #ffffff;
  423. box-sizing: border-box;
  424. &.current {
  425. border-color: #c4761f;
  426. }
  427. .item-l {
  428. flex: 8;
  429. .item-icon {
  430. width: 76rpx;
  431. height: 76rpx;
  432. float: left;
  433. text-align: center;
  434. line-height: 76rpx;
  435. margin-right: 20rpx;
  436. .iconfont {
  437. font-size: 66rpx;
  438. }
  439. .icon-weixinzhifu {
  440. color: #09bb07;
  441. }
  442. .icon-gerenwangyinzhifu {
  443. color: #034582;
  444. }
  445. .icon-qiyewangyinzhifu {
  446. color: #004889;
  447. }
  448. }
  449. .item-texts {
  450. line-height: 76rpx;
  451. font-size: $font-size-26;
  452. color: $text-color;
  453. }
  454. .item-text {
  455. line-height: 38rpx;
  456. font-size: $font-size-26;
  457. .txt-p {
  458. color: $text-color;
  459. }
  460. .txt-t {
  461. color: #999999;
  462. }
  463. }
  464. }
  465. }
  466. }
  467. }
  468. }
  469. .pay-button {
  470. width: 100%;
  471. float: left;
  472. margin-top: 30rpx;
  473. .btn {
  474. width: 662rpx;
  475. height: 88rpx;
  476. border-radius: 44rpx;
  477. font-size: $font-size-28;
  478. line-height: 88rpx;
  479. color: #ffffff;
  480. margin: 0 auto;
  481. text-align: center;
  482. background: $btn-confirm;
  483. }
  484. }
  485. .pay-statustext {
  486. width: 100%;
  487. height: 120rpx;
  488. float: left;
  489. margin-top: 40rpx;
  490. .pay-statustext-inner {
  491. width: 662rpx;
  492. height: 100%;
  493. margin: 0 auto;
  494. .pay-icon {
  495. width: 62rpx;
  496. height: 100%;
  497. float: left;
  498. text-align: center;
  499. .iconfont {
  500. color: #ff2a2a;
  501. font-size: $font-size-36;
  502. line-height: 20rpx;
  503. }
  504. }
  505. .pay-text {
  506. width: 560rpx;
  507. height: 100%;
  508. float: left;
  509. line-height: 40rpx;
  510. font-size: $font-size-26;
  511. color: #ff2a2a;
  512. text-align: justify;
  513. }
  514. }
  515. }
  516. .pay-bring {
  517. width: 100%;
  518. min-height: 190rpx;
  519. padding: 24rpx 0;
  520. background-color: #ffffff;
  521. box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  522. position: fixed;
  523. bottom: 0;
  524. left: 0;
  525. border-radius: 30rpx 30rpx 0 0;
  526. display: flex;
  527. align-items: center;
  528. flex-direction: column;
  529. .pay-bring-line {
  530. display: flex;
  531. align-items: center;
  532. .line {
  533. display: inline-block;
  534. width: 48rpx;
  535. height: 2px;
  536. background-color: #707070;
  537. }
  538. }
  539. .pay-bring-content {
  540. width: 654rpx;
  541. height: auto;
  542. padding: 0 24rpx;
  543. .text {
  544. font-size: $font-size-24;
  545. color: #666;
  546. line-height: 44rpx;
  547. text-align: center;
  548. &.bg-color {
  549. color: #ff2a2a;
  550. line-height: 88rpx;
  551. }
  552. }
  553. .text-v {
  554. font-size: $font-size-28;
  555. color: #999;
  556. line-height: 70rpx;
  557. text-align: left;
  558. &.title {
  559. padding-left: 10rpx;
  560. font-size: $font-size-26;
  561. color: #666666;
  562. }
  563. &.bg-color {
  564. line-height: 44rpx;
  565. color: #ff2a2a;
  566. }
  567. .clipboard {
  568. width: 84rpx;
  569. height: 36rpx;
  570. background: linear-gradient(34deg, rgba(255, 41, 41, 1) 0%, rgba(255, 109, 27, 1) 100%);
  571. text-align: center;
  572. font-size: $font-size-24;
  573. color: #ffffff;
  574. border-radius: 4rpx;
  575. line-height: 36rpx;
  576. display: inline-block;
  577. margin-left: 10rpx;
  578. }
  579. }
  580. }
  581. }
  582. .pay-bring-wrapper {
  583. width: 100%;
  584. padding: 24rpx 0;
  585. background-color: #ffffff;
  586. display: flex;
  587. align-items: center;
  588. flex-direction: column;
  589. .pay-bring-content {
  590. width: 654rpx;
  591. height: auto;
  592. padding: 0 24rpx;
  593. .text {
  594. font-size: $font-size-24;
  595. color: #666;
  596. line-height: 44rpx;
  597. text-align: center;
  598. &.bg-color {
  599. color: #ff2a2a;
  600. line-height: 88rpx;
  601. }
  602. }
  603. .text-v {
  604. font-size: $font-size-28;
  605. color: #999;
  606. line-height: 70rpx;
  607. text-align: left;
  608. .span {
  609. color: #333333;
  610. }
  611. &.title {
  612. font-size: $font-size-28;
  613. color: #666666;
  614. position: relative;
  615. padding-left: 20rpx;
  616. font-weight: bold;
  617. .line {
  618. display: block;
  619. width: 6rpx;
  620. height: 22rpx;
  621. background-color: #ff457b;
  622. border-radius: 3rpx;
  623. position: absolute;
  624. left: 0;
  625. top: 26rpx;
  626. }
  627. }
  628. &.bg-color {
  629. line-height: 44rpx;
  630. color: #ff2a2a;
  631. }
  632. .clipboard {
  633. width: 84rpx;
  634. height: 36rpx;
  635. background: linear-gradient(34deg, rgba(255, 41, 41, 1) 0%, rgba(255, 109, 27, 1) 100%);
  636. text-align: center;
  637. font-size: $font-size-24;
  638. color: #ffffff;
  639. border-radius: 4rpx;
  640. line-height: 36rpx;
  641. display: inline-block;
  642. margin-left: 10rpx;
  643. }
  644. }
  645. }
  646. }
  647. }
  648. .freight-alert {
  649. width: 100%;
  650. height: 100%;
  651. background: rgba(0, 0, 0, 0.5);
  652. position: fixed;
  653. top: 0;
  654. left: 0;
  655. z-index: 8888;
  656. transition: all 0.4s;
  657. &.none {
  658. display: none;
  659. }
  660. &.show {
  661. display: block;
  662. }
  663. .content {
  664. width: 422rpx;
  665. height: 434rpx;
  666. position: absolute;
  667. background: $bg-color;
  668. left: 0;
  669. right: 0;
  670. bottom: 0;
  671. top: 0;
  672. margin: auto;
  673. padding: 20rpx 32rpx;
  674. border-radius: 12rpx;
  675. .title {
  676. width: 100%;
  677. height: 68rpx;
  678. line-height: 68rpx;
  679. font-size: $font-size-28;
  680. color: $text-color;
  681. text-align: center;
  682. position: relative;
  683. .icon-iconfontguanbi {
  684. width: 68rpx;
  685. height: 68rpx;
  686. text-align: center;
  687. line-height: 68rpx;
  688. position: absolute;
  689. right: 0;
  690. top: 0;
  691. font-size: $font-size-36;
  692. color: #999999;
  693. }
  694. }
  695. .text-content {
  696. width: 100%;
  697. height: auto;
  698. .text {
  699. padding: 20rpx 0 0 0;
  700. line-height: 44rpx;
  701. font-size: $font-size-26;
  702. color: #666666;
  703. text-align: justify;
  704. }
  705. .text-p {
  706. width: 100%;
  707. line-height: 44rpx;
  708. font-size: $font-size-26;
  709. color: $color-system;
  710. text-align: left;
  711. text-overflow: ellipsis;
  712. display: -webkit-box;
  713. word-break: break-all;
  714. -webkit-box-orient: vertical;
  715. -webkit-line-clamp: 1;
  716. overflow: hidden;
  717. }
  718. .text-b {
  719. line-height: 44rpx;
  720. font-size: $font-size-24;
  721. color: #999999;
  722. text-align: left;
  723. }
  724. }
  725. .text-button {
  726. width: 100%;
  727. height: 88rpx;
  728. line-height: 88rpx;
  729. background: $btn-confirm;
  730. font-size: $font-size-28;
  731. border-radius: 44rpx;
  732. color: #ffffff;
  733. text-align: center;
  734. margin-top: 20rpx;
  735. }
  736. }
  737. }
  738. </style>