index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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-line-1 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" v-if="userInfo.auth_state == 1">
  159. <view class="item-title">预计佣金:</view>
  160. <view class="item-info" style="color: red;font-weight: bold;">{{ propertyList[currentPropertyIndex].brokerage }}</view>
  161. </view>
  162. <view class="item">
  163. <view class="item-title">营销中心:</view>
  164. <view class="item-info">{{ propertyList[currentPropertyIndex].address }}</view>
  165. </view>
  166. <view class="item">
  167. <view class="item-title">销售热线:</view>
  168. <view class="item-info">{{ propertyList[currentPropertyIndex].marketing_phone || '00000000' }}</view>
  169. </view>
  170. <view class="item">
  171. <view class="item-title">带看需收集:</view>
  172. <view class="item-info">{{ propertyList[currentPropertyIndex].report_visit }}</view>
  173. </view>
  174. <view class="item">
  175. <view class="item-title">报备保护期:</view>
  176. <view class="item-info">{{ propertyList[currentPropertyIndex].report_lock + '天' }}</view>
  177. </view>
  178. <view class="item">
  179. <view class="item-title">带看保护期:</view>
  180. <view class="item-info">{{ propertyList[currentPropertyIndex].lead_lock + '天' }}</view>
  181. </view>
  182. </view>
  183. <u-divider marginTop="20" marginBottom="20">更多</u-divider>
  184. <view class="scoped-estate-desc">
  185. <!-- <view v-html="curHtml"></view> -->
  186. <rich-text :nodes="curHtml | filtersRichText"></rich-text>
  187. </view>
  188. </view>
  189. </view>
  190. </u-popup>
  191. <!-- 骨架屏 -->
  192. <u-skeleton :loading="skeletonLoading" animation></u-skeleton>
  193. <backTop :src="backTop.src" :scrollTop="backTop.scrollTop"></backTop>
  194. </view>
  195. </template>
  196. <script>
  197. var that;
  198. import { arrToObj } from '@/utils'
  199. import backTop from '@/components/back-top/back-top.vue'
  200. import wmWatermark from '@/components/wm-watermark/wm-watermark.vue'
  201. export default {
  202. components: {
  203. backTop,
  204. wmWatermark
  205. },
  206. filters: {
  207. filtersRichText(html) { //控制小程序中图片大小
  208. let newContent = html.replace(/<img[^>]*>/gi, (match, capture)=>{
  209. match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');
  210. match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
  211. match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
  212. return match;
  213. });
  214. newContent = newContent.replace(/style="[^"]+"/gi, (match, capture)=>{
  215. match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi, 'max-width:100%;');
  216. return match;
  217. });
  218. newContent = newContent.replace(/<br[^>]*\/>/gi, '');
  219. newContent = newContent.replace(/\<img/gi,
  220. '<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"');
  221. return newContent;
  222. }
  223. },
  224. data() {
  225. // 页面数据变量
  226. return {
  227. curHtml: '',
  228. backTop: {
  229. src: '../../static/back-top/top.png',
  230. scrollTop: 0
  231. },
  232. userInfo: {},
  233. skeletonLoading: true,
  234. agentTypeList: ['', '自由经纪人', '渠道经纪人', '老业主'],
  235. propertyList: [
  236. {
  237. estate_name: '在售项目1',
  238. pri_image: 'https://zdcdn.2bwin.cn/uploads/20220501/af6eb9c2a5d462be10a15c2302e5e6b5.jpg',
  239. sale_tag: '刚需好盘',
  240. rulesInfo: {
  241. des: '内容加载中1....',
  242. des_content: '内容加载中2....'
  243. }
  244. },
  245. ],
  246. commonRulesShow: false,
  247. propertyPopupShow: false,
  248. currentPropertyIndex: 0,
  249. // init请求返回的数据
  250. data: {},
  251. // 表单请求数据
  252. form1: {},
  253. scrollTop: 0,
  254. reportStepCountObj: {},
  255. areaTypeObj: {},
  256. };
  257. },
  258. onPageScroll(e) {
  259. this.scrollTop = e.scrollTop;
  260. this.backTop.scrollTop = e.scrollTop;
  261. },
  262. // 监听 - 页面每次【加载时】执行(如:前进)
  263. onLoad(options = {}) {
  264. // that = this;
  265. // this.options = options;
  266. // this.init(options);
  267. },
  268. // 监听 - 页面【首次渲染完成时】执行。注意如果渲染速度快,会在页面进入动画完成前触发
  269. onReady() {
  270. },
  271. // 监听 - 页面每次【显示时】执行(如:前进和返回) (页面每次出现在屏幕上都触发,包括从下级页面点返回露出当前页面)
  272. onShow() {
  273. this.init()
  274. const dictObj = uni.getStorageSync('MD_dict')
  275. this.areaTypeObj = arrToObj(dictObj.area_type)
  276. },
  277. // 监听 - 页面每次【隐藏时】执行(如:返回)
  278. onHide() {},
  279. // 监听 - 页面触底部
  280. onReachBottom() {},
  281. // 监听 - 窗口尺寸变化(仅限:App、微信小程序)
  282. onResize() {},
  283. // 监听 - 点击右上角转发时
  284. onShareAppMessage(options) {},
  285. // 监听 - 页面创建时
  286. created() {},
  287. // 函数
  288. methods: {
  289. scanHandle () {
  290. uni.scanCode({
  291. success: function (res) {
  292. uni.navigateTo({
  293. url: `/pages/agent/recommend/detail2?id=${res.result}`
  294. })
  295. }
  296. })
  297. },
  298. // 页面数据初始化函数
  299. init(options) {
  300. const userInfo2 = uni.getStorageSync('MD_userInfo2')
  301. this.userInfo = userInfo2 || {}
  302. uni.api.estate.apireportcount().then(res => {
  303. const reportStepCount = res.report_step_count || []
  304. let reportStepCountObj = {}
  305. reportStepCount.forEach(item => {
  306. reportStepCountObj[item.report_step] = item.total || 0
  307. })
  308. this.reportStepCountObj = {...reportStepCountObj}
  309. })
  310. uni.api.estate.apiestatelist({page_size: 100}).then(res => {
  311. const list = res.list || []
  312. // let oneObj = list[0] || {}
  313. this.propertyList = [...list]
  314. // this.propertyList = [list[0], list[1], list[2]]
  315. })
  316. // let currentTime = Date.parse(new Date()) / 1000; // 秒级
  317. // // 初始化平台数据
  318. // let systemConfig = vk.vuex.get('$app.systemConfig');
  319. // if (!systemConfig.use_skeleton) {
  320. this.skeletonLoading = false;
  321. // }
  322. // if (vk.pubfn.isNull(systemConfig._id)) {
  323. // // 不存在则直接初始化
  324. // vk.callFunction({
  325. // url: 'client/agent/pub/getConfigInfo',
  326. // needAlert: false
  327. // }).then(res => {
  328. // vk.vuex.set('$app.systemConfig', res.config);
  329. // vk.vuex.set('$app.systemConfig.lastGetTime', currentTime);
  330. // });
  331. // } else {
  332. // let mathTime = ((currentTime - systemConfig.lastGetTime) / 3600).toFixed(2);
  333. // if (mathTime > systemConfig.cache_time) {
  334. // vk.callFunction({
  335. // url: 'client/agent/pub/getConfigInfo',
  336. // needAlert: false
  337. // }).then(res => {
  338. // vk.vuex.set('$app.systemConfig', res.config);
  339. // vk.vuex.set('$app.systemConfig.lastGetTime', currentTime);
  340. // });
  341. // }
  342. // }
  343. // // 请求经纪人个人数据
  344. // let lastInitAgentDataTime = vk.vuex.get('$user.history.lastInitAgentDataTime');
  345. // if (currentTime - lastInitAgentDataTime >= 60 && vk.checkToken()) {
  346. // // 个人数据1分钟主动更新1次
  347. // vk.callFunction({
  348. // url: 'client/agent/kh/getAgentData',
  349. // data: {
  350. // agentId: vk.vuex.get('$user.agentInfo._id')
  351. // },
  352. // needAlert: false
  353. // }).then(res => {
  354. // vk.vuex.set('$user.dataInfo.recommendNum', res.data.recommendNum);
  355. // vk.vuex.set('$user.dataInfo.visitedNum', res.data.visitedNum);
  356. // vk.vuex.set('$user.dataInfo.buyNum', res.data.buyNum);
  357. // vk.vuex.set('$user.dataInfo.totalCommission', res.data.totalCommission);
  358. // vk.vuex.set('$user.history.lastInitAgentDataTime', currentTime);
  359. // });
  360. // }
  361. // // 请求未读消息数量
  362. // // 最快1分钟请求一次
  363. // let lastGetUnreadMsgTime = vk.vuex.get('$user.history.lastGetUnreadMsgTime');
  364. // if (currentTime - lastGetUnreadMsgTime > 60 && vk.checkToken()) {
  365. // vk.callFunction({
  366. // url: 'client/agent/kh/getUnreadMsgNum'
  367. // }).then(res => {
  368. // vk.vuex.set('$user.dataInfo.unreadMsgNum', res.num);
  369. // vk.vuex.set('$user.history.lastGetUnreadMsgTime', currentTime);
  370. // });
  371. // }
  372. // // 请求在售项目列表
  373. // vk.callFunction({
  374. // url: 'client/agent/pub/getPropertyList',
  375. // needAlert: false
  376. // }).then(res => {
  377. // that.propertyList = res.list;
  378. // // 存储到vuex,方便其他页面调用
  379. // if (res.list.length < 5) {
  380. // // 若大于等于5则可能有更多项目,则不缓存
  381. // let list = res.list.map(function(val, index) {
  382. // return { value: val._id, label: val.name };
  383. // });
  384. // vk.vuex.set('$app.propertyList', list);
  385. // }
  386. // // 拼接佣金政策
  387. // // 非经纪人身份时显示佣金政策简介
  388. // // 否则显示最高可获得的佣金额度
  389. // let i;
  390. // for (i = 0; i < res.list.length; i++) {
  391. // let agentType = vk.vuex.get('$user.agentInfo.type');
  392. // if (vk.pubfn.isNull(agentType)) {
  393. // // 还未注册为经纪人
  394. // that.propertyList[i].commissionText = that.propertyList[i].rulesInfo.des;
  395. // } else {
  396. // let commissionInfo = that.propertyList[i].rulesInfo.commission_info;
  397. // let item = vk.pubfn.getListItem(commissionInfo, 'type', agentType);
  398. // that.propertyList[i].commissionText = '您最高可获得佣金' + item.amount + '元';
  399. // }
  400. // }
  401. // that.skeletonLoading = false;
  402. // });
  403. },
  404. pageTo(path) {
  405. if (path === 'dev') {
  406. uni.$msg('开发中~')
  407. return
  408. }
  409. uni.navigateTo({
  410. url: path
  411. })
  412. },
  413. // 弹窗展示项目佣金详情
  414. showDetail(index, item) {
  415. this.currentPropertyIndex = index;
  416. this.propertyPopupShow = true;
  417. uni.api.estate.apiestatecontentdetail({id: item.id}).then(res => {
  418. this.curHtml = res.content || ''
  419. })
  420. }
  421. },
  422. // 监听器
  423. watch: {},
  424. // 计算属性
  425. computed: {}
  426. };
  427. </script>
  428. <style lang="scss" scoped>
  429. .page {
  430. min-height: calc(100vh - 44px);
  431. }
  432. .userinfo-wrap {
  433. display: flex;
  434. flex-direction: column;
  435. align-items: flex-start;
  436. background-color: #fff;
  437. padding: 32rpx;
  438. width: 100%;
  439. margin-bottom: 20rpx;
  440. border-radius: 10rpx;
  441. position: relative;
  442. .userinfo {
  443. width: 100%;
  444. display: flex;
  445. align-items: center;
  446. justify-content: space-between;
  447. .user {
  448. display: flex;
  449. align-items: center;
  450. .avatar-wrap {
  451. position: relative;
  452. .avatar-bg {
  453. position: absolute;
  454. left: 0;
  455. top: 0;
  456. border-radius: 50%;
  457. width: 128rpx;
  458. height: 128rpx;
  459. }
  460. }
  461. .info {
  462. margin-left: 32rpx;
  463. .nickname {
  464. font-size: $u-p;
  465. font-weight: bold;
  466. color: $u-main-color;
  467. margin-bottom: 5rpx;
  468. }
  469. .mobile {
  470. font-size: $u-p1;
  471. color: $u-tips-color;
  472. }
  473. }
  474. }
  475. }
  476. .datainfo {
  477. width: 100%;
  478. display: flex;
  479. align-items: flex-end;
  480. justify-content: space-between;
  481. padding: 20rpx 0 0;
  482. .data-item {
  483. display: flex;
  484. flex-direction: column;
  485. align-items: center;
  486. .data {
  487. font-weight: bold;
  488. font-size: $u-h2;
  489. line-height: $u-h2;
  490. margin-bottom: 10rpx;
  491. }
  492. .item {
  493. font-size: $u-p2;
  494. color: $u-content-color;
  495. }
  496. }
  497. }
  498. }
  499. .function-card-wrap {
  500. .col-card-wrap {
  501. display: flex;
  502. align-items: center;
  503. justify-content: space-between;
  504. }
  505. .function-card {
  506. background-color: #fff;
  507. padding: 32rpx 20rpx;
  508. width: 345rpx;
  509. margin-bottom: 20rpx;
  510. border-radius: 10rpx;
  511. position: relative;
  512. overflow: hidden;
  513. .title-wrap {
  514. text-align: left;
  515. .main-title {
  516. display: flex;
  517. align-items: center;
  518. font-size: $u-p;
  519. font-weight: bold;
  520. }
  521. .sub-title {
  522. font-size: $u-p2;
  523. color: $u-content-color;
  524. }
  525. }
  526. .icon {
  527. text-align: right;
  528. position: absolute;
  529. top: 0;
  530. right: 0;
  531. }
  532. }
  533. }
  534. // 项目列表
  535. .card-list-wrap {
  536. background-color: #fff;
  537. // margin: 0rpx -20rpx 20rpx;
  538. padding: 20rpx 20rpx 0 20rpx;
  539. display: flex;
  540. flex-direction: column;
  541. border-radius: 10rpx;
  542. .header-title-warp {
  543. width: 100%;
  544. margin-bottom: 20rpx;
  545. display: flex;
  546. align-items: center;
  547. justify-content: space-between;
  548. .title {
  549. display: flex;
  550. align-items: center;
  551. color: $u-main-color;
  552. font-weight: bold;
  553. font-size: $u-p;
  554. }
  555. .more {
  556. font-size: $u-sub;
  557. color: $u-tips-color;
  558. }
  559. }
  560. // 行版
  561. .property-row-wrap {
  562. .property-body {
  563. width: 100%;
  564. border-radius: 10rpx;
  565. margin-bottom: 20rpx;
  566. // background-color: #fff;
  567. .image-wrap {
  568. position: relative;
  569. image {
  570. width: 100%;
  571. height: 300rpx;
  572. display: block;
  573. border-top-left-radius: 10rpx;
  574. border-top-right-radius: 10rpx;
  575. }
  576. .tag {
  577. color: #ffffff;
  578. background-color: $u-theme-color;
  579. font-size: $u-p2;
  580. position: absolute;
  581. z-index: 1;
  582. left: 0;
  583. padding: 8rpx 20rpx;
  584. border-top-left-radius: 10rpx;
  585. border-bottom-right-radius: 10rpx;
  586. }
  587. }
  588. .property-info-wrap {
  589. padding: 20rpx;
  590. .title {
  591. font-weight: bold;
  592. color: $u-main-color;
  593. font-size: $u-p;
  594. .s {
  595. font-weight: normal;
  596. padding-left: 10rpx;
  597. }
  598. }
  599. .commission {
  600. margin-top: 10rpx;
  601. font-size: $u-p2;
  602. color: $u-content-color;
  603. }
  604. }
  605. }
  606. }
  607. // 两列版
  608. .property-col-wrap {
  609. display: flex;
  610. flex-wrap: wrap;
  611. justify-content: space-between;
  612. align-items: flex-start;
  613. .property-body {
  614. width: 325rpx;
  615. border-radius: 10rpx;
  616. margin-bottom: 20rpx;
  617. // background-color: #fff;
  618. .image-wrap {
  619. position: relative;
  620. image {
  621. width: 100%;
  622. height: 300rpx;
  623. display: block;
  624. border-top-left-radius: 10rpx;
  625. border-top-right-radius: 10rpx;
  626. }
  627. .tag {
  628. color: #ffffff;
  629. background-color: $u-theme-color;
  630. font-size: $u-sub;
  631. position: absolute;
  632. z-index: 1;
  633. left: 0;
  634. padding: 8rpx 20rpx;
  635. border-top-left-radius: 10rpx;
  636. border-bottom-right-radius: 10rpx;
  637. }
  638. }
  639. .property-info-wrap {
  640. padding: 20rpx;
  641. .title {
  642. font-weight: bold;
  643. color: $u-main-color;
  644. font-size: $u-p2;
  645. }
  646. .commission {
  647. margin-top: 10rpx;
  648. font-size: $u-sub;
  649. color: $u-content-color;
  650. }
  651. }
  652. }
  653. }
  654. }
  655. .popup-body {
  656. .property-info {
  657. font-size: $u-p1;
  658. .item {
  659. display: flex;
  660. margin-bottom: 10rpx;
  661. text-align: left;
  662. .item-title {
  663. font-weight: bold;
  664. width: 170rpx;
  665. }
  666. .item-info {
  667. flex: 1;
  668. }
  669. }
  670. }
  671. }
  672. .scoped-scan-img {
  673. padding-left: 20px;
  674. width: 90rpx;
  675. height: 90rpx;
  676. }
  677. .scoped-estate-desc {
  678. padding: 10rpx;
  679. iamge, img {
  680. width: 100%;
  681. }
  682. }
  683. </style>