order-payment.vue 20 KB

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