球星卡微信小程序
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.

126 lines
2.8 KiB

4 years ago
  1. <template>
  2. <view class="flex-col group_4">
  3. <view class="flex-col">
  4. <image
  5. src="https://codefun-proj-user-res-1256085488.cos.ap-guangzhou.myqcloud.com/62677e395a7e3f03107ffc5f/62677e4a35a7e10011e93a80/16509497759710376128.png"
  6. class="image_6"
  7. />
  8. <view class="flex-col section_2">
  9. <view class="flex-col items-center section_3">
  10. <text class="text_2">783489248292</text>
  11. <text class="text_3">有效期2022-05-17至2022-05-31</text>
  12. </view>
  13. <text class="text_4">重新生成后没使用的优惠码将失效</text>
  14. <view class="flex-col group_6">
  15. <view class="flex-col items-center button" @click="copy()"><text class="text_5">复制分销优惠码</text></view>
  16. <view class="flex-col items-center button_1"><text class="text_6">重新生成优惠码</text></view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="section_4"><!--*--></view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. onLoad() {
  26. },
  27. methods: {
  28. copy(){
  29. let userInfo = uni.getStorageSync('userInfo');
  30. console.log(11111);
  31. uni.setClipboardData({
  32. data:userInfo.agent_code,
  33. showToast:true,
  34. success() {
  35. uni.showToast({
  36. title:"已复制优惠码"
  37. })
  38. }
  39. })
  40. },
  41. }
  42. }
  43. </script>
  44. <style>
  45. .group_4 {
  46. padding-bottom: 0.5rem;
  47. flex: 1 1 auto;
  48. overflow-y: auto;
  49. }
  50. .section_4 {
  51. margin-top: 22.63rem;
  52. align-self: center;
  53. background-color: #000000;
  54. border-radius: 0.13rem;
  55. width: 6.13rem;
  56. height: 0.25rem;
  57. }
  58. .image_6 {
  59. width: 100vw;
  60. height: 0.8vw;
  61. }
  62. .section_2 {
  63. padding: 1.25rem 1rem;
  64. background-color: #ffffff;
  65. }
  66. .section_3 {
  67. padding: 1.25rem 0;
  68. background-color: #f6f6f6;
  69. border-radius: 0.31rem;
  70. }
  71. .text_4 {
  72. margin-top: 0.94rem;
  73. align-self: center;
  74. color: #999999;
  75. font-size: 0.88rem;
  76. font-family: 'PingFangSC-Medium';
  77. font-weight: 500;
  78. line-height: 1.25rem;
  79. }
  80. .group_6 {
  81. margin-top: 3.75rem;
  82. }
  83. .text_2 {
  84. color: #e7a23f;
  85. font-size: 1.5rem;
  86. font-family: 'PingFangSC-Semibold';
  87. font-weight: 600;
  88. line-height: 2.06rem;
  89. }
  90. .text_3 {
  91. margin-top: 0.63rem;
  92. color: #777777;
  93. font-size: 0.88rem;
  94. font-family: 'PingFangSC-Medium';
  95. font-weight: 500;
  96. line-height: 1.25rem;
  97. }
  98. .button {
  99. padding: 0.81rem 0;
  100. background-color: #e7a23f;
  101. border-radius: 0.31rem;
  102. }
  103. .button_1 {
  104. margin-top: 0.88rem;
  105. padding: 0.75rem 0;
  106. border-radius: 0.31rem;
  107. border: solid 0.063rem #e7a23f;
  108. }
  109. .text_5 {
  110. color: #ffffff;
  111. font-size: 1rem;
  112. font-family: 'PingFangSC-Semibold';
  113. font-weight: 600;
  114. line-height: 1.38rem;
  115. }
  116. .text_6 {
  117. color: #e7a23f;
  118. font-size: 1rem;
  119. font-family: 'PingFangSC-Semibold';
  120. font-weight: 600;
  121. line-height: 1.38rem;
  122. }
  123. </style>