hint-pop.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="pop flexCC" v-if="showPop">
  3. <view class="pop_con">
  4. <image src="../static/icon/hint_icon.png" class="hint_icon"></image>
  5. <view class="title">温馨提醒</view>
  6. <view class="con">
  7. 为防止过多使用“代支付”导致店铺出现异常无法使用,建议优先使用“分享给客户支付”让客户进行微信支付。若出现客户给的是现金或者不会使用微信支付的情况,你可代为支付。
  8. </view>
  9. <view class="btn_box">
  10. <view @click.stop="pay" class="flexC">继续使用代支付</view>
  11. <view @click.stop="share" class="flexC">分享给客户支付</view>
  12. </view>
  13. </view>
  14. <text class="iconfont iconguanbi" @click="close"></text>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name: "hint-pop",
  20. props: {
  21. showPop: {
  22. type: Boolean,
  23. default: false
  24. },
  25. },
  26. data() {
  27. return {
  28. };
  29. },
  30. methods: {
  31. close() {
  32. this.$emit('close')
  33. },
  34. pay() {
  35. this.$emit('pay');
  36. },
  37. share() {
  38. this.$emit('share');
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss">
  44. .pop {
  45. width: 100%;
  46. height: 100vh;
  47. position: fixed;
  48. top: 0;
  49. left: 0;
  50. background-color: rgba(0, 0, 0, 0.7);
  51. z-index: 9999;
  52. .hint_icon {
  53. width: 183rpx;
  54. height: 135rpx;
  55. position: relative;
  56. margin-top: -85rpx;
  57. }
  58. .pop_con {
  59. width: 664rpx;
  60. height: 600rpx;
  61. background: #fff;
  62. border-radius: 26rpx;
  63. display: flex;
  64. flex-direction: column;
  65. align-items: center;
  66. padding: 0 30rpx;
  67. box-sizing: border-box;
  68. .title {
  69. font-size: 36rpx;
  70. font-weight: bold;
  71. margin-top: 22rpx;
  72. }
  73. .con {
  74. color: $base-color;
  75. margin: 30rpx 0 20rpx;
  76. font-size: 30rpx;
  77. }
  78. .btn_box {
  79. view {
  80. width: 540rpx;
  81. height: 88rpx;
  82. background: #FFFFFF;
  83. border: 2rpx solid #FB231F;
  84. border-radius: 44rpx;
  85. font-size: 32rpx;
  86. color: $base-color;
  87. }
  88. view:last-child {
  89. background: $base-line-bg;
  90. color: #fff;
  91. margin-top: 20rpx;
  92. }
  93. }
  94. }
  95. .iconfont {
  96. color: #fff;
  97. font-size: 60rpx;
  98. margin-top: 30rpx;
  99. }
  100. }
  101. </style>