attach.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <view class="page" :style="{height:height}">
  3. <view :style="{marginTop:'24rpx'}">
  4. <scroll-view scroll-y class="scroll-Y">
  5. <view class="flex-col outView select">
  6. <view class="flex-row justify-between">
  7. <text class="title">规则标题</text>
  8. <u-icon name="checkbox-mark" color="#666" size="24"></u-icon>
  9. </view>
  10. <view class="flex-row justify-between awardView">
  11. <text>注册:</text>
  12. <view class="flex-row award ">
  13. <text class="awardItem">现金:12元</text>
  14. <text class="awardItem">比例:10%</text>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="flex-col outView">
  19. <view class="flex-row justify-between">
  20. <text class="title">规则标题</text>
  21. <u-icon name="checkbox-mark" color="#666" size="24"></u-icon>
  22. </view>
  23. <view class="flex-row justify-between awardView">
  24. <text>注册:</text>
  25. <view class="flex-row award ">
  26. <text class="awardItem">现金:12元</text>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="flex-col outView">
  31. <view class="flex-row justify-between">
  32. <text class="title">规则标题</text>
  33. <u-icon name="checkbox-mark" color="#666" size="24"></u-icon>
  34. </view>
  35. <view class="flex-row justify-between awardView">
  36. <text>优惠券:</text>
  37. <view class="flex-col award ">
  38. <text>数量:100张</text>
  39. <text>有效期:2024-01-01 至 2024-01-30</text>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="flex-col outView select">
  44. <view class="flex-row justify-between">
  45. <text class="title">规则标题</text>
  46. <u-icon name="checkbox-mark" color="#666" size="24"></u-icon>
  47. </view>
  48. <view class="flex-row justify-between awardView">
  49. <text>优惠券:</text>
  50. <view class="flex-col award ">
  51. <text>数量:100张</text>
  52. <text>有效期:2024-01-01 至 2024-01-30</text>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="flex-col outView">
  57. <view class="flex-row justify-between">
  58. <text class="title">规则标题</text>
  59. <u-icon name="checkbox-mark" color="#666" size="24"></u-icon>
  60. </view>
  61. <view class="flex-row justify-between awardView">
  62. <text>优惠券:</text>
  63. <view class="flex-col award ">
  64. <text>数量:100张</text>
  65. <text>有效期:2024-01-01 至 2024-01-30</text>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="flex-col outView select">
  70. <view class="flex-row justify-between">
  71. <text class="title">规则标题</text>
  72. <u-icon name="checkbox-mark" color="#666" size="24"></u-icon>
  73. </view>
  74. <view class="flex-row justify-between awardView">
  75. <text>优惠券:</text>
  76. <view class="flex-col award ">
  77. <text>数量:100张</text>
  78. <text>有效期:2024-01-01 至 2024-01-30</text>
  79. </view>
  80. </view>
  81. </view>
  82. </scroll-view>
  83. </view>
  84. <view class="confirmButton" @click="createQrCode">
  85. <text>生成二维码</text>
  86. </view>
  87. <uni-popup ref="createQrCodePopup" type="center">
  88. <view class="createQrCodePopup">
  89. <view class="flex-row justify-center">
  90. <text class="popupTitle">拓客二维码</text>
  91. </view>
  92. <view class="xoIcon" @click="closePopup">
  93. <u-icon name="close-circle" color="#666" size="24"></u-icon>
  94. </view>
  95. <view class="flex-row justify-center">
  96. <uv-qrcode ref="qrcode" size="540rpx" :value="qrcodeUrl" :options="options"></uv-qrcode>
  97. </view>
  98. </view>
  99. </uni-popup>
  100. </view>
  101. </template>
  102. <script>
  103. export default {
  104. props:{
  105. height: {
  106. type: String,
  107. default () {
  108. return ''
  109. }
  110. },
  111. },
  112. data() {
  113. return {
  114. qrcodeUrl:this.$xcxUrl,
  115. options: {
  116. // 指定二维码前景,一般可在中间放logo
  117. foregroundImagePadding:2,
  118. foregroundImageBorderRadius:5,
  119. foregroundImageSrc: '/static/logo.png'
  120. },
  121. }
  122. },
  123. onLoad() {
  124. },
  125. methods: {
  126. createQrCode(){
  127. this.$refs.createQrCodePopup.open()
  128. },
  129. closePopup(){
  130. this.$refs.createQrCodePopup.close()
  131. },
  132. }
  133. }
  134. </script>
  135. <style scoped lang="scss">
  136. @import './index.rpx.css';
  137. </style>