index.vue 21 KB

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