InviteFriends.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <template>
  2. <view>
  3. <u-navbar title="邀请好友"></u-navbar>
  4. <view class="InviteFriends">
  5. <view class="InviteFriends-head">
  6. <u-image width="274rpx" height="60rpx" src="/static/img/logo3.png"></u-image>
  7. <u-image class="textImg" width="662rpx" height="59rpx" src="/static/img/text.png"></u-image>
  8. <u-image width="100%" height="320rpx" src="/static/img/handshake.png"></u-image>
  9. </view>
  10. <view class="InviteFriends-main">
  11. <view class="InviteFriends-coupons">
  12. <h4>每邀请1位好友注册,将获得1张抵扣券</h4>
  13. <view class="coupons-price">
  14. <h2>5</h2><span>元</span>
  15. </view>
  16. <view class="coupons-line"></view>
  17. <view class="coupons-btn">
  18. <u-icon name="wechat-fill" custom-prefix="custom-icon" color="#fff" size="48"></u-icon>
  19. <span>分享至微信</span>
  20. </view>
  21. </view>
  22. <view class="InviteFriends-title">福利获取流程</view>
  23. <view class="InviteFriends-info">
  24. <view class="InviteFriends-info-row">
  25. <u-icon name="question-answer-fill" custom-prefix="custom-icon" color="#00B962" size="48"></u-icon>
  26. <p>1.发送链接给好友</p>
  27. </view>
  28. <view class="InviteFriends-info-row">
  29. <u-icon name="account-pin-circle-fill" custom-prefix="custom-icon" color="#00B962" size="48"></u-icon>
  30. <p>2.好友注册并登录51充电联盟</p>
  31. </view>
  32. <view class="InviteFriends-info-row">
  33. <u-icon name="gift-2-fill" custom-prefix="custom-icon" color="#00B962" size="48"></u-icon>
  34. <p>3.和好友一起领5元红包</p>
  35. </view>
  36. <view class="InviteFriends-tips">
  37. <span>*</span><p>邀请成功,你和好友各得5元红包,一年有效;邀请更多人,你可领最高500元红包,红包在本活动页兑换。</p>
  38. </view>
  39. </view>
  40. <view class="InviteFriends-title">我的奖励</view>
  41. <view class="InviteFriends-reward">
  42. <view class="reward-head">
  43. <p>成功邀请1人,已获得</p>
  44. <view class="reward-head-price">
  45. <h2>5</h2><span>元</span>
  46. </view>
  47. </view>
  48. <view class="reward-main">
  49. <view class="reward-info">
  50. <view class="reward-info-item">
  51. <p>待兑换</p>
  52. <view class="reward-info-price">
  53. <h2>5</h2><span>元</span>
  54. </view>
  55. </view>
  56. <view class="reward-info-item reward-info-item2">
  57. <p>已兑换</p>
  58. <view class="reward-info-price">
  59. <h2>5</h2><span>元</span>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="reward-btn">兑换奖励</view>
  64. <view class="reward-list">
  65. <view class="reward-list-title">
  66. 成功邀请记录
  67. </view>
  68. <view class="rewardList">
  69. <view class="rewardList-item">
  70. <view class="u-flex">
  71. <u-avatar src="/static/img/head1.png" size="72"></u-avatar>
  72. <span>asdas</span>
  73. </view>
  74. <p>2022-05-30</p>
  75. </view>
  76. <view class="rewardList-item">
  77. <view class="u-flex">
  78. <u-avatar src="/static/img/head1.png" size="72"></u-avatar>
  79. <span>asdas</span>
  80. </view>
  81. <p>2022-05-30</p>
  82. </view>
  83. <view class="rewardList-item">
  84. <view class="u-flex">
  85. <u-avatar src="/static/img/head1.png" size="72"></u-avatar>
  86. <span>asdas</span>
  87. </view>
  88. <p>2022-05-30</p>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="InviteFriends-foot">
  95. *本活动最终解释权,归51充电联盟所有。
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <script>
  102. export default {
  103. data() {
  104. return {
  105. }
  106. },
  107. methods: {
  108. }
  109. }
  110. </script>
  111. <style>
  112. page{
  113. }
  114. </style>
  115. <style lang="scss" scoped>
  116. .InviteFriends{
  117. background-image: linear-gradient(0deg, #a2e9c9 , #01b963);
  118. }
  119. .InviteFriends-head{
  120. display: flex;
  121. flex-direction: column;
  122. align-items: center;
  123. padding-top: 36px;
  124. .textImg{
  125. margin:20px 0 10px;
  126. }
  127. }
  128. .InviteFriends-main{
  129. padding: 0 32px;
  130. }
  131. .InviteFriends-coupons{
  132. background-color: #fff;
  133. border-radius: 20px;
  134. padding: 20px;
  135. h4{
  136. font-size: 15px;
  137. font-weight: normal;
  138. text-align: center;
  139. }
  140. .coupons-price{
  141. display: flex;
  142. justify-content: center;
  143. align-items: flex-end;
  144. margin: 16px 0;
  145. h2{
  146. font-size: 44px;
  147. line-height: 44px;
  148. color:#FF9600;
  149. }
  150. span{
  151. font-size: 18px;
  152. margin-left: 2px;
  153. }
  154. }
  155. .coupons-line{
  156. height: 1px;
  157. border-bottom: 1px dashed #cacaca;
  158. position: relative;
  159. &:before{
  160. content: '';
  161. position: absolute;
  162. height: 15px;
  163. width: 15px;
  164. background-color:#2dc67f ;
  165. border-radius: 50%;
  166. left:-27px;
  167. top:-7px;
  168. }
  169. &:after{
  170. content: '';
  171. position: absolute;
  172. height: 15px;
  173. width: 15px;
  174. background-color:#2dc67f ;
  175. border-radius: 50%;
  176. right:-27px;
  177. top:-7px;
  178. }
  179. }
  180. .coupons-btn{
  181. background-color: #FF9600;
  182. margin-top: 20px;
  183. height: 50px;
  184. text-align: center;
  185. line-height: 50px;
  186. border-radius: 25px;
  187. font-size: 20px;
  188. color:#fff;
  189. span{
  190. margin-left: 8px;
  191. }
  192. }
  193. }
  194. .InviteFriends-title{
  195. color:#fff;
  196. margin: 40px 0 24px;
  197. font-size: 18px;
  198. }
  199. .InviteFriends-info{
  200. background-color: #fff;
  201. border-radius: 20px;
  202. padding: 20px;
  203. .InviteFriends-info-row{
  204. display: flex;
  205. align-items: center;
  206. margin-bottom: 20px;
  207. &:last-child{
  208. margin-bottom: 0;
  209. }
  210. p{
  211. margin-left: 12px;
  212. font-size: 16px;
  213. }
  214. }
  215. }
  216. .InviteFriends-tips{
  217. padding-left:30px;
  218. margin-top: -16px;
  219. span{
  220. float: left;
  221. color:#FF1C1C;
  222. }
  223. p{
  224. color:#999;
  225. }
  226. }
  227. .reward-head{
  228. background-color: #00B962;
  229. border-radius: 16px 16px 0 0;
  230. height: 75px;
  231. display: flex;
  232. justify-content: space-between;
  233. align-items: center;
  234. padding: 0 20px;
  235. margin: 0 4px;
  236. p{
  237. color:#fff;
  238. font-size: 17px;
  239. }
  240. .reward-head-price{
  241. color:#fff;
  242. display: flex;
  243. align-items: flex-end;
  244. h2{
  245. font-size: 36px;
  246. line-height: 36px;
  247. margin-right: 2px;
  248. }
  249. }
  250. }
  251. .reward-main{
  252. background-color: #fff;
  253. border-radius: 16px;
  254. padding: 24px;
  255. margin-top: -4px;
  256. .reward-info{
  257. display: flex;
  258. justify-content: space-between;
  259. .reward-info-item{
  260. width: 122px;
  261. height: 122px;
  262. display: flex;
  263. flex-direction: column;
  264. align-items: center;
  265. border:1px solid #CBE1D7 ;
  266. justify-content: center;
  267. border-radius: 12px;
  268. }
  269. p{
  270. font-size: 16px;
  271. color:#666;
  272. margin-bottom: 10px;
  273. }
  274. .reward-info-price{
  275. display: flex;
  276. align-items: flex-end;
  277. h2{
  278. font-size: 44px;
  279. line-height: 44px;
  280. margin-right: 2px;
  281. color:#00B962;
  282. }
  283. }
  284. .reward-info-item2{
  285. background-color:#E6EEEA;
  286. border: none;
  287. .reward-info-price h2{
  288. color:#333;
  289. }
  290. }
  291. }
  292. .reward-btn{
  293. height: 40px;
  294. width: 120px;
  295. border-radius: 20px;
  296. background-color: #00B962 ;
  297. line-height: 40px;
  298. color:#fff;
  299. text-align: center;
  300. font-size: 18px;
  301. margin: 20px auto;
  302. }
  303. }
  304. .reward-list{
  305. border-top: 1px dashed #cacaca;
  306. padding-top: 20px;
  307. .reward-list-title{
  308. font-size: 18px;
  309. margin-bottom: 20px;
  310. }
  311. .rewardList-item{
  312. display: flex;
  313. justify-content: space-between;
  314. align-items: center;
  315. margin-top: 12px;
  316. span{
  317. margin-left: 12px;
  318. font-size: 16px;
  319. }
  320. p{
  321. color:#999;
  322. }
  323. }
  324. }
  325. .InviteFriends-foot{
  326. text-align: center;
  327. color:#2A9563;
  328. padding: 20px 0 64px;
  329. }
  330. </style>