homePage.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  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" @click="goReportPage">
  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. goReportPage() {
  167. uni.navigateTo({
  168. url: '../reportPage/reportPage'
  169. })
  170. }
  171. },
  172. components:{
  173. levelView
  174. }
  175. }
  176. </script>
  177. <style lang="scss" scoped>
  178. page {
  179. width: 100vw;
  180. height: 100vh;
  181. }
  182. .content {
  183. width: 100%;
  184. height: 100%;
  185. position: relative;
  186. .topSection{
  187. position: relative;
  188. z-index: 100;
  189. }
  190. .bg_top{
  191. width: 100%;
  192. height: 470rpx;
  193. position: absolute;
  194. top:0;
  195. left:0;
  196. z-index: 100;
  197. }
  198. .liveContent {
  199. width: 100%;
  200. height: 470rpx;
  201. z-index: 100;
  202. display: flex;
  203. flex-direction: column;
  204. align-items: center;
  205. position: relative;
  206. .backDiv {
  207. top: 0;
  208. left: 0;
  209. position: absolute;
  210. width: 100%;
  211. height: 100%;
  212. background-color: rgba($color: #000000, $alpha: 0.1);
  213. z-index: 1;
  214. }
  215. .title {
  216. margin-top: 96rpx;
  217. font-size: 44rpx;
  218. font-weight: 700;
  219. text-align: center;
  220. color: #ffffff;
  221. z-index: 2;
  222. }
  223. .subTitle {
  224. font-size: 28rpx;
  225. font-family: Verdana, Verdana-Regular;
  226. font-weight: 400;
  227. text-align: left;
  228. color: #ffffff;
  229. margin-top: 20rpx;
  230. z-index: 2;
  231. }
  232. .levelDiv {
  233. margin-top: 82rpx;
  234. width: calc(100% - 60rpx);
  235. height: 152rpx;
  236. z-index: 2;
  237. display: flex;
  238. flex-direction: column;
  239. padding: 25rpx 30rpx;
  240. box-sizing: border-box;
  241. .level_top {
  242. width: 100%;
  243. display: flex;
  244. justify-content: space-between;
  245. flex-wrap: nowrap;
  246. align-items: center;
  247. margin-top: 5rpx;
  248. .level_icon {
  249. width: 37rpx;
  250. min-width: 37rpx;
  251. max-width: 37rpx;
  252. height: 35rpx;
  253. margin-right: 13rpx;
  254. margin-top: -5rpx;
  255. }
  256. .level_text {
  257. font-size: 48rpx;
  258. font-family: FontName, FontName-Regular;
  259. font-weight: 500;
  260. text-align: left;
  261. font-style: oblique;
  262. color: #f5c8a8;
  263. line-height: 40rpx;
  264. letter-spacing: 1.92rpx;
  265. margin-right: 8rpx;
  266. margin-top: -7rpx;
  267. }
  268. .level_des {
  269. font-size: 22rpx;
  270. font-family: Verdana, Verdana-Regular;
  271. font-weight: 400;
  272. text-align: left;
  273. color: #f5c8a8;
  274. white-space: nowrap;
  275. flex-grow: 1;
  276. }
  277. .level_update {
  278. font-size: 24rpx;
  279. font-family: Verdana, Verdana-Bold;
  280. font-weight: 700;
  281. text-align: right;
  282. color: #f5c8a8;
  283. letter-spacing: 0.96rpx;
  284. display: flex;
  285. align-items: center;
  286. .level_right_icon {
  287. margin-left: 8rpx;
  288. width: 6rpx;
  289. height: 7rpx;
  290. }
  291. }
  292. }
  293. }
  294. }
  295. .content_body{
  296. border-radius: 20rpx 20rpx 0rpx 0rpx;
  297. height: calc(100% - 470rpx);
  298. margin-top: -24rpx;
  299. z-index: 102;
  300. position: relative;
  301. padding: 1rpx;
  302. .content_beginner_guide{
  303. height: 354rpx;
  304. margin-left: 30rpx;
  305. margin-right: 30rpx;
  306. margin-top: 40rpx;
  307. background: #ffffff;
  308. border-radius: 16rpx;
  309. box-sizing: border-box;
  310. .title{
  311. width: 100%;
  312. position: relative;
  313. height: 110rpx;
  314. .title_txt{
  315. font-size: 32rpx;
  316. font-family: FontName, FontName-Regular;
  317. font-weight: 400;
  318. text-align: left;
  319. color: #b1b1b1;
  320. font-style: italic;
  321. position: absolute;
  322. left: 50%;
  323. top: 30rpx;
  324. transform: translateX(-50%);
  325. }
  326. .title_right{
  327. position: absolute;
  328. right: 20rpx;
  329. top: 40rpx;
  330. display: flex;
  331. align-items: center;
  332. .title_right_txt{
  333. font-size: 24rpx;
  334. font-family: Verdana, Verdana-Regular;
  335. font-weight: 400;
  336. text-align: right;
  337. color: #b1b1b1;
  338. }
  339. .title_right_cion{
  340. width: 10rpx;
  341. height: 6rpx;
  342. margin-left: 10rpx;
  343. }
  344. }
  345. }
  346. .guide_content{
  347. display: flex;
  348. padding-left: 40rpx;
  349. padding-right: 40rpx;
  350. box-sizing: border-box;
  351. justify-content: space-between;
  352. .item_guide{
  353. display: flex;
  354. flex-direction: column;
  355. align-items: center;
  356. .guide_img{
  357. width: 58rpx;
  358. height: 74rpx;
  359. margin-bottom: 17rpx;
  360. }
  361. .guide_title{
  362. font-size: 26rpx;
  363. font-family: Verdana, Verdana-Bold;
  364. font-weight: 700;
  365. text-align: center;
  366. color: #2c2c2c;
  367. margin-bottom: 8rpx;
  368. }
  369. .guide_desc{
  370. font-size: 22rpx;
  371. font-family: Verdana, Verdana-Regular;
  372. font-weight: 400;
  373. text-align: center;
  374. color: #b1b1b1;
  375. }
  376. }
  377. .icon_guide{
  378. width: 48rpx;
  379. height: 32rpx;
  380. margin-top: 20rpx;
  381. }
  382. }
  383. }
  384. .content_tab{
  385. display: flex;
  386. box-sizing: border-box;
  387. height: 180rpx;
  388. background: #ffffff;
  389. border-radius: 16rpx;
  390. margin-top: 14rpx;
  391. padding-left: 40rpx;
  392. padding-right: 40rpx;
  393. margin-left: 30rpx;
  394. margin-right: 30rpx;
  395. justify-content: space-between;
  396. .tab_item{
  397. display: flex;
  398. flex-direction: column;
  399. align-items: center;
  400. justify-content: center;
  401. .icon_tab{
  402. width: 96rpx;
  403. height: 96rpx;
  404. }
  405. .txt_tab{
  406. font-size: 24rpx;
  407. font-family: Verdana, Verdana-Regular;
  408. font-weight: 400;
  409. text-align: center;
  410. color: #262626;
  411. margin-top: 2rpx;
  412. }
  413. }
  414. }
  415. .content_tuiguang{
  416. height: 220rpx;
  417. display: flex;
  418. box-sizing: border-box;
  419. background: #ffffff;
  420. border-radius: 16rpx;
  421. margin-top: 14rpx;
  422. padding-left: 40rpx;
  423. padding-right: 40rpx;
  424. margin-left: 30rpx;
  425. margin-right: 30rpx;
  426. justify-content: space-between;
  427. position: relative;
  428. .content_tuiguang_city{
  429. display: flex;
  430. flex-direction: column;
  431. justify-content: center;
  432. align-items: center;
  433. width: 50%;
  434. .city_num{
  435. font-size: 40rpx;
  436. font-family: DIN Alternate, DIN Alternate-Bold;
  437. font-weight: 700;
  438. text-align: center;
  439. color: #262626;
  440. }
  441. .city_num_desc{
  442. font-size: 24rpx;
  443. font-family: Verdana, Verdana-Regular;
  444. font-weight: 400;
  445. text-align: center;
  446. color: #b1b1b1;
  447. }
  448. .city_list{
  449. display: flex;
  450. justify-content: center;
  451. margin-top: 52rpx;
  452. align-items: center;
  453. .city_name{
  454. font-size: 26rpx;
  455. font-family: Verdana, Verdana-Regular;
  456. font-weight: 400;
  457. text-align: left;
  458. color: #262626;
  459. }
  460. .city_more{
  461. width: 26rpx;
  462. height: 26rpx;
  463. margin-left: 8rpx;
  464. }
  465. }
  466. }
  467. .content_tuiguang_money{
  468. display: flex;
  469. flex-direction: column;
  470. justify-content: center;
  471. align-items: center;
  472. width: 50%;
  473. .money_num{
  474. font-size: 40rpx;
  475. font-family: DIN Alternate, DIN Alternate-Bold;
  476. font-weight: 700;
  477. text-align: center;
  478. color: #fd8f3c;
  479. }
  480. .money_num_des{
  481. font-size: 24rpx;
  482. font-family: Verdana, Verdana-Regular;
  483. font-weight: 400;
  484. text-align: center;
  485. color: #b1b1b1;
  486. }
  487. .money_list{
  488. display: flex;
  489. justify-content: center;
  490. margin-top: 52rpx;
  491. align-items: center;
  492. .money_name{
  493. font-size: 26rpx;
  494. font-family: Verdana, Verdana-Regular;
  495. font-weight: 400;
  496. text-align: left;
  497. color: #262626;
  498. }
  499. .money_more{
  500. width: 26rpx;
  501. height: 26rpx;
  502. margin-left: 8rpx;
  503. }
  504. }
  505. .money_bg{
  506. position: absolute;
  507. right: 0rpx;
  508. top: 0;
  509. width: 220rpx;
  510. height: 220rpx;
  511. }
  512. }
  513. }
  514. .content_list{
  515. margin-top: 60rpx;
  516. margin-left: 30rpx;
  517. margin-right: 30rpx;
  518. padding-bottom: 50rpx;
  519. .content_title{
  520. display: flex;
  521. font-size: 32rpx;
  522. font-family: Verdana, Verdana-Bold;
  523. font-weight: 700;
  524. text-align: left;
  525. color: #262626;
  526. align-items: center;
  527. .content_title_poi{
  528. width: 8rpx;
  529. height: 12rpx;
  530. background: #f07423;
  531. border-radius: 2rpx;
  532. margin-right: 8rpx;
  533. }
  534. }
  535. .content_hongbao{
  536. margin-top: 20rpx;
  537. height: 140rpx;
  538. background: linear-gradient(108deg,#ffb55f 9%, #f87523 96%);
  539. border-radius: 16rpx;
  540. display: flex;
  541. justify-content: space-between;
  542. align-items: center;
  543. .hongbao_left{
  544. display: flex;
  545. margin-left: 26rpx;
  546. .icon_hongbao{
  547. width: 60rpx;
  548. height: 80rpx;
  549. margin-right: 20rpx;
  550. }
  551. .hongbao_left_info{
  552. display: flex;
  553. flex-direction: column;
  554. .hongbao_title{
  555. font-size: 30rpx;
  556. font-family: Verdana, Verdana-Bold;
  557. font-weight: 700;
  558. text-align: left;
  559. color: #ffffff;
  560. }
  561. .hongbao_money{
  562. font-size: 24rpx;
  563. font-family: Verdana, Verdana-Regular;
  564. font-weight: 400;
  565. text-align: left;
  566. color: #ffead8;
  567. }
  568. }
  569. }
  570. .hongbao_right{
  571. width: 140rpx;
  572. height: 56rpx;
  573. line-height: 56rpx;
  574. background: #ffffff;
  575. border-radius: 12rpx;
  576. font-size: 24rpx;
  577. font-family: Verdana, Verdana-Bold;
  578. font-weight: 700;
  579. text-align: center;
  580. color: #f07423;
  581. margin-right: 20rpx;
  582. }
  583. }
  584. .list_item{
  585. width: 100%;
  586. height: 280rpx;
  587. border-radius: 16rpx;
  588. display: flex;
  589. position: relative;
  590. margin-top: 20rpx;
  591. .house_img{
  592. width: 200rpx;
  593. height: 240rpx;
  594. z-index: 11;
  595. margin-top: 20rpx;
  596. margin-left: 20rpx;
  597. border-radius: 10rpx;
  598. }
  599. .item_content{
  600. display: flex;
  601. flex-direction: column;
  602. margin-left: 50rpx;
  603. z-index: 11;
  604. .house_name{
  605. font-size: 30rpx;
  606. font-family: Verdana, Verdana-Bold;
  607. font-weight: 700;
  608. text-align: left;
  609. color: #262626;
  610. margin-top: 20rpx;
  611. }
  612. .house_hk{
  613. font-size: 26rpx;
  614. font-family: Verdana, Verdana-Regular;
  615. font-weight: 400;
  616. text-align: left;
  617. color: #fd8f3c;
  618. margin-top: 8rpx;
  619. }
  620. .house_address{
  621. display: flex;
  622. font-size: 24rpx;
  623. font-family: Verdana, Verdana-Regular;
  624. font-weight: 400;
  625. text-align: left;
  626. color: #b1b1b1;
  627. margin-top: 16rpx;
  628. image{
  629. width: 20rpx;
  630. height: 28rpx;
  631. margin-right: 8rpx;
  632. margin-top: 6rpx;
  633. }
  634. text{
  635. width: 80%;
  636. }
  637. }
  638. .house_num{
  639. display: flex;
  640. font-size: 24rpx;
  641. font-family: Verdana, Verdana-Regular;
  642. font-weight: 400;
  643. text-align: left;
  644. color: #b1b1b1;
  645. margin-top: 12rpx;
  646. image{
  647. width: 24rpx;
  648. height: 26rpx;
  649. margin-right: 8rpx;
  650. margin-top: 6rpx;
  651. }
  652. text{
  653. width: 80%;
  654. }
  655. }
  656. .house_desc{
  657. margin-top: 24rpx;
  658. font-size: 24rpx;
  659. font-family: Verdana, Verdana-Regular;
  660. font-weight: 400;
  661. text-align: left;
  662. color: #b1b1b1;
  663. }
  664. }
  665. .item_share{
  666. z-index: 11;
  667. display: flex;
  668. flex-direction: column;
  669. width: 70rpx;
  670. height: 100rpx;
  671. background: #f07423;
  672. border-radius: 12rpx;
  673. position: absolute;
  674. right: 0;
  675. top: 50%;
  676. transform: translateY(-50%);
  677. justify-content: center;
  678. align-items: center;
  679. .icon_share{
  680. width: 32rpx;
  681. height: 32rpx;
  682. margin-bottom: 6rpx;
  683. }
  684. .icon_text{
  685. font-size: 24rpx;
  686. font-family: Verdana, Verdana-Bold;
  687. font-weight: 700;
  688. text-align: center;
  689. color: #ffffff;
  690. }
  691. }
  692. .item_bg{
  693. position: absolute;
  694. left: 0;
  695. top: 0;
  696. width: 95%;
  697. height: 100%;
  698. background-color: #FFFFFF;
  699. border-radius: 16rpx;
  700. z-index: 10;
  701. }
  702. }
  703. }
  704. }
  705. }
  706. </style>