homePage.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254
  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" @click="setEnv">新手赚钱帮助 ></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.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. z-index: 2;
  585. }
  586. .levelDiv {
  587. margin-top: 82rpx;
  588. width: calc(100% - 60rpx);
  589. height: 152rpx;
  590. z-index: 2;
  591. display: flex;
  592. flex-direction: column;
  593. padding: 25rpx 30rpx;
  594. box-sizing: border-box;
  595. .level_top {
  596. width: 100%;
  597. display: flex;
  598. justify-content: space-between;
  599. flex-wrap: nowrap;
  600. align-items: center;
  601. margin-top: 5rpx;
  602. .level_icon {
  603. width: 37rpx;
  604. min-width: 37rpx;
  605. max-width: 37rpx;
  606. height: 35rpx;
  607. margin-right: 13rpx;
  608. margin-top: -5rpx;
  609. }
  610. .level_text {
  611. font-size: 48rpx;
  612. font-family: FontName, FontName-Regular;
  613. font-weight: 500;
  614. text-align: left;
  615. font-style: oblique;
  616. color: #f5c8a8;
  617. line-height: 40rpx;
  618. letter-spacing: 1.92rpx;
  619. margin-right: 8rpx;
  620. margin-top: -7rpx;
  621. }
  622. .level_text_login{
  623. font-size: 40rpx;
  624. font-family: FontName, FontName-Regular;
  625. font-weight: 400;
  626. text-align: left;
  627. color: #f5c8a8;
  628. }
  629. .level_des {
  630. font-size: 22rpx;
  631. font-family: Verdana, Verdana-Regular;
  632. font-weight: 400;
  633. text-align: left;
  634. color: #f5c8a8;
  635. white-space: nowrap;
  636. flex-grow: 1;
  637. }
  638. .level_update {
  639. font-size: 24rpx;
  640. font-family: Verdana, Verdana-Bold;
  641. font-weight: 700;
  642. text-align: right;
  643. color: #f5c8a8;
  644. letter-spacing: 0.96rpx;
  645. display: flex;
  646. align-items: center;
  647. .level_right_icon {
  648. margin-left: 8rpx;
  649. width: 6rpx;
  650. height: 7rpx;
  651. }
  652. }
  653. }
  654. .level_bottom_login{
  655. font-size: 22rpx;
  656. font-family: Verdana, Verdana-Regular;
  657. font-weight: 400;
  658. text-align: left;
  659. color: #f5c8a8;
  660. margin-top: 20rpx;
  661. }
  662. }
  663. }
  664. .content_body {
  665. border-radius: 20rpx 20rpx 0rpx 0rpx;
  666. height: calc(100% - 470rpx);
  667. margin-top: -24rpx;
  668. z-index: 102;
  669. position: relative;
  670. padding: 1rpx;
  671. .content_beginner_guide {
  672. height: 354rpx;
  673. margin-left: 30rpx;
  674. margin-right: 30rpx;
  675. margin-top: 40rpx;
  676. background: #ffffff;
  677. border-radius: 16rpx;
  678. box-sizing: border-box;
  679. .title {
  680. width: 100%;
  681. position: relative;
  682. height: 110rpx;
  683. .title_txt {
  684. font-size: 32rpx;
  685. font-family: FontName, FontName-Regular;
  686. font-weight: 400;
  687. text-align: left;
  688. position: absolute;
  689. left: 50%;
  690. top: 30rpx;
  691. transform: translateX(-50%);
  692. }
  693. .title_right {
  694. position: absolute;
  695. right: 20rpx;
  696. top: 40rpx;
  697. display: flex;
  698. align-items: center;
  699. .title_right_txt {
  700. font-size: 24rpx;
  701. font-family: Verdana, Verdana-Regular;
  702. font-weight: 400;
  703. text-align: right;
  704. color: #b1b1b1;
  705. }
  706. .title_right_cion {
  707. width: 10rpx;
  708. height: 6rpx;
  709. margin-left: 10rpx;
  710. }
  711. }
  712. }
  713. .guide_content {
  714. display: flex;
  715. padding-left: 40rpx;
  716. padding-right: 40rpx;
  717. box-sizing: border-box;
  718. justify-content: space-between;
  719. .item_guide {
  720. display: flex;
  721. flex-direction: column;
  722. align-items: center;
  723. .guide_img {
  724. width: 58rpx;
  725. height: 74rpx;
  726. margin-bottom: 17rpx;
  727. }
  728. .guide_title {
  729. font-size: 26rpx;
  730. font-family: Verdana, Verdana-Bold;
  731. font-weight: 700;
  732. text-align: center;
  733. color: #2c2c2c;
  734. margin-bottom: 8rpx;
  735. }
  736. .guide_desc {
  737. font-size: 22rpx;
  738. font-family: Verdana, Verdana-Regular;
  739. font-weight: 400;
  740. text-align: center;
  741. color: #b1b1b1;
  742. }
  743. }
  744. .icon_guide {
  745. width: 48rpx;
  746. height: 32rpx;
  747. margin-top: 20rpx;
  748. }
  749. }
  750. }
  751. .content_beginner_guide_{
  752. width: 100%;
  753. position: relative;
  754. margin-top: 20rpx;
  755. margin-bottom: 30rpx;
  756. display: flex;
  757. justify-content: center;
  758. align-items: center;
  759. .title_txt {
  760. font-size: 32rpx;
  761. font-family: FontName, FontName-Regular;
  762. font-weight: 400;
  763. text-align: left;
  764. color: #b1b1b1;
  765. }
  766. .title_right_cion {
  767. width: 10rpx;
  768. height: 6rpx;
  769. margin-left: 10rpx;
  770. }
  771. }
  772. .content_tab {
  773. display: flex;
  774. box-sizing: border-box;
  775. height: 180rpx;
  776. background: #ffffff;
  777. border-radius: 16rpx;
  778. margin-top: 14rpx;
  779. padding-left: 40rpx;
  780. padding-right: 40rpx;
  781. margin-left: 30rpx;
  782. margin-right: 30rpx;
  783. justify-content: space-between;
  784. .tab_item {
  785. display: flex;
  786. flex-direction: column;
  787. align-items: center;
  788. justify-content: center;
  789. .icon_tab {
  790. width: 96rpx;
  791. height: 96rpx;
  792. }
  793. .txt_tab {
  794. font-size: 24rpx;
  795. font-family: Verdana, Verdana-Regular;
  796. font-weight: 400;
  797. text-align: center;
  798. color: #262626;
  799. margin-top: 2rpx;
  800. }
  801. }
  802. }
  803. .content_tuiguang {
  804. height: 220rpx;
  805. display: flex;
  806. box-sizing: border-box;
  807. background: #ffffff;
  808. border-radius: 16rpx;
  809. margin-top: 14rpx;
  810. padding-left: 40rpx;
  811. padding-right: 40rpx;
  812. margin-left: 30rpx;
  813. margin-right: 30rpx;
  814. justify-content: space-between;
  815. position: relative;
  816. .content_tuiguang_city {
  817. display: flex;
  818. flex-direction: column;
  819. justify-content: center;
  820. align-items: center;
  821. width: 50%;
  822. .city_num {
  823. font-size: 40rpx;
  824. font-family: DIN Alternate, DIN Alternate-Bold;
  825. font-weight: 700;
  826. text-align: center;
  827. color: #262626;
  828. }
  829. .city_num_desc {
  830. font-size: 24rpx;
  831. font-family: Verdana, Verdana-Regular;
  832. font-weight: 400;
  833. text-align: center;
  834. color: #b1b1b1;
  835. }
  836. .city_list {
  837. display: flex;
  838. justify-content: center;
  839. margin-top: 52rpx;
  840. align-items: center;
  841. .city_name {
  842. font-size: 26rpx;
  843. font-family: Verdana, Verdana-Regular;
  844. font-weight: 400;
  845. text-align: left;
  846. color: #262626;
  847. }
  848. .city_more {
  849. width: 26rpx;
  850. height: 26rpx;
  851. margin-left: 8rpx;
  852. }
  853. }
  854. }
  855. .content_tuiguang_money {
  856. display: flex;
  857. flex-direction: column;
  858. justify-content: center;
  859. align-items: center;
  860. width: 50%;
  861. .money_num {
  862. font-size: 40rpx;
  863. font-family: DIN Alternate, DIN Alternate-Bold;
  864. font-weight: 700;
  865. text-align: center;
  866. color: #fd8f3c;
  867. }
  868. .money_num_des {
  869. font-size: 24rpx;
  870. font-family: Verdana, Verdana-Regular;
  871. font-weight: 400;
  872. text-align: center;
  873. color: #b1b1b1;
  874. }
  875. .money_list {
  876. display: flex;
  877. justify-content: center;
  878. margin-top: 52rpx;
  879. align-items: center;
  880. z-index: 11;
  881. .money_name {
  882. font-size: 26rpx;
  883. font-family: Verdana, Verdana-Regular;
  884. font-weight: 400;
  885. text-align: left;
  886. color: #262626;
  887. }
  888. .money_more {
  889. width: 26rpx;
  890. height: 26rpx;
  891. margin-left: 8rpx;
  892. }
  893. }
  894. .money_bg {
  895. position: absolute;
  896. right: 0rpx;
  897. top: 0;
  898. width: 220rpx;
  899. height: 220rpx;
  900. }
  901. }
  902. }
  903. .content_list {
  904. margin-top: 60rpx;
  905. margin-left: 30rpx;
  906. margin-right: 30rpx;
  907. padding-bottom: 50rpx;
  908. .content_title {
  909. display: flex;
  910. font-size: 32rpx;
  911. font-family: Verdana, Verdana-Bold;
  912. font-weight: 700;
  913. text-align: left;
  914. color: #262626;
  915. align-items: center;
  916. .content_title_poi {
  917. width: 8rpx;
  918. height: 12rpx;
  919. background: #f07423;
  920. border-radius: 2rpx;
  921. margin-right: 8rpx;
  922. }
  923. }
  924. .content_hongbao {
  925. margin-top: 20rpx;
  926. height: 140rpx;
  927. background: linear-gradient(108deg, #ffb55f 9%, #f87523 96%);
  928. border-radius: 16rpx;
  929. display: flex;
  930. justify-content: space-between;
  931. align-items: center;
  932. .hongbao_left {
  933. display: flex;
  934. margin-left: 26rpx;
  935. .icon_hongbao {
  936. width: 60rpx;
  937. height: 80rpx;
  938. margin-right: 20rpx;
  939. }
  940. .hongbao_left_info {
  941. display: flex;
  942. flex-direction: column;
  943. .hongbao_title {
  944. font-size: 30rpx;
  945. font-family: Verdana, Verdana-Bold;
  946. font-weight: 700;
  947. text-align: left;
  948. color: #ffffff;
  949. }
  950. .hongbao_money {
  951. font-size: 24rpx;
  952. font-family: Verdana, Verdana-Regular;
  953. font-weight: 400;
  954. text-align: left;
  955. color: #ffead8;
  956. }
  957. }
  958. }
  959. .hongbao_right {
  960. width: 140rpx;
  961. height: 56rpx;
  962. line-height: 56rpx;
  963. background: #ffffff;
  964. border-radius: 12rpx;
  965. font-size: 24rpx;
  966. font-family: Verdana, Verdana-Bold;
  967. font-weight: 700;
  968. text-align: center;
  969. color: #f07423;
  970. margin-right: 20rpx;
  971. }
  972. }
  973. .list_item {
  974. width: 100%;
  975. min-height: 280rpx;
  976. border-radius: 16rpx;
  977. display: flex;
  978. position: relative;
  979. margin-top: 20rpx;
  980. .house_img {
  981. width: 200rpx;
  982. height: 240rpx;
  983. min-width: 200rpx;
  984. z-index: 11;
  985. margin-top: 20rpx;
  986. margin-left: 20rpx;
  987. border-radius: 10rpx;
  988. }
  989. .item_content {
  990. display: flex;
  991. flex-direction: column;
  992. margin-left: 50rpx;
  993. z-index: 11;
  994. max-width: 51%;
  995. .house_name {
  996. width: 100%;
  997. font-size: 30rpx;
  998. font-family: Verdana, Verdana-Bold;
  999. font-weight: 700;
  1000. text-align: left;
  1001. margin-top: 20rpx;
  1002. text-overflow: ellipsis;
  1003. overflow: hidden;
  1004. white-space: nowrap;
  1005. }
  1006. .house_hk {
  1007. width: 100%;
  1008. font-size: 26rpx;
  1009. font-family: Verdana, Verdana-Regular;
  1010. font-weight: 400;
  1011. text-align: left;
  1012. margin-top: 8rpx;
  1013. .house_hk_{
  1014. margin-right: 10rpx;
  1015. }
  1016. }
  1017. .house_address {
  1018. width: 100%;
  1019. display: flex;
  1020. font-size: 24rpx;
  1021. font-family: Verdana, Verdana-Regular;
  1022. font-weight: 400;
  1023. text-align: left;
  1024. color: #b1b1b1;
  1025. margin-top: 16rpx;
  1026. image {
  1027. width: 20rpx;
  1028. height: 28rpx;
  1029. margin-right: 8rpx;
  1030. margin-top: 6rpx;
  1031. }
  1032. text {
  1033. width: 80%;
  1034. text-overflow: -o-ellipsis-lastline;
  1035. overflow: hidden;
  1036. text-overflow: ellipsis;
  1037. display: -webkit-box;
  1038. -webkit-line-clamp: 2;
  1039. line-clamp: 2;
  1040. -webkit-box-orient: vertical;
  1041. }
  1042. }
  1043. .house_num {
  1044. display: flex;
  1045. font-size: 24rpx;
  1046. font-family: Verdana, Verdana-Regular;
  1047. font-weight: 400;
  1048. text-align: left;
  1049. color: #b1b1b1;
  1050. margin-top: 12rpx;
  1051. image {
  1052. width: 24rpx;
  1053. height: 26rpx;
  1054. margin-right: 8rpx;
  1055. margin-top: 6rpx;
  1056. }
  1057. text {
  1058. width: 80%;
  1059. text-overflow: -o-ellipsis-lastline;
  1060. overflow: hidden;
  1061. text-overflow: ellipsis;
  1062. display: -webkit-box;
  1063. -webkit-line-clamp: 2;
  1064. line-clamp: 2;
  1065. -webkit-box-orient: vertical;
  1066. }
  1067. }
  1068. .house_desc {
  1069. margin-top: 24rpx;
  1070. font-size: 24rpx;
  1071. font-family: Verdana, Verdana-Regular;
  1072. font-weight: 400;
  1073. text-align: left;
  1074. margin-bottom: 20rpx;
  1075. word-break:break-all;
  1076. }
  1077. }
  1078. .item_share {
  1079. z-index: 11;
  1080. display: flex;
  1081. flex-direction: column;
  1082. width: 70rpx;
  1083. height: 100rpx;
  1084. border-radius: 12rpx;
  1085. position: absolute;
  1086. right: 0;
  1087. top: 50%;
  1088. transform: translateY(-50%);
  1089. justify-content: center;
  1090. align-items: center;
  1091. .icon_share {
  1092. width: 32rpx;
  1093. height: 32rpx;
  1094. margin-bottom: 6rpx;
  1095. }
  1096. .icon_text {
  1097. font-size: 24rpx;
  1098. font-family: Verdana, Verdana-Bold;
  1099. font-weight: 700;
  1100. text-align: center;
  1101. color: #ffffff;
  1102. }
  1103. }
  1104. .item_bg {
  1105. position: absolute;
  1106. left: 0;
  1107. top: 0;
  1108. width: 95%;
  1109. height: 100%;
  1110. background-color: #FFFFFF;
  1111. border-radius: 16rpx;
  1112. z-index: 10;
  1113. }
  1114. }
  1115. }
  1116. }
  1117. .com_noMore_text{
  1118. margin-top: 40rpx;
  1119. font-size: 24rpx;
  1120. font-family: Verdana, Verdana-Regular;
  1121. font-weight: 400;
  1122. text-align: center;
  1123. color: #999999;
  1124. }
  1125. .empty {
  1126. display: flex;
  1127. flex-direction: column;
  1128. align-items: center;
  1129. .emptyImg {
  1130. width: 283rpx;
  1131. height: 227rpx;
  1132. margin-top: 100rpx;
  1133. }
  1134. .text {
  1135. margin-top: -20rpx;
  1136. font-size: 28rpx;
  1137. margin-bottom: 50rpx;
  1138. font-family: PingFang SC, PingFang SC-Medium;
  1139. font-weight: 500;
  1140. text-align: center;
  1141. color: #b1b3ba;
  1142. }
  1143. }
  1144. }
  1145. </style>