cm-pay-popup.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template name="cm-product-modal">
  2. <!-- 设备详情可见度弹窗提醒 -->
  3. <view>
  4. <!--大额转账弹窗 -->
  5. <tui-modal :show="showModal" :padding="'30rpx 30rpx'" @cancel="hideMobel" :custom="true" fadeIn>
  6. <view class="tui-modal-custom">
  7. <view class="tui-prompt-title">
  8. 银联转账信息
  9. <text class="iconfont icon-iconfontguanbi" @click.stop="hideMobel"></text>
  10. </view>
  11. <view class="tui-prompt-text">
  12. <view class="tui-prompt-tips">注:请复制以下银联转账信息发送给机构,让机构进行银联转账。(付款成功后系统稍后会更新订单状态)</view>
  13. <view class="tui-prompt-item">
  14. <text class="text">订单编号:</text>
  15. {{ bigPayInfo.orderNo }}({{ bigPayInfo.shopOrderId }})
  16. </view>
  17. <view class="tui-prompt-item">
  18. <text class="text">收款账户名:</text>
  19. {{ bigPayInfo.receiverName }}
  20. </view>
  21. <view class="tui-prompt-item">
  22. <text class="text">收款账号:</text>
  23. {{ bigPayInfo.bankNumber }}
  24. </view>
  25. <view class="tui-prompt-item">
  26. <text class="text">收款机构:</text>
  27. 广州合利宝支付科技有限公司({{ bigPayInfo.bankName }})
  28. </view>
  29. </view>
  30. <view class="tui-prompt-flex">
  31. <view class="btn btn-confirm" @click="copyClipboard">
  32. <text class="iconfont icon-fuzhi_o"></text>
  33. 复制账号信息
  34. </view>
  35. </view>
  36. </view>
  37. </tui-modal>
  38. </view>
  39. </template>
  40. <script>
  41. import { mapState } from 'vuex'
  42. import thorui from '@/components/clipboard/clipboard.thorui.js'
  43. export default {
  44. name: 'cm-pay-modal',
  45. props: {
  46. showModal: {
  47. type: Boolean,
  48. default: false
  49. },
  50. payInfo: {
  51. type: Object
  52. }
  53. },
  54. data() {
  55. return {
  56. bigPayInfo: {},
  57. }
  58. },
  59. computed: {
  60. ...mapState(['hasLogin'])
  61. },
  62. created() {
  63. this.initModal()
  64. },
  65. methods: {
  66. initModal() {
  67. this.bigPayInfo = this.payInfo
  68. },
  69. copyClipboard() {
  70. //复制账号
  71. const data =
  72. `订单编号:${ this.bigPayInfo.orderNo }(${ this.bigPayInfo.shopOrderId })\n收款账户名:${this.bigPayInfo.receiverName}\n收款账号:${this.bigPayInfo.bankNumber}\n收款机构:广州合利宝支付科技有限公司(${ this.bigPayInfo.bankName })`
  73. thorui.getClipboardData(data, res => {
  74. if (res) {
  75. this.$util.msg('已复制', 2000)
  76. } else {
  77. this.$util.msg('复制失败', 2000)
  78. }
  79. })
  80. },
  81. hideMobel() {
  82. this.$parent.isBigPayModal = false
  83. }
  84. }
  85. }
  86. </script>
  87. <style lang="scss">
  88. .tui-prompt-title {
  89. width: 100%;
  90. height: 44rpx;
  91. line-height: 44rpx;
  92. padding: 10rpx 0;
  93. text-align: center;
  94. color: #333333;
  95. font-weight: 600;
  96. position: relative;
  97. .icon-iconfontguanbi {
  98. width: 68rpx;
  99. height: 68rpx;
  100. text-align: center;
  101. line-height: 68rpx;
  102. position: absolute;
  103. right: 0;
  104. top: 0;
  105. font-size: $font-size-36;
  106. color: #999999;
  107. }
  108. }
  109. .tui-prompt-text {
  110. padding-top: 20rpx;
  111. .tui-prompt-tips {
  112. width: 100%;
  113. line-height: 36rpx;
  114. font-size: $font-size-26;
  115. color: #ff5b00;
  116. text-align: justify;
  117. margin-bottom: 30rpx;
  118. }
  119. .tui-prompt-item {
  120. width: 100%;
  121. line-height: 60rpx;
  122. color: #333333;
  123. font-size: $font-size-28;
  124. position: relative;
  125. .text {
  126. font-weight: bold;
  127. }
  128. }
  129. }
  130. .tui-prompt-flex {
  131. width: 100%;
  132. height: auto;
  133. margin: 40rpx 0 20rpx 0;
  134. box-sizing: border-box;
  135. display: flex;
  136. justify-content: center;
  137. align-items: center;
  138. .btn {
  139. padding: 0 44rpx;
  140. line-height: 66rpx;
  141. font-size: $font-size-26;
  142. text-align: center;
  143. color: #ffffff;
  144. border-radius: 40rpx;
  145. box-sizing: border-box;
  146. margin-left: 12rpx;
  147. &.btn-cancel {
  148. background: #ffffff;
  149. color: #333333;
  150. border: 1px solid #979797;
  151. }
  152. &.btn-confirm {
  153. background: #ffffff;
  154. color: #333333;
  155. border: 1px solid #979797;
  156. }
  157. }
  158. }
  159. </style>