提交
This commit is contained in:
parent
b0e706b7db
commit
d856078c95
@ -402,6 +402,7 @@ Page({
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.calculateOfDate()
|
||||
|
||||
wx.showLoading({
|
||||
title: '加载中',
|
||||
})
|
||||
@ -563,15 +564,25 @@ Page({
|
||||
fieldinfoNew[element.field]['slider2Min'] = 0
|
||||
fieldinfoNew[element.field]['slider1W'] = 100
|
||||
fieldinfoNew[element.field]['slider2W'] = 0
|
||||
fieldinfoNew[element.field]['leftSliderPriceWidthX'] = '0%'
|
||||
fieldinfoNew[element.field]['rightSliderPriceWidthX'] = '0%'
|
||||
|
||||
if (Array.isArray(data.info[element.field]) && data.info[element.field].length == 0) {
|
||||
fieldinfoNew[element.field]['slider1Value'] = 0
|
||||
fieldinfoNew[element.field]['slider2Value'] = 10000
|
||||
fieldinfoNew[element.field]['leftSliderPriceWidthX'] = '0%'
|
||||
fieldinfoNew[element.field]['rightSliderPriceWidthX'] = '0%'
|
||||
|
||||
} else {
|
||||
fieldinfoNew[element.field]['slider1Value'] = data.info[element.field][0]
|
||||
fieldinfoNew[element.field]['slider2Value'] = data.info[element.field][1]
|
||||
|
||||
let dw = (Number(data.info[element.field][0]) - fieldinfoNew[element.field]['min']) / fieldinfoNew[element.field]['rate']
|
||||
fieldinfoNew[element.field]['slider1W'] = dw
|
||||
fieldinfoNew[element.field]['slider1Max'] = Number(data.info[element.field][0])
|
||||
fieldinfoNew[element.field]['slider1Value'] = Number(data.info[element.field][0])
|
||||
fieldinfoNew[element.field]['slider2Value'] = Number(data.info[element.field][1])
|
||||
fieldinfoNew[element.field]['slider2Min'] = Number(data.info[element.field][0])
|
||||
fieldinfoNew[element.field]['slider2W'] = 100 - dw
|
||||
|
||||
fieldinfoNew[element.field]['leftSliderPriceWidthX'] = (Number(data.info[element.field][0]) / fieldinfoNew[element.field]['max'] * 100) + '%'
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -686,7 +697,7 @@ Page({
|
||||
if (element.field == 'property' || element.field == 'gender' || element.field == 'intermediary' || element.field == 'elevator' || element.field == 'sunshinearea' || element.field == 'publishergender' || element.field == 'floor') {
|
||||
choices = []
|
||||
if (element.choices.length >= 0) {
|
||||
if ((this.data.types == 'edit' || this.data.types == 'edit1') && element.field != 'floor' && element.field != 'sunshinearea') {
|
||||
if ((this.data.types == 'edit' || this.data.types == 'edit1') && element.field != 'floor' && element.field != 'sunshinearea' && element.field != 'property') {
|
||||
element.choices.forEach(el => {
|
||||
if (el.key == data.info[element.field]) data.info[element.field] = el.value
|
||||
})
|
||||
@ -779,8 +790,11 @@ Page({
|
||||
}
|
||||
|
||||
|
||||
if (data.type == "edit") this.data.contactInformationState = data.info.iswechattype
|
||||
else data.info.iswechattype = 0
|
||||
// if (data.type == "edit") this.data.contactInformationState = data.info.iswechattype
|
||||
// else data.info.iswechattype = 0
|
||||
|
||||
if (data.info.wechatdata.aid != 0) this.data.contactInformationState = 2
|
||||
// else data.info.iswechattype = 0
|
||||
|
||||
if (data.info.leasetime == 0) data.info.leasetime = '随时'
|
||||
else if (data.info.leasetime && data.info.leasetime.length > 2) {
|
||||
@ -805,8 +819,16 @@ Page({
|
||||
// data.fieldinfo['status'] = [data.fieldinfo['identity'][1]] || []
|
||||
// data.fieldinfo['identity'].splice(1, 1)
|
||||
|
||||
//
|
||||
// if (data.info.rent.length == 2) {
|
||||
// data.info.rent[0] = Number(data.info.rent[0])
|
||||
// data.info.rent[] = Number(data.info.rent[1])
|
||||
// }
|
||||
|
||||
this.setData({
|
||||
id: data.id,
|
||||
fieldinfo: data.fieldinfo,
|
||||
offshelftime: data.offshelftime,
|
||||
fieldinfoNew,
|
||||
newcity: data.city,
|
||||
newinfo: data.info,
|
||||
@ -1446,7 +1468,6 @@ Page({
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
bindopensetting(res) {
|
||||
var status = res.detail.authSetting['scope.userLocation'],
|
||||
@ -2513,6 +2534,13 @@ Page({
|
||||
name: 'files',
|
||||
header: app.globalData.header,
|
||||
success: function (res) {
|
||||
if (res.statusCode == 500) {
|
||||
wx.hideLoading()
|
||||
wx.showToast({
|
||||
icon: "none",
|
||||
title: '上传失败!',
|
||||
})
|
||||
}
|
||||
var res = JSON.parse(res.data);
|
||||
if (res.code == 200) {
|
||||
that.setData({
|
||||
|
@ -86,6 +86,7 @@
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<block wx:if="{{ true }}">
|
||||
<view class="edit-head-head flexacenter">
|
||||
<view class="edit-head-area flexacenter">
|
||||
@ -94,6 +95,15 @@
|
||||
<view class="edit-head-type flexcenter">求房源</view>
|
||||
</view>
|
||||
|
||||
<view class="housing-message flexacenter" wx:if="{{ types=='edit' && newStatus != 1 }}">
|
||||
<view class="housing-message-item">房源ID:{{ id }}</view>
|
||||
<block wx:if="{{ offshelftime || newStatus == 0 || newStatus == -5 }}">
|
||||
<view class="housing-message-vertical"></view>
|
||||
<view class="housing-message-item" wx:if="{{ newStatus == 0 }}">未发布</view>
|
||||
<view class="housing-message-item" wx:elif="{{ newStatus == -5 || offshelftime }}">下架:{{ offshelftime }}</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view class="edit-head-surplus flexacenter" bindtap="getAbout">
|
||||
<view class="edit-head-surplus-text">您还可以发布 <text>{{ allowpublishednum }}</text> 条普通房源</view>
|
||||
<view class="flexacenter">
|
||||
@ -232,7 +242,7 @@
|
||||
</view>
|
||||
|
||||
<view class="footer-btn">
|
||||
<block wx:if="{{newtype=='plus' || (newtype=='edit' && newStatus == 0 )}}">
|
||||
<block wx:if="{{newtype=='plus' || (newtype=='edit' && newStatus != 1 )}}">
|
||||
<view bindtap='NewRelease' data-status="0" class="submit save1">保存并退出</view>
|
||||
<view bindtap='NewRelease' data-status="1" class="submit">马上发布</view>
|
||||
</block>
|
||||
@ -825,7 +835,7 @@
|
||||
<view class="pop-up-save" style="width: 360rpx;" bindtap='NewRelease' data-status="0">保存并退出</view>
|
||||
</view>
|
||||
<view class="pop-up-footer flexcenter" wx:if="{{ popUpStepState == 2 }}">
|
||||
<view class="pop-up-save" bindtap='NewRelease' data-status="0" wx:if="{{ newStatus != 1 }}"> {{ newStatus }} 保存并退出</view>
|
||||
<view class="pop-up-save" bindtap='NewRelease' data-status="0" wx:if="{{ newStatus != 1 }}"> 保存并退出</view>
|
||||
<view class="pop-up-nextStep" catchtap="popUpNextStep" data-field="{{ field }}">下一步</view>
|
||||
</view>
|
||||
<view class="pop-up-footer flexcenter" wx:if="{{ popUpStepState == 3 }}">
|
||||
|
@ -1683,4 +1683,24 @@ wx-slider .wx-slider-handle-wrapper {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
margin-right: 9rpx;
|
||||
}
|
||||
|
||||
.housing-message {
|
||||
border-bottom: 1rpx solid #ebebeb;
|
||||
padding-bottom: 36rpx;
|
||||
margin: 60rpx 30rpx 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.housing-message .housing-message-vertical {
|
||||
width: 2rpx;
|
||||
height: 30rpx;
|
||||
border-left: 1rpx dotted #d7d7d7;
|
||||
margin: 0 15rpx;
|
||||
}
|
||||
|
||||
.housing-message .housing-message-item {
|
||||
color: #7f7f7f;
|
||||
line-height: 36rpx;
|
||||
font-size: 21rpx;
|
||||
}
|
@ -811,7 +811,9 @@ Page({
|
||||
data.fieldinfo['identity'].splice(1, 1)
|
||||
|
||||
this.setData({
|
||||
id: data.id,
|
||||
fieldinfo: data.fieldinfo,
|
||||
offshelftime: data.offshelftime,
|
||||
fieldinfoNew,
|
||||
newcity: data.city,
|
||||
newinfo: data.info,
|
||||
|
@ -66,7 +66,7 @@
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<block wx:if="{{ true }}">
|
||||
<block wx:if="{{ false }}">
|
||||
<view class="edit-head-head flexacenter">
|
||||
<view class="edit-head-area flexacenter">
|
||||
<image class="edit-head-area-icon" mode="widthFix" src="/img/u706.png"></image>香港
|
||||
@ -74,6 +74,16 @@
|
||||
<view class="edit-head-type flexcenter">求房源</view>
|
||||
</view>
|
||||
|
||||
<view class="housing-message flexacenter" wx:if="{{ types=='edit' }}">
|
||||
<view class="housing-message-item">房源ID:{{ id }}</view>
|
||||
|
||||
<block wx:if="{{ offshelftime || status == 0}}">
|
||||
<view class="housing-message-vertical"></view>
|
||||
<view class="housing-message-item" wx:if="{{ status == 0 }}">未发布</view>
|
||||
<view class="housing-message-item" wx:elif="{{ offshelftime }}">下架:{{ offshelftime }}</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<view class="edit-head-surplus flexacenter" bindtap="getAbout">
|
||||
<view class="edit-head-surplus-text">您还可以发布 <text>{{ allowpublishednum }}</text> 条普通房源</view>
|
||||
<view class="flexacenter">
|
||||
@ -211,7 +221,7 @@
|
||||
</view>
|
||||
|
||||
<view class="footer-btn">
|
||||
<block wx:if="{{newtype=='plus' || (newtype=='edit' && newStatus == 0 )}}">
|
||||
<block wx:if="{{newtype=='plus' || (newtype=='edit' && newStatus != 1 )}}">
|
||||
<view bindtap='NewRelease' data-status="0" class="submit save1">保存并退出</view>
|
||||
<view bindtap='NewRelease' data-status="1" class="submit">马上发布</view>
|
||||
</block>
|
||||
|
@ -1631,4 +1631,24 @@ wx-slider .wx-slider-handle-wrapper {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
margin-right: 9rpx;
|
||||
}
|
||||
|
||||
.housing-message {
|
||||
border-bottom: 1rpx solid #ebebeb;
|
||||
padding-bottom: 36rpx;
|
||||
margin: 60rpx 30rpx 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.housing-message .housing-message-vertical {
|
||||
width: 2rpx;
|
||||
height: 30rpx;
|
||||
border-left: 1rpx dotted #d7d7d7;
|
||||
margin: 0 15rpx;
|
||||
}
|
||||
|
||||
.housing-message .housing-message-item {
|
||||
color: #7f7f7f;
|
||||
line-height: 36rpx;
|
||||
font-size: 21rpx;
|
||||
}
|
@ -58,7 +58,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class='house-list apartment-list'>
|
||||
<view class='house-list apartment-list' wx:if="{{ false }}">
|
||||
<view class="apartment-item" wx:for="{{ 3 }}">
|
||||
<view class="apartment-top flexflex">
|
||||
<view class="apartment-name">星淮酒店</view>
|
||||
|
@ -51,7 +51,7 @@
|
||||
|
||||
<!--合租 -->
|
||||
<view class='list'>
|
||||
<common-list></common-list>
|
||||
<!-- <common-list></common-list> -->
|
||||
<block wx:for="{{ lists }}" wx:key="index">
|
||||
<template is="personalList" wx:if="{{ !item.isad }}" data="{{ item:item }}" />
|
||||
<ads isList="true" wx:if="{{ item.isad && !item.banner }}" data-index="{{ index }}" bindclickAD="clickAD" bindcloseAD="closeAD" item="{{ item }}"></ads>
|
||||
|
@ -310,7 +310,7 @@ Page({
|
||||
let langs = this.data.langs || {}
|
||||
if (Object.keys(langs).length == 0) {
|
||||
setTimeout(() => {
|
||||
this.againstTargetArea()
|
||||
this.handleDetailData()
|
||||
}, 300)
|
||||
} else {
|
||||
let info = this.data.info
|
||||
@ -348,7 +348,6 @@ Page({
|
||||
}
|
||||
}
|
||||
|
||||
console.log("locationList", locationList);
|
||||
info['locationList'] = locationList
|
||||
|
||||
this.setData({
|
||||
|
@ -211,14 +211,16 @@
|
||||
</view>
|
||||
<view class="HResource-detail-content-item">
|
||||
<template wx:if="{{ info.property }}" is="HResource-detail-tier" data="{{ name: '房屋类型', value: langs['property'][info.property] }}"></template>
|
||||
<template wx:if="{{ info.floor }}" is="HResource-detail-tier" data="{{ name:'所在楼层', value: info.floor }}"></template>
|
||||
<template wx:if="{{ info.floor }}" is="HResource-detail-tier1" data="{{ name:'所在楼层', value1: info.floor,value2: langs['elevator'][info['elevator']] }}"></template>
|
||||
<template wx:if="{{ info.sunshinearea }}" is="HResource-detail-tier" data="{{ name:'晾晒区', value: langs['sunshinearea'][info['sunshinearea']] }}"></template>
|
||||
<template wx:if="{{ info.acreage }}" is="HResource-detail-tier" data="{{ name:'面积', value: info.acreage + (info.cityid==1 ? ' 平方呎':' 平方米') }}"></template>
|
||||
<template wx:if="{{ info.gender }}" is="HResource-detail-tier" data="{{ name:'性别要求', value: langs['gender'][info.gender] }}"></template>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 图片和视频 -->
|
||||
<view class="media-box" wx:if="{{ !(info.video.length == 0 && info.picturegroup.length == 0) }}">
|
||||
<!-- <view class="media-box" wx:if="{{ !(info.video.length == 0 && info.picturegroup.length == 0) }}"> -->
|
||||
<view class="media-box" wx:if="{{ info.video && info.video.length != 0 && info.picturegroup && info.picturegroup.length != 0 }}">
|
||||
<view class="media-header">
|
||||
<block wx:if="{{ info.video.length != 0 }}">
|
||||
<image class="video-icon" mode="widthFix" src="/img/u1737.png"></image>
|
||||
@ -682,7 +684,14 @@
|
||||
<template name="HResource-detail-tier">
|
||||
<view class="HResource-detail-tier">
|
||||
<view class="HResource-detail-name">{{ name }}</view>
|
||||
<view class="HResource-detail-value">{{value}}</view>
|
||||
<view class="HResource-detail-value">{{ value }}</view>
|
||||
</view>
|
||||
</template>
|
||||
<!-- 香港房源的详细详细表格 房屋类型 楼层 -->
|
||||
<template name="HResource-detail-tier1">
|
||||
<view class="HResource-detail-tier">
|
||||
<view class="HResource-detail-name">{{ name }}</view>
|
||||
<view class="HResource-detail-value flexacenter">{{ value1 }} <view class="HResource-detail-vertical"></view>{{ value2 }}</view>
|
||||
</view>
|
||||
</template>
|
||||
<!-- 香港房源的详细详细表格 整租、 房屋类型 楼层 -->
|
||||
|
@ -819,6 +819,7 @@ map .clickmap {
|
||||
align-items: center;
|
||||
padding: 39rpx 0;
|
||||
width: 50%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.certification .HResource-box .HResource-detail-tier:nth-child(-n+2) {
|
||||
@ -841,6 +842,13 @@ map .clickmap {
|
||||
font-size: 27rpx;
|
||||
}
|
||||
|
||||
.certification .HResource-box .HResource-detail-value .HResource-detail-vertical{
|
||||
width: 2rpx;
|
||||
height: 27rpx;
|
||||
background-color: #D7D7D7;
|
||||
margin: 0 10rpx;
|
||||
}
|
||||
|
||||
.certification .HResource-detail-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -42,7 +42,7 @@
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "2.31.1",
|
||||
"appid": "wx9c68fbf7886ea9c4",
|
||||
"appid": "wxcf0a799771cf2ae6",
|
||||
"projectname": "%E5%AF%84%E6%89%98%E7%A7%9F%E6%88%BF",
|
||||
"simulatorType": "wechat",
|
||||
"simulatorPluginLibVersion": {},
|
||||
|
@ -41,8 +41,7 @@ Component({
|
||||
// 把1368数字换成你的产品ID,否则会跳到别的产品
|
||||
id: "451478",
|
||||
// 自定义参数,具体参考文档
|
||||
customData: {
|
||||
},
|
||||
customData: {},
|
||||
|
||||
fail: (error) => {
|
||||
console.log('跳转小程序失败', error)
|
||||
@ -138,6 +137,12 @@ Component({
|
||||
app.globalData['alreadyAnnouncementPopupWindowList'] = []
|
||||
that.triggerEvent('authorizationSuccess')
|
||||
}
|
||||
if (data.code == 201) {
|
||||
wx.showToast({
|
||||
icon: "none",
|
||||
title: '授权失败',
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user