homePage.vue 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360
  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"
  10. style="background: url('https://dm.static.elab-plus.com/yezhu/h5/icon_line_back.png') center/100% 100% no-repeat;">
  11. <view class="" v-if="userInfo.userId">
  12. <view class="level_top" v-if="userInfo.ownersUnion">
  13. <image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode="">
  14. </image>
  15. <view class="level_text">{{userInfo.curlevel?'Lv'+userInfo.curlevel:''}}</view>
  16. <view class="level_des" v-if="!userInfo.nextIncome">/当前已达到最高等级</view>
  17. <view class="level_des" v-else>/达到 {{userInfo.nextIncome}} 收益可升级</view>
  18. <view class="level_update" v-if="false">
  19. <text>升级攻略</text>
  20. <image class="level_right_icon"
  21. src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
  22. </view>
  23. </view>
  24. <view class="level_top" v-else @click="toYezhu">
  25. <image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode="">
  26. </image>
  27. <view class="level_text_login">业主认证</view>
  28. <view class="level_des"></view>
  29. <view class="level_update">
  30. <text>立即认证</text>
  31. <image class="level_right_icon"
  32. src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="level_top" v-else @click="toLogin">
  37. <image class="level_icon" src="https://dm.static.elab-plus.com/yezhu/h5/icon_Level.png" mode="">
  38. </image>
  39. <view class="level_text_login">登录</view>
  40. <view class="level_des"></view>
  41. <view class="level_update">
  42. <text>立即登录</text>
  43. <image class="level_right_icon"
  44. src="https://dm.static.elab-plus.com/yezhu/h5/icon_right.png" mode=""></image>
  45. </view>
  46. </view>
  47. <view class="" v-if="userInfo.userId">
  48. <view class="level_bottom" v-if="userInfo.ownersUnion">
  49. <levelView :currentLevel='userInfo.curIncome' :nextLevel='userInfo.nextIncome?userInfo.nextIncome:userInfo.curIncome' :currentLevelTxt='userInfo.curlevel' :nextLevelTxt='userInfo.nextIncome?userInfo.nextLevel:userInfo.curlevel'>
  50. </levelView>
  51. </view>
  52. <view class="level_bottom_login" v-else >
  53. 点此进行业主认证,审核后实时等级升级
  54. </view>
  55. </view>
  56. <view class="level_bottom_login" v-else >
  57. 点此进行登录注册,开始赚钱吧
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="content_body" :style="{background:color4}">
  63. <view class="content_beginner_guide" v-if="showGuide">
  64. <view class="title">
  65. <text class="title_txt" :style="{color:contentColor}">- 新手引导 -</text>
  66. <view class="title_right">
  67. <text class="title_right_txt" :style="{color:contentColor}" @click="upLoadView(false)">收起</text>
  68. <image class="title_right_cion" src="https://dm.static.elab-plus.com/yezhu/icon_shouqi.png"
  69. mode=""></image>
  70. </view>
  71. </view>
  72. <view class="guide_content">
  73. <view class="item_guide">
  74. <image class="guide_img" src="https://dm.static.elab-plus.com/yezhu/icon_yezhu.png" mode="">
  75. </image>
  76. <text class="guide_title" :style="{color:titleColor}" @click="clearToken">业主认证</text>
  77. <text class="guide_desc" :style="{color:contentColor}">业主认证审核\n实时等级升级</text>
  78. </view>
  79. <image class="icon_guide" src="https://dm.static.elab-plus.com/yezhu/icon_to_guide.png" mode="">
  80. </image>
  81. <view class="item_guide">
  82. <image class="guide_img" style="width: 72rpx;height: 72rpx;margin-top: 5rpx;"
  83. src="https://dm.static.elab-plus.com/yezhu/icon_pyq.png" mode=""></image>
  84. <text class="guide_title" :style="{color:titleColor}">分享项目</text>
  85. <text class="guide_desc" :style="{color:contentColor}">分享到朋友圈\n自动计算收益</text>
  86. </view>
  87. <image class="icon_guide" src="https://dm.static.elab-plus.com/yezhu/icon_to_guide.png" mode="">
  88. </image>
  89. <view class="item_guide">
  90. <image class="guide_img" style="width: 58rpx;height: 68rpx;margin-top: 9rpx;"
  91. src="https://dm.static.elab-plus.com/yezhu/icon_yz_money.png" mode=""></image>
  92. <text class="guide_title" :style="{color:titleColor}">提现到微信</text>
  93. <text class="guide_desc" :style="{color:contentColor}">实时查看收益\n快速提现到账</text>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="content_beginner_guide_" v-else @click="upLoadView(true)">
  98. <text class="title_txt" :style="{color:contentColor}">展开新手引导</text>
  99. <image class="title_right_cion" src="../../static/icons/icon_down_.png"
  100. mode=""></image>
  101. </view>
  102. <view class="content_tab">
  103. <view class="tab_item" @click="toYezhu">
  104. <image class="icon_tab" src="../../static/icons/icon_zcyz_user.png" mode=""></image>
  105. <text class="txt_tab" :style="{color:titleColor}">业主认证</text>
  106. </view>
  107. <view class="tab_item" @click="toShouYiPage">
  108. <image class="icon_tab" src="../../static/icons/icon_shouyi_user.png" mode=""></image>
  109. <text class="txt_tab" :style="{color:titleColor}">收益排行榜</text>
  110. </view>
  111. <view class="tab_item" @click="goReportPage">
  112. <image class="icon_tab" src="../../static/icons/icon_report_user.png" mode=""></image>
  113. <text class="txt_tab" :style="{color:titleColor}">效果报表</text>
  114. </view>
  115. <view class="tab_item" @click="showMine">
  116. <image class="icon_tab" src="../../static/icons/icon_user_mine.png" mode=""></image>
  117. <text class="txt_tab" :style="{color:titleColor}">我的信息</text>
  118. </view>
  119. </view>
  120. <view class="content_tuiguang" v-if="userInfo.userId">
  121. <view class="content_tuiguang_city">
  122. <view class="city_num" :style="{color:titleColor}"><countTo :startVal='0' :endVal='Number(userInfo.taskCount)' :duration='3000'></countTo>个</view>
  123. <text class="city_num_desc" :style="{color:contentColor}">推广任务</text>
  124. </view>
  125. <view class="content_tuiguang_money">
  126. <view class="money_num" :style="{color:color2}"> ¥<countTo :startVal='0' :decimals='2' :endVal='Math.floor(Number(userInfo.surplusTaskAmount)*100)/100' :duration='1000'></countTo></view>
  127. <text class="money_num_des" :style="{color:contentColor}">剩余任务金额</text>
  128. </view>
  129. </view>
  130. <view class="content_list">
  131. <view class="content_title" :style="{color:titleColor}">
  132. <view class="content_title_poi">
  133. </view>
  134. 任务列表
  135. </view>
  136. <view class="content_hongbao" v-if="registAmount">
  137. <view class="hongbao_left">
  138. <image class="icon_hongbao" src="https://dm.static.elab-plus.com/yezhu/icon_hongbao.png"
  139. mode=""></image>
  140. <view class="hongbao_left_info">
  141. <text class="hongbao_title">邀请好友注册</text>
  142. <text class="hongbao_money">完成邀请,可获得 ¥{{registAmount}}/人</text>
  143. </view>
  144. </view>
  145. <view class="hongbao_right" @click="toShareCard('',1)">
  146. 邀请好友
  147. </view>
  148. </view>
  149. <view class="content_tuiguang_new" style="height: auto;">
  150. <view class="content_tuiguang_city">
  151. <view class="city_list" style="margin-top: 30rpx;margin-bottom: 30rpx;" @click="showOptions(1)">
  152. <text class="city_name">{{city}}</text>
  153. <image class="city_more" src="https://dm.static.elab-plus.com/yezhu/icon_ios_back%402x.png"
  154. mode=""></image>
  155. </view>
  156. </view>
  157. <view class="content_tuiguang_money" >
  158. <view class="money_list" style="margin-top: 30rpx;margin-bottom: 30rpx;" @click="showOptions(2)">
  159. <text class="money_name" >{{typeName}}</text>
  160. <image class="money_more" src="https://dm.static.elab-plus.com/yezhu/icon_ios_back%402x.png"
  161. mode=""></image>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="list_item" v-for="(item,index) in houseList" :key='index'>
  166. <view class="list_item" @click="goDetailAction(item,1)">
  167. <image class="house_img" :src="item.image" mode="aspectFill"></image>
  168. <view class="item_content" >
  169. <text class="house_name" :style="{color:titleColor}">{{item.name}}</text>
  170. <view class="house_hk" :style="{color:color2}" v-if="item.taskCategory">
  171. <text class="house_hk_" v-for="(item1,index1) in item.taskCategory" :key='index1'>{{item1.category}} ¥{{item1.unitPrice}}/人</text>
  172. </view>
  173. <text class="house_hk" v-else></text>
  174. <view class="house_address">
  175. <image src="https://dm.static.elab-plus.com/yezhu/icon_location.png" mode=""></image>
  176. <text style="width: 100%;" :style="{color:contentColor}">{{item.city}} {{item.minPrice?"· "+item.minPrice:""}}{{item.maxPrice?'-'+item.maxPrice:""}}{{(item.maxPrice||item.minPrice)?'元/m²':''}} {{item.bizFormat?'· '+item.bizFormat:''}}</text>
  177. </view>
  178. <view class="house_num">
  179. <image src="https://dm.static.elab-plus.com/yezhu/icon_home_house.png" mode=""></image>
  180. <text style="width: 100%;" :style="{color:contentColor}">{{item.projectLayout}}</text>
  181. </view>
  182. <text class="house_desc" :style="{color:contentColor}">{{item.taskEndTime | formattime }}</text>
  183. </view>
  184. </view>
  185. <view class="item_share" :style="{background:color1}" @click="toShareCard(item.projectId,2)">
  186. <image class="icon_share" src="https://dm.static.elab-plus.com/yezhu/icon_small_share.png"
  187. mode=""></image>
  188. <text class="icon_text">分享</text>
  189. </view>
  190. <view class="item_bg"></view>
  191. </view>
  192. <view class="com_noMore_text" :style="{color:contentColor}" v-if="noMore && houseList.length > 0">没有更多了</view>
  193. <view class="empty" v-if="houseList.length == 0">
  194. <image class="emptyImg" src="https://dm.static.elab-plus.com/yezhu/h5/icon_empty.png" mode=""></image>
  195. <view class="text">暂无数据</view>
  196. </view>
  197. </view>
  198. </view>
  199. <login ref='login'></login>
  200. <login-notice ref='login_notice'></login-notice>
  201. <dmMine ref='mine' :userInfo='userInfo'></dmMine>
  202. <dmHomeChoose ref='chooseType' :option='optionType' @chooiceType="chooiceType"></dmHomeChoose>
  203. <show-guide ref="showGuide" @registAction="toYezhu"></show-guide>
  204. </view>
  205. </template>
  206. <script>
  207. import levelView from '@/components/leve-view/leve-view.vue';
  208. import dmMine from '@/components/subComponents/dmMine.vue'
  209. import dmHomeChoose from "@/components/subComponents/dmHomeChoose.vue"
  210. import showGuide from '@/components/subComponents/showGuide.vue'
  211. import countTo from 'vue-count-to';
  212. import {displayDateFormatChi} from '@/static/format.js'
  213. let app = getApp();
  214. export default {
  215. filters:{
  216. formattime(val){
  217. return displayDateFormatChi(val) +'前推广赚佣金'
  218. }
  219. },
  220. data() {
  221. return {
  222. color4: '#F5F5F7',
  223. color2:"",
  224. color1:"",
  225. contentColor:"",
  226. titleColor:"",
  227. houseList: [],
  228. userId: "",
  229. token: "",
  230. clickCount:8,
  231. userInfo: {
  232. "userId": "",
  233. "name": null,
  234. "head": null,
  235. "curlevel": null,
  236. "curIncome": null,
  237. "nextLevel": null,
  238. "nextIncome": null,
  239. "ownersUnion": false,
  240. "totalIncome": null,
  241. "taskCount": null,
  242. "surplusTaskAmount": null,
  243. "cardNo":"",
  244. "phone":"",
  245. "room":"",
  246. "sex":""
  247. },
  248. showGuide:true,
  249. total:0,
  250. pageNo:1,
  251. pageSize:10,
  252. noMore:false,
  253. city:"筛选城市",
  254. type:"",
  255. typeName:"任务类型",
  256. optionType:1,
  257. registAmount:null,
  258. shareToken:"",
  259. isVisiable:true,
  260. isPageHide:false,
  261. }
  262. },
  263. mounted() {
  264. window.addEventListener('pageshow', function(){
  265. if(this.isPageHide) {
  266. window.location.reload();
  267. }
  268. })
  269. window.addEventListener('pagehide',function(){
  270. this.isPageHide = true;
  271. })
  272. this.isFirst = true
  273. this.color4 = app.globalData.color4;
  274. this.color2 = app.globalData.color2;
  275. this.color1 = app.globalData.color1;
  276. this.contentColor = app.globalData.contentColor;
  277. this.titleColor = app.globalData.titleColor;
  278. this.getData();
  279. uni.$on("request",()=>{
  280. this.getData();
  281. this.$refs.login_notice.hide();
  282. this.$refs.login.hide();
  283. })
  284. let projectId = this.getQueryString('projectId');
  285. this.toPage(projectId);
  286. },
  287. onShow() {
  288. this.isVisiable = true;
  289. this.getSingle();
  290. },
  291. onHide() {
  292. this.isVisiable = false
  293. },
  294. onPullDownRefresh() {
  295. this.getData();
  296. },
  297. onReachBottom() {
  298. if(this.houseList.length<this.total){
  299. this.pageNo ++;
  300. this.getHomePage();
  301. }
  302. },
  303. methods: {
  304. toPage(projectId){
  305. if(projectId){
  306. let e = {
  307. projectId
  308. }
  309. this.goDetailAction(e,2)
  310. }
  311. },
  312. getQueryString(name){
  313. var reg = new RegExp("(^|\\?|&)"+ name +"=([^&]*)(\\s|&|$)", "i");
  314. return reg.test(location.href) ? unescape(RegExp.$2.replace(/\+/g, " ")) : ""
  315. },
  316. clearToken(){
  317. },
  318. getData(){
  319. this.pageNo = 1;
  320. this.getUserInfo();
  321. this.getHomePage();
  322. this.getRegistTask();
  323. this.getSingle();
  324. },
  325. chooiceType(e){
  326. this.city = e.city==''?"筛选城市":(e.city).split('市')[0];
  327. this.type = e.type;
  328. this.typeName = e.typeName==''?'任务类型':e.typeName;
  329. this.pageNo = 1;
  330. this.getHomePage();
  331. },
  332. async getRegistTask(){
  333. if(app.globalData.userId){
  334. let res = await this.$myRequest({
  335. url: "/task/registTask",
  336. method:"GET",
  337. data: {
  338. "userId":app.globalData.userId,
  339. }
  340. })
  341. if(res.data.success){
  342. this.registAmount = res.data.single.amount||null
  343. }else{
  344. this.registAmount = null;
  345. }
  346. }
  347. },
  348. async getHomePage() {
  349. let ret = await this.$myRequest({
  350. url: "/project/homePage",
  351. data: {
  352. "city": this.city=='筛选城市'?'':this.city,
  353. "pageNo": this.pageNo,
  354. "pageSize": this.pageSize,
  355. "taskCategoryId": this.type,
  356. "userId":app.globalData.userId,
  357. }
  358. })
  359. if (ret.data.success) {
  360. let pageModel = ret.data.pageModel;
  361. let houseList = pageModel.resultSet || [];
  362. if(this.pageNo==1){
  363. this.houseList = [];
  364. }
  365. this.houseList = this.houseList.concat(houseList);
  366. this.total = pageModel.total||0;
  367. this.noMore = this.houseList.length==this.total
  368. }
  369. },
  370. async getUserInfo() {
  371. if(app.globalData.userId){
  372. let ret = await this.$myRequest({
  373. url: "/user/userInfo",
  374. data: {},
  375. method: "GET"
  376. });
  377. if (ret.data.success) {
  378. this.userInfo = ret.data.single || null;
  379. this.showGuide = this.userInfo.userId?this.userInfo.ownersUnion?false:true:true;
  380. if (this.showGuide) {
  381. this.$refs.showGuide.show()
  382. }else{
  383. this.$refs.showGuide.hide();
  384. }
  385. }
  386. }
  387. },
  388. // 调准项目详情
  389. goDetailAction(e,type) {
  390. if(type==1){
  391. if(this.userInfo.userId){
  392. uni.navigateTo({
  393. url: '../houseDetail/houseDetail?projectId='+e.projectId
  394. })
  395. }else{
  396. uni.$emit('unLogin')
  397. }
  398. }else{
  399. uni.navigateTo({
  400. url: '../houseDetail/houseDetail?projectId='+e.projectId
  401. })
  402. }
  403. },
  404. // 跳转至效果报表
  405. goReportPage() {
  406. if(this.userInfo.userId){
  407. uni.navigateTo({
  408. url: '../reportPage/reportPage'
  409. })
  410. }else{
  411. uni.$emit('unLogin')
  412. }
  413. },
  414. toShouYiPage() {
  415. if(this.userInfo.userId){
  416. uni.navigateTo({
  417. url: '../revenueRankingPage/revenueRankingPage'
  418. })
  419. }else{
  420. uni.$emit('unLogin')
  421. }
  422. },
  423. async toYezhu(){
  424. let ret = await this.$myRequest({
  425. url: "/user/regist/get",
  426. data: {
  427. "userId": app.globalData.userId,
  428. },
  429. method:"GET"
  430. })
  431. if (ret.data.success) {
  432. let single = ret.data.single||null;//:0待审核1通过2拒绝
  433. if(single){
  434. if(single.approvalStatus==0||single.approvalStatus==1){
  435. uni.navigateTo({
  436. url: '../certificationResultPage/certificationResultPage'
  437. })
  438. }else if(single.approvalStatus==2){
  439. uni.navigateTo({
  440. url: '../ownerCertification/ownerCertification?mobile='+this.userInfo.phone
  441. })
  442. }
  443. }else{
  444. uni.navigateTo({
  445. url: '../ownerCertification/ownerCertification?mobile='+this.userInfo.phone
  446. })
  447. }
  448. }else{
  449. uni.showToast({
  450. icon:"none",
  451. title:ret.data.message
  452. })
  453. }
  454. },
  455. setEnv(){
  456. if (this.clickCount < 0) {
  457. this.clickCount = 8;
  458. uni.navigateTo({
  459. url:"../developSetting/developSetting"
  460. })
  461. } else {
  462. this.clickCount--;
  463. }
  464. },
  465. toShareCard(projectId,type){
  466. if(this.userInfo.userId){
  467. let href = location.origin+location.pathname;
  468. uni.navigateTo({
  469. url:'../shareCardPage/shareCardPage?page='+href+"&projectId="+projectId+"&type="+type
  470. })
  471. }else{
  472. uni.$emit('unLogin')
  473. }
  474. },
  475. toLogin(){
  476. uni.$emit('login')
  477. },
  478. upLoadView(isShow){
  479. this.showGuide = isShow;
  480. },
  481. showMine(){
  482. if(this.userInfo.userId){
  483. this.$refs.mine.show()
  484. }else{
  485. uni.$emit('unLogin')
  486. }
  487. },
  488. showOptions(option){
  489. this.$refs.chooseType.setOptionType(option);
  490. this.$forceUpdate();
  491. this.$refs.chooseType.show()
  492. },
  493. async getSingle(){
  494. let params = {
  495. "projectId": "",
  496. "userId": getApp().globalData.userId
  497. }
  498. let res = await this.$myRequest({
  499. url: '/share_token/generate',
  500. data: params
  501. });
  502. if(res.data.success){
  503. this.shareToken = res.data.single;
  504. this.queryProtocolConfigView();
  505. }
  506. },
  507. async queryProtocolConfigView(){
  508. let res = await this.$myRequest({
  509. url: "/project/queryProtocolConfigView",
  510. data: {},
  511. });
  512. if(res.data.success){
  513. let single = res.data.single;
  514. if(this.isVisiable){
  515. this.config(single.shareName,single.shareRemark,location.origin+location.pathname +"?shareToken="+this.shareToken,single.shareLogoImage)
  516. }
  517. }
  518. }
  519. },
  520. components: {
  521. levelView,
  522. dmMine,
  523. dmHomeChoose,
  524. showGuide,
  525. countTo
  526. }
  527. }
  528. </script>
  529. <style lang="scss" scoped>
  530. .content {
  531. width: 100%;
  532. height: 100%;
  533. position: relative;
  534. .topSection {
  535. position: relative;
  536. z-index: 100;
  537. }
  538. .bg_top {
  539. width: 100%;
  540. height: 470rpx;
  541. position: absolute;
  542. top: 0;
  543. left: 0;
  544. z-index: 100;
  545. }
  546. .liveContent {
  547. width: 100%;
  548. height: 470rpx;
  549. z-index: 100;
  550. display: flex;
  551. flex-direction: column;
  552. align-items: center;
  553. position: relative;
  554. .backDiv {
  555. top: 0;
  556. left: 0;
  557. position: absolute;
  558. width: 100%;
  559. height: 100%;
  560. background-color: rgba($color: #000000, $alpha: 0.1);
  561. z-index: 1;
  562. }
  563. .title {
  564. margin-top: 96rpx;
  565. font-size: 44rpx;
  566. font-weight: 700;
  567. text-align: center;
  568. color: #ffffff;
  569. z-index: 2;
  570. }
  571. .subTitle {
  572. font-size: 28rpx;
  573. font-family: Verdana, Verdana-Regular;
  574. font-weight: 400;
  575. text-align: left;
  576. color: #ffffff;
  577. margin-top: 20rpx;
  578. height: 40rpx;
  579. z-index: 2;
  580. }
  581. .levelDiv {
  582. margin-top: 82rpx;
  583. width: calc(100% - 60rpx);
  584. height: 152rpx;
  585. z-index: 2;
  586. display: flex;
  587. flex-direction: column;
  588. padding: 25rpx 30rpx;
  589. box-sizing: border-box;
  590. .level_top {
  591. width: 100%;
  592. display: flex;
  593. justify-content: space-between;
  594. flex-wrap: nowrap;
  595. align-items: center;
  596. margin-top: 5rpx;
  597. .level_icon {
  598. width: 37rpx;
  599. min-width: 37rpx;
  600. max-width: 37rpx;
  601. height: 35rpx;
  602. margin-right: 13rpx;
  603. margin-top: -5rpx;
  604. }
  605. .level_text {
  606. font-size: 48rpx;
  607. font-family: FontName, FontName-Regular;
  608. font-weight: 500;
  609. text-align: left;
  610. font-style: oblique;
  611. color: #f5c8a8;
  612. line-height: 40rpx;
  613. letter-spacing: 1.92rpx;
  614. margin-right: 8rpx;
  615. margin-top: -7rpx;
  616. }
  617. .level_text_login{
  618. font-size: 40rpx;
  619. font-family: FontName, FontName-Regular;
  620. font-weight: 400;
  621. text-align: left;
  622. color: #f5c8a8;
  623. }
  624. .level_des {
  625. font-size: 22rpx;
  626. font-family: Verdana, Verdana-Regular;
  627. font-weight: 400;
  628. text-align: left;
  629. color: #f5c8a8;
  630. white-space: nowrap;
  631. flex-grow: 1;
  632. }
  633. .level_update {
  634. font-size: 24rpx;
  635. font-family: Verdana, Verdana-Bold;
  636. font-weight: 700;
  637. text-align: right;
  638. color: #f5c8a8;
  639. letter-spacing: 0.96rpx;
  640. display: flex;
  641. align-items: center;
  642. .level_right_icon {
  643. margin-left: 8rpx;
  644. width: 6rpx;
  645. height: 7rpx;
  646. }
  647. }
  648. }
  649. .level_bottom_login{
  650. font-size: 22rpx;
  651. font-family: Verdana, Verdana-Regular;
  652. font-weight: 400;
  653. text-align: left;
  654. color: #f5c8a8;
  655. margin-top: 20rpx;
  656. }
  657. }
  658. }
  659. .content_body {
  660. border-radius: 20rpx 20rpx 0rpx 0rpx;
  661. height: calc(100% - 470rpx);
  662. margin-top: -24rpx;
  663. z-index: 102;
  664. position: relative;
  665. padding: 1rpx;
  666. .content_beginner_guide {
  667. height: 354rpx;
  668. margin-left: 30rpx;
  669. margin-right: 30rpx;
  670. margin-top: 40rpx;
  671. background: #ffffff;
  672. border-radius: 16rpx;
  673. box-sizing: border-box;
  674. .title {
  675. width: 100%;
  676. position: relative;
  677. height: 110rpx;
  678. .title_txt {
  679. font-size: 32rpx;
  680. font-family: FontName, FontName-Regular;
  681. font-weight: 400;
  682. text-align: left;
  683. position: absolute;
  684. left: 50%;
  685. top: 30rpx;
  686. transform: translateX(-50%);
  687. }
  688. .title_right {
  689. position: absolute;
  690. right: 20rpx;
  691. top: 40rpx;
  692. display: flex;
  693. align-items: center;
  694. .title_right_txt {
  695. font-size: 24rpx;
  696. font-family: Verdana, Verdana-Regular;
  697. font-weight: 400;
  698. text-align: right;
  699. color: #b1b1b1;
  700. }
  701. .title_right_cion {
  702. width: 10rpx;
  703. height: 6rpx;
  704. margin-left: 10rpx;
  705. }
  706. }
  707. }
  708. .guide_content {
  709. display: flex;
  710. padding-left: 40rpx;
  711. padding-right: 40rpx;
  712. box-sizing: border-box;
  713. justify-content: space-between;
  714. .item_guide {
  715. display: flex;
  716. flex-direction: column;
  717. align-items: center;
  718. .guide_img {
  719. width: 58rpx;
  720. height: 74rpx;
  721. margin-bottom: 17rpx;
  722. }
  723. .guide_title {
  724. font-size: 26rpx;
  725. font-family: Verdana, Verdana-Bold;
  726. font-weight: 700;
  727. text-align: center;
  728. color: #2c2c2c;
  729. margin-bottom: 8rpx;
  730. }
  731. .guide_desc {
  732. font-size: 22rpx;
  733. font-family: Verdana, Verdana-Regular;
  734. font-weight: 400;
  735. text-align: center;
  736. color: #b1b1b1;
  737. }
  738. }
  739. .icon_guide {
  740. width: 48rpx;
  741. height: 32rpx;
  742. margin-top: 20rpx;
  743. }
  744. }
  745. }
  746. .content_beginner_guide_{
  747. width: 100%;
  748. position: relative;
  749. margin-top: 20rpx;
  750. margin-bottom: 30rpx;
  751. display: flex;
  752. justify-content: center;
  753. align-items: center;
  754. .title_txt {
  755. font-size: 32rpx;
  756. font-family: FontName, FontName-Regular;
  757. font-weight: 400;
  758. text-align: left;
  759. color: #b1b1b1;
  760. }
  761. .title_right_cion {
  762. width: 10rpx;
  763. height: 6rpx;
  764. margin-left: 10rpx;
  765. }
  766. }
  767. .content_tab {
  768. display: flex;
  769. box-sizing: border-box;
  770. height: 180rpx;
  771. background: #ffffff;
  772. border-radius: 16rpx;
  773. margin-top: 14rpx;
  774. padding-left: 40rpx;
  775. padding-right: 40rpx;
  776. margin-left: 30rpx;
  777. margin-right: 30rpx;
  778. justify-content: space-between;
  779. .tab_item {
  780. display: flex;
  781. flex-direction: column;
  782. align-items: center;
  783. justify-content: center;
  784. .icon_tab {
  785. width: 96rpx;
  786. height: 96rpx;
  787. }
  788. .txt_tab {
  789. font-size: 24rpx;
  790. font-family: Verdana, Verdana-Regular;
  791. font-weight: 400;
  792. text-align: center;
  793. color: #262626;
  794. margin-top: 2rpx;
  795. }
  796. }
  797. }
  798. .content_tuiguang {
  799. height: 140rpx;
  800. display: flex;
  801. box-sizing: border-box;
  802. background: #ffffff;
  803. border-radius: 16rpx;
  804. margin-top: 14rpx;
  805. padding-left: 40rpx;
  806. padding-right: 40rpx;
  807. margin-left: 30rpx;
  808. margin-right: 30rpx;
  809. justify-content: space-between;
  810. position: relative;
  811. .content_tuiguang_city {
  812. display: flex;
  813. flex-direction: column;
  814. justify-content: center;
  815. align-items: center;
  816. width: 50%;
  817. .city_num {
  818. font-size: 40rpx;
  819. font-family: DIN Alternate, DIN Alternate-Bold;
  820. font-weight: 700;
  821. text-align: center;
  822. color: #262626;
  823. }
  824. .city_num_desc {
  825. font-size: 24rpx;
  826. font-family: Verdana, Verdana-Regular;
  827. font-weight: 400;
  828. text-align: center;
  829. color: #b1b1b1;
  830. }
  831. .city_list {
  832. display: flex;
  833. justify-content: center;
  834. margin-top: 52rpx;
  835. align-items: center;
  836. .city_name {
  837. font-size: 26rpx;
  838. font-family: Verdana, Verdana-Regular;
  839. font-weight: 400;
  840. text-align: left;
  841. color: #262626;
  842. }
  843. .city_more {
  844. width: 26rpx;
  845. height: 26rpx;
  846. margin-left: 8rpx;
  847. }
  848. }
  849. }
  850. .content_tuiguang_money {
  851. display: flex;
  852. flex-direction: column;
  853. justify-content: center;
  854. align-items: center;
  855. width: 50%;
  856. .money_num {
  857. font-size: 40rpx;
  858. font-family: DIN Alternate, DIN Alternate-Bold;
  859. font-weight: 700;
  860. text-align: center;
  861. color: #fd8f3c;
  862. }
  863. .money_num_des {
  864. font-size: 24rpx;
  865. font-family: Verdana, Verdana-Regular;
  866. font-weight: 400;
  867. text-align: center;
  868. color: #b1b1b1;
  869. }
  870. .money_list {
  871. display: flex;
  872. justify-content: center;
  873. margin-top: 52rpx;
  874. align-items: center;
  875. z-index: 11;
  876. .money_name {
  877. font-size: 26rpx;
  878. font-family: Verdana, Verdana-Regular;
  879. font-weight: 400;
  880. text-align: left;
  881. color: #262626;
  882. }
  883. .money_more {
  884. width: 26rpx;
  885. height: 26rpx;
  886. margin-left: 8rpx;
  887. }
  888. }
  889. .money_bg {
  890. position: absolute;
  891. right: 0rpx;
  892. top: 0;
  893. width: 220rpx;
  894. height: 220rpx;
  895. }
  896. }
  897. }
  898. .content_list {
  899. margin-top: 60rpx;
  900. margin-left: 30rpx;
  901. margin-right: 30rpx;
  902. padding-bottom: 50rpx;
  903. .content_tuiguang_new{
  904. display: flex;
  905. box-sizing: border-box;
  906. background: #ffffff;
  907. border-radius: 16rpx;
  908. margin-top: 20rpx;
  909. padding-left: 40rpx;
  910. padding-right: 40rpx;
  911. justify-content: space-between;
  912. position: relative;
  913. .content_tuiguang_city {
  914. display: flex;
  915. flex-direction: column;
  916. justify-content: center;
  917. align-items: center;
  918. width: 50%;
  919. .city_num {
  920. font-size: 40rpx;
  921. font-family: DIN Alternate, DIN Alternate-Bold;
  922. font-weight: 700;
  923. text-align: center;
  924. color: #262626;
  925. }
  926. .city_num_desc {
  927. font-size: 24rpx;
  928. font-family: Verdana, Verdana-Regular;
  929. font-weight: 400;
  930. text-align: center;
  931. color: #b1b1b1;
  932. }
  933. .city_list {
  934. display: flex;
  935. justify-content: center;
  936. margin-top: 52rpx;
  937. align-items: center;
  938. .city_name {
  939. font-size: 26rpx;
  940. font-family: Verdana, Verdana-Regular;
  941. font-weight: 400;
  942. text-align: left;
  943. color: #262626;
  944. }
  945. .city_more {
  946. width: 26rpx;
  947. height: 26rpx;
  948. margin-left: 8rpx;
  949. }
  950. }
  951. }
  952. .content_tuiguang_money {
  953. display: flex;
  954. flex-direction: column;
  955. justify-content: center;
  956. align-items: center;
  957. width: 50%;
  958. .money_num {
  959. font-size: 40rpx;
  960. font-family: DIN Alternate, DIN Alternate-Bold;
  961. font-weight: 700;
  962. text-align: center;
  963. color: #fd8f3c;
  964. }
  965. .money_num_des {
  966. font-size: 24rpx;
  967. font-family: Verdana, Verdana-Regular;
  968. font-weight: 400;
  969. text-align: center;
  970. color: #b1b1b1;
  971. }
  972. .money_list {
  973. display: flex;
  974. justify-content: center;
  975. margin-top: 52rpx;
  976. align-items: center;
  977. z-index: 11;
  978. .money_name {
  979. font-size: 26rpx;
  980. font-family: Verdana, Verdana-Regular;
  981. font-weight: 400;
  982. text-align: left;
  983. color: #262626;
  984. }
  985. .money_more {
  986. width: 26rpx;
  987. height: 26rpx;
  988. margin-left: 8rpx;
  989. }
  990. }
  991. .money_bg {
  992. position: absolute;
  993. right: 0rpx;
  994. top: 0;
  995. width: 220rpx;
  996. height: 220rpx;
  997. }
  998. }
  999. }
  1000. .content_title {
  1001. display: flex;
  1002. font-size: 32rpx;
  1003. font-family: Verdana, Verdana-Bold;
  1004. font-weight: 700;
  1005. text-align: left;
  1006. color: #262626;
  1007. align-items: center;
  1008. .content_title_poi {
  1009. width: 8rpx;
  1010. height: 12rpx;
  1011. background: #f07423;
  1012. border-radius: 2rpx;
  1013. margin-right: 8rpx;
  1014. }
  1015. }
  1016. .content_hongbao {
  1017. margin-top: 20rpx;
  1018. height: 140rpx;
  1019. background: linear-gradient(108deg, #ffb55f 9%, #f87523 96%);
  1020. border-radius: 16rpx;
  1021. display: flex;
  1022. justify-content: space-between;
  1023. align-items: center;
  1024. .hongbao_left {
  1025. display: flex;
  1026. margin-left: 26rpx;
  1027. .icon_hongbao {
  1028. width: 60rpx;
  1029. height: 80rpx;
  1030. margin-right: 20rpx;
  1031. }
  1032. .hongbao_left_info {
  1033. display: flex;
  1034. flex-direction: column;
  1035. .hongbao_title {
  1036. font-size: 30rpx;
  1037. font-family: Verdana, Verdana-Bold;
  1038. font-weight: 700;
  1039. text-align: left;
  1040. color: #ffffff;
  1041. }
  1042. .hongbao_money {
  1043. font-size: 24rpx;
  1044. font-family: Verdana, Verdana-Regular;
  1045. font-weight: 400;
  1046. text-align: left;
  1047. color: #ffead8;
  1048. }
  1049. }
  1050. }
  1051. .hongbao_right {
  1052. width: 140rpx;
  1053. height: 56rpx;
  1054. line-height: 56rpx;
  1055. background: #ffffff;
  1056. border-radius: 12rpx;
  1057. font-size: 24rpx;
  1058. font-family: Verdana, Verdana-Bold;
  1059. font-weight: 700;
  1060. text-align: center;
  1061. color: #f07423;
  1062. margin-right: 20rpx;
  1063. }
  1064. }
  1065. .list_item {
  1066. width: 100%;
  1067. min-height: 280rpx;
  1068. border-radius: 16rpx;
  1069. display: flex;
  1070. position: relative;
  1071. margin-top: 20rpx;
  1072. .house_img {
  1073. width: 200rpx;
  1074. height: 240rpx;
  1075. min-width: 200rpx;
  1076. z-index: 11;
  1077. margin-top: 20rpx;
  1078. margin-left: 20rpx;
  1079. border-radius: 10rpx;
  1080. }
  1081. .item_content {
  1082. display: flex;
  1083. flex-direction: column;
  1084. margin-left: 50rpx;
  1085. z-index: 11;
  1086. max-width: 51%;
  1087. .house_name {
  1088. width: 100%;
  1089. font-size: 30rpx;
  1090. font-family: Verdana, Verdana-Bold;
  1091. font-weight: 700;
  1092. text-align: left;
  1093. margin-top: 20rpx;
  1094. text-overflow: ellipsis;
  1095. overflow: hidden;
  1096. white-space: nowrap;
  1097. }
  1098. .house_hk {
  1099. width: 100%;
  1100. font-size: 26rpx;
  1101. font-family: Verdana, Verdana-Regular;
  1102. font-weight: 400;
  1103. text-align: left;
  1104. margin-top: 8rpx;
  1105. .house_hk_{
  1106. margin-right: 10rpx;
  1107. }
  1108. }
  1109. .house_address {
  1110. width: 100%;
  1111. display: flex;
  1112. font-size: 24rpx;
  1113. font-family: Verdana, Verdana-Regular;
  1114. font-weight: 400;
  1115. text-align: left;
  1116. color: #b1b1b1;
  1117. margin-top: 16rpx;
  1118. image {
  1119. width: 20rpx;
  1120. height: 28rpx;
  1121. margin-right: 8rpx;
  1122. margin-top: 6rpx;
  1123. }
  1124. text {
  1125. width: 80%;
  1126. text-overflow: -o-ellipsis-lastline;
  1127. overflow: hidden;
  1128. text-overflow: ellipsis;
  1129. display: -webkit-box;
  1130. -webkit-line-clamp: 2;
  1131. line-clamp: 2;
  1132. -webkit-box-orient: vertical;
  1133. }
  1134. }
  1135. .house_num {
  1136. display: flex;
  1137. font-size: 24rpx;
  1138. font-family: Verdana, Verdana-Regular;
  1139. font-weight: 400;
  1140. text-align: left;
  1141. color: #b1b1b1;
  1142. margin-top: 12rpx;
  1143. image {
  1144. width: 32rpx;
  1145. height: 30rpx;
  1146. margin-right: 8rpx;
  1147. }
  1148. text {
  1149. width: 80%;
  1150. text-overflow: -o-ellipsis-lastline;
  1151. overflow: hidden;
  1152. text-overflow: ellipsis;
  1153. display: -webkit-box;
  1154. -webkit-line-clamp: 2;
  1155. line-clamp: 2;
  1156. -webkit-box-orient: vertical;
  1157. }
  1158. }
  1159. .house_desc {
  1160. margin-top: 24rpx;
  1161. font-size: 24rpx;
  1162. font-family: Verdana, Verdana-Regular;
  1163. font-weight: 400;
  1164. text-align: left;
  1165. margin-bottom: 20rpx;
  1166. word-break:break-all;
  1167. }
  1168. }
  1169. .item_share {
  1170. z-index: 11;
  1171. display: flex;
  1172. flex-direction: column;
  1173. width: 70rpx;
  1174. height: 100rpx;
  1175. border-radius: 12rpx;
  1176. position: absolute;
  1177. right: 0;
  1178. top: 50%;
  1179. transform: translateY(-50%);
  1180. justify-content: center;
  1181. align-items: center;
  1182. .icon_share {
  1183. width: 32rpx;
  1184. height: 32rpx;
  1185. margin-bottom: 6rpx;
  1186. }
  1187. .icon_text {
  1188. font-size: 24rpx;
  1189. font-family: Verdana, Verdana-Bold;
  1190. font-weight: 700;
  1191. text-align: center;
  1192. color: #ffffff;
  1193. }
  1194. }
  1195. .item_bg {
  1196. position: absolute;
  1197. left: 0;
  1198. top: 0;
  1199. width: 95%;
  1200. height: 100%;
  1201. background-color: #FFFFFF;
  1202. border-radius: 16rpx;
  1203. z-index: 10;
  1204. }
  1205. }
  1206. }
  1207. }
  1208. .com_noMore_text{
  1209. margin-top: 40rpx;
  1210. font-size: 24rpx;
  1211. font-family: Verdana, Verdana-Regular;
  1212. font-weight: 400;
  1213. text-align: center;
  1214. color: #999999;
  1215. }
  1216. .empty {
  1217. display: flex;
  1218. flex-direction: column;
  1219. align-items: center;
  1220. .emptyImg {
  1221. width: 283rpx;
  1222. height: 227rpx;
  1223. margin-top: 100rpx;
  1224. }
  1225. .text {
  1226. margin-top: -20rpx;
  1227. font-size: 28rpx;
  1228. margin-bottom: 50rpx;
  1229. font-family: PingFang SC, PingFang SC-Medium;
  1230. font-weight: 500;
  1231. text-align: center;
  1232. color: #b1b3ba;
  1233. }
  1234. }
  1235. }
  1236. </style>