A1300399510 8085d1fb78 提交
2023-07-07 19:38:35 +08:00

721 lines
44 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 求房源 -->
<import src="../common/common.wxml" />
<wxs module="m1">
module.exports = {
fn: function (arr, arg, state) { // 判断是否 包含的
var result = {
indexOf: false,
toString: ''
}
if (state == 'location' && arr.indexOf(arg) != -1) {
result.indexOf = true
return result
}
for (var i = 0; i < arr.length; i++) {
if (state == 'type') {
if (arr[i] && arr[i].indexOf(arg) != -1) {
result.indexOf = true
return result
}
} else {
if (arr[i] && arr[i] == arg) {
result.indexOf = true
return result
}
}
result.indexOf[i] = arr.indexOf(arg) > -1;
}
return result;
},
floor: function (value) { // 数据向下取值的
return Math.floor(value)
},
tofixedOne: function (num) {
if (isNaN(num)) {
num = 0
}
return num.toFixed(1)
},
indexof: function (str, targetStr) {
return str.indexOf(targetStr) >= 0 ? true : false
}
}
</wxs>
<import src="../../wxParse/wxParse.wxml" />
<view class="container" wx:if="{{ !loding }}">
<!-- 选择发布类型 -->
<!-- <choice-type-release></choice-type-release> -->
<!-- 关于发布 -->
<about-release wx:if="{{ popUpIs == 'about' }}" aboutRulesList="{{ aboutRulesList }}" bindsetValue="setValue"></about-release>
<header-nav inner-text="Some text" bgcolor="rgba(246, 246, 246, 1)">{{ types=='edit' ? '编辑' : '发布' }}求房源</header-nav>
<template wx:if="{{ getWechatQRCodeState }}" is="getWechatQRCode"></template>
<view class="header-tips" wx:if="{{ false }}">
<view class="name-tips">
<view class="box">
<image src="../../img/u125.png" mode="widthFix"></image>发布须知
</view>
<view wx:if="{{ !unfoldState }}" class="name-tips-unfold-btn" bindtap="cutUnfoldState"><text>展开</text>
<view class="bottomArrow"></view>
</view>
</view>
<block wx:if="{{ unfoldState }}">
<view style="margin-top:40rpx;">
<text wx:for="{{ publishingrules }}" wx:key="index" style="display: block;">{{ index + 1 + '.'}}{{ item }}</text>
</view>
<view class="name-tips-close-btn" bindtap="cutUnfoldState">
<image src="../../img/u124.svg" mode="heightFix"></image>
</view>
</block>
</view>
<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>香港
</view>
<view class="edit-head-type flexcenter">求房源</view>
</view>
<view class="housing-message flexacenter" wx:if="{{ types=='edit' || types=='edit1' }}">
<view class="housing-message-item">房源ID{{ id }}</view>
<view class="housing-message-item" wx:if="{{ newStatus == 0 }}">未发布</view>
<view class="housing-message-item" wx:elif="{{ newStatus != 1 && offshelftime }}">下架:{{ offshelftime }}</view>
<view class="housing-message-item" wx:if="{{ newStatus == 1 && timestamp }}">发布:{{ timestamp }}</view>
<view class="housing-message-item" wx:if="{{ newStatus == 1 && updatetime }}">更新:{{ updatetime }}</view>
</view>
<view class="edit-head-surplus flexacenter" bindtap="getAbout">
<view class="edit-head-surplus-text">您还可以发布 <text>{{ allowpublishednum }}</text> 条普通房源</view>
<view class="flexacenter">
了解更多<image class="edit-head-surplus-icon" src="/img/blue-arrow.svg"></image>
</view>
</view>
<view class="edit-box">
<view class="edit-top" wx:if="{{ false }}">
<image class="edit-top-img" mode="widthFix" src="/img/u706.png"></image>
{{ newcity.name }}
</view>
<view class="edit-option">
<!-- 基础区域 -->
<view class="edit-option-item">
<block wx:for="{{ fieldinfo.basic }}" wx:key="index">
<!-- <template wx:if="{{ item.field == 'acreage' }}" is="pageInput" data="{{ item,index,it:'basic',newinfo,fieldinfo }}"></template> -->
<template wx:if="{{ item.field == 'property' || item.field == 'floor' || item.field == 'sunshinearea' }}" is="clickInputUnderArrowMultiple" data="{{ item,index,it:'basic',newinfo,fieldinfo,propertyObj,floorObj,sunshineareaObj }}"></template>
<template wx:else is="clickInputUnderArrow" data="{{ item,index,it:'basic',newinfo,fieldinfo,fieldinfoNew }}"></template>
</block>
</view>
<!-- 所在区域 -->
<view class="edit-option-item">
<block wx:for="{{ fieldinfo.address }}" wx:key="index">
<block wx:if="{{ newinfo['location'].length == 0 }}">
<template is="clickInputUnderArrow" data="{{ item,index,it:'address',newinfo,fieldinfo }}"></template>
</block>
<block wx:else>
<template wx:if="{{ item.field == 'location' }}" data="{{ item,index,it:'address',fieldinfo, newinfo, locationObj }}" is="target-area"></template>
</block>
</block>
</view>
<!-- 租客性别要求 -->
<view class="edit-option-item">
<block wx:for="{{ fieldinfo.identity }}" wx:key="index">
<template wx:if="{{ item.field == 'gender' && m1.indexof(newinfo['type'],'合租') }}" is="clickInputUnderArrow" data="{{ item,index,it:'identity',newinfo }}"></template>
<template wx:elif="{{ item.field != 'gender' }}" is="clickInputUnderArrow" data="{{ item,index,it:'identity',newinfo }}"></template>
</block>
</view>
<!-- 个人介绍 -->
<view class="edit-option-item">
<block wx:for="{{ fieldinfo.introduce }}" wx:key="index">
<template is="clickInputUnderArrow" data="{{ item,index,it:'introduce',newinfo,fieldinfo }}"></template>
</block>
</view>
<!-- 联系方式填写 -->
<view class="edit-option-item contactInformation">
<view class="contact-way-hint">- 请至少提供其中一项联系方式,这是对方联系你的唯一途径 -</view>
<block wx:for="{{ fieldinfo.contact }}" wx:key="index">
<view wx:if="{{ item.field == 'wechat' }}" class="contact-way contact-way-WeChat">
<!-- <view class="contact-way-title" style="padding-bottom: 28rpx;">微信</view> -->
<view class="contact-way-title WeChat flexacenter" style="padding-bottom: 28rpx;">
<view class="">微信</view>
<view class="how" bindtap="handleWechatQRCodeState">如何获取二维码?</view>
</view>
<view class="contactInformation-wechat" wx:if="{{ contactInformationState == 0 }}">
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2">
<image src="/img/u789.svg"></image>
<text>上传二维码</text>
</view>
</view>
<view class="contactInformation-wechat-input" wx:elif="{{ contactInformationState == 1 }}">
<input type="text" placeholder="{{ item.placeholder }}" data-field="{{ item.field }}" bindinput="popUpInput" value="{{ newinfo[item.field] }}" bindblur="microSignalCheck" />
<view class="contactInformation-close" bindtap="contactInformationwechatcut" data-state="0">
<image src="/img/plusgrey.png"></image>
</view>
</view>
<block wx:elif="{{ contactInformationState == 2}}">
<view class="QRCode-box flexcenter">
<image class="QRCode-img" mode="widthFix" src="{{ newinfo.wechatdata.image }}"></image>
<view class="close-btn" catchtap="setValue" data-key="contactInformationState" data-value="0">
<image src="/img/plusf.png"></image>
</view>
</view>
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2" style="margin-top: 30rpx;">
<image src="/img/u789.svg"></image>
<text>重新上传</text>
</view>
</block>
</view>
<view wx:elif="{{ item.field != 'wechat'}}" class="contact-way contact-way-WhatsApp">
<view class="contact-way-title">{{ item.title }}</view>
<input class="contact-way-input" placeholder="{{ item.placeholder }}" value="{{newinfo[item.field]}}" type="{{ item.type }}" bindinput="popUpInput" data-field="{{ item.field }}" />
</view>
</block>
</view>
<!-- 标题 -->
<view class="edit-option-item">
<block wx:for="{{ fieldinfo.info }}" wx:key="index">
<template is="pageTextarea" cursor-spacing="20" data="{{ item,index,it:'info',newinfo }}"></template>
</block>
<!-- 发布须知 -->
<view class="notice-publication flexcenter">
<view class="notice-publication-key">发布须知:</view>
请按真实身份发布、请勿发布非寄托官方群/代看房信息,违规发布将被永久禁言,感谢合作!
</view>
</view>
</view>
</view>
<view class="footer-btn">
<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>
<view wx:if="{{ newtype=='edit' && newStatus == 1 }}" bindtap='NewRelease' data-status="1" class="submit">提交</view>
</view>
<!-- 弹窗应该出现那个状态在这里处理-->
<view class="pop-up-dispose">
<template is="{{ popUpIs }}" data="{{ item:popUpdate,fieldinfoNew,popUpSubtitle,leaseTimeValue,week, calculateOfDateList,calculateOfDateTime,popUpTitle,floorValue,popUpStepState,newinfo,contactInformationState,fieldinfo,imgs,videos,areaRegionIndex,newtype,newStatus,focustitle,pitchyear,pitchmonth,pitchday,focusState,locationObj,popState:'ask',countDown }}"></template>
</view>
<!-- 触发规则1时 重复发布 -->
<template wx:if="{{ triggerRules == 1 }}" is="repeatedRelease"></template>
<!-- 触发规则2时 提交失败 -->
<template wx:elif="{{ triggerRules == 2 }}" is="submitFailuretwo"></template>
<!-- 触发规则3时 提交失败 -->
<!-- <template is="submitFailurethree"></template> -->
<template wx:elif="{{ triggerRules == 3 }}" is="fail-pop"></template>
<!-- 触发规则4时 你的微信号有误 -->
<template wx:elif="{{ triggerRules == 4 }}" is="wrong-micro-signal"></template>
</view>
<!-- 禁用的输入框款-箭头右 -->
<template name="clickInput">
<view class="clickInput-box {{'clickInput' + item.field }}">
<view class="clickInput-title">{{ item.title }}<text wx:if="{{ item.required == 1}}" style="color:#C54235;margin-left: 10rpx;">*</text></view>
<view class="clickInput" bindtap="clickOption" data-it="{{ it }}" data-step="{{ index }}" data-field="{{ item.field }}">
<input disabled type="{{ item.type }}" value="{{ newinfo[item.field] }}" placeholder="{{ fieldinfo[it][index].field == 'school' ? '请设置' : fieldinfo[it][index].field == 'message' ? '请填写' : fieldinfo[it][index].field == 'introduction' ? '请填写' : fieldinfo[it][index].field == 'address' ? (newcity.alias == 'Hongkong' ? '请选择' : '请输入') : '请选择'}}" />
<view class="clickInputLeftArrow"></view>
</view>
</view>
</template>
<!-- 禁用的输入框款-箭头下 -->
<template name="clickInputUnderArrow">
<view class="clickInput-box {{'clickInput' + item.field }}">
<view class="clickInput-title">{{ item.title }}<text style="color:#C54235;margin-left: 10rpx;">*</text></view>
<view class="clickInput" bindtap="clickOption" data-field="{{ item.field }}" data-step="{{ index }}" data-it="{{ it }}">
<block wx:if="{{ item.field == 'rent' }}">
<input wx:if="{{ !newinfo[item.field][0] && newinfo[item.field][0] != 0 }}" disabled type="{{ item.type }}" placeholder="请选择" value="" />
<view wx:else>{{ (newinfo[item.field][0] * 100 + 1000) + '~' + (newinfo[item.field][1] * 100 + 1000) + '' + fieldinfoNew[item.field].unit + '/月' }}</view>
</block>
<block wx:elif="{{ item.field == 'acreage' }}">
<input wx:if="{{ !newinfo[item.field][0] && newinfo[item.field][0] != 0 }}" type="{{item.type}}" placeholder="请选择" value="" disabled="{{fieldinfo[it][index].popupwindow == 1 ? true : false}}" />
<input wx:else type="{{item.type}}" placeholder="请选择" value="{{ (newinfo[item.field][0] * 10 + 10) + '~' + (newinfo[item.field][1] * 10 + 10) }}" disabled="{{fieldinfo[it][index].popupwindow == 1 ? true : false}}" />
</block>
<input wx:else disabled type="{{ item.type }}" placeholder="请选择" value="{{newinfo[item.field]}}" />
<view class="clickInputBottomArrow"></view>
</view>
</view>
</template>
<!-- 禁用的输入框款-箭头下 -->
<template name="clickInputUnderArrowMultiple">
<view class="clickInput-box {{'clickInput' + item.field }}">
<view class="clickInput-title">{{ item.title }}<text wx:if="{{ item['required'] == 1 }}" style="color:#C54235;margin-left: 10rpx;">*</text></view>
<view class="clickInput" bindtap="clickOption" data-field="{{ item.field }}" data-step="{{ index }}" data-it="{{ it }}">
<block wx:if="{{ item.field == 'property' && newinfo[item.field].length != 0 }}">
<block wx:for="{{ newinfo[item.field] }}" wx:for-item="it" wx:key="index">{{ propertyObj[it] }}{{ index != newinfo[item.field].length - 1 ? ' / ' : '' }}</block>
</block>
<block wx:elif="{{ item.field == 'floor' && newinfo[item.field].length != 0 }}">
<block wx:for="{{ newinfo[item.field] }}" wx:for-item="it" wx:key="index">{{ floorObj[it] }}{{ index != newinfo[item.field].length - 1 ? ' / ' : '' }}</block>
</block>
<block wx:elif="{{ item.field == 'sunshinearea' && newinfo[item.field].length != 0 }}">
<block wx:for="{{ newinfo[item.field] }}" wx:for-item="it" wx:key="index">{{ sunshineareaObj[it] }}{{ index != newinfo[item.field].length - 1 ? ' / ' : '' }}</block>
</block>
<input wx:else disabled type="{{ item.type }}" placeholder="请选择" value="{{newinfo[item.field]}}" />
<view class="clickInputBottomArrow"></view>
</view>
</view>
</template>
<!-- 当前页页面直接操作的输入框 -- 例如 面积 月租 -->
<template name="pageInput">
<view class="pageInput-box {{'clickInput' + item.field }}">
<view class="clpageInputickInput-title">{{ item.title }}<text wx:if="{{ item.required == 1 }}" style="color:#C54235;margin-left: 10rpx;">*</text></view>
<view class="pageInput" bindtap="clickOption" data-field="{{ item.field }}" data-step="{{ index }}" data-it="{{ it }}">
<input wx:if="{{ !newinfo[item.field][0] && newinfo[item.field][0] != 0 }}" type="{{item.type}}" placeholder="{{ item.placeholder }}" value="" disabled="{{fieldinfo[it][index].popupwindow == 1 ? true : false}}" />
<input wx:else type="{{item.type}}" placeholder="{{ item.placeholder }}" value="{{ (newinfo[item.field][0] * 10 + 10) + '~' + (newinfo[item.field][1] * 10 + 10) }}" disabled="{{fieldinfo[it][index].popupwindow == 1 ? true : false}}" />
<text>{{ item.unit }}</text>
</view>
</view>
</template>
<!-- 弹窗一列 -->
<template name="AListOF">
<view class="AListOF pop-up" catchtouchmove="handScroll">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">{{ item.title || popUpTitle }}</view>
<text class="last-step-text" wx:if="{{ popUpSubtitle }}">{{ popUpSubtitle }}</text>
<view class="AListOF-option option-box">
<view wx:for="{{ item.choices }}" wx:for-item="it" wx:key="index" data-i="{{ m1.fn([newinfo[it.field]],it.value, it.field).indexOf }}" data-a="{{ newinfo[it.value] }}" class="AListOF-option-item option-item {{ m1.fn([newinfo[it.field]],it.value, it.field).indexOf ? 'option-hove':'' }}" hover-class="option-hover" hover-stay-time="5" bindtap="selectOption" data-key="{{ it.key }}" data-field="{{ it.field }}" data-choices="{{ it.choices }}" data-value="{{ it.value }}">
{{it.value}}</view>
</view>
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!-- 弹窗-两列 -->
<template name="twoLines">
<view class="twoLines pop-up" catchtouchmove="handScroll">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">{{ item.title || popUpTitle }}</view>
<text class="last-step-text">{{popUpSubtitle}}</text>
<view class="twoLines-option option-box">
<view wx:for="{{ item.choices }}" wx:key="index" class="twoLines-option-item option-item {{item.field}} {{ m1.fn([newinfo[item.field]],item.value, item.field ).indexOf ? 'option-hover':'' }}" hover-class="option-hover" wx:key="index" data-key="{{ item.key}}" bindtap="selectOption" data-key="{{ it.key }}" data-field="{{ it.field }}" data-choices="{{ it.choices }}" data-value="{{ item.value }}">
{{ item.value }}</view>
</view>
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!-- 弹窗-单行输入框 -->
<template name="unilineInput">
<view class="unilineInput pop-up" id="unilineInput{{item.field}}" catchtouchmove="handScroll">
<view class="pop-up-box">
<view class="pop-up-skip" bindtap="popUpSkip" wx:if="{{ item.required == 0 }}"><text>跳过</text>
<view class="clickInputLeftArrow"></view>
</view>
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">{{ item.title == '月租' ? '月租金额' : item.title }}</view>
<view class="unilineInput-box">
<input type="{{ item.type }}" cursor-spacing="50" placeholder="{{ item.placeholder }}" data-field="{{ item.field }}" bindinput="popUpInput" bindconfirm="popUpconfirm" value="{{newinfo[item.field]}}" focus="{{ focustitle == item.field ? true : false}}" confirm-type="done">
<keyboard-accessory>
<cover-view class="keyboard keyboard1" catchtap="popUpNextStep" data-field="{{ item.field }}">
完成
</cover-view>
</keyboard-accessory>
</input>
<text class="unilineInput-unit">{{ item.unit }}</text>
</view>
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!--弹窗-出租时长 -->
<template name="leaseTime">
<view class="leaseTime pop-up">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">{{ item.title || popUpTitle }}</view>
<text class="last-step-text">{{popUpSubtitle}}</text>
<picker-view indicator-class="picker" indicator-style="height: 50px;" style="width: 100%; height: 670rpx;margin: 100rpx 0;" immediate-change="{{ true }}" value="{{ [leaseTimeValue] }}" bindchange="bindChange">
<picker-view-column style="text-align: center;margin: 0 75rpx 200rpx;">
<view wx:for="{{ item.choices }}" wx:key="key" class="{{ index == leaseTimeValue ? 'pickerpitch' : ''}}" style="line-height: 50px;" data-item="{{ item }}">{{item.value}}</view>
</picker-view-column>
</picker-view>
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!--弹窗-所在楼层 -->
<template name="floor">
<view class="leaseTime pop-up">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">{{ item.title || popUpTitle }}</view>
<text class="last-step-text">{{popUpSubtitle}}</text>
<picker-view indicator-class="picker" indicator-style="height: 50px;" style="width: 100%; height: 670rpx;margin: 80rpx 0;" immediate-change="{{ true }}" value="{{floorValue}}" bindchange="bindChange1">
<picker-view-column style="text-align: center;margin: 0 75rpx 200rpx;">
<view wx:for="{{ 103 }}" wx:key="key" class="{{ index == floorValue ? 'pickerpitch' : ''}}" style="line-height: 50px;" data-item="{{ item-3 }}">
{{ item - 3 >= 0 ? item - 2 : item - 3}} {{ index == floorValue ? '楼' : '' }}</view>
</picker-view-column>
</picker-view>
<template is="pop-up-footer" data="{{ popUpStepState,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!-- 弹窗-多行输入 -->
<!-- 个人情况介绍 和 其他描述 -->
<template name="multilineInput" catchtouchmove="handScroll">
<view class="multilineInput pop-up">
<view class=" pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">{{ item.title }}</view>
<text class="last-step-text">{{ item.placeholder }}</text>
<textarea class="multilineInput-textarea" bindfocus="bindfocusfocus" bindblur="bindblurblur" style="min-height: {{ item.field == 'subject' ? '405rpx' : item.field =='address' ? '405rpx' : '700rpx'}};" placeholder="请输入" value="{{ newinfo[item.field]}}" data-field="{{ item.field }}" bindinput="{{ item.field == 'message' ? 'popUpInput1': 'popUpInput'}}" cursor-spacing="40" maxlength="{{ item.field == 'subject' ? '80' : item.field =='address' ? '100' : '500'}}" focus="{{ focustitle == item.field ? true : false}}" bindconfirm="{{ item.field == 'subject' ? 'fillThe' : 'popUpNextStep' }}">
<keyboard-accessory>
<cover-view class="keyboard" catchtap="{{ item.field == 'subject' ? 'fillThe' : 'popUpNextStep'}}" data-field="{{ item.field }}">
<cover-view class="keyboard-view">完成</cover-view>
<cover-view class="keyboard-view">{{ item.field == 'subject' ? (newinfo[item.field] == null ? 80 : 80 - newinfo[item.field].length) : item.field =='address' ? (newinfo[item.field] == null ? 100 : 100 - newinfo[item.field].length ) : (newinfo[item.field] == null ? 500 : 500 - newinfo[item.field].length) }}</cover-view>
</cover-view>
</keyboard-accessory>
</textarea>
<view class="numberwords">
<block wx:if="{{ !focusState }}">{{ item.field == 'subject' ? (newinfo[item.field] == null ? 80 : (80 - newinfo[item.field].length)) : item.field =='address' ? (newinfo[item.field] == null ? 100 : 100 - newinfo[item.field].length ) : (newinfo[item.field] == null ? 500 : 500 - newinfo[item.field].length) }}</block>
</view>
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<template name="multilineInput1">
<view class="multilineInput pop-up">
<view class=" pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">{{ item.title }}</view>
<text class="last-step-text">{{ item.placeholder }}</text>
<textarea class="multilineInput-textarea" bindfocus="bindfocusfocus" bindblur="bindblurblur" style="min-height: {{ item.field == 'subject' ? '405rpx' : item.field =='address' ? '405rpx' : '700rpx'}};" placeholder="请输入" value="{{ newinfo[item.field]}}" data-field="{{ item.field }}" bindinput="popUpInput1" cursor-spacing="40" maxlength="{{ item.field == 'subject' ? '80' : '500'}}" focus="{{ focustitle == item.field ? true : false}}" bindconfirm="popUpNextStep">
<keyboard-accessory>
<cover-view class="keyboard" catchtap="popUpNextStep" data-field="{{ item.field }}">
<cover-view class="keyboard-view">完成</cover-view>
<cover-view class="keyboard-view">{{ newinfo[item.field] == null ? 500 : 500 - newinfo[item.field].length }}</cover-view>
</cover-view>
</keyboard-accessory>
</textarea>
<view class="numberwords">
<!-- <block wx:if="{{ !focusState }}">{{ newinfo[item.field].length || 0 }} {{'/'}} {{ '500' }}</block> -->
<block wx:if="{{ !focusState }}">{{ newinfo[item.field] == null ? 500 : 500 - newinfo[item.field].length }}</block>
</view>
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!-- 弹窗-联系方式 -->
<template name="contactInformation">
<view class="contactInformation pop-up" catchtouchmove="handScroll">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">联系方式</view>
<text class="last-step-text">请至少提供其中一项联系方式,这是对方联系你的唯一途径</text>
<view class="contactInformation-box">
<block wx:for="{{ fieldinfo.contact }}" wx:key="index">
<view wx:if="{{ item.field == 'wechat' }}" class="contactInformation-item">
<!-- <view class="title">
<view class="yellowDot"></view><text>微信</text>
</view> -->
<view class="title flexacenter">
<view class="flexacenter">
<view class="yellowDot"></view><text>微信</text>
</view>
<view class="how" bindtap="handleWechatQRCodeState">如何获取二维码?</view>
</view>
<view class="contactInformation-wechat" wx:if="{{ contactInformationState == 0 }}">
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2">
<image src="/img/u789.svg"></image>
<text>上传二维码</text>
</view>
</view>
<view class="contactInformation-wechat-input" wx:elif="{{ contactInformationState == 1 }}">
<input type="{{ item.type }}" bindinput="popUpInput" data-field="{{ item.field }}" value="{{ newinfo[item.field]}}" placeholder="{{ item.placeholder }}" bindblur="microSignalCheck" />
<view class="contactInformation-close" bindtap="contactInformationwechatcut" data-state="0">
<image src="/img/plusgrey.png"></image>
</view>
</view>
<block wx:elif="{{ contactInformationState == 2}}">
<view class="QRCode-box flexcenter">
<image class="QRCode-img" mode="widthFix" src="{{ newinfo.wechatdata.image }}"></image>
<view class="close-btn" catchtap="setValue" data-key="contactInformationState" data-value="0">
<image src="/img/plusf.png"></image>
</view>
</view>
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2" style="margin-top: 30rpx;">
<image src="/img/u789.svg"></image>
<text>重新上传</text>
</view>
</block>
</view>
<view wx:if="{{ item.field != 'wechat' }}" class="contactInformation-item">
<view class="title">
<view class="flexacenter">
<view class="yellowDot"></view><text>{{ item.title }}</text>
</view>
<!-- <view class="yellowDot"></view><text>{{ item.title }}</text> -->
</view>
<input class="contactInformation-input" placeholder="{{ item.placeholder }}" value="{{newinfo[item.field]}}" type="{{ item.type }}" bindinput="popUpInput" data-field="{{ item.field }}" />
</view>
</block>
</view>
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!-- 选择起租日期 -->
<template name="ofDate">
<view class="ofDate pop-up">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">选择租期</view>
<view class="ofDate-week">
<view class="ofDate-week-item" wx:for="{{ week }}" wx:key="index">{{ item }}</view>
</view>
<view class="ofDate-box">
<!-- 日历第一个月和其他分开,原因是当前月份需要判断是否已过期 -->
<view class="ofDate-item">
<view class="ofDate-title">{{ calculateOfDateList[0].name }}</view>
<view class="ofDate-date">
<view class="ofDate-blank" wx:for="{{ calculateOfDateList[0].week }}" wx:key="index"></view>
<view wx:for="{{ calculateOfDateTime.day - 1 }}" wx:for-index="i" class="ofDate-number ofDate-number-already" wx:key="i">
{{ i + 1 }}
</view>
<view class="ofDate-number ofDate-number-current {{(pitchyear == calculateOfDateList[0].year) && (pitchmonth == calculateOfDateList[0].month) && (pitchday == calculateOfDateTime.day ) ? 'pitchdate' : ''}}" bindtap="selectOfDate" data-year="{{ calculateOfDateList[0].year }}" data-month="{{ calculateOfDateList[0].month }}" data-day="{{ calculateOfDateTime.day }}">
{{ calculateOfDateTime.day }}
</view>
<view wx:for="{{ calculateOfDateList[0].monthDayCount - calculateOfDateTime.day }}" wx:key="index" class="ofDate-number {{(pitchyear == calculateOfDateList[0].year) && (pitchmonth == calculateOfDateList[0].month) && (pitchday == calculateOfDateTime.day + index + 1) ? 'pitchdate' : ''}}" bindtap="selectOfDate" data-year="{{ calculateOfDateList[0].year }}" data-month="{{ calculateOfDateList[0].month }}" data-day="{{ calculateOfDateTime.day + index + 1 }}">
{{ calculateOfDateTime.day + index + 1 }}
</view>
</view>
</view>
<view class="ofDate-item" wx:for="{{ calculateOfDateList }}" wx:for-item="s" wx:if="{{ index > 0}}" wx:key="index">
<view class="ofDate-title">{{ s.name }}</view>
<view class="ofDate-date">
<view class="ofDate-blank" wx:for="{{ s.week }}" wx:key="index"></view>
<view wx:for="{{ s.monthDayCount }}" wx:for-index="i" wx:key="i" class="ofDate-number {{(pitchyear == s.year) && (pitchmonth == s.month) && (pitchday == i + 1) ? 'pitchdate' : ''}}" bindtap="selectOfDate" data-year="{{ s.year }}" data-month="{{ s.month }}" data-day="{{ i + 1 }}">
{{ i + 1 }} </view>
</view>
</view>
</view>
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!-- 当前页面的标题 -->
<template name="pageTextarea">
<view class="pageTextarea-box {{'clickInput' + item.field }}" bindtap="clickOption" data-it="{{ it }}" data-step="{{ index }}" data-field="{{ item.field }}">
<view class="pageTextarea-title">{{ item.title }} <text wx:if="{{ item.required == 1}}" style="color:#C54235;margin-left: 10rpx;">*</text></view>
<view class="pageTextarea" wx:if="{{ item.type == 'textarea' }}">
<textarea placeholder="{{ item.placeholder }}" maxlength="80" data-field="{{ item.field }}" cursor-spacing="20" bindinput="popUpInput" value="{{ newinfo[item.field] }}" disable-default-padding="{{ true }}">
<keyboard-accessory>
<cover-view class="keyboard" catchtap="{{ item.field == 'subject' ? 'fillThe' : 'popUpNextStep'}}" data-field="{{ item.field }}">
<cover-view class="keyboard-view">完成</cover-view>
<cover-view class="keyboard-view">{{ newinfo[item.field] == null ? 80 : 80 - newinfo[item.field].length }}</cover-view>
</cover-view>
</keyboard-accessory>
</textarea>
<!-- <view class="pageTextarea-numberwords">{{ (80 - (newinfo[item.field].length || 0)) >= 0 ?(80 - (newinfo[item.field].length || 0)) : 0 }}{{' / 80'}}</view> -->
<view class="pageTextarea-numberwords">{{ newinfo[item.field] == null ? 80 : 80 - newinfo[item.field].length }}</view>
</view>
<view class="pageTextarea" wx:elif="{{ item.type == 'text' }}">
<input type="text" placeholder="{{ item.placeholder }}" data-field="{{ item.field }}" bindinput="popUpInput" value="{{ newinfo[item.field] }}" />
</view>
</view>
</template>
<template name="pop-up-footer">
<view class="pop-up-footer flexcenter" wx:if="{{ popUpStepState == 1 && newStatus != 1}}">
<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 }}"> 保存并退出</view>
<view class="pop-up-nextStep" catchtap="popUpNextStep" data-field="{{ field }}">下一步</view>
</view>
<view class="pop-up-footer flexcenter" wx:if="{{ popUpStepState == 3 }}">
<view class="pop-up-save" bindtap='NewRelease' data-status="0" wx:if="{{ newtype != 'edit' && newStatus != 1 }}">
保存并退出</view>
<view class="pop-up-nextStep" bindtap="fillThe">填好了</view>
</view>
</template>
<block wx:if="{{ isAuthorization==1 }}">
<go-login bindislogin="islogin"></go-login>
</block>
<!-- 租金预算 -->
<template name="rent-budget">
<view class="rent-budget pop-up">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-skip" bindtap="popUpSkip" wx:if="{{ item.required == 0 }}"><text>跳过</text>
<view class="clickInputLeftArrow"></view>
</view>
<view class="pop-up-title">{{ item.title }}</view>
<view wx:if="{{ item.field == 'rent' }}" class="rent-budget-unit flexcenter">{{ item.unit }}/月</view>
<view wx:else class="rent-budget-unit flexcenter">{{ item.unit }}</view>
<picker-view indicator-class="rent-budget-picker" indicator-style="height: 50px;" style="width: 100%; height: 670rpx;margin: 100rpx 0;" immediate-change="{{ true }}" value="{{ [item['value'][0], item['value'][1]] }}" bindchange="bindChangeRent">
<picker-view-column class="picker-view-column">
<view wx:for="{{ item.for }}" wx:for-item="it" wx:key="key" class="{{ index == item['value'][0] ? 'pickerpitch' : ''}}">{{ item.min + (it * item.step) }}</view>
</picker-view-column>
<view class="rent-budget-tilde flexcenter">
<view class="flexcenter">~</view>
</view>
<picker-view-column class="picker-view-column">
<view wx:for="{{ item.for }}" wx:for-item="it" wx:key="key" class="{{ index == item['value'][1] ? 'pickerpitch' : ''}}">{{ item.min + (it * item.step) }}</view>
</picker-view-column>
</picker-view>
<template is="pop-up-footer" data="{{ popUpStepState:item.popUpStepState ,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!-- 当前页面-目标区域 -->
<template name="target-area">
<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-index flexcenter">{{ index + 1 }}</view>
<view wx:if="{{ m1.floor(item) == item }}" class="target-area-content">{{ locationObj[m1.floor(item)] + '>' + '不限' }}</view>
<view wx:else class="target-area-content">{{ locationObj[m1.floor(item)] }} > {{ locationObj[item] }}</view>
<image bindtap="deleteLocation" data-key="{{ item }}" class="target-area-cross" src="/img/close-c.png"></image>
</view>
</view>
<view class="target-area-edit flexcenter" bindtap="clickOption" data-field="{{ item.field }}" data-step="{{ index }}" data-it="{{ it }}">
<image class="target-area-edit-icon" src="/img/pen-edit.png" mode="widthFix"></image> 修改
</view>
</view>
</template>
<!-- 弹窗-目标区域 -->
<template name="pop-target-area">
<view class="pop-target-area pop-up">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">目标区域</view>
<text class="last-step-text">最多可选择6个目标区域</text>
<view class="pop-area-list">
<view class="pop-area-item" wx:for="{{ item.choices }}" wx:for-item="ite">
<view class="pop-area-name">{{ ite.value }}</view>
<view class="pop-area-content flexflex">
<view class="pop-area-content-item flexcenter {{ m1.fn(newinfo.location,ite.key,item.field).indexOf ? 'pitch' : '' }}" catchtap="targetAreaUnlimited" data-key="{{ ite.key }}">不限</view>
<view class="pop-area-content-item flexcenter {{ m1.fn(newinfo.location,it.key,item.field).indexOf ? 'pitch' : '' }}" wx:for="{{ ite.choices }}" wx:key="index" wx:for-item="it" catchtap="selectMultipleOption" data-key="{{ it.key }}">{{ it.value }}</view>
</view>
</view>
</view>
<view class="pop-area-pitch-list flexacenter" wx:if="{{ newinfo.location.length != 0 }}">
<view class="pop-area-pitch-item flexacenter" wx:for="{{ newinfo.location }}" wx:key="index">
<view class="pop-area-pitch-index flexcenter">{{ index + 1}}</view>
<view wx:if="{{ m1.floor(item) == item }}" class="pop-area-pitch-content flexacenter">{{ locationObj[m1.floor(item)] + '>' + '不限' }}</view>
<view wx:else class="pop-area-pitch-content flexacenter">{{ locationObj[m1.floor(item)] + '>' + locationObj[item] }}</view>
<image class="pop-area-pitch-cross" catchtap="deleteLocation" data-key="{{ item }}" src="/img/close-c.png"></image>
</view>
</view>
<template is="pop-up-footer" data="{{ popUpStepState:2,field:item.field,newtype,newStatus }}"></template>
</view>
</view>
</template>
<!-- 新的多选框 -->
<template name="new-marquee-box">
<view class="pop-new-marquee-box pop-up">
<view class="pop-up-box">
<view class="pop-up-top" bindtap="closePopUp">
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
</view>
<view class="pop-up-title">{{ item.title }}</view>
<view class="pop-new-marquee-unlimited flexacenter {{ item.value[0] == 0 ? 'pitch' : '' }}" catchtap="selectMultipleOption" data-key="0">
<image wx:if="{{ item.value[0] == 0 }}" class="pop-new-marquee-unlimited-icom" mode="widthFix" src="/img/green-circle-pitch.svg"></image>
<view wx:else class="pop-new-marquee-unlimited-icom pop-new-marquee-unlimited-unselected-icom"></view>
不限
</view>
<view class="pop-new-marquee-line"></view>
<view class="pop-new-marquee-list flexflex">
<view class="pop-new-marquee-item flexacenter" wx:for="{{ item.choices }}" wx:for-item="it" wx:key="index" catchtap="selectMultipleOption" data-value="{{ it.value }}" data-key="{{ it.key }}">
<view class="pitch flexacenter" wx:if="{{ m1.fn(item.value,it.key,item.field).indexOf }}">
<image class="pop-new-marquee-pitch" src="/img/green-block-pitch.svg"></image>
{{ it.value }}
</view>
<block wx:else>
<view class="pop-new-marquee-case"></view>
{{ it.value }}
</block>
</view>
</view>
<template is="pop-up-footer" data="{{ popUpStepState: item.popUpStepState,newStatus,newtype }}"></template>
</view>
</view>
</template>
<template name="0"></template>