homePage.vue 32 KB

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