index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <template>
  2. <view class="page u-skeleton">
  3. <wm-watermark :text="userInfo.phone" :num="50"></wm-watermark>
  4. <!-- 经纪人信息卡片 -->
  5. <view class="userinfo-wrap u-skeleton-fillet box-shadow">
  6. <!-- 个人信息 -->
  7. <view class="userinfo">
  8. <view class="user">
  9. <view class="avatar-wrap" @click="pageTo('/pages/user/setting/avatar')">
  10. <u-avatar
  11. class="u-skeleton-circle"
  12. :src="userInfo.avatar"
  13. size="128"
  14. mode="circle"
  15. ></u-avatar>
  16. <!-- :show-level="true" -->
  17. <view class="avatar-bg box-shadow"></view>
  18. </view>
  19. <view class="info">
  20. <view class="nickname u-skeleton-rect">
  21. {{userInfo.user_id ? userInfo.nickname ? userInfo.nickname : '未设置用户名' : '未登录'}}
  22. </view>
  23. </view>
  24. <image v-if="userInfo && userInfo.manage_type == 2" src="../../static/bg_scan.png" class="scoped-scan-img" @click="scanHandle"></image>
  25. </view>
  26. <u-button
  27. v-if="!userInfo.user_id"
  28. class="u-skeleton-fillet"
  29. size="mini"
  30. type="primary"
  31. @click="pageTo('/pages/user/login/login')"
  32. :customStyle="{ margin: 0 }"
  33. >
  34. 立即登录
  35. </u-button>
  36. <view
  37. v-if="userInfo.user_id" style="padding: 20px" @click="pageTo('/pages/user/setting/setting')">
  38. <u-icon name="/static/icon/setting.png" size="24"></u-icon>
  39. </view>
  40. </view>
  41. <u-line length="650rpx" margin="30rpx 0 0"></u-line>
  42. <!-- 数据信息 -->
  43. <view class="datainfo">
  44. <view class="data-item" @click="pageTo('/pages/agent/recommend/list?filterStepStatus=1')">
  45. <view class="data u-skeleton-fillet">{{reportStepCountObj['1'] || 0}}</view>
  46. <view class="item u-skeleton-fillet">未到访</view>
  47. </view>
  48. <view class="data-item" @click="pageTo('/pages/agent/recommend/list?filterStepStatus=2')">
  49. <view class="data u-skeleton-fillet">{{reportStepCountObj['2'] || 0}}</view>
  50. <view class="item u-skeleton-fillet">已到访</view>
  51. </view>
  52. <view class="data-item" @click="pageTo('/pages/agent/recommend/list?filterStepStatus=3')">
  53. <view class="data u-skeleton-fillet">{{reportStepCountObj['3'] || 0}}</view>
  54. <view class="item u-skeleton-fillet">已认购</view>
  55. </view>
  56. <view class="data-item" @click="pageTo('/pages/agent/recommend/list?filterStepStatus=4')">
  57. <view class="data u-skeleton-fillet">
  58. {{reportStepCountObj['4'] || 0}}
  59. </view>
  60. <view class="item u-skeleton-fillet">已签约</view>
  61. </view>
  62. <view class="data-item" @click="pageTo('/pages/agent/recommend/list?filterStepStatus=5')">
  63. <view class="data u-skeleton-fillet">{{reportStepCountObj['5'] || 0}}</view>
  64. <view class="item u-skeleton-fillet">已结佣</view>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 功能卡片 -->
  69. <view class="function-card-wrap">
  70. <view class="col-card-wrap">
  71. <view class="function-card box-shadow u-skeleton-fillet" @click="pageTo('/pages/agent/recommend/create')">
  72. <view class="title-wrap">
  73. <view class="main-title">
  74. <u-icon class="u-m-r-5" name="/static/icon/thump-up.png" size="32"></u-icon>
  75. ️我要推荐
  76. </view>
  77. <view class="sub-title u-line-1">Recommend</view>
  78. </view>
  79. <u-image src="/static/icon/wenli1.png" mode="heightFix" height="144rpx" class="icon"></u-image>
  80. </view>
  81. <view class="function-card box-shadow u-skeleton-fillet" @click="pageTo('/pages/agent/recommend/list')">
  82. <view class="title-wrap">
  83. <view class="main-title">
  84. <u-icon class="u-m-r-5" name="/static/icon/money.png" size="32"></u-icon>
  85. 报备管理
  86. </view>
  87. <view class="sub-title u-line-1">Filing</view>
  88. </view>
  89. <u-image src="/static/icon/wenli2.png" mode="heightFix" height="144rpx" class="icon"></u-image>
  90. </view>
  91. </view>
  92. <view class="col-card-wrap">
  93. <view class="function-card box-shadow u-skeleton-fillet" @click="pageTo('/pages/cust/list')">
  94. <view class="title-wrap">
  95. <view class="main-title">
  96. <u-icon class="u-m-r-5" name="/static/icon/customer.png" size="32"></u-icon>
  97. 客户管理
  98. </view>
  99. <view class="sub-title u-line-1">Customer</view>
  100. </view>
  101. <u-image src="/static/icon/wenli3.png" mode="heightFix" height="144rpx" class="icon"></u-image>
  102. </view>
  103. <view class="function-card box-shadow u-skeleton-fillet" @click="commonRulesShow = true">
  104. <view class="title-wrap">
  105. <view class="main-title">
  106. <u-icon class="u-m-r-5" name="/static/icon/book.png" size="32"></u-icon>
  107. 佣金政策
  108. </view>
  109. <view class="sub-title u-line-1">Rules</view>
  110. </view>
  111. <u-image src="/static/icon/wenli4.png" mode="heightFix" height="144rpx" class="icon"></u-image>
  112. </view>
  113. </view>
  114. </view>
  115. <!-- 项目卡片 -->
  116. <view class="card-list-wrap box-shadow u-m-b-20">
  117. <view class="header-title-warp">
  118. <view class="title u-skeleton-rect">
  119. <u-icon class="u-m-r-5" name="/static/icon/fire.png" size="36"></u-icon>
  120. 高佣热销
  121. </view>
  122. <!-- <view v-show="propertyList.length > 5" class="more u-skeleton-rect">
  123. 更多
  124. <u-icon name="arrow-right"></u-icon>
  125. </view> -->
  126. </view>
  127. <view v-if="propertyList.length == 0" class="u-m-t-40 u-m-b-40"><u-empty mode="list" text="暂无在售房源"></u-empty></view>
  128. <view :class="'property-row-wrap'">
  129. <view class="property-body u-skeleton-fillet box-shadow" v-for="(item, index) in propertyList" :key="index" @click="showDetail(index, item)">
  130. <view class="image-wrap">
  131. <text class="tag u-skeleton-rect">{{ item.estate_tag }}</text>
  132. <image class="u-skeleton-rect" :src="item.pri_image" mode="aspectFill"></image>
  133. </view>
  134. <view class="property-info-wrap">
  135. <view class="title u-skeleton-rect">{{ item.estate_name }}
  136. <text class="s">{{areaTypeObj[item.area_type]}}</text>
  137. </view>
  138. <view class="commission u-skeleton-rect" v-if="userInfo.auth_state == 1">预计佣金:{{ item.brokerage }}</view>
  139. </view>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 平台佣金政策弹窗 -->
  144. <u-popup v-model="commonRulesShow" mode="center" width="80%" height="800rpx" border-radius="20" closeable>
  145. <view class="bwin-popup">
  146. <view class="popup-header">平台佣金政策</view>
  147. <view class="popup-body">需上传身份证、银行卡进行实名认证,认证通过后方可报备客户和获得佣金,各楼盘相关带看规则和佣金政策点击下方对应楼盘<!-- <u-parse :html="xxxxxxxxxx"></u-parse> --></view>
  148. </view>
  149. </u-popup>
  150. <!-- 项目佣金政策信息弹窗 -->
  151. <u-popup v-model="propertyPopupShow" mode="center" width="80%" height="800rpx" border-radius="20" closeable>
  152. <view class="bwin-popup">
  153. <view class="popup-header">{{ propertyList[currentPropertyIndex].estate_name + '介绍' }}</view>
  154. <view class="popup-body">
  155. <u-parse :html="propertyList[currentPropertyIndex].introduce"></u-parse>
  156. <u-divider marginTop="20" marginBottom="20">详情</u-divider>
  157. <view class="property-info">
  158. <view class="item">
  159. <view class="item-title">基本情况:</view>
  160. <view class="item-info" style="text-decoration: underline;color: #2080f0;" @click="oneImgHandle(propertyList[currentPropertyIndex])">点击查看楼盘一页纸</view>
  161. </view>
  162. <view class="item" v-if="userInfo.auth_state == 1">
  163. <view class="item-title">预计佣金:</view>
  164. <view class="item-info" style="color: red;font-weight: bold;">{{ propertyList[currentPropertyIndex].brokerage }}</view>
  165. </view>
  166. <view class="item">
  167. <view class="item-title">营销中心:</view>
  168. <view class="item-info">{{ propertyList[currentPropertyIndex].address }}</view>
  169. </view>
  170. <view class="item">
  171. <view class="item-title">销售热线:</view>
  172. <view class="item-info">{{ propertyList[currentPropertyIndex].marketing_phone || '00000000' }}</view>
  173. </view>
  174. <view class="item">
  175. <view class="item-title">带看需收集:</view>
  176. <view class="item-info">{{ propertyList[currentPropertyIndex].report_visit }}</view>
  177. </view>
  178. <view class="item">
  179. <view class="item-title">报备保护期:</view>
  180. <view class="item-info">{{ propertyList[currentPropertyIndex].report_lock + '天' }}</view>
  181. </view>
  182. <view class="item">
  183. <view class="item-title">带看保护期:</view>
  184. <view class="item-info">{{ propertyList[currentPropertyIndex].lead_lock + '天' }}</view>
  185. </view>
  186. </view>
  187. <u-divider marginTop="20" marginBottom="20">更多</u-divider>
  188. <view class="scoped-estate-desc">
  189. <!-- <view v-html="curHtml"></view> -->
  190. <rich-text :nodes="curHtml | filtersRichText"></rich-text>
  191. </view>
  192. </view>
  193. </view>
  194. </u-popup>
  195. <!-- 骨架屏 -->
  196. <u-skeleton :loading="skeletonLoading" animation></u-skeleton>
  197. <backTop :src="backTop.src" :scrollTop="backTop.scrollTop"></backTop>
  198. </view>
  199. </template>
  200. <script>
  201. var that;
  202. import { arrToObj } from '@/utils'
  203. import backTop from '@/components/back-top/back-top.vue'
  204. import wmWatermark from '@/components/wm-watermark/wm-watermark.vue'
  205. export default {
  206. components: {
  207. backTop,
  208. wmWatermark
  209. },
  210. filters: {
  211. filtersRichText(html) { //控制小程序中图片大小
  212. let newContent = html.replace(/<img[^>]*>/gi, (match, capture)=>{
  213. match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');
  214. match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
  215. match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
  216. return match;
  217. });
  218. newContent = newContent.replace(/style="[^"]+"/gi, (match, capture)=>{
  219. match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi, 'max-width:100%;');
  220. return match;
  221. });
  222. newContent = newContent.replace(/<br[^>]*\/>/gi, '');
  223. newContent = newContent.replace(/\<img/gi,
  224. '<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"');
  225. return newContent;
  226. }
  227. },
  228. data() {
  229. // 页面数据变量
  230. return {
  231. curHtml: '',
  232. backTop: {
  233. src: '../../static/back-top/top.png',
  234. scrollTop: 0
  235. },
  236. userInfo: {},
  237. skeletonLoading: true,
  238. agentTypeList: ['', '自由经纪人', '渠道经纪人', '老业主'],
  239. propertyList: [
  240. {
  241. estate_name: '在售项目1',
  242. pri_image: 'https://zdcdn.2bwin.cn/uploads/20220501/af6eb9c2a5d462be10a15c2302e5e6b5.jpg',
  243. sale_tag: '刚需好盘',
  244. rulesInfo: {
  245. des: '内容加载中1....',
  246. des_content: '内容加载中2....'
  247. }
  248. },
  249. ],
  250. commonRulesShow: false,
  251. propertyPopupShow: false,
  252. currentPropertyIndex: 0,
  253. // init请求返回的数据
  254. data: {},
  255. // 表单请求数据
  256. form1: {},
  257. scrollTop: 0,
  258. reportStepCountObj: {},
  259. areaTypeObj: {},
  260. };
  261. },
  262. onPageScroll(e) {
  263. this.scrollTop = e.scrollTop;
  264. this.backTop.scrollTop = e.scrollTop;
  265. },
  266. // 监听 - 页面每次【加载时】执行(如:前进)
  267. onLoad(options = {}) {
  268. // that = this;
  269. // this.options = options;
  270. // this.init(options);
  271. },
  272. // 监听 - 页面【首次渲染完成时】执行。注意如果渲染速度快,会在页面进入动画完成前触发
  273. onReady() {
  274. },
  275. // 监听 - 页面每次【显示时】执行(如:前进和返回) (页面每次出现在屏幕上都触发,包括从下级页面点返回露出当前页面)
  276. onShow() {
  277. this.init()
  278. const dictObj = uni.getStorageSync('MD_dict')
  279. this.areaTypeObj = arrToObj(dictObj.area_type)
  280. },
  281. // 监听 - 页面每次【隐藏时】执行(如:返回)
  282. onHide() {},
  283. // 监听 - 页面触底部
  284. onReachBottom() {},
  285. // 监听 - 窗口尺寸变化(仅限:App、微信小程序)
  286. onResize() {},
  287. // 监听 - 点击右上角转发时
  288. onShareAppMessage(options) {},
  289. // 监听 - 页面创建时
  290. created() {},
  291. // 函数
  292. methods: {
  293. oneImgHandle (item) {
  294. uni.api.estate.apiestateinfodetail({id: item.id}).then(res => {
  295. const curImgUrl = res.info_img || ''
  296. if (!curImgUrl) {
  297. uni.$msg('该楼盘暂未设置一页纸楼盘简介~')
  298. return
  299. }
  300. uni.previewImage({
  301. current: curImgUrl,
  302. urls: [curImgUrl],
  303. })
  304. })
  305. },
  306. scanHandle () {
  307. uni.scanCode({
  308. success: function (res) {
  309. uni.navigateTo({
  310. url: `/pages/agent/recommend/detail2?id=${res.result}`
  311. })
  312. }
  313. })
  314. },
  315. // 页面数据初始化函数
  316. init(options) {
  317. const userInfo2 = uni.getStorageSync('MD_userInfo2')
  318. this.userInfo = userInfo2 || {}
  319. uni.api.estate.apireportcount().then(res => {
  320. const reportStepCount = res.report_step_count || []
  321. let reportStepCountObj = {}
  322. reportStepCount.forEach(item => {
  323. reportStepCountObj[item.report_step] = item.total || 0
  324. })
  325. this.reportStepCountObj = {...reportStepCountObj}
  326. })
  327. uni.api.estate.apiestatelist({page_size: 100}).then(res => {
  328. const list = res.list || []
  329. // let oneObj = list[0] || {}
  330. this.propertyList = [...list]
  331. // this.propertyList = [list[0], list[1], list[2]]
  332. })
  333. // let currentTime = Date.parse(new Date()) / 1000; // 秒级
  334. // // 初始化平台数据
  335. // let systemConfig = vk.vuex.get('$app.systemConfig');
  336. // if (!systemConfig.use_skeleton) {
  337. this.skeletonLoading = false;
  338. // }
  339. // if (vk.pubfn.isNull(systemConfig._id)) {
  340. // // 不存在则直接初始化
  341. // vk.callFunction({
  342. // url: 'client/agent/pub/getConfigInfo',
  343. // needAlert: false
  344. // }).then(res => {
  345. // vk.vuex.set('$app.systemConfig', res.config);
  346. // vk.vuex.set('$app.systemConfig.lastGetTime', currentTime);
  347. // });
  348. // } else {
  349. // let mathTime = ((currentTime - systemConfig.lastGetTime) / 3600).toFixed(2);
  350. // if (mathTime > systemConfig.cache_time) {
  351. // vk.callFunction({
  352. // url: 'client/agent/pub/getConfigInfo',
  353. // needAlert: false
  354. // }).then(res => {
  355. // vk.vuex.set('$app.systemConfig', res.config);
  356. // vk.vuex.set('$app.systemConfig.lastGetTime', currentTime);
  357. // });
  358. // }
  359. // }
  360. // // 请求经纪人个人数据
  361. // let lastInitAgentDataTime = vk.vuex.get('$user.history.lastInitAgentDataTime');
  362. // if (currentTime - lastInitAgentDataTime >= 60 && vk.checkToken()) {
  363. // // 个人数据1分钟主动更新1次
  364. // vk.callFunction({
  365. // url: 'client/agent/kh/getAgentData',
  366. // data: {
  367. // agentId: vk.vuex.get('$user.agentInfo._id')
  368. // },
  369. // needAlert: false
  370. // }).then(res => {
  371. // vk.vuex.set('$user.dataInfo.recommendNum', res.data.recommendNum);
  372. // vk.vuex.set('$user.dataInfo.visitedNum', res.data.visitedNum);
  373. // vk.vuex.set('$user.dataInfo.buyNum', res.data.buyNum);
  374. // vk.vuex.set('$user.dataInfo.totalCommission', res.data.totalCommission);
  375. // vk.vuex.set('$user.history.lastInitAgentDataTime', currentTime);
  376. // });
  377. // }
  378. // // 请求未读消息数量
  379. // // 最快1分钟请求一次
  380. // let lastGetUnreadMsgTime = vk.vuex.get('$user.history.lastGetUnreadMsgTime');
  381. // if (currentTime - lastGetUnreadMsgTime > 60 && vk.checkToken()) {
  382. // vk.callFunction({
  383. // url: 'client/agent/kh/getUnreadMsgNum'
  384. // }).then(res => {
  385. // vk.vuex.set('$user.dataInfo.unreadMsgNum', res.num);
  386. // vk.vuex.set('$user.history.lastGetUnreadMsgTime', currentTime);
  387. // });
  388. // }
  389. // // 请求在售项目列表
  390. // vk.callFunction({
  391. // url: 'client/agent/pub/getPropertyList',
  392. // needAlert: false
  393. // }).then(res => {
  394. // that.propertyList = res.list;
  395. // // 存储到vuex,方便其他页面调用
  396. // if (res.list.length < 5) {
  397. // // 若大于等于5则可能有更多项目,则不缓存
  398. // let list = res.list.map(function(val, index) {
  399. // return { value: val._id, label: val.name };
  400. // });
  401. // vk.vuex.set('$app.propertyList', list);
  402. // }
  403. // // 拼接佣金政策
  404. // // 非经纪人身份时显示佣金政策简介
  405. // // 否则显示最高可获得的佣金额度
  406. // let i;
  407. // for (i = 0; i < res.list.length; i++) {
  408. // let agentType = vk.vuex.get('$user.agentInfo.type');
  409. // if (vk.pubfn.isNull(agentType)) {
  410. // // 还未注册为经纪人
  411. // that.propertyList[i].commissionText = that.propertyList[i].rulesInfo.des;
  412. // } else {
  413. // let commissionInfo = that.propertyList[i].rulesInfo.commission_info;
  414. // let item = vk.pubfn.getListItem(commissionInfo, 'type', agentType);
  415. // that.propertyList[i].commissionText = '您最高可获得佣金' + item.amount + '元';
  416. // }
  417. // }
  418. // that.skeletonLoading = false;
  419. // });
  420. },
  421. pageTo(path) {
  422. if (path === 'dev') {
  423. uni.$msg('开发中~')
  424. return
  425. }
  426. uni.navigateTo({
  427. url: path
  428. })
  429. },
  430. // 弹窗展示项目佣金详情
  431. showDetail(index, item) {
  432. this.currentPropertyIndex = index;
  433. this.propertyPopupShow = true;
  434. uni.api.estate.apiestatecontentdetail({id: item.id}).then(res => {
  435. this.curHtml = res.content || ''
  436. })
  437. }
  438. },
  439. // 监听器
  440. watch: {},
  441. // 计算属性
  442. computed: {}
  443. };
  444. </script>
  445. <style lang="scss" scoped>
  446. .page {
  447. min-height: calc(100vh - 44px);
  448. }
  449. .userinfo-wrap {
  450. display: flex;
  451. flex-direction: column;
  452. align-items: flex-start;
  453. background-color: #fff;
  454. padding: 32rpx;
  455. width: 100%;
  456. margin-bottom: 20rpx;
  457. border-radius: 10rpx;
  458. position: relative;
  459. .userinfo {
  460. width: 100%;
  461. display: flex;
  462. align-items: center;
  463. justify-content: space-between;
  464. .user {
  465. display: flex;
  466. align-items: center;
  467. .avatar-wrap {
  468. position: relative;
  469. .avatar-bg {
  470. position: absolute;
  471. left: 0;
  472. top: 0;
  473. border-radius: 50%;
  474. width: 128rpx;
  475. height: 128rpx;
  476. }
  477. }
  478. .info {
  479. margin-left: 32rpx;
  480. .nickname {
  481. font-size: $u-p;
  482. font-weight: bold;
  483. color: $u-main-color;
  484. margin-bottom: 5rpx;
  485. }
  486. .mobile {
  487. font-size: $u-p1;
  488. color: $u-tips-color;
  489. }
  490. }
  491. }
  492. }
  493. .datainfo {
  494. width: 100%;
  495. display: flex;
  496. align-items: flex-end;
  497. justify-content: space-between;
  498. padding: 20rpx 0 0;
  499. .data-item {
  500. display: flex;
  501. flex-direction: column;
  502. align-items: center;
  503. .data {
  504. font-weight: bold;
  505. font-size: $u-h2;
  506. line-height: $u-h2;
  507. margin-bottom: 10rpx;
  508. }
  509. .item {
  510. font-size: $u-p2;
  511. color: $u-content-color;
  512. }
  513. }
  514. }
  515. }
  516. .function-card-wrap {
  517. .col-card-wrap {
  518. display: flex;
  519. align-items: center;
  520. justify-content: space-between;
  521. }
  522. .function-card {
  523. background-color: #fff;
  524. padding: 32rpx 20rpx;
  525. width: 345rpx;
  526. margin-bottom: 20rpx;
  527. border-radius: 10rpx;
  528. position: relative;
  529. overflow: hidden;
  530. .title-wrap {
  531. text-align: left;
  532. .main-title {
  533. display: flex;
  534. align-items: center;
  535. font-size: $u-p;
  536. font-weight: bold;
  537. }
  538. .sub-title {
  539. font-size: $u-p2;
  540. color: $u-content-color;
  541. }
  542. }
  543. .icon {
  544. text-align: right;
  545. position: absolute;
  546. top: 0;
  547. right: 0;
  548. }
  549. }
  550. }
  551. // 项目列表
  552. .card-list-wrap {
  553. background-color: #fff;
  554. // margin: 0rpx -20rpx 20rpx;
  555. padding: 20rpx 20rpx 0 20rpx;
  556. display: flex;
  557. flex-direction: column;
  558. border-radius: 10rpx;
  559. .header-title-warp {
  560. width: 100%;
  561. margin-bottom: 20rpx;
  562. display: flex;
  563. align-items: center;
  564. justify-content: space-between;
  565. .title {
  566. display: flex;
  567. align-items: center;
  568. color: $u-main-color;
  569. font-weight: bold;
  570. font-size: $u-p;
  571. }
  572. .more {
  573. font-size: $u-sub;
  574. color: $u-tips-color;
  575. }
  576. }
  577. // 行版
  578. .property-row-wrap {
  579. .property-body {
  580. width: 100%;
  581. border-radius: 10rpx;
  582. margin-bottom: 20rpx;
  583. // background-color: #fff;
  584. .image-wrap {
  585. position: relative;
  586. image {
  587. width: 100%;
  588. height: 300rpx;
  589. display: block;
  590. border-top-left-radius: 10rpx;
  591. border-top-right-radius: 10rpx;
  592. }
  593. .tag {
  594. color: #ffffff;
  595. background-color: $u-theme-color;
  596. font-size: $u-p2;
  597. position: absolute;
  598. z-index: 1;
  599. left: 0;
  600. padding: 8rpx 20rpx;
  601. border-top-left-radius: 10rpx;
  602. border-bottom-right-radius: 10rpx;
  603. }
  604. }
  605. .property-info-wrap {
  606. padding: 20rpx;
  607. .title {
  608. font-weight: bold;
  609. color: $u-main-color;
  610. font-size: $u-p;
  611. .s {
  612. font-weight: normal;
  613. padding-left: 10rpx;
  614. }
  615. }
  616. .commission {
  617. margin-top: 10rpx;
  618. font-size: $u-p2;
  619. color: $u-content-color;
  620. }
  621. }
  622. }
  623. }
  624. // 两列版
  625. .property-col-wrap {
  626. display: flex;
  627. flex-wrap: wrap;
  628. justify-content: space-between;
  629. align-items: flex-start;
  630. .property-body {
  631. width: 325rpx;
  632. border-radius: 10rpx;
  633. margin-bottom: 20rpx;
  634. // background-color: #fff;
  635. .image-wrap {
  636. position: relative;
  637. image {
  638. width: 100%;
  639. height: 300rpx;
  640. display: block;
  641. border-top-left-radius: 10rpx;
  642. border-top-right-radius: 10rpx;
  643. }
  644. .tag {
  645. color: #ffffff;
  646. background-color: $u-theme-color;
  647. font-size: $u-sub;
  648. position: absolute;
  649. z-index: 1;
  650. left: 0;
  651. padding: 8rpx 20rpx;
  652. border-top-left-radius: 10rpx;
  653. border-bottom-right-radius: 10rpx;
  654. }
  655. }
  656. .property-info-wrap {
  657. padding: 20rpx;
  658. .title {
  659. font-weight: bold;
  660. color: $u-main-color;
  661. font-size: $u-p2;
  662. }
  663. .commission {
  664. margin-top: 10rpx;
  665. font-size: $u-sub;
  666. color: $u-content-color;
  667. }
  668. }
  669. }
  670. }
  671. }
  672. .popup-body {
  673. .property-info {
  674. font-size: $u-p1;
  675. .item {
  676. display: flex;
  677. margin-bottom: 10rpx;
  678. text-align: left;
  679. .item-title {
  680. font-weight: bold;
  681. width: 170rpx;
  682. }
  683. .item-info {
  684. flex: 1;
  685. }
  686. }
  687. }
  688. }
  689. .scoped-scan-img {
  690. padding-left: 20px;
  691. width: 90rpx;
  692. height: 90rpx;
  693. }
  694. .scoped-estate-desc {
  695. padding: 10rpx;
  696. iamge, img {
  697. width: 100%;
  698. }
  699. }
  700. </style>