order-payment.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  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. console.log(e)
  198. this.orderId = e.orderId;
  199. this.payOrderId ='#'+e.orderId+'#';
  200. this.optionType = e.type;
  201. switch(e.type){
  202. case 'confirm':
  203. this.nvabarData.haveBack = false
  204. this.nvabarData.haveHome = true
  205. this.nvabarData.title = '支付'
  206. this.PayOrderOnLineSwitch()
  207. this.PayOrderCheckoutCounter(this.orderId)
  208. break;
  209. case 'payfirm':
  210. this.nvabarData.haveBack = true
  211. this.nvabarData.haveHome = false
  212. this.nvabarData.title = '选择支付方式'
  213. this.PayOrderOnLineSwitch()
  214. this.PayOrderCheckoutCounter(this.orderId)
  215. break;
  216. case 'onlinePay':
  217. this.invoiceStatus = true
  218. this.isPaySwitch = false
  219. this.nvabarData.haveBack = true
  220. this.nvabarData.haveHome = false
  221. this.nvabarData.title = '付款提示'
  222. this.payableAmount = e.Amount
  223. this.payBringTitle = '您已通过线下转账的方式支付了订单部分款项,剩余款项依然需要使用线下转账方式,给您带来的不便敬请谅解'
  224. break;
  225. }
  226. },
  227. PayOrderOnLineSwitch(){
  228. this.PayService.PayOrderOnLineSwitch().then(response=>{
  229. if(response.data === 0 ){
  230. this.isPaySwitch = true
  231. }else{
  232. this.isPaySwitch = false
  233. }
  234. }).catch(error =>{
  235. this.$util.msg(error.msg,2000)
  236. })
  237. },
  238. PayOrderCheckoutCounter(orderId){
  239. this.PayService.PayOrderCheckoutCounter({orderId:orderId}).then(response =>{
  240. let data = response.data.order
  241. this.payableAmount = data.payableAmount - data.receiptAmount //待付金额
  242. this.receiptStatus = data.receiptStatus
  243. this.onlinePayFlag = data.onlinePayFlag
  244. //判断线上线下显示
  245. if(this.optionType == 'onlinePay'){
  246. this.invoiceStatus = true
  247. }else{
  248. this.invoiceStatus = data.invoiceStatus
  249. }
  250. if(data.receiptAmount>0){
  251. this.payStatusText = '使用微信和企业网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。'
  252. this.isReceiptStatus = false
  253. }else{
  254. this.payStatusText = '使用微信和企业网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。若着急发货,可以选择使用线下转账进行付款。'
  255. this.isReceiptStatus = true
  256. }
  257. }).catch(error =>{
  258. this.$util.msg(error.msg,2000)
  259. })
  260. },
  261. goOrderCash(){
  262. if(this.invoiceStatus){
  263. this.$util.modal('','本次交易暂不支持线上支付开票,请使用线下转账的方式付款','知道了','',false,() =>{})
  264. this.payStatusText = '使用微信和企业网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。若着急发货,可以选择使用线下转账进行付款。'
  265. this.isReceiptStatus = true
  266. }else{
  267. // 友盟埋点收集选择支付方式
  268. if(process.env.NODE_ENV != 'development'){
  269. this.$uma.trackEvent('Um_Event_ChooseWechatPay', {
  270. Um_Key_PageName: '线上支付',
  271. Um_Key_SourcePage: '选择支付',
  272. Um_Key_PayName:`${this.buttonText}`,
  273. Um_Key_PayOrderID:`${this.orderId}`
  274. })
  275. }
  276. switch(this.tabCurrentIndex){
  277. case 0:
  278. this.$api.navigateTo(`/pages/user/order/order-pay?type=0&orderId=${this.orderId}`)
  279. break;
  280. case 1:
  281. this.$api.navigateTo(`/pages/user/order/order-pay?type=1&orderId=${this.orderId}`)
  282. break;
  283. case 2:
  284. this.$api.navigateTo(`/pages/user/order/order-pay?type=2&orderId=${this.orderId}`)
  285. break;
  286. }
  287. }
  288. },
  289. tabClick(index) {//tab切换
  290. this.tabCurrentIndex = index;
  291. switch(index){
  292. case 0:
  293. this.btnColor="#09BB07"
  294. this.buttonText='使用微信支付';
  295. break;
  296. case 1:
  297. this.btnColor="#034582"
  298. this.buttonText='使用企业网银支付';
  299. break;
  300. case 2:
  301. this.btnColor="#034582"
  302. this.buttonText='使用个人网银支付';
  303. break;
  304. }
  305. },
  306. hanldNavigateBack(){//页面返回
  307. uni.navigateBack({
  308. delta: 1
  309. });
  310. },
  311. showTips(){
  312. this.isShowTip=!this.isShowTip
  313. },
  314. clipboard(data) {
  315. thorui.getClipboardData(data, (res) => {
  316. if (res) {
  317. this.$util.msg("复制成功",2000,true,'success');
  318. } else {
  319. this.$util.msg("复制失败",2000,true,'none');
  320. }
  321. })
  322. },
  323. },
  324. onShow() {
  325. }
  326. }
  327. </script>
  328. <style lang="scss">
  329. page{
  330. height: auto !important;
  331. background-color: #FFFFFF;
  332. }
  333. .container-cash{
  334. width: 100%;
  335. padding-bottom: 250rpx;
  336. .pay-bring-title{
  337. box-sizing: border-box;
  338. width: 100%;
  339. min-height: 96rpx;
  340. padding: 20rpx 24rpx;
  341. line-height: 48rpx;
  342. text-align: left;
  343. font-size: $font-size-24;
  344. background:rgba(255,234,221,1);
  345. color: $color-system;
  346. }
  347. .container-wrapper{
  348. width:662rpx;
  349. margin: 0 auto;
  350. .pay-title{
  351. font-size: $font-size-32;
  352. line-height: 44rpx;
  353. text-align: center;
  354. color: #2A86FF;
  355. margin: 40rpx 0 0 0;
  356. width: 100%;
  357. float: left;
  358. }
  359. .pay-content{
  360. width: 574rpx;
  361. height: 136rpx;
  362. padding: 52rpx 44rpx;
  363. background: url(https://img.caimei365.com/group1/M00/03/BD/Cmis218ekFyAHoAzAALhR3oBpDI049.png) no-repeat;
  364. background-size: cover;
  365. float: left;
  366. margin-top: 40rpx;
  367. .pay-p{
  368. font-size: $font-size-26;
  369. color: #FFFFFF;
  370. line-height: 36rpx;
  371. }
  372. .pay-money{
  373. color: #FFFFFF;
  374. line-height: 84rpx;
  375. font-weight: bold;
  376. .pay-sm{
  377. font-size: $font-size-26;
  378. }
  379. .pay-bg{
  380. font-size: 50rpx;
  381. }
  382. }
  383. }
  384. .pay-check{
  385. width: 100%;
  386. height: auto;
  387. float: left;
  388. .check-title{
  389. width: 622rpx;
  390. height: 40rpx;
  391. line-height: 40rpx;
  392. padding: 0 20rpx;
  393. margin-top: 24rpx;
  394. .text{
  395. font-size: $font-size-28;
  396. color: $text-color;
  397. text-align: left;
  398. float: left;
  399. }
  400. .icon{
  401. width: 40rpx;
  402. height: 40rpx;
  403. border-radius: 50%;
  404. line-height: 40rpx;
  405. text-align: center;
  406. color: #FFFFFF;
  407. font-size: $font-size-24;
  408. background: radial-gradient(circle,rgba(225,86,22,1) 0%,rgba(255,170,0,1) 67%,rgba(249,185,156,1) 100%);
  409. float: right;
  410. }
  411. }
  412. .pay-checked{
  413. width: 100%;
  414. height: auto;
  415. .pay-item{
  416. width: 618rpx;
  417. height: 96rpx;
  418. border: 2px solid #F5F5F5;
  419. border-radius: 30rpx;
  420. padding: 20rpx;
  421. margin: 24rpx 0;
  422. display: flex;
  423. background-color: #FFFFFF;
  424. &.current{
  425. border-color:$color-system;
  426. .item-r{
  427. .icon-duigou{
  428. color: $color-system;
  429. }
  430. }
  431. }
  432. .item-l{
  433. flex: 8;
  434. .item-icon{
  435. width: 96rpx;
  436. height: 96rpx;
  437. float: left;
  438. text-align: center;
  439. line-height: 96rpx;
  440. margin-right: 20rpx;
  441. .iconfont{
  442. font-size:88rpx;
  443. }
  444. .icon-weixinzhifu{
  445. color: #09BB07;
  446. }
  447. .icon-gerenwangyinzhifu{
  448. color: #034582;
  449. }
  450. .icon-qiyewangyinzhifu{
  451. color: #004889;
  452. }
  453. }
  454. .item-texts{
  455. line-height: 96rpx;
  456. font-size:$font-size-26;
  457. color: $text-color;
  458. }
  459. .item-text{
  460. line-height: 48rpx;
  461. font-size:$font-size-26;
  462. .txt-p{
  463. color: $text-color;
  464. }
  465. .txt-t{
  466. color: #999999;
  467. }
  468. }
  469. }
  470. .item-r{
  471. flex: 2;
  472. text-align: center;
  473. line-height: 96rpx;
  474. .icon-duigou{
  475. font-size: 60rpx;
  476. color: #FFFFFF;
  477. }
  478. }
  479. }
  480. }
  481. }
  482. }
  483. .pay-button{
  484. width: 100%;
  485. float: left;
  486. margin-top:30rpx;
  487. .btn{
  488. width: 662rpx;
  489. height: 88rpx;
  490. border-radius: 44rpx;
  491. font-size: $font-size-28;
  492. line-height: 88rpx;
  493. color: #FFFFFF;
  494. margin: 0 auto;
  495. text-align: center;
  496. background:$btn-confirm;
  497. }
  498. }
  499. .pay-statustext{
  500. width: 100%;
  501. height: 120rpx;
  502. float: left;
  503. margin-top:40rpx;
  504. .pay-statustext-inner{
  505. width: 662rpx;
  506. height: 100%;
  507. margin: 0 auto;
  508. .pay-icon{
  509. width: 62rpx;
  510. height: 100%;
  511. float: left;
  512. text-align: center;
  513. .iconfont{
  514. color: #FF2A2A;
  515. font-size:$font-size-36;
  516. line-height: 20rpx;
  517. }
  518. }
  519. .pay-text{
  520. width: 560rpx;
  521. height: 100%;
  522. float: left;
  523. line-height: 40rpx;
  524. font-size: $font-size-26;
  525. color: #FF2A2A;
  526. text-align: justify;
  527. }
  528. }
  529. }
  530. .pay-bring{
  531. width: 100%;
  532. min-height: 190rpx;
  533. padding: 24rpx 0;
  534. background-color: #FFFFFF;
  535. box-shadow:0px 3px 6px rgba(0,0,0,0.16);
  536. position: fixed;
  537. bottom: 0;
  538. left: 0;
  539. border-radius: 30rpx 30rpx 0 0;
  540. display: flex;
  541. align-items: center;
  542. flex-direction: column;
  543. .pay-bring-line{
  544. display: flex;
  545. align-items: center;
  546. .line{
  547. display: inline-block;
  548. width: 48rpx;
  549. height: 2px;
  550. background-color: #707070;
  551. }
  552. }
  553. .pay-bring-content{
  554. width: 654rpx;
  555. height: auto;
  556. padding: 0 24rpx;
  557. .text{
  558. font-size: $font-size-24;
  559. color: #666;
  560. line-height: 44rpx;
  561. text-align: center;
  562. &.bg-color{
  563. color: $color-system;
  564. line-height: 88rpx;
  565. }
  566. }
  567. .text-v{
  568. font-size: $font-size-28;
  569. color: #999;
  570. line-height: 70rpx;
  571. text-align: left;
  572. &.title{
  573. font-size: $font-size-26;
  574. color: #666666;
  575. }
  576. &.bg-color{
  577. line-height: 44rpx;
  578. color: $color-system;
  579. }
  580. .clipboard{
  581. width: 84rpx;
  582. height: 36rpx;
  583. background:linear-gradient(34deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  584. text-align: center;
  585. font-size: $font-size-24;
  586. color: #FFFFFF;
  587. border-radius: 4rpx;
  588. line-height: 36rpx;
  589. display: inline-block;
  590. margin-left: 10rpx;
  591. }
  592. }
  593. }
  594. }
  595. .pay-bring-wrapper{
  596. width: 100%;
  597. padding: 24rpx 0;
  598. background-color: #FFFFFF;
  599. display: flex;
  600. align-items: center;
  601. flex-direction: column;
  602. .pay-bring-content{
  603. width: 654rpx;
  604. height: auto;
  605. padding: 0 24rpx;
  606. .text{
  607. font-size: $font-size-24;
  608. color: #666;
  609. line-height: 44rpx;
  610. text-align: center;
  611. &.bg-color{
  612. color: $color-system;
  613. line-height: 88rpx;
  614. }
  615. }
  616. .text-v{
  617. font-size: $font-size-28;
  618. color: #999;
  619. line-height: 70rpx;
  620. text-align: left;
  621. &.title{
  622. font-size: $font-size-28;
  623. color: #666666;
  624. }
  625. &.bg-color{
  626. line-height: 44rpx;
  627. color: $color-system;
  628. }
  629. .clipboard{
  630. width: 84rpx;
  631. height: 36rpx;
  632. background:linear-gradient(34deg,rgba(255,41,41,1) 0%,rgba(255,109,27,1) 100%);
  633. text-align: center;
  634. font-size: $font-size-24;
  635. color: #FFFFFF;
  636. border-radius: 4rpx;
  637. line-height: 36rpx;
  638. display: inline-block;
  639. margin-left: 10rpx;
  640. }
  641. }
  642. }
  643. }
  644. }
  645. .freight-alert{
  646. width: 100%;
  647. height: 100%;
  648. background: rgba(0,0,0,.5);
  649. position: fixed;
  650. top: 0;
  651. left: 0;
  652. z-index: 8888;
  653. transition: all 0.4s;
  654. &.none{
  655. display: none;
  656. }
  657. &.show{
  658. display: block;
  659. }
  660. .content{
  661. width: 422rpx;
  662. height:434rpx;
  663. position: absolute;
  664. background: $bg-color;
  665. left: 0;
  666. right: 0;
  667. bottom: 0;
  668. top: 0;
  669. margin: auto;
  670. padding: 20rpx 32rpx;
  671. border-radius: 12rpx;
  672. .title{
  673. width: 100%;
  674. height: 68rpx;
  675. line-height: 68rpx;
  676. font-size: $font-size-28;
  677. color: $text-color;
  678. text-align: center;
  679. position: relative;
  680. .icon-iconfontguanbi{
  681. width: 68rpx;
  682. height: 68rpx;
  683. text-align: center;
  684. line-height: 68rpx;
  685. position: absolute;
  686. right: 0;
  687. top: 0;
  688. font-size: $font-size-36;
  689. color: #999999;
  690. }
  691. }
  692. .text-content{
  693. width: 100%;
  694. height: auto;
  695. .text{
  696. padding: 20rpx 0;
  697. line-height: 44rpx;
  698. font-size: $font-size-26;
  699. color:#666666;
  700. text-align: justify;
  701. }
  702. .text-p{
  703. line-height: 44rpx;
  704. font-size: $font-size-26;
  705. color:$color-system;
  706. text-align: left;
  707. }
  708. }
  709. }
  710. }
  711. </style>