|
|
@@ -21,7 +21,7 @@
|
|
|
{{userInfo.user_id ? userInfo.nickname ? userInfo.nickname : '未设置用户名' : '未登录'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <image v-if="userInfo && userInfo.manage_type == 2" src="../../static/bg_scan.png" class="scoped-scan-img" @click="scanHandle"></image>
|
|
|
+ <image v-if="userInfo && userInfo.manage_type == 2" src="/static/index/i_c_1.png" class="scoped-scan-img" @click="scanHandle"></image>
|
|
|
</view>
|
|
|
<u-button
|
|
|
v-if="!userInfo.user_id"
|
|
|
@@ -34,8 +34,8 @@
|
|
|
立即登录
|
|
|
</u-button>
|
|
|
<view
|
|
|
- v-if="userInfo.user_id" style="padding: 20px" @click="pageTo('/pages/user/setting/setting')">
|
|
|
- <u-icon name="/static/icon/setting.png" size="24"></u-icon>
|
|
|
+ v-if="userInfo.user_id" style="padding: 20rpx 30rpx" @click="pageTo('/pages/user/setting/setting')">
|
|
|
+ <u-icon name="/static/index/i_c_2.png" size="40"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-line length="650rpx" margin="30rpx 0 0"></u-line>
|
|
|
@@ -67,7 +67,21 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 功能卡片 -->
|
|
|
- <view class="function-card-wrap">
|
|
|
+ <view class="scoped-entry">
|
|
|
+ <view class="op" @click="pageTo('/pages/agent/recommend/create')">
|
|
|
+ <u-image src="/static/index/i_e_1.png" mode="heightFix" height="146rpx" class="icon"></u-image>
|
|
|
+ </view>
|
|
|
+ <view class="op" @click="pageTo('/pages/agent/recommend/list')">
|
|
|
+ <u-image src="/static/index/i_e_2.png" mode="heightFix" height="146rpx" class="icon"></u-image>
|
|
|
+ </view>
|
|
|
+ <view class="op" @click="pageTo('/pages/cust/list')">
|
|
|
+ <u-image src="/static/index/i_e_3.png" mode="heightFix" height="146rpx" class="icon"></u-image>
|
|
|
+ </view>
|
|
|
+ <view class="op" @click="commonRulesShow = true">
|
|
|
+ <u-image src="/static/index/i_e_4.png" mode="heightFix" height="146rpx" class="icon"></u-image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="function-card-wrap">
|
|
|
<view class="col-card-wrap">
|
|
|
<view class="function-card box-shadow u-skeleton-fillet" @click="pageTo('/pages/agent/recommend/create')">
|
|
|
<view class="title-wrap">
|
|
|
@@ -105,29 +119,30 @@
|
|
|
<view class="title-wrap">
|
|
|
<view class="main-title">
|
|
|
<u-icon class="u-m-r-5" name="/static/icon/book.png" size="32"></u-icon>
|
|
|
- 佣金政策
|
|
|
+ 奖励政策
|
|
|
</view>
|
|
|
<view class="sub-title u-line-1">Rules</view>
|
|
|
</view>
|
|
|
<u-image src="/static/icon/wenli4.png" mode="heightFix" height="144rpx" class="icon"></u-image>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
|
|
|
<!-- 项目卡片 -->
|
|
|
<view class="card-list-wrap box-shadow u-m-b-20">
|
|
|
<view class="header-title-warp">
|
|
|
<view class="title u-skeleton-rect">
|
|
|
- <u-icon class="u-m-r-5" name="/static/icon/fire.png" size="36"></u-icon>
|
|
|
- 高佣热销
|
|
|
+ <u-icon class="u-m-r-10" name="/static/index/i_c_3.png" size="36"></u-icon>
|
|
|
+ 热销推荐
|
|
|
</view>
|
|
|
<!-- <view v-show="propertyList.length > 5" class="more u-skeleton-rect">
|
|
|
更多
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
</view> -->
|
|
|
+ <view class="more u-skeleton-rect" @click="this.isOneRow = !this.isOneRow">{{isOneRow ? '切换至双行' : '切换至单行'}}</view>
|
|
|
</view>
|
|
|
<view v-if="propertyList.length == 0" class="u-m-t-40 u-m-b-40"><u-empty mode="list" text="暂无在售房源"></u-empty></view>
|
|
|
- <view :class="'property-row-wrap'">
|
|
|
+ <view :class="isOneRow ? 'property-row-wrap' : 'property-col-wrap'">
|
|
|
<view class="property-body u-skeleton-fillet box-shadow" v-for="(item, index) in propertyList" :key="index" @click="showDetail(index, item)">
|
|
|
<view class="image-wrap">
|
|
|
<text class="tag u-skeleton-rect">{{ item.estate_tag }}</text>
|
|
|
@@ -137,7 +152,7 @@
|
|
|
<view class="title u-skeleton-rect">{{ item.estate_name }}
|
|
|
<text class="s">{{areaTypeObj[item.area_type]}}</text>
|
|
|
</view>
|
|
|
- <view class="commission u-skeleton-rect" v-if="userInfo.auth_state == 1">预计佣金:{{ item.brokerage }}</view>
|
|
|
+ <view class="commission u-skeleton-rect" v-if="userInfo.auth_state == 1">预计奖励:{{ item.brokerage }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -156,15 +171,18 @@
|
|
|
<view class="bwin-popup">
|
|
|
<view class="popup-header">{{ propertyList[currentPropertyIndex].estate_name + '介绍' }}</view>
|
|
|
<view class="popup-body">
|
|
|
+ <view class="scoped-popup-more" @click="oneImgHandle(propertyList[currentPropertyIndex])">
|
|
|
+ <u-image src="/static/index/popup_bg_more.png" mode="heightFix" height="118rpx" class="icon"></u-image>
|
|
|
+ </view>
|
|
|
<u-parse :html="propertyList[currentPropertyIndex].introduce"></u-parse>
|
|
|
<u-divider marginTop="20" marginBottom="20">详情</u-divider>
|
|
|
<view class="property-info">
|
|
|
- <view class="item">
|
|
|
+ <!-- <view class="item">
|
|
|
<view class="item-title">基本情况:</view>
|
|
|
- <view class="item-info" style="text-decoration: underline;color: #2080f0;" @click="oneImgHandle(propertyList[currentPropertyIndex])">点击查看楼盘一页纸</view>
|
|
|
- </view>
|
|
|
+ <view class="item-info" style="text-decoration: underline;color: #2080f0;">点击查看楼盘一页纸</view>
|
|
|
+ </view> -->
|
|
|
<view class="item" v-if="userInfo.auth_state == 1">
|
|
|
- <view class="item-title">预计佣金:</view>
|
|
|
+ <view class="item-title">预计奖励:</view>
|
|
|
<view class="item-info" style="color: red;font-weight: bold;">{{ propertyList[currentPropertyIndex].brokerage }}</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
@@ -235,6 +253,7 @@ export default {
|
|
|
data() {
|
|
|
// 页面数据变量
|
|
|
return {
|
|
|
+ isOneRow: false,
|
|
|
curHtml: '',
|
|
|
backTop: {
|
|
|
src: '../../static/back-top/top.png',
|
|
|
@@ -446,11 +465,15 @@ export default {
|
|
|
},
|
|
|
// 弹窗展示项目佣金详情
|
|
|
showDetail(index, item) {
|
|
|
- this.currentPropertyIndex = index;
|
|
|
- this.propertyPopupShow = true;
|
|
|
- uni.api.estate.apiestatecontentdetail({id: item.id}).then(res => {
|
|
|
- this.curHtml = res.content || ''
|
|
|
- })
|
|
|
+ if (this.userInfo && this.userInfo.auth_state == 1) {
|
|
|
+ this.currentPropertyIndex = index;
|
|
|
+ this.propertyPopupShow = true;
|
|
|
+ uni.api.estate.apiestatecontentdetail({id: item.id}).then(res => {
|
|
|
+ this.curHtml = res.content || ''
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.$msgConfirm('请点击首页右上角设置,进行实名认证,实名认证后可查看详细信息')
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 监听器
|
|
|
@@ -468,7 +491,7 @@ export default {
|
|
|
flex-direction: column;
|
|
|
align-items: flex-start;
|
|
|
background-color: #fff;
|
|
|
- padding: 32rpx;
|
|
|
+ padding: 10rpx 26rpx 26rpx;
|
|
|
width: 100%;
|
|
|
margin-bottom: 20rpx;
|
|
|
border-radius: 10rpx;
|
|
|
@@ -683,7 +706,7 @@ export default {
|
|
|
|
|
|
image {
|
|
|
width: 100%;
|
|
|
- height: 300rpx;
|
|
|
+ height: 210rpx;
|
|
|
display: block;
|
|
|
border-top-left-radius: 10rpx;
|
|
|
border-top-right-radius: 10rpx;
|
|
|
@@ -743,8 +766,8 @@ export default {
|
|
|
|
|
|
.scoped-scan-img {
|
|
|
padding-left: 20px;
|
|
|
- width: 90rpx;
|
|
|
- height: 90rpx;
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -754,4 +777,25 @@ export default {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.scoped-popup-more {
|
|
|
+ width: 100%;
|
|
|
+ height: 118rpx;
|
|
|
+ margin-left: -20rpx;
|
|
|
+ margin-top: -20rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.scoped-entry {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .op {
|
|
|
+ flex: 1;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ &:nth-child(2n) {
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
</style>
|