明天可以测试
This commit is contained in:
parent
e1ecef1595
commit
9119a9cd49
@ -210,6 +210,7 @@ Page({
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
it: 'basic',
|
||||
field: "rentalduration"
|
||||
},
|
||||
leasetime: {
|
||||
name: '起租日期',
|
||||
@ -274,7 +275,7 @@ Page({
|
||||
name: '发布者性别',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
field: "gender"
|
||||
field: "publishergender"
|
||||
},
|
||||
introduction: {
|
||||
name: '求租描述',
|
||||
@ -497,17 +498,17 @@ Page({
|
||||
if (this.data.types == 'edit' || this.data.types == 'edit1') {
|
||||
requestData = {
|
||||
uniqid: this.data.uniqid,
|
||||
token: this.options.token
|
||||
token: this.options.token,
|
||||
intermediary: 6,
|
||||
}
|
||||
} else {
|
||||
requestData = {
|
||||
uniqid: this.data.uniqid,
|
||||
intermediary: 6,
|
||||
}
|
||||
}
|
||||
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/publish`, {
|
||||
intermediary: 6
|
||||
}).then(res => {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/publish`, requestData).then(res => {
|
||||
wx.hideLoading()
|
||||
this.setData({
|
||||
loding: false
|
||||
@ -531,6 +532,7 @@ Page({
|
||||
let locationtail = ""
|
||||
let aa = this.data.aa
|
||||
let locationObj = {}
|
||||
|
||||
for (const key in data.fieldinfo) {
|
||||
let choices = null
|
||||
data.fieldinfo[key].forEach(element => {
|
||||
@ -555,8 +557,8 @@ Page({
|
||||
fieldinfoNew[element.field]['leftSliderPriceWidthX'] = '0%'
|
||||
fieldinfoNew[element.field]['rightSliderPriceWidthX'] = '0%'
|
||||
|
||||
console.log("Array.isArray(data.info[element.field])", data.info[element.field]);
|
||||
if (Array.isArray(data.info[element.field]) && data.info[element.field].length == 0) {
|
||||
// data.info[element.field] = [0, 10000]
|
||||
fieldinfoNew[element.field]['slider1Value'] = 0
|
||||
fieldinfoNew[element.field]['slider2Value'] = 10000
|
||||
} else {
|
||||
@ -574,9 +576,10 @@ Page({
|
||||
choices.forEach(el => {
|
||||
if (!el) return
|
||||
if ((this.data.types == 'edit' || this.data.types == 'edit1') && el.key == data.info.type) {
|
||||
choices.forEach(e => {
|
||||
if (e.key == [Math.trunc(el.key)]) data.info.type = e.value + '>' + el.value
|
||||
choices.forEach((e, i) => {
|
||||
if (e.key == Math.trunc(el.key)) data.info.type = e.value + '>' + el.value
|
||||
})
|
||||
|
||||
}
|
||||
if (el.key % 1 == 0) {
|
||||
choicesnew[el.key - 1] = {
|
||||
@ -725,6 +728,7 @@ Page({
|
||||
this.data.areaRegionIndex = el.key - 1
|
||||
}
|
||||
}
|
||||
|
||||
if (el.key % 1 == 0) {
|
||||
choicesnew[el.key - 1] = {
|
||||
value: el.value,
|
||||
@ -1689,7 +1693,12 @@ Page({
|
||||
|
||||
if (popUpIs == 'unilineInput' || popUpIs == 'multilineInput' || popUpIs == 'multilineInput1') this.data.focustitle = field
|
||||
|
||||
if ((field == "floor" || field == "property" || field == 'sunshinearea') && this.data.newinfo[field].length == 0) {
|
||||
if (field == "acreage" && this.data.newinfo[field].length < 2) {
|
||||
this.data.newinfo[field] = [0, 1000]
|
||||
this.data.fieldinfoNew[field]['value'] = [0, 1000]
|
||||
this.data.fieldinfoNew[field]['slider1Value'] = 0
|
||||
this.data.fieldinfoNew[field]['slider2Value'] = 1000
|
||||
} else if ((field == "floor" || field == "property" || field == 'sunshinearea') && this.data.newinfo[field].length == 0) {
|
||||
this.data.newinfo[field] = [0]
|
||||
this.data.fieldinfoNew[field]['value'] = [0]
|
||||
} else this.data.fieldinfoNew[field]['value'] = this.data.newinfo[field]
|
||||
@ -1705,6 +1714,8 @@ Page({
|
||||
focustitle: this.data.focustitle
|
||||
})
|
||||
|
||||
console.log("popUpdate", this.data.popUpdate);
|
||||
|
||||
},
|
||||
|
||||
// 选择弹窗选项 单选
|
||||
@ -2131,8 +2142,12 @@ Page({
|
||||
}
|
||||
|
||||
|
||||
if ((field == "floor" || field == "property" || field == 'sunshinearea') && this.data.newinfo[field].length == 0) {
|
||||
// this.data.newinfo[field] = [0]
|
||||
if (field == "acreage" && this.data.newinfo[field].length < 2) {
|
||||
this.data.newinfo[field] = [0, 1000]
|
||||
popUpdate['value'] = [0, 1000]
|
||||
popUpdate['slider1Value'] = 0
|
||||
popUpdate['slider2Value'] = 1000
|
||||
} else if ((field == "floor" || field == "property" || field == 'sunshinearea') && this.data.newinfo[field].length == 0) {
|
||||
this.setData({
|
||||
[`newinfo.${field}`]: [0]
|
||||
})
|
||||
@ -2230,13 +2245,12 @@ Page({
|
||||
let fieldinfo = this.data.fieldinfo
|
||||
|
||||
// 所在楼层
|
||||
if (status == 0 && this.data.popUpIs == 'floor') {
|
||||
this.data.newinfo.floor = this.data.floorValue[0] - 2 > 0 ? this.data.floorValue[0] - 2 + '楼' : this.data.floorValue[0] - 3 + '楼'
|
||||
}
|
||||
// if (status == 0 && this.data.popUpIs == 'floor') {
|
||||
// this.data.newinfo.floor = this.data.floorValue[0] - 2 > 0 ? this.data.floorValue[0] - 2 + '楼' : this.data.floorValue[0] - 3 + '楼'
|
||||
// }
|
||||
|
||||
if (this.data.newinfo && this.data.newinfo.subject) this.data.newinfo.subject = this.data.newinfo.subject.trim()
|
||||
|
||||
if (this.data.newinfo && this.data.newinfo.subject) {
|
||||
this.data.newinfo.subject = this.data.newinfo.subject.trim()
|
||||
}
|
||||
|
||||
let newinfo = { // 下面验证需要提交的数据,...解决浅拷贝问题
|
||||
...this.data.newinfo
|
||||
@ -2244,7 +2258,7 @@ Page({
|
||||
|
||||
newinfo.images = this.data.imgs
|
||||
newinfo.video = this.data.videos
|
||||
newinfo.floor = parseInt(newinfo.floor) // floor数据加了‘楼’子需要转正整数
|
||||
// newinfo.floor = parseInt(newinfo.floor) // floor数据加了‘楼’子需要转正整数
|
||||
// if (newinfo.acreage != null && newinfo.acreage != "") {
|
||||
// newinfo.acreage = Number(newinfo.acreage)
|
||||
// }
|
||||
@ -2281,10 +2295,9 @@ Page({
|
||||
if (element.field == "type") {
|
||||
let fieldinfoNew = this.data.fieldinfoNew
|
||||
fieldinfoNew[element.field].choices.forEach(el => {
|
||||
// el.choices.forEach(e => {
|
||||
if (newinfo.type && newinfo.type.indexOf(el.value) >= 0) newinfo.type = el.key
|
||||
|
||||
// })
|
||||
el.choices.forEach(e => {
|
||||
if (newinfo.type && newinfo.type.indexOf(e.value) >= 0) newinfo.type = e.key
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
@ -2298,13 +2311,13 @@ Page({
|
||||
}
|
||||
|
||||
// 房屋类型
|
||||
if (element.field == "property") {
|
||||
element.choices.forEach(res => {
|
||||
if (res.value == newinfo.property) {
|
||||
newinfo.property = res.key
|
||||
}
|
||||
})
|
||||
}
|
||||
// if (element.field == "property") {
|
||||
// element.choices.forEach(res => {
|
||||
// if (res.value == newinfo.property) {
|
||||
// newinfo.property = res.key
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
// 性别
|
||||
if (element.field == "gender") {
|
||||
@ -2315,10 +2328,9 @@ Page({
|
||||
})
|
||||
}
|
||||
|
||||
// 电梯
|
||||
if (element.field == "elevator" || element.field == 'publishergender') {
|
||||
// 电梯 晾晒区
|
||||
if (element.field == "elevator" || element.field == 'publishergender' || element.field == 'intermediary') {
|
||||
element.choices.forEach(res => {
|
||||
console.log(res);
|
||||
if (res.value == newinfo[element.field]) {
|
||||
newinfo[element.field] = res.key
|
||||
}
|
||||
@ -2326,27 +2338,28 @@ Page({
|
||||
}
|
||||
|
||||
// 发布者身份
|
||||
if (element.field == 'intermediary') {
|
||||
element.choices.forEach((el, index) => {
|
||||
if (el.value == newinfo.intermediary) {
|
||||
newinfo.intermediary = el.key
|
||||
}
|
||||
})
|
||||
}
|
||||
// if (element.field == 'intermediary') {
|
||||
// element.choices.forEach((el, index) => {
|
||||
// if (el.value == newinfo.intermediary) {
|
||||
// newinfo.intermediary = el.key
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
// 所在区域
|
||||
if (element.field == 'location') {
|
||||
this.data.fieldinfoNew[element.field].choices.forEach(el => {
|
||||
el.choices.forEach(e => {
|
||||
if (newinfo.location && newinfo.location.indexOf(e.value) >= 0) {
|
||||
newinfo.location = e.key
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
// if (element.field == 'location') {
|
||||
// this.data.fieldinfoNew[element.field].choices.forEach(el => {
|
||||
// el.choices.forEach(e => {
|
||||
// if (newinfo.location && newinfo.location.indexOf(e.value) >= 0) {
|
||||
// newinfo.location = e.key
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
// }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// miucms.request(app.globalData.baseURL + '/tenement/publish/submit', {
|
||||
miucms.request(app.globalData.baseURL + '/tenement/v2/api/publish/submit', {
|
||||
info: newinfo,
|
||||
@ -2361,7 +2374,8 @@ Page({
|
||||
})
|
||||
} else {
|
||||
wx.redirectTo({
|
||||
url: '/pages/show/show?uniqid=' + res.data.uniqid + '&cityid=' + this.data.newcity.id,
|
||||
// url: '/pages/show/show?uniqid=' + res.data.uniqid + '&cityid=' + this.data.newcity.id,
|
||||
url: '/pages/show/show?uniqid=' + res.data.uniqid
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// module.exports.fn = fn;
|
||||
</wxs>
|
||||
|
||||
<import src="../../wxParse/wxParse.wxml" />
|
||||
@ -919,7 +918,7 @@
|
||||
<view class="target-area clickInput-box">
|
||||
<view class="clickInput-title">目标区域<text style="color:#C54235;margin-left: 10rpx;">*</text></view>
|
||||
<view class="target-area-list">
|
||||
<view class="target-area-item flexacenter" wx:for="{{ newinfo.location }}" wx:key="index">
|
||||
<view class="target-area-item flexacenter" wx:for="{{ newinfo.location }}" wx:key="index">
|
||||
<view class="target-area-index flexcenter">{{ index + 1 }}</view>
|
||||
<view class="target-area-content">九龙 > {{ locationObj[item] }}</view>
|
||||
<image bindtap="deleteLocation" data-key="{{ item }}" class="target-area-cross" src="/img/close-c.png"></image>
|
||||
|
@ -317,7 +317,7 @@ Page({
|
||||
}, {
|
||||
name: '发布者身份',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
popUpStepState: 0,
|
||||
field: "intermediary"
|
||||
}, {
|
||||
name: '房屋视频',
|
||||
@ -561,17 +561,17 @@ Page({
|
||||
if (this.data.types == 'edit' || this.data.types == 'edit1') {
|
||||
requestData = {
|
||||
uniqid: this.data.uniqid,
|
||||
token: this.options.token
|
||||
token: this.options.token,
|
||||
intermediary: 3,
|
||||
}
|
||||
} else {
|
||||
requestData = {
|
||||
uniqid: this.data.uniqid,
|
||||
intermediary: 3,
|
||||
}
|
||||
}
|
||||
// miucms.request(`${app.globalData.baseURL}/tenement/publish`, requestData).then(res => {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/publish`, {
|
||||
intermediary: 3
|
||||
}).then(res => {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/publish`, requestData).then(res => {
|
||||
wx.hideLoading()
|
||||
this.setData({
|
||||
loding: false
|
||||
@ -838,7 +838,7 @@ Page({
|
||||
|
||||
// 初始化弹出的窗口
|
||||
firstStepPopover() {
|
||||
return
|
||||
// return
|
||||
// let field = 'type'
|
||||
// let step = 0
|
||||
// let it = 'basic'
|
||||
@ -1712,6 +1712,7 @@ Page({
|
||||
value,
|
||||
field
|
||||
} = ""
|
||||
|
||||
if (e.currentTarget) {
|
||||
choices = e.currentTarget.dataset.choices
|
||||
key = e.currentTarget.dataset.key
|
||||
@ -1719,6 +1720,13 @@ Page({
|
||||
field = e.currentTarget.dataset.field
|
||||
} else field = e
|
||||
|
||||
if (field == "intermediary" && value == "求房源") {
|
||||
|
||||
wx.navigateTo({
|
||||
url: `/pages/askHousing/askHousing?uniqid=${this.data.uniqid}`,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
let popUpSubtitle1 = this.data.popUpSubtitle
|
||||
let popUpIs = ""
|
||||
@ -2284,7 +2292,8 @@ Page({
|
||||
})
|
||||
} else {
|
||||
wx.redirectTo({
|
||||
url: '/pages/show/show?uniqid=' + res.data.uniqid + '&cityid=' + this.data.newcity.id,
|
||||
// url: '/pages/show/show?uniqid=' + res.data.uniqid + '&cityid=' + this.data.newcity.id,
|
||||
url: '/pages/show/show?uniqid=' + res.data.uniqid,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -842,8 +842,8 @@
|
||||
<view class='select-area'>
|
||||
|
||||
<view class='slider-container'>
|
||||
<slider style='width:{{slider1W+"%"}}' class='slider-left' min='{{min}}' max='{{slider1Max}}' color='#50e3c2' activeColor='#f2f2f2' bindchanging='changing' catchtouchstart='changeStart' block-size="14" block-color="#50e3c2" bindchange='changed' data-idx='1' value="{{ slider1Value }}"></slider>
|
||||
<slider wx:if='{{!change}}' style='width:{{slider2W+"%"}}' class='slider-right' min='{{slider2Min}}' max='{{max}}' color='#f2f2f2' activeColor='#50e3c2' bindchanging='changing' catchtouchstart='changeStart' block-size="14" block-color="#50e3c2" bindchange='changed' data-idx='2' value="{{ slider2Value }}"></slider>
|
||||
<slider style='width:{{slider1W+"%"}}' class='slider-left' min='{{min}}' max='{{slider1Max}}' color='#50e3c2' activeColor='#f2f2f2' bindchanging='changing' catchtouchstart='changeStart' block-size="14" block-color="#50e3c2" bindchange='changed' data-idx='1' value="{{ slider1Value }}" step="10"></slider>
|
||||
<slider wx:if='{{!change}}' style='width:{{slider2W+"%"}}' class='slider-right' min='{{slider2Min}}' max='{{max}}' color='#f2f2f2' activeColor='#50e3c2' bindchanging='changing' catchtouchstart='changeStart' block-size="14" block-color="#50e3c2" bindchange='changed' data-idx='2' value="{{ slider2Value }}" step="10"></slider>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -77,10 +77,16 @@ Page({
|
||||
})
|
||||
}
|
||||
|
||||
let findHouseSource = data.data.findHouseSource
|
||||
|
||||
findHouseSource.forEach(element => {
|
||||
if (Array.isArray(element['rent'])) element['rent'] = `${element['rent'][0]} ~ ${ element['rent'][1] }`
|
||||
})
|
||||
|
||||
that.setData({
|
||||
HKapartment: data.data.HKapartment,
|
||||
otherHousing: data.data.otherHousing,
|
||||
findHouseSource: data.data.findHouseSource,
|
||||
findHouseSource,
|
||||
HKhousing: data.data.HKhousing,
|
||||
banner: data.data.banner,
|
||||
service: data.data.service,
|
||||
|
@ -70,7 +70,31 @@ Page({
|
||||
listingcount: 0, // 房东一共有几个房源
|
||||
elseResourceData: [], // 其他房源数据
|
||||
unitTop: 0, // 租金预算的高度
|
||||
bottomUnitState: false // 底部租金 预算显示状态
|
||||
bottomUnitState: false, // 底部租金 预算显示状态
|
||||
basicRequirementsList: [{ // 求房源的基本数据 键值对
|
||||
key: "property",
|
||||
name: "房屋类型"
|
||||
}, {
|
||||
key: "floor",
|
||||
name: "所在楼层"
|
||||
}, {
|
||||
key: "elevator",
|
||||
name: "电梯"
|
||||
}, {
|
||||
key: "sunshinearea",
|
||||
name: "晾晒区"
|
||||
}, {
|
||||
key: "acreage",
|
||||
name: "面积"
|
||||
}, {
|
||||
key: "gender",
|
||||
name: "同住人性别要求"
|
||||
}, {
|
||||
key: "publishergender",
|
||||
name: "发布者性别"
|
||||
}, ],
|
||||
|
||||
langs: {}, // 语言包
|
||||
|
||||
},
|
||||
to_share() {
|
||||
@ -124,6 +148,8 @@ Page({
|
||||
screenWidth: screenWidth,
|
||||
})
|
||||
this.get_config()
|
||||
app.globalData['langs'] ? this.data.langs = app.globalData['langs'] : this.getDtailsLangs()
|
||||
|
||||
},
|
||||
onShow() {
|
||||
if (wx.getEnterOptionsSync().query && wx.getEnterOptionsSync().query.scancode_time && app.globalData.scancode_time != wx.getEnterOptionsSync().query.scancode_time) {
|
||||
@ -133,7 +159,6 @@ Page({
|
||||
q: wx.getEnterOptionsSync().query.q
|
||||
})
|
||||
this.get_config()
|
||||
console.log('onshow有更新')
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
@ -197,9 +222,11 @@ Page({
|
||||
source: that.data.source,
|
||||
q: that.data.q
|
||||
})
|
||||
miucms.request(app.globalData.config.show.init, sendData).then(data => {
|
||||
// miucms.request(app.globalData.config.show.init, sendData).then(data => {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/details`, sendData).then(data => {
|
||||
wx.hideLoading()
|
||||
if (data.extraparam) {
|
||||
// if (data.extraparam) {
|
||||
if (data.code != 200) {
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: data.message,
|
||||
@ -211,6 +238,15 @@ Page({
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
data = data.data
|
||||
// data.info.intermediary = 6
|
||||
let info = data.info
|
||||
if (Array.isArray(info['rent'])) {
|
||||
info['rent'] = info['rent'][0] + ' ~ ' + info['rent'][1]
|
||||
}
|
||||
|
||||
|
||||
that.setData({
|
||||
irentCouponBig: app.globalData.irentCouponBig || true,
|
||||
info: data.info,
|
||||
@ -227,26 +263,26 @@ Page({
|
||||
groupid: data.groupid,
|
||||
listingcount: data.listingcount,
|
||||
landlordcertification: data.landlordcertification,
|
||||
langs: this.data.langs,
|
||||
loding: false
|
||||
})
|
||||
if (data.info && data.info.introduction && data.info.introduction.length > 0 && data.info.introduction != ' ') {
|
||||
WxParse.wxParse('info.introduction', 'html', '<div>' + data.info.introduction + '</div>', that, 0);
|
||||
}
|
||||
if (data.info && data.info.message && data.info.message.length > 0 && data.info.message != ' ') {
|
||||
WxParse.wxParse('info.message', 'html', '<div>' + data.info.message + '</div>', that, 0);
|
||||
}
|
||||
if (data.info && data.info.message && data.info.message.length > 0 && data.info.message != ' ') WxParse.wxParse('info.message', 'html', '<div>' + data.info.message + '</div>', that, 0);
|
||||
|
||||
|
||||
// 认证房东 和 listingcount (他的房源数量) >1 时加载其他房源接口
|
||||
if (data.groupid == 19 && data.listingcount > 1) this.getElseResource()
|
||||
|
||||
|
||||
// 判断是否需要请求顶部广告
|
||||
if (data.ads.bannertop) this.requestTopAds(data.ads.bannertop)
|
||||
if (data.ads && data.ads.bannertop) this.requestTopAds(data.ads.bannertop)
|
||||
|
||||
// 判断是否是求房源 如果是需要获取租金位置
|
||||
this.getRentalLocation()
|
||||
|
||||
|
||||
this.againstTargetArea()
|
||||
}
|
||||
}).catch(res => {
|
||||
wx.hideLoading()
|
||||
@ -257,8 +293,70 @@ Page({
|
||||
})
|
||||
|
||||
},
|
||||
copy: function (e) {
|
||||
|
||||
// 获取语言包 保存全局
|
||||
getDtailsLangs() {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/details/langs`).then(res => {
|
||||
if (res.code != 200) return
|
||||
let data = res.data
|
||||
this.setData({
|
||||
langs: data
|
||||
})
|
||||
app.globalData['langs'] = data
|
||||
})
|
||||
},
|
||||
|
||||
// 对照目标区域的
|
||||
againstTargetArea() {
|
||||
let langs = this.data.langs
|
||||
console.log("langs", langs);
|
||||
if (Object.keys(langs).length == 0) {
|
||||
setTimeout(() => {
|
||||
this.againstTargetArea()
|
||||
}, 800)
|
||||
} else {
|
||||
let info = this.data.info
|
||||
|
||||
if (Array.isArray(info['acreage'])) info['acreage'] = info['acreage'][0] + ' ~ ' + info['acreage'][1]
|
||||
|
||||
let list = ['type', 'rentalduration', 'intermediary']
|
||||
console.log("info['floor']", info['floor']);
|
||||
if (Array.isArray(info['floor'])) list.push('floor')
|
||||
|
||||
|
||||
let differentNames = {
|
||||
"intermediary": "intermediary_text"
|
||||
}
|
||||
|
||||
list.forEach(element => {
|
||||
if (info[element] == 0) info[differentNames[element] ? differentNames[element] : element] = '不限'
|
||||
else info[differentNames[element] ? differentNames[element] : element] = langs[element][info[element]]
|
||||
})
|
||||
|
||||
let location = langs.location
|
||||
let pendingData = info['location']
|
||||
let locationList = []
|
||||
for (const key in location) {
|
||||
if (pendingData.indexOf(key) != -1) {
|
||||
locationList.push({
|
||||
head: location[Math.trunc(key)],
|
||||
end: location[key],
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
info['locationList'] = locationList
|
||||
|
||||
this.setData({
|
||||
info
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
copy: function (e) {
|
||||
var that = this;
|
||||
let num = that.data.info[e.currentTarget.dataset.num] + '';
|
||||
let hint = e.currentTarget.dataset.hint
|
||||
@ -760,6 +858,8 @@ Page({
|
||||
// 点击复制的公共方法
|
||||
publicCopy(e) {
|
||||
let value = e.currentTarget.dataset.value
|
||||
|
||||
if (typeof value === 'number') value = value + ''
|
||||
miucms.copy(value)
|
||||
},
|
||||
|
||||
|
@ -48,8 +48,9 @@
|
||||
<view class='user-info' wx:if="{{ groupid != 19 }}">
|
||||
<image src="{{ info.avatar }}"></image> {{ info.author }}
|
||||
<image wx:if="{{ groupid == 19 }}" class="authentication-icon" mode="widthFix" src="/img/u30.png"></image>
|
||||
<view wx:else class='agent'>{{ info.intermediary_text }}</view>
|
||||
<view class='is_rent_btn' wx:if="{{ info.status==2}}">已出租</view>
|
||||
<view wx:else class='agent flexcenter'>{{ info.intermediary_text }}</view>
|
||||
<!-- <view wx:else class='agent flexcenter'>{{ langs['intermediary'][info.intermediary]}}</view> -->
|
||||
<view class='is_rent_btn' wx:if="{{ info.status == 2 }}">已出租</view>
|
||||
</view>
|
||||
|
||||
<view class="HResource-title" wx:if="{{ groupid == 19 }}">{{ info.subject }}</view>
|
||||
@ -65,7 +66,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 房源详细信息 -->
|
||||
<view class="HResource-detail">
|
||||
<view class="HResource-header">
|
||||
@ -85,10 +85,28 @@
|
||||
基本要求
|
||||
</view>
|
||||
<view class="HResource-item-list basic-list-aLine">
|
||||
<view class="basic-item-aLine flexacenter" wx:for="{{ 3 }}" wx:key="index">
|
||||
<view class="basic-aLine-key">房屋类型</view>
|
||||
<view class="basic-aLine-value flex1">不限</view>
|
||||
</view>
|
||||
<block wx:for="{{ basicRequirementsList }}" wx:key="index">
|
||||
<view class="basic-item-aLine flexacenter" wx:if="{{ info[item.key] != null && info[item.key] != undefined && info[item.key] != '' }}">
|
||||
<view class="basic-aLine-key">{{ item.name }}</view>
|
||||
<view class="basic-aLine-value flex1" wx:if="{{ item.key == 'acreage' }}">{{ info[item.key] + ' 平方呎' }}</view>
|
||||
<view class="basic-aLine-value flex1" wx:elif="{{ (item.key == 'sunshinearea' || item.key == 'property') && info[item.key] != 0 }}">
|
||||
<block wx:for="{{ info[item.key] }}" wx:for-item="it">
|
||||
{{ langs[item.key][it] }} {{ index == info[item.key].length - 1 ? '' : '/' }}
|
||||
</block>
|
||||
</view>
|
||||
<view class="basic-aLine-value flex1" wx:elif="{{ (item.key == 'sunshinearea' || item.key == 'property') && info[item.key] == 0 }}">
|
||||
不限
|
||||
</view>
|
||||
<view class="basic-aLine-value flex1" wx:elif="{{ item.key == 'gender' || item.key == 'publishergender' }}">
|
||||
{{ langs['gender'][info[item.key]] }}
|
||||
</view>
|
||||
<view class="basic-aLine-value flex1" wx:elif="{{ item.key == 'elevator' }}">
|
||||
{{ langs[item.key][info[item.key]] }}
|
||||
</view>
|
||||
<view class="basic-aLine-value flex1" wx:else>{{ info[item.key] }}</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -100,23 +118,23 @@
|
||||
</view>
|
||||
|
||||
<view class="HResource-item-list target-area-list">
|
||||
<view class="target-area-item flexacenter" wx:for="{{ 3 }}" wx:key="index">
|
||||
新界<view class="target-area-arrows flexcenter">
|
||||
<view class="target-area-item flexacenter" wx:for="{{ info.locationList }}" wx:key="index">
|
||||
{{ item.head }}<view class="target-area-arrows flexcenter">
|
||||
<image class="target-area-arrows-icon" mode="widthFix" src="/img/Back.svg"></image>
|
||||
</view>将军澳/坑口/宝琳
|
||||
</view>{{ item.end }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 求租描述 -->
|
||||
<view class="HResource-item">
|
||||
<view class="HResource-item" wx:if="{{ info.introduction }}">
|
||||
<view class="HResource-item-head flexacenter">
|
||||
<image class="HResource-item-head-icon" src="/img/ask-for.png" mode="widthFix"></image>
|
||||
求租描述
|
||||
</view>
|
||||
<view class="HResource-item-list rent-seeking-description">
|
||||
<template is="wxParse" data="{{wxParseData:info.message.nodes }}" />
|
||||
<template is="wxParse" data="{{wxParseData:info.introduction.nodes }}" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -126,7 +144,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 免责声明 -->
|
||||
<template is="disclaimer"></template>
|
||||
<template is="disclaimer" data="{{ info }}"></template>
|
||||
|
||||
<!-- 底部 -->
|
||||
<template is="footer1" data="{{ info,isfav,bottomLift,bottomUnitState }}"></template>
|
||||
@ -162,7 +180,7 @@
|
||||
<view class='user-info' wx:if="{{ groupid != 19 }}">
|
||||
<image src="{{ info.avatar }}"></image> {{ info.author }}
|
||||
<image wx:if="{{ groupid == 19 }}" class="authentication-icon" mode="widthFix" src="/img/u30.png"></image>
|
||||
<view wx:else class='agent'>{{ info.intermediary_text }}</view>
|
||||
<view wx:else class='agent flexcenter'>{{ info.intermediary_text }}</view>
|
||||
<view class='is_rent_btn' wx:if="{{ info.status==2}}">已出租</view>
|
||||
</view>
|
||||
|
||||
@ -192,10 +210,10 @@
|
||||
<template is="HResource-header-item" data="{{ name: '起租日期',value: info.leasetime || '随时' }}"></template>
|
||||
</view>
|
||||
<view class="HResource-detail-content-item">
|
||||
<template wx:if="{{ info.property }}" is="HResource-detail-tier" data="{{ name: '房屋类型', value: info.property }}"></template>
|
||||
<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.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: info.gender }}"></template>
|
||||
<template wx:if="{{ info.gender }}" is="HResource-detail-tier" data="{{ name:'性别要求', value: langs['gender'][info.gender] }}"></template>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -235,7 +253,8 @@
|
||||
<view class="location-box">
|
||||
<view class="location-header">
|
||||
<image class="location-icon" mode="widthFix" src="/img/u1695.png"></image>
|
||||
{{ info.cityid==1 ? info.location :((info.country || '') +' > ' + (info.city || '')) }}
|
||||
<!-- {{ info.cityid==1 ? info.location : ((info.country || '') +' > ' + (info.city || '')) }} -->
|
||||
{{ info.locationList[0].head + ' > ' + info.locationList[1].end }}
|
||||
</view>
|
||||
<!-- 地图 -->
|
||||
<block wx:if="{{info.cityid==1 && info.point && info.point.length==2 && info.point[0]>0 && info.point[1]>0 }}">
|
||||
@ -267,7 +286,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 个人情况介绍 -->
|
||||
<view class="information-box">
|
||||
<view class="information-box" wx:if="{{ info.introduction }}">
|
||||
<view class="information-title">个人情况介绍</view>
|
||||
<view class="information-content">
|
||||
<template is="wxParse" data="{{wxParseData:info.introduction.nodes }}" />
|
||||
@ -275,7 +294,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 其他描述 -->
|
||||
<view class="otherDescription-box">
|
||||
<view class="otherDescription-box" wx:if="{{ info.message }}">
|
||||
<view class="otherDescription-title">其他描述</view>
|
||||
<view class="otherDescription-content">
|
||||
<template is="wxParse" data="{{wxParseData:info.message.nodes }}" />
|
||||
@ -373,7 +392,7 @@
|
||||
<view class='user-info'>
|
||||
<image src="{{ info.avatar }}"></image> {{ info.author }}
|
||||
<image wx:if="{{ groupid == 19 }}" mode="heightFix" class="authentication-icon" src="/img/u30.png"></image>
|
||||
<view wx:else class='agent'>{{ info.intermediary_text }}</view>
|
||||
<view wx:else class='agent flexcenter'>{{ info.intermediary_text }}</view>
|
||||
<view class='is_rent_btn' wx:if="{{ info.status==2}}">已出租</view>
|
||||
</view>
|
||||
<view class='table'>
|
||||
@ -699,7 +718,7 @@
|
||||
<template name="disclaimer">
|
||||
<view class="disclaimer">
|
||||
<view class="disclaimer-title">免责声明</view>
|
||||
<view class="disclaimer-item" bindtap="publicCopy" data-value="23132467"><text>房源ID:23132467</text>(点击可复制)</view>
|
||||
<view class="disclaimer-item" bindtap="publicCopy" data-value="{{ info.id }}"><text>房源ID:{{ info.id }}</text>(点击可复制)</view>
|
||||
<view class="disclaimer-item">发布者对房源信息的真实性、合法性等负责,平台不负责甄别和审核具体内容真实性和有效性等,请务必仔细核实相关信息,谨防上当受骗。</view>
|
||||
<view class="disclaimer-item">如房源信息中有内容侵犯了您的合法权益,可点击屏幕右侧的举报或联系寄托方同学<view bindtap="publicCopy" data-value="gternet2">(微信号<text>gternet2</text>,点击可复制)</view>,我们会及时处理。谢谢!</view>
|
||||
<view class="disclaimer-item">公寓/酒店/中介房源推广合作请联系:<view bindtap="publicCopy" data-value="ad@gter.net"><text>ad@gter.net</text>(点击可复制)</view>
|
||||
@ -766,7 +785,7 @@
|
||||
<template name="footer1">
|
||||
<view class="footer1" style="padding-bottom: {{ bottomLift }}rpx;">
|
||||
<view class="rent-budget flexflex" wx:if="{{ info.intermediary == 6 && bottomUnitState }}">
|
||||
<view class="rent-budget-money">5500~6500</view>
|
||||
<view class="rent-budget-money">{{ info.rent }}</view>
|
||||
<view class="">租金预算</view>
|
||||
</view>
|
||||
<!-- 收藏 -->
|
||||
|
@ -1760,7 +1760,7 @@ map .clickmap {
|
||||
}
|
||||
|
||||
.target-area-list .target-area-arrows .target-area-arrows-icon {
|
||||
width: 7.5rpx;
|
||||
width: 8rpx;
|
||||
height: 12rpx;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
@ -1770,6 +1770,7 @@ map .clickmap {
|
||||
font-size: 25.5rpx;
|
||||
line-height: 45rpx;
|
||||
margin-top: 30rpx !important;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.disclaimer {}
|
||||
@ -1802,7 +1803,7 @@ map .clickmap {
|
||||
}
|
||||
|
||||
.rent-budget {
|
||||
font-size: 23rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 33rpx;
|
||||
color: #000;
|
||||
flex-direction: column;
|
||||
|
@ -207,6 +207,7 @@
|
||||
</view>
|
||||
<view class='footer'>
|
||||
<view>{{ item.currency }}
|
||||
<!-- <view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }} -->
|
||||
<view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }}
|
||||
</view>
|
||||
<view class='agent' wx:if="{{ item.intermediary_text }}">{{ item.intermediary_text }}</view>
|
||||
@ -225,10 +226,12 @@
|
||||
</view>
|
||||
<view class="house-id">房源ID:{{ item.id }}</view>
|
||||
<view class="operation" wx:if="{{ item.status !=-3 }}">
|
||||
<!-- <view class="operation-item">撤销审核</view> -->
|
||||
<block wx:if="{{ item.status != -4 }}">
|
||||
<view class="operation-item" wx:if="{{ item.status != 4}}" bindtap='del_item' data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">删除</view>
|
||||
<navigator class="operation-item" url="../edit/edit?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
|
||||
<navigator wx:if="{{ item.intermediary == 6 }}" class="operation-item" url="../askHousing/askHousing?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</navigator>
|
||||
<navigator wx:else class="operation-item" url="../edit/edit?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</navigator>
|
||||
<view class="operation-item" wx:if="{{ item.status==1}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">下架</view>
|
||||
<view class="operation-item" wx:if="{{ item.status==2}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">上架</view>
|
||||
|
@ -452,7 +452,43 @@
|
||||
{
|
||||
"name": "",
|
||||
"pathName": "pages/askHousing/askHousing",
|
||||
"query": "cityName=%25E9%2598%25BF%25E4%25BC%25AF%25E9%259B%25B7%25E6%2596%25AF%25E5%25A8%2581%25E6%2596%25AF&alias=Aberystwyth&uniqid=zfyoUDDv6hxgQ-EU6ad3t8k38S1owiktRN2YbaS1vQgH6Vvd2SkcrFyU_NbbKaXfed_xgBPnOazQlv_CHIx83F-pqc74Q-aJSBGutqdOSqXxteT7PvZG0SJX9FzMM4BastsH3d8dJyaz8LMFj7RNj2Glm5aWSr6TbIOybWiC47xAPHZzUpTHrUanHLIkwB2yIwmS_X1yJWch3qHdATEBsY2uBZhTfNTlSiqSc9d43PAawSu-OqvkcHJ_aXtPNgwpgszYxDdm5t-_IdmhWt7C4fC_1_2z4inIbUwJg1Qb0vmUk7rWhMlbuljt6f0E8HAnuajiVdLEv6CVKU7QGdksLxWdOVxdBTVUydhSby5wK5X13dTa642VxDA4ZDA~",
|
||||
"query": "uniqid=bS5yLHLDCyD4",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"pathName": "pages/show/show",
|
||||
"query": "tid=&uniqid=vvLXyPDea8y5&cityid=1",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"pathName": "pages/askHousing/askHousing",
|
||||
"query": "uniqid=u5WSr9OvnCuX&token=T9dHETv_VPmaLh4hetlosxxfXa9sdR9zHcRFuaixW5jWEkrZ6D6pmoRWfo-DLNEyqL4FA4LnaM1CIr1CFn15W4jq8J7-BycUiHzo2RCLnRFmYTQ2&types=edit",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"pathName": "pages/show/show",
|
||||
"query": "uniqid=u5WSr9OvnCuX",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"pathName": "pages/show/show",
|
||||
"query": "tid=&uniqid=GbeDeaK90Kb8&cityid=1",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"pathName": "pages/show/show",
|
||||
"query": "tid=&uniqid=OnffSLrXmeWK",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"pathName": "pages/askHousing/askHousing",
|
||||
"query": "uniqid=G9SKb098Cn9W&token=rouI3n-Wb4O06YwC1IhQ24LJzU8OkTcficd0nuv1i5AgqLl2boGht5ggCJSUlyQZ8KbZOdNYw9n-LiF4J_4GV4GjTA4_qiIEA0QMG7MqM8BiM2M0&types=edit1",
|
||||
"scene": null
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user