order-payment.vue 20 KB

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