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

197 lines
4.2 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view class="page">
  3. <view class="head-box"></view>
  4. <uv-navbar title="招募" leftIcon=" " :bgColor="bgColor" height="100rpx" :titleStyle="{color:'#fff'}"></uv-navbar>
  5. <view class="content">
  6. <view class="search-box">
  7. <view class="search-box-r">
  8. <uv-search placeholder="搜索感兴趣的活动" v-model="keyword" shape="square" :showAction="false" color="#fff" placeholderColor="#BDABAC" :clearabled="false" searchIconColor="#fff" searchIconSize="50rpx" bgColor="#4A2A2B" height="63rpx"></uv-search>
  9. </view>
  10. </view>
  11. <view class="user-box">
  12. <uv-avatar src="https://via.placeholder.com/200x200.png/2878ff" size="98rpx" shape="circle"></uv-avatar>
  13. <view class="user-msg">
  14. <view class="user-msg-top">
  15. <view>点击授权登录</view>
  16. <view class="level-box">普通用户</view>
  17. </view>
  18. <view class="id-box">
  19. <text>ID:000001</text>
  20. <text class="copy-text">复制</text>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="swipe-box">
  25. <uv-swiper :list="list" height="280rpx" bgColor="transparent" radius="30rpx"></uv-swiper>
  26. </view>
  27. <view class="zlr-box" @click="toRenzheng">
  28. <view class="zlr-box-l">
  29. <image src="@/static/image/member/zlr-icon.png" mode="widthFix"></image>
  30. <view>主理人认证</view>
  31. </view>
  32. <view class="zlr-box-r">
  33. <view>获取更多身份特权</view>
  34. <image src="@/static/image/member/zlr-arrow.png" mode="widthFix"></image>
  35. </view>
  36. </view>
  37. <view class="list-box">
  38. <zhaomu-item></zhaomu-item>
  39. </view>
  40. </view>
  41. <tabber select="member" />
  42. </view>
  43. </template>
  44. <script>
  45. import tabber from '@/components/base/tabbar.vue'
  46. import zhaomuItem from '@/components/zhaomu/zhaomu-item.vue'
  47. import { mapState } from 'vuex'
  48. export default {
  49. components: {
  50. tabber,
  51. zhaomuItem
  52. },
  53. data() {
  54. return {
  55. bgColor:'transparent',
  56. list: [
  57. 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  58. ]
  59. };
  60. },
  61. computed : {
  62. },
  63. onLoad({leftClick}) {
  64. },
  65. onShow() {
  66. },
  67. onPageScroll(e) {
  68. if(e.scrollTop > 50) {
  69. this.bgColor ='#49070c'
  70. }else{
  71. this.bgColor ='transparent'
  72. }
  73. },
  74. methods:{
  75. toRenzheng() {
  76. uni.navigateTo({
  77. url:'/pages_zlx/zlx-form'
  78. })
  79. }
  80. }
  81. }
  82. </script>
  83. <style lang="scss">
  84. page {
  85. background-color: #060504;
  86. }
  87. </style>
  88. <style lang="scss">
  89. .page {
  90. .head-box {
  91. background: url('@/static/image/nav-bg.png') no-repeat;
  92. background-size: 100% 100%;
  93. width: 100%;
  94. height: 534rpx;
  95. position: absolute;
  96. }
  97. .content {
  98. padding: 0 30rpx;
  99. padding-top: calc(var(--status-bar-height) + 110rpx);
  100. .search-box {
  101. display: flex;
  102. align-items: center;
  103. margin-bottom: 32rpx;
  104. &-r {
  105. flex:1;
  106. }
  107. }
  108. .user-box {
  109. display: flex;
  110. align-items: center;
  111. margin-bottom: 33rpx;
  112. .user-msg {
  113. margin-left: 20rpx;
  114. .user-msg-top {
  115. font-weight: 600;
  116. font-size: 32rpx;
  117. color: #E6E6E6;
  118. display: flex;
  119. align-items: center;
  120. .level-box {
  121. width: 108rpx;
  122. height: 31rpx;
  123. background: RGBA(40, 19, 4, 1);
  124. border-radius: 16rpx;
  125. font-weight: 400;
  126. font-size: 20rpx;
  127. color: #FF9C00;
  128. text-align: center;
  129. margin-left: 14rpx;
  130. }
  131. }
  132. .id-box {
  133. color: #999999;
  134. font-size: 22rpx;
  135. margin-top: 20rpx;
  136. .copy-text {
  137. font-weight: 400;
  138. font-size: 22rpx;
  139. color: #E6E6E6;
  140. margin-left: 18rpx;
  141. }
  142. }
  143. }
  144. }
  145. .swipe-box {
  146. margin-bottom: 31rpx;
  147. }
  148. .zlr-box {
  149. background: url('@/static/image/member/zlr-bg.png') no-repeat;
  150. background-size: 100% 100%;
  151. height: 124rpx;
  152. display: flex;
  153. align-items: center;
  154. justify-content: space-between;
  155. padding: 0 40rpx 0 46rpx;
  156. margin-bottom: 32rpx;
  157. &-l {
  158. font-weight: 600;
  159. font-size: 32rpx;
  160. color: #FF3B47;
  161. display: flex;
  162. align-items: center;
  163. image {
  164. width: 72rpx;
  165. margin-right: 24rpx;
  166. }
  167. }
  168. &-r {
  169. font-weight: 400;
  170. font-size: 25rpx;
  171. color: #FF8E00;
  172. display: flex;
  173. align-items: center;
  174. image {
  175. width: 12rpx;
  176. margin-left: 12px;
  177. }
  178. }
  179. }
  180. .list-box {
  181. }
  182. }
  183. }
  184. </style>