homePage.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. <template>
  2. <view class="content">
  3. <view class="topSection">
  4. <image class="bg_top" src="https://dm.static.elab-plus.com/yezhu/h5/backgroundImg.png" mode=""></image>
  5. <view class="liveContent">
  6. <view class="backDiv"></view>
  7. <view class="title">分享好房 · 躺平赚钱</view>
  8. <view class="subTitle">新手赚钱帮助 ></view>
  9. <view class="levelDiv" style="background: url('https://dm.static.elab-plus.com/yezhu/h5/icon_line_back.png') center/100% 100% no-repeat;">
  10. <view class="level_top">
  11. <image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode=""></image>
  12. <view class="level_text">Lv5</view>
  13. <view class="level_des">/达到 5000 收益可升级</view>
  14. <view class="level_update">
  15. <text>升级攻略</text>
  16. <image class="level_right_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
  17. </view>
  18. </view>
  19. <view class="level_bottom">
  20. <levelView currentLevel='3500' nextLevel='5000' currentLevelTxt='lv5' nextLevelTxt='lv6'></levelView>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="content_body" :style="{background:color4}">
  26. <view class="content_beginner_guide">
  27. <view class="title">
  28. <text class="title_txt">- 新手引导 -</text>
  29. <view class="title_right">
  30. <text class="title_right_txt">收起</text>
  31. <image class="title_right_cion" src="https://dm.static.elab-plus.com/yezhu/icon_shouqi.png" mode=""></image>
  32. </view>
  33. </view>
  34. <view class="guide_content">
  35. <view class="item_guide">
  36. <image class="guide_img" src="https://dm.static.elab-plus.com/yezhu/icon_yezhu.png" mode=""></image>
  37. <text class="guide_title">注册业主</text>
  38. <text class="guide_desc">业主注册审核\n实时等级升级</text>
  39. </view>
  40. <image class="icon_guide" src="https://dm.static.elab-plus.com/yezhu/icon_to_guide.png" mode=""></image>
  41. <view class="item_guide">
  42. <image class="guide_img" style="width: 72rpx;height: 72rpx;margin-top: 5rpx;" src="https://dm.static.elab-plus.com/yezhu/icon_pyq.png" mode=""></image>
  43. <text class="guide_title">分享项目</text>
  44. <text class="guide_desc">分享到朋友圈\n自动计算收益</text>
  45. </view>
  46. <image class="icon_guide" src="https://dm.static.elab-plus.com/yezhu/icon_to_guide.png" mode=""></image>
  47. <view class="item_guide">
  48. <image class="guide_img" style="width: 58rpx;height: 68rpx;margin-top: 9rpx;" src="https://dm.static.elab-plus.com/yezhu/icon_yz_money.png" mode=""></image>
  49. <text class="guide_title">提现到微信</text>
  50. <text class="guide_desc">实时查看收益\n快速提现到账</text>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="content_tab">
  55. <view class="tab_item">
  56. <image class="icon_tab" src="https://dm.static.elab-plus.com/yezhu/icon_zcyz.png" mode=""></image>
  57. <text class="txt_tab">注册业主</text>
  58. </view>
  59. <view class="tab_item">
  60. <image class="icon_tab" src="https://dm.static.elab-plus.com/yezhu/icon_shouyi.png" mode=""></image>
  61. <text class="txt_tab">收益排行榜</text>
  62. </view>
  63. <view class="tab_item">
  64. <image class="icon_tab" src="https://dm.static.elab-plus.com/yezhu/icon_report.png" mode=""></image>
  65. <text class="txt_tab">效果报表</text>
  66. </view>
  67. <view class="tab_item">
  68. <image class="icon_tab" src="https://dm.static.elab-plus.com/yezhu/icon_myinfo.png" mode=""></image>
  69. <text class="txt_tab">我的信息</text>
  70. </view>
  71. </view>
  72. <view class="content_tuiguang">
  73. <view class="content_tuiguang_city">
  74. <text class="city_num">4个</text>
  75. <text class="city_num_desc">推广任务</text>
  76. <view class="city_list">
  77. <text class="city_name">城市</text>
  78. <image class="city_more" src="https://dm.static.elab-plus.com/yezhu/icon_ios_back%402x.png" mode=""></image>
  79. </view>
  80. </view>
  81. <view class="content_tuiguang_money">
  82. <text class="money_num">¥50,176.00</text>
  83. <text class="money_num_des">剩余任务金额</text>
  84. <view class="money_list">
  85. <text class="money_name">类型</text>
  86. <image class="money_more" src="https://dm.static.elab-plus.com/yezhu/icon_ios_back%402x.png" mode=""></image>
  87. </view>
  88. <image class="money_bg" src="https://dm.static.elab-plus.com/yezhu/icon_money_bg.png" mode=""></image>
  89. </view>
  90. </view>
  91. <view class="content_list">
  92. <view class="content_title">
  93. <view class="content_title_poi">
  94. </view>
  95. 任务列表
  96. </view>
  97. <view class="content_hongbao">
  98. <view class="hongbao_left">
  99. <image class="icon_hongbao" src="https://dm.static.elab-plus.com/yezhu/icon_hongbao.png" mode=""></image>
  100. <view class="hongbao_left_info">
  101. <text class="hongbao_title">邀请好友注册</text>
  102. <text class="hongbao_money">完成邀请,可获得 ¥1/人</text>
  103. </view>
  104. </view>
  105. <view class="hongbao_right">
  106. 邀请好友
  107. </view>
  108. </view>
  109. <view class="list_item" v-for="(item,index) in houseList" :key='index'>
  110. <image class="house_img" :src="item.image" mode=""></image>
  111. <view class="item_content">
  112. <text class="house_name">{{item.name}}</text>
  113. <text class="house_hk" v-if="item.taskCategory">{{(item.taskCategory).join('、')}}</text>
  114. <text class="house_hk" v-else></text>
  115. <view class="house_address">
  116. <image src="https://dm.static.elab-plus.com/yezhu/icon_location.png" mode=""></image>
  117. <text>{{item.city}} · {{item.minPrice}}-{{item.maxPrice}}万/m² · {{item.bizFormat}}</text>
  118. </view>
  119. <view class="house_num">
  120. <image src="https://dm.static.elab-plus.com/yezhu/icon_family.png" mode=""></image>
  121. <text>{{item.cusGroup}}</text>
  122. </view>
  123. <text class="house_desc">{{item.shareRemark}}</text>
  124. </view>
  125. <view class="item_share">
  126. <image class="icon_share" src="https://dm.static.elab-plus.com/yezhu/icon_small_share.png" mode=""></image>
  127. <text class="icon_text">分享</text>
  128. </view>
  129. <view class="item_bg"></view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </template>
  135. <script>
  136. import levelView from '@/components/leve-view/leve-view.vue';
  137. let app = getApp();
  138. export default {
  139. data() {
  140. return{
  141. color4:'#F5F5F7',
  142. houseList:[],
  143. }
  144. },
  145. mounted() {
  146. this.color4 = app.globalData.color4;
  147. this.getHomePage();
  148. },
  149. methods: {
  150. async getHomePage(){
  151. let ret =await this.$myRequest({
  152. url:"/project/homePage",
  153. data:{
  154. "city": "",
  155. "pageNo": 1,
  156. "pageSize": 20,
  157. "taskCategoryId": ""
  158. }
  159. })
  160. if(ret.data.success){
  161. let pageModel = ret.data.pageModel;
  162. this.houseList = pageModel.resultSet||[];
  163. }
  164. }
  165. },
  166. components:{
  167. levelView
  168. }
  169. }
  170. </script>
  171. <style lang="scss" scoped>
  172. page {
  173. width: 100vw;
  174. height: 100vh;
  175. }
  176. .content {
  177. width: 100%;
  178. height: 100%;
  179. position: relative;
  180. .topSection{
  181. position: relative;
  182. z-index: 100;
  183. }
  184. .bg_top{
  185. width: 100%;
  186. height: 470rpx;
  187. position: absolute;
  188. top:0;
  189. left:0;
  190. z-index: 100;
  191. }
  192. .liveContent {
  193. width: 100%;
  194. height: 470rpx;
  195. z-index: 100;
  196. display: flex;
  197. flex-direction: column;
  198. align-items: center;
  199. position: relative;
  200. .backDiv {
  201. top: 0;
  202. left: 0;
  203. position: absolute;
  204. width: 100%;
  205. height: 100%;
  206. background-color: rgba($color: #000000, $alpha: 0.1);
  207. z-index: 1;
  208. }
  209. .title {
  210. margin-top: 96rpx;
  211. font-size: 44rpx;
  212. font-weight: 700;
  213. text-align: center;
  214. color: #ffffff;
  215. z-index: 2;
  216. }
  217. .subTitle {
  218. font-size: 28rpx;
  219. font-family: Verdana, Verdana-Regular;
  220. font-weight: 400;
  221. text-align: left;
  222. color: #ffffff;
  223. margin-top: 20rpx;
  224. z-index: 2;
  225. }
  226. .levelDiv {
  227. margin-top: 82rpx;
  228. width: calc(100% - 60rpx);
  229. height: 152rpx;
  230. z-index: 2;
  231. display: flex;
  232. flex-direction: column;
  233. padding: 25rpx 30rpx;
  234. box-sizing: border-box;
  235. .level_top {
  236. width: 100%;
  237. display: flex;
  238. justify-content: space-between;
  239. flex-wrap: nowrap;
  240. align-items: center;
  241. margin-top: 5rpx;
  242. .level_icon {
  243. width: 37rpx;
  244. min-width: 37rpx;
  245. max-width: 37rpx;
  246. height: 35rpx;
  247. margin-right: 13rpx;
  248. margin-top: -5rpx;
  249. }
  250. .level_text {
  251. font-size: 48rpx;
  252. font-family: FontName, FontName-Regular;
  253. font-weight: 500;
  254. text-align: left;
  255. font-style: oblique;
  256. color: #f5c8a8;
  257. line-height: 40rpx;
  258. letter-spacing: 1.92rpx;
  259. margin-right: 8rpx;
  260. margin-top: -7rpx;
  261. }
  262. .level_des {
  263. font-size: 22rpx;
  264. font-family: Verdana, Verdana-Regular;
  265. font-weight: 400;
  266. text-align: left;
  267. color: #f5c8a8;
  268. white-space: nowrap;
  269. flex-grow: 1;
  270. }
  271. .level_update {
  272. font-size: 24rpx;
  273. font-family: Verdana, Verdana-Bold;
  274. font-weight: 700;
  275. text-align: right;
  276. color: #f5c8a8;
  277. letter-spacing: 0.96rpx;
  278. display: flex;
  279. align-items: center;
  280. .level_right_icon {
  281. margin-left: 8rpx;
  282. width: 6rpx;
  283. height: 7rpx;
  284. }
  285. }
  286. }
  287. }
  288. }
  289. .content_body{
  290. border-radius: 20rpx 20rpx 0rpx 0rpx;
  291. height: calc(100% - 470rpx);
  292. margin-top: -24rpx;
  293. z-index: 102;
  294. position: relative;
  295. padding: 1rpx;
  296. .content_beginner_guide{
  297. height: 354rpx;
  298. margin-left: 30rpx;
  299. margin-right: 30rpx;
  300. margin-top: 40rpx;
  301. background: #ffffff;
  302. border-radius: 16rpx;
  303. box-sizing: border-box;
  304. .title{
  305. width: 100%;
  306. position: relative;
  307. height: 110rpx;
  308. .title_txt{
  309. font-size: 32rpx;
  310. font-family: FontName, FontName-Regular;
  311. font-weight: 400;
  312. text-align: left;
  313. color: #b1b1b1;
  314. font-style: italic;
  315. position: absolute;
  316. left: 50%;
  317. top: 30rpx;
  318. transform: translateX(-50%);
  319. }
  320. .title_right{
  321. position: absolute;
  322. right: 20rpx;
  323. top: 40rpx;
  324. display: flex;
  325. align-items: center;
  326. .title_right_txt{
  327. font-size: 24rpx;
  328. font-family: Verdana, Verdana-Regular;
  329. font-weight: 400;
  330. text-align: right;
  331. color: #b1b1b1;
  332. }
  333. .title_right_cion{
  334. width: 10rpx;
  335. height: 6rpx;
  336. margin-left: 10rpx;
  337. }
  338. }
  339. }
  340. .guide_content{
  341. display: flex;
  342. padding-left: 40rpx;
  343. padding-right: 40rpx;
  344. box-sizing: border-box;
  345. justify-content: space-between;
  346. .item_guide{
  347. display: flex;
  348. flex-direction: column;
  349. align-items: center;
  350. .guide_img{
  351. width: 58rpx;
  352. height: 74rpx;
  353. margin-bottom: 17rpx;
  354. }
  355. .guide_title{
  356. font-size: 26rpx;
  357. font-family: Verdana, Verdana-Bold;
  358. font-weight: 700;
  359. text-align: center;
  360. color: #2c2c2c;
  361. margin-bottom: 8rpx;
  362. }
  363. .guide_desc{
  364. font-size: 22rpx;
  365. font-family: Verdana, Verdana-Regular;
  366. font-weight: 400;
  367. text-align: center;
  368. color: #b1b1b1;
  369. }
  370. }
  371. .icon_guide{
  372. width: 48rpx;
  373. height: 32rpx;
  374. margin-top: 20rpx;
  375. }
  376. }
  377. }
  378. .content_tab{
  379. display: flex;
  380. box-sizing: border-box;
  381. height: 180rpx;
  382. background: #ffffff;
  383. border-radius: 16rpx;
  384. margin-top: 14rpx;
  385. padding-left: 40rpx;
  386. padding-right: 40rpx;
  387. margin-left: 30rpx;
  388. margin-right: 30rpx;
  389. justify-content: space-between;
  390. .tab_item{
  391. display: flex;
  392. flex-direction: column;
  393. align-items: center;
  394. justify-content: center;
  395. .icon_tab{
  396. width: 96rpx;
  397. height: 96rpx;
  398. }
  399. .txt_tab{
  400. font-size: 24rpx;
  401. font-family: Verdana, Verdana-Regular;
  402. font-weight: 400;
  403. text-align: center;
  404. color: #262626;
  405. margin-top: 2rpx;
  406. }
  407. }
  408. }
  409. .content_tuiguang{
  410. height: 220rpx;
  411. display: flex;
  412. box-sizing: border-box;
  413. background: #ffffff;
  414. border-radius: 16rpx;
  415. margin-top: 14rpx;
  416. padding-left: 40rpx;
  417. padding-right: 40rpx;
  418. margin-left: 30rpx;
  419. margin-right: 30rpx;
  420. justify-content: space-between;
  421. position: relative;
  422. .content_tuiguang_city{
  423. display: flex;
  424. flex-direction: column;
  425. justify-content: center;
  426. align-items: center;
  427. width: 50%;
  428. .city_num{
  429. font-size: 40rpx;
  430. font-family: DIN Alternate, DIN Alternate-Bold;
  431. font-weight: 700;
  432. text-align: center;
  433. color: #262626;
  434. }
  435. .city_num_desc{
  436. font-size: 24rpx;
  437. font-family: Verdana, Verdana-Regular;
  438. font-weight: 400;
  439. text-align: center;
  440. color: #b1b1b1;
  441. }
  442. .city_list{
  443. display: flex;
  444. justify-content: center;
  445. margin-top: 52rpx;
  446. align-items: center;
  447. .city_name{
  448. font-size: 26rpx;
  449. font-family: Verdana, Verdana-Regular;
  450. font-weight: 400;
  451. text-align: left;
  452. color: #262626;
  453. }
  454. .city_more{
  455. width: 26rpx;
  456. height: 26rpx;
  457. margin-left: 8rpx;
  458. }
  459. }
  460. }
  461. .content_tuiguang_money{
  462. display: flex;
  463. flex-direction: column;
  464. justify-content: center;
  465. align-items: center;
  466. width: 50%;
  467. .money_num{
  468. font-size: 40rpx;
  469. font-family: DIN Alternate, DIN Alternate-Bold;
  470. font-weight: 700;
  471. text-align: center;
  472. color: #fd8f3c;
  473. }
  474. .money_num_des{
  475. font-size: 24rpx;
  476. font-family: Verdana, Verdana-Regular;
  477. font-weight: 400;
  478. text-align: center;
  479. color: #b1b1b1;
  480. }
  481. .money_list{
  482. display: flex;
  483. justify-content: center;
  484. margin-top: 52rpx;
  485. align-items: center;
  486. .money_name{
  487. font-size: 26rpx;
  488. font-family: Verdana, Verdana-Regular;
  489. font-weight: 400;
  490. text-align: left;
  491. color: #262626;
  492. }
  493. .money_more{
  494. width: 26rpx;
  495. height: 26rpx;
  496. margin-left: 8rpx;
  497. }
  498. }
  499. .money_bg{
  500. position: absolute;
  501. right: 0rpx;
  502. top: 0;
  503. width: 220rpx;
  504. height: 220rpx;
  505. }
  506. }
  507. }
  508. .content_list{
  509. margin-top: 60rpx;
  510. margin-left: 30rpx;
  511. margin-right: 30rpx;
  512. padding-bottom: 50rpx;
  513. .content_title{
  514. display: flex;
  515. font-size: 32rpx;
  516. font-family: Verdana, Verdana-Bold;
  517. font-weight: 700;
  518. text-align: left;
  519. color: #262626;
  520. align-items: center;
  521. .content_title_poi{
  522. width: 8rpx;
  523. height: 12rpx;
  524. background: #f07423;
  525. border-radius: 2rpx;
  526. margin-right: 8rpx;
  527. }
  528. }
  529. .content_hongbao{
  530. margin-top: 20rpx;
  531. height: 140rpx;
  532. background: linear-gradient(108deg,#ffb55f 9%, #f87523 96%);
  533. border-radius: 16rpx;
  534. display: flex;
  535. justify-content: space-between;
  536. align-items: center;
  537. .hongbao_left{
  538. display: flex;
  539. margin-left: 26rpx;
  540. .icon_hongbao{
  541. width: 60rpx;
  542. height: 80rpx;
  543. margin-right: 20rpx;
  544. }
  545. .hongbao_left_info{
  546. display: flex;
  547. flex-direction: column;
  548. .hongbao_title{
  549. font-size: 30rpx;
  550. font-family: Verdana, Verdana-Bold;
  551. font-weight: 700;
  552. text-align: left;
  553. color: #ffffff;
  554. }
  555. .hongbao_money{
  556. font-size: 24rpx;
  557. font-family: Verdana, Verdana-Regular;
  558. font-weight: 400;
  559. text-align: left;
  560. color: #ffead8;
  561. }
  562. }
  563. }
  564. .hongbao_right{
  565. width: 140rpx;
  566. height: 56rpx;
  567. line-height: 56rpx;
  568. background: #ffffff;
  569. border-radius: 12rpx;
  570. font-size: 24rpx;
  571. font-family: Verdana, Verdana-Bold;
  572. font-weight: 700;
  573. text-align: center;
  574. color: #f07423;
  575. margin-right: 20rpx;
  576. }
  577. }
  578. .list_item{
  579. width: 100%;
  580. height: 280rpx;
  581. border-radius: 16rpx;
  582. display: flex;
  583. position: relative;
  584. margin-top: 20rpx;
  585. .house_img{
  586. width: 200rpx;
  587. height: 240rpx;
  588. z-index: 11;
  589. margin-top: 20rpx;
  590. margin-left: 20rpx;
  591. border-radius: 10rpx;
  592. }
  593. .item_content{
  594. display: flex;
  595. flex-direction: column;
  596. margin-left: 50rpx;
  597. z-index: 11;
  598. .house_name{
  599. font-size: 30rpx;
  600. font-family: Verdana, Verdana-Bold;
  601. font-weight: 700;
  602. text-align: left;
  603. color: #262626;
  604. margin-top: 20rpx;
  605. }
  606. .house_hk{
  607. font-size: 26rpx;
  608. font-family: Verdana, Verdana-Regular;
  609. font-weight: 400;
  610. text-align: left;
  611. color: #fd8f3c;
  612. margin-top: 8rpx;
  613. }
  614. .house_address{
  615. display: flex;
  616. font-size: 24rpx;
  617. font-family: Verdana, Verdana-Regular;
  618. font-weight: 400;
  619. text-align: left;
  620. color: #b1b1b1;
  621. margin-top: 16rpx;
  622. image{
  623. width: 20rpx;
  624. height: 28rpx;
  625. margin-right: 8rpx;
  626. margin-top: 6rpx;
  627. }
  628. text{
  629. width: 80%;
  630. }
  631. }
  632. .house_num{
  633. display: flex;
  634. font-size: 24rpx;
  635. font-family: Verdana, Verdana-Regular;
  636. font-weight: 400;
  637. text-align: left;
  638. color: #b1b1b1;
  639. margin-top: 12rpx;
  640. image{
  641. width: 24rpx;
  642. height: 26rpx;
  643. margin-right: 8rpx;
  644. margin-top: 6rpx;
  645. }
  646. text{
  647. width: 80%;
  648. }
  649. }
  650. .house_desc{
  651. margin-top: 24rpx;
  652. font-size: 24rpx;
  653. font-family: Verdana, Verdana-Regular;
  654. font-weight: 400;
  655. text-align: left;
  656. color: #b1b1b1;
  657. }
  658. }
  659. .item_share{
  660. z-index: 11;
  661. display: flex;
  662. flex-direction: column;
  663. width: 70rpx;
  664. height: 100rpx;
  665. background: #f07423;
  666. border-radius: 12rpx;
  667. position: absolute;
  668. right: 0;
  669. top: 50%;
  670. transform: translateY(-50%);
  671. justify-content: center;
  672. align-items: center;
  673. .icon_share{
  674. width: 32rpx;
  675. height: 32rpx;
  676. margin-bottom: 6rpx;
  677. }
  678. .icon_text{
  679. font-size: 24rpx;
  680. font-family: Verdana, Verdana-Bold;
  681. font-weight: 700;
  682. text-align: center;
  683. color: #ffffff;
  684. }
  685. }
  686. .item_bg{
  687. position: absolute;
  688. left: 0;
  689. top: 0;
  690. width: 95%;
  691. height: 100%;
  692. background-color: #FFFFFF;
  693. border-radius: 16rpx;
  694. z-index: 10;
  695. }
  696. }
  697. }
  698. }
  699. }
  700. </style>