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

140 lines
2.8 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
  1. <template>
  2. <view>
  3. <view class="head-box"></view>
  4. <uv-navbar autoBack title="签到列表" leftIconColor="#fff" :bgColor="bgColor" height="100rpx" :titleStyle="{color:'#fff'}"></uv-navbar>
  5. <view class="content">
  6. <zlx-item :showBottom="false"></zlx-item>
  7. <view class="xie-box-val" v-for="(item,i) in signList" :key="i">
  8. <view class="val-text">
  9. <view>{{item.name}}</view>
  10. <view class="phone-box">{{item.phone}}</view>
  11. <view class="type-box">{{item.type}}X{{item.num}}</view>
  12. </view>
  13. <view class="choose-box" >
  14. <view class="normol-box" v-if="i == 1"></view>
  15. <image src="@/static/image/member/choose-icon.png" mode="widthFix" v-else></image>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="btn-box">
  20. <uv-button @click="saoma" text="扫码签到" color="#381615" shape="circle" :customStyle="btnCustomStyle"></uv-button>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import zlxItem from '@/components/zhaomu/zlx-item.vue'
  26. export default{
  27. components:{
  28. zlxItem
  29. },
  30. data() {
  31. return {
  32. btnCustomStyle:{
  33. color:'#FF5858'
  34. },
  35. bgColor:'transparent',
  36. signList:[
  37. {
  38. name:'黎明',
  39. phone:'19918812201',
  40. type:'早鸟票',
  41. num:1
  42. },
  43. {
  44. name:'刘德华',
  45. phone:'19918812201',
  46. type:'尊享票',
  47. num:3
  48. }
  49. ]
  50. }
  51. },
  52. onPageScroll(e) {
  53. if(e.scrollTop > 50) {
  54. this.bgColor = '#49070c'
  55. }else{
  56. this.bgColor = 'transparent'
  57. }
  58. },
  59. methods:{
  60. saoma() {
  61. uni.scanCode({
  62. success(res) {
  63. }
  64. })
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss">
  70. page {
  71. background-color: #060504;
  72. }
  73. </style>
  74. <style lang="scss" scoped>
  75. .head-box {
  76. background: url('@/static/image/nav-bg.png') no-repeat;
  77. background-size: 100% 100%;
  78. width: 100%;
  79. height: 534rpx;
  80. position: absolute;
  81. z-index: -1;
  82. }
  83. .content {
  84. padding: 0 30rpx;
  85. padding-top: calc(var(--status-bar-height) + 110rpx);
  86. .xie-box-val {
  87. margin-top: 34rpx;
  88. margin-bottom: 16rpx;
  89. height: 116rpx;
  90. background: #1B1713;
  91. border-radius: 27rpx 27rpx 27rpx 27rpx;
  92. display: flex;
  93. align-items: center;
  94. justify-content: space-between;
  95. padding: 0 36rpx;
  96. .val-text {
  97. font-weight: 400;
  98. font-size: 25rpx;
  99. color: #FFFFFF;
  100. display: flex;
  101. align-items: center;
  102. .phone-box {
  103. color: #666666;
  104. margin: 0 10rpx;
  105. }
  106. .type-box {
  107. background: #322511;
  108. border-radius: 0rpx 12rpx 12rpx 12rpx;
  109. color: #FFA200;
  110. font-size: 20rpx;
  111. padding: 10rpx 10rpx;
  112. }
  113. }
  114. .choose-box {
  115. .normol-box {
  116. width: 31rpx;
  117. height: 31rpx;
  118. border: 1px solid #fff;
  119. border-radius: 5rpx;
  120. }
  121. image {
  122. width: 31rpx;
  123. height: 31rpx;
  124. }
  125. }
  126. }
  127. }
  128. .btn-box {
  129. position: fixed;
  130. bottom: 70rpx;
  131. left: 0;
  132. right: 0;
  133. padding: 0 40rpx;
  134. }
  135. </style>