index.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. <template>
  2. <view class="container">
  3. <!-- 状态栏占位 -->
  4. <view :style="{ height: statusBarHeight + 'px' }"></view>
  5. <!-- 自定义导航栏 (返回按钮) -->
  6. <view class="nav-bar">
  7. <view class="back-icon" @click="goBack">‹</view>
  8. </view>
  9. <!-- 标题区域 -->
  10. <view class="header-area">
  11. <text class="main-title">加入宠宝履约者</text>
  12. <text class="sub-title">月薪最高可达1.5万元</text>
  13. </view>
  14. <!-- 白色内容卡片 -->
  15. <view class="content-card">
  16. <view class="benefit-item">
  17. <view class="icon-circle icon-money">
  18. <text class="icon-text">¥</text>
  19. </view>
  20. <view class="info">
  21. <text class="item-title">1、收入可观</text>
  22. <text class="item-desc">小默配送为您提供一种全新的赚钱选择,利用空闲时间,获得更多收入。</text>
  23. </view>
  24. </view>
  25. <view class="benefit-item">
  26. <view class="icon-circle icon-loc">
  27. <text class="icon-text">📍</text>
  28. </view>
  29. <view class="info">
  30. <text class="item-title">2、地点灵活</text>
  31. <text class="item-desc">小默配送覆盖国内各城市与港澳台等地,您可随时就近使用。</text>
  32. </view>
  33. </view>
  34. <view class="benefit-item">
  35. <view class="icon-circle icon-clock">
  36. <text class="icon-text">🕒</text>
  37. </view>
  38. <view class="info">
  39. <text class="item-title">3、时间自由</text>
  40. <text class="item-desc">不必再受繁琐事务约束,加入小默配送,自由分配个人时间,为自己工作。</text>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 底部按钮 -->
  45. <view class="footer-area">
  46. <button class="join-btn" @click="goToForm">我要加入</button>
  47. <view class="faq">
  48. <text class="help-icon">?</text> 常见问题
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. statusBarHeight: 20,
  58. }
  59. },
  60. onLoad() {
  61. const sysInfo = uni.getSystemInfoSync();
  62. this.statusBarHeight = sysInfo.statusBarHeight || 20;
  63. },
  64. methods: {
  65. goBack() {
  66. const pages = getCurrentPages();
  67. if (pages.length > 1) {
  68. uni.navigateBack();
  69. } else {
  70. uni.reLaunch({ url: '/pages/login/index' });
  71. }
  72. },
  73. goToForm() {
  74. uni.navigateTo({ url: '/pages/recruit/form/index' });
  75. }
  76. }
  77. }
  78. </script>
  79. <style>
  80. page {
  81. background-color: #FF9800;
  82. }
  83. .container {
  84. min-height: 100vh;
  85. display: flex;
  86. flex-direction: column;
  87. position: relative;
  88. }
  89. .nav-bar {
  90. height: 88rpx;
  91. display: flex;
  92. align-items: center;
  93. padding: 0 30rpx;
  94. }
  95. .back-icon {
  96. font-size: 60rpx;
  97. color: #fff;
  98. font-weight: bold;
  99. width: 60rpx;
  100. height: 60rpx;
  101. line-height: 56rpx;
  102. text-align: center;
  103. display: block;
  104. }
  105. .header-area {
  106. padding: 40rpx 40rpx 20rpx;
  107. color: #fff;
  108. text-align: center;
  109. }
  110. .main-title {
  111. font-size: 48rpx;
  112. font-weight: bold;
  113. display: block;
  114. margin-bottom: 20rpx;
  115. }
  116. .sub-title {
  117. font-size: 32rpx;
  118. opacity: 0.9;
  119. display: block;
  120. }
  121. .content-card {
  122. background-color: #fff;
  123. border-radius: 30rpx;
  124. margin: 40rpx 30rpx;
  125. padding: 60rpx 40rpx;
  126. display: flex;
  127. flex-direction: column;
  128. box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  129. }
  130. .benefit-item {
  131. display: flex;
  132. align-items: center;
  133. margin-bottom: 60rpx;
  134. }
  135. .icon-circle {
  136. width: 80rpx;
  137. height: 80rpx;
  138. border-radius: 50%;
  139. display: flex;
  140. align-items: center;
  141. justify-content: center;
  142. margin-right: 30rpx;
  143. flex-shrink: 0;
  144. color: #fff;
  145. font-weight: bold;
  146. }
  147. .icon-money {
  148. background-color: #26A69A;
  149. }
  150. .icon-loc {
  151. background-color: #2979FF;
  152. }
  153. .icon-clock {
  154. background-color: #FF7043;
  155. }
  156. .icon-text {
  157. font-size: 40rpx;
  158. }
  159. .info {
  160. flex: 1;
  161. }
  162. .item-title {
  163. font-size: 32rpx;
  164. font-weight: bold;
  165. color: #333;
  166. margin-bottom: 8rpx;
  167. display: block;
  168. }
  169. .item-desc {
  170. font-size: 26rpx;
  171. color: #666;
  172. line-height: 1.6;
  173. display: block;
  174. }
  175. .footer-area {
  176. margin-top: auto;
  177. padding: 20rpx 40rpx 80rpx;
  178. display: flex;
  179. flex-direction: column;
  180. align-items: center;
  181. }
  182. .join-btn {
  183. width: 100%;
  184. height: 90rpx;
  185. line-height: 90rpx;
  186. background: #fff;
  187. color: #FF5722;
  188. font-size: 34rpx;
  189. font-weight: bold;
  190. border-radius: 45rpx;
  191. box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.1);
  192. }
  193. .join-btn::after {
  194. border: none;
  195. }
  196. .faq {
  197. margin-top: 30rpx;
  198. color: #fff;
  199. font-size: 26rpx;
  200. display: flex;
  201. align-items: center;
  202. }
  203. .help-icon {
  204. width: 30rpx;
  205. height: 30rpx;
  206. border: 1px solid #fff;
  207. border-radius: 50%;
  208. display: flex;
  209. align-items: center;
  210. justify-content: center;
  211. font-size: 20rpx;
  212. margin-right: 10rpx;
  213. color: #fff;
  214. }
  215. </style>