推广小程序前端代码
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.

139 lines
2.7 KiB

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