推广小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
2.4 KiB

4 months ago
4 months ago
4 months ago
  1. <template>
  2. <uv-popup ref="popup"
  3. bgColor="#1B1713"
  4. :safeAreaInsetBottom="false"
  5. :round="30">
  6. <view class="signInContent">
  7. <view class="qrcode">
  8. <uv-qrcode
  9. ref="qrcode"
  10. size="400rpx"
  11. :hide="show"
  12. :value="userInfo.id"></uv-qrcode>
  13. </view>
  14. <!-- <view class="info">
  15. <image src="/static/logo.png" mode="aspectFill"></image>
  16. <view class="right">
  17. <view class="text-title">
  18. 领队
  19. </view>
  20. <view class="">
  21. </view>
  22. </view>
  23. </view> -->
  24. <view class="lingdui-box">
  25. <image class="use-img" :src="adminUserInfo.headImage" mode="aspectFill"></image>
  26. <view class="lingdui-msg">
  27. <view class="lingdui-msg-name">
  28. <view>{{adminUserInfo.nickName}}</view>
  29. <view class="name-tip">主理人</view>
  30. </view>
  31. <view>
  32. <uv-rate :count="count" v-model="adminUserInfo.num" size="23" activeColor="#FFA200"></uv-rate>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </uv-popup>
  38. </template>
  39. <script>
  40. export default {
  41. props : {
  42. adminUserInfo : {
  43. default : {}
  44. }
  45. },
  46. data() {
  47. return {
  48. show : true,
  49. }
  50. },
  51. methods: {
  52. open(){
  53. this.show = true
  54. setTimeout(() => {
  55. this.show = false
  56. }, 500)
  57. this.$refs.popup.open()
  58. },
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .signInContent{
  64. overflow: hidden;
  65. width: 500rpx;
  66. border-radius: 20rpx;
  67. display: flex;
  68. justify-content: center;
  69. align-items: center;
  70. flex-direction: column;
  71. .qrcode{
  72. padding: 40rpx 0;
  73. width: 400rpx;
  74. height: 400rpx;
  75. }
  76. .info{
  77. margin-top: 20rpx;
  78. width: calc(500rpx - 40rpx);
  79. padding: 10rpx;
  80. background-color: #2A2A2A;
  81. border-radius: 60rpx;
  82. image{
  83. width: 70rpx;
  84. height: 70rpx;
  85. border-radius: 50%;
  86. }
  87. }
  88. .lingdui-box {
  89. width: calc(500rpx - 80rpx);
  90. // margin-top: 43rpx;
  91. height: 130rpx;
  92. background: #26201A;
  93. border-radius: 60rpx;
  94. display: flex;
  95. align-items: center;
  96. padding: 0 40rpx;
  97. .use-img {
  98. width: 86rpx;
  99. height: 86rpx;
  100. border-radius: 50%;
  101. }
  102. .lingdui-msg {
  103. flex: 1;
  104. margin-left: 24rpx;
  105. .lingdui-msg-name {
  106. font-weight: 500;
  107. font-size: 29rpx;
  108. color: #E6E6E6;
  109. display: flex;
  110. align-items: center;
  111. margin-bottom: 11rpx;
  112. .name-tip {
  113. padding: 0 20rpx;
  114. height: 27rpx;
  115. background: #3C2D17;
  116. border-radius: 0rpx 12rpx 12rpx 12rpx;
  117. font-weight: 500;
  118. font-size: 19rpx;
  119. color: #FFA200;
  120. line-height: 27rpx;
  121. margin-left: 14rpx;
  122. }
  123. }
  124. }
  125. }
  126. }
  127. </style>