homePage.vue 34 KB

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