authorizedQRCode.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <template>
  2. <view>
  3. <u-navbar title="授权二维码" title-color="#101010">
  4. </u-navbar>
  5. <view class="main">
  6. <view class="company">
  7. 荆鹏软件园
  8. </view>
  9. <view class="energy-meter">
  10. 荆鹏A栋9楼总电表
  11. </view>
  12. <!-- 个人信息 -->
  13. <view class="infos">
  14. <view class="photo">
  15. <img src="@/assets/img/PEokWS2@3x.png" alt="" />
  16. </view>
  17. <view class="details">
  18. <view class="name">
  19. 王乐康 <span></span>
  20. </view>
  21. <view class="tel">
  22. 19533319000
  23. </view>
  24. </view>
  25. <view class="dial">
  26. <img src="@/assets/img/antOutline-phone 1.svg" alt="" />
  27. </view>
  28. </view>
  29. <!-- 二维码 -->
  30. <view class="qr-code">
  31. <view class="title">
  32. 扫描下方的二维码申请授权
  33. </view>
  34. <view class="win">
  35. <view class="border-corner left-top"></view>
  36. <view class="border-corner right-top"></view>
  37. <view class="border-corner left-bottom"></view>
  38. <view class="border-corner right-bottom"></view>
  39. <view class="code-box">
  40. <img src="@/assets/img/qrCode.png" alt="" />
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. }
  52. },
  53. methods: {
  54. }
  55. }
  56. </script>
  57. <style>
  58. page{
  59. background-color: rgba(94,161,255,1);
  60. }
  61. </style>
  62. <style lang="scss" scoped>
  63. .main{
  64. margin: 48rpx;
  65. padding: 48rpx 0rpx;
  66. background-color: #fff;
  67. box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.39);
  68. border-radius: 20px;
  69. .company{
  70. width: 344rpx;
  71. height: 72rpx;
  72. line-height: 72rpx;
  73. border-radius: 28px;
  74. background-color: rgba(83,150,255,1);
  75. color: rgba(255,255,255,1);
  76. font-size: 36rpx;
  77. text-align: center;
  78. margin: auto;
  79. }
  80. .energy-meter{
  81. color: rgb(16,16,16);
  82. font-size: 32rpx;
  83. margin-top: 20rpx;
  84. text-align: center;
  85. font-weight: bold;
  86. }
  87. .infos{
  88. display: flex;
  89. align-items: c;
  90. margin-top: 48rpx;
  91. padding:48rpx 80rpx;
  92. border: 1px solid rgba(244,244,244,1);
  93. .photo{
  94. img{
  95. width: 80rpx;
  96. height: 80rpx;
  97. border-radius: 50px;
  98. }
  99. }
  100. .details{
  101. margin-left: 16rpx;
  102. .name{
  103. color: rgba(51,51,51,1);
  104. font-size: 32rpx;
  105. display: flex;
  106. align-items: center;
  107. span{
  108. display: inline-block;
  109. width: 84px;
  110. height: 16px;
  111. border-radius: 4px;
  112. border: 1px solid rgba(187,190,194,1);
  113. margin-left: 8rpx;
  114. }
  115. }
  116. .tel{
  117. color: rgba(119,119,119,1);
  118. font-size: 24rpx;
  119. margin-top: 4rpx;
  120. }
  121. }
  122. .dial{
  123. width: 64rpx;
  124. height: 64rpx;
  125. background-color: rgba(22,119,255,1);
  126. border-radius: 50px;
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. margin-left: auto;
  131. img{
  132. width: 40rpx;
  133. height: 40rpx;
  134. }
  135. }
  136. }
  137. }
  138. // 二维码
  139. .qr-code{
  140. padding: 48rpx 0rpx;
  141. text-align: center;
  142. .title{
  143. color: rgb(16,16,16);
  144. font-size: 32rpx;
  145. }
  146. .code-box {
  147. width: 200px;
  148. height: 200px;
  149. border: 1px solid rgb(153, 204, 255);
  150. border-radius: 4px;
  151. img{
  152. width: 400rpx;
  153. height: 400rpx;
  154. }
  155. }
  156. .win {
  157. margin-top: 32rpx;
  158. padding: 30rpx;
  159. position: relative;
  160. display: inline-block;
  161. }
  162. .border-corner{
  163. z-index: 2500;
  164. position: absolute;
  165. width: 70rpx;
  166. height: 70rpx;
  167. background: rgba(0,0,0,0);
  168. border: 4px solid #5396FF;
  169. }
  170. .left-top{
  171. top: 0;
  172. left: 0;
  173. border-right: none;
  174. border-bottom: none;
  175. border-top-left-radius: 4px;
  176. }
  177. .right-top{
  178. top: 0;
  179. right: 0;
  180. border-left: none;
  181. border-bottom: none;
  182. border-top-right-radius: 4px;
  183. }
  184. .left-bottom{
  185. bottom: 0;
  186. left: 0;
  187. border-right: none;
  188. border-top: none;
  189. border-bottom-left-radius: 4px;
  190. }
  191. .right-bottom{
  192. bottom: 0;
  193. right: 0;
  194. border-left: none;
  195. border-top: none;
  196. border-bottom-right-radius: 4px;
  197. }
  198. }
  199. </style>