index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view class="content">
  3. <view class="success-bg-box" :style="{backgroundImage: 'url('+imageURL+')'}">
  4. <view class="title-font">科尔卡诺展会入场登记</view>
  5. <view class="number-box">编号:1523</view>
  6. <view v-show="pageTypes==='custom'">
  7. <view class="show-tips-box">请将此编码,展示给工作人员,</view>
  8. <view class="show-tips-box">方可入内,截图无效。</view>
  9. </view>
  10. <view v-show="pageTypes==='dealer'">
  11. <view class="show-tips-box">尊敬的超级VIP客户,请将此编码,</view>
  12. <view class="show-tips-box">展示给工作人员,方可入内,截图无效。</view>
  13. </view>
  14. </view>
  15. <view class="phone-box">
  16. <view class="phone-value-box">您的专属顾问:{{salePhone}} (张经理)</view>
  17. <view class="phone-tips">请保存此电话,展馆内有问题均可咨询!</view>
  18. <button type="primary" @tap="callPhone">拨打</button>
  19. </view>
  20. <view class="footer-box">
  21. <view>登记时间:{{registerDate}}</view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. components: {
  28. },
  29. data() {
  30. return {
  31. imageURL:'/static/dealer-success.png',
  32. pageTypes:'custom',
  33. salePhone:'13652320120',
  34. registerDate:'2020-07-06 12:12'
  35. }
  36. },
  37. onLoad(option) {
  38. this.pageTypes = option.types;
  39. },
  40. onShow() {
  41. },
  42. methods: {
  43. callPhone(){
  44. let that = this;
  45. uni.makePhoneCall({
  46. phoneNumber: that.salePhone
  47. })
  48. }
  49. }
  50. }
  51. </script>
  52. <style>
  53. page{
  54. background: #f7f7f7!important;
  55. }
  56. .content {
  57. width: 100%;
  58. /* height: 100%; */
  59. display: flex;
  60. flex-direction: column;
  61. align-items: center;
  62. /* justify-content: center; */
  63. }
  64. .success-bg-box {
  65. width: 100%;
  66. height: 500rpx;
  67. background-size: 100%;
  68. background-repeat: no-repeat;
  69. margin-top: 3%;
  70. display: flex;
  71. flex-direction: column;
  72. align-items: center;
  73. font-size: 28rpx;
  74. color: #fff;
  75. }
  76. .title-font {
  77. font-size: 32rpx;
  78. margin-top: 10%;
  79. margin-bottom:8%;
  80. opacity: .9;
  81. }
  82. .number-box {
  83. font-size: 66rpx;
  84. color: #FFFFFF;
  85. font-weight: bold;
  86. margin-bottom: 10%;
  87. }
  88. .show-tips-box {
  89. opacity: 0.8;
  90. font-size: 28rpx;
  91. color: #FFFFFF;
  92. letter-spacing: 0.3rpx;
  93. text-align: center;
  94. }
  95. .phone-box {
  96. width: 89%;
  97. height: 360rpx;
  98. background: #fff;
  99. display: flex;
  100. flex-direction: column;
  101. align-items: center;
  102. z-index: 99;
  103. margin-top: -10px;
  104. }
  105. .phone-value-box {
  106. font-size: 28rpx;
  107. color: #4E4E4E;
  108. margin-top: 10%;
  109. margin-bottom: 3%;
  110. }
  111. .phone-tips {
  112. font-size: 24rpx;
  113. color: #4E4E4E;
  114. }
  115. .phone-box button {
  116. width: 25%;
  117. height: 60rpx;
  118. line-height: 60rpx;
  119. font-size: 24rpx;
  120. border-radius: 50rpx;
  121. background-image: linear-gradient(-135deg, #43DC7A 0%, #0EBD66 100%)!important;
  122. margin-top: 10%;
  123. }
  124. .footer-box {
  125. width: 100%;
  126. position: fixed;
  127. bottom: 3%;
  128. height: 50rpx;
  129. line-height: 50rpx;
  130. font-size: 24rpx;
  131. color: #B7B7B7;
  132. letter-spacing: 0.26rpx;
  133. text-align: center;
  134. }
  135. </style>