Compare commits
2 Commits
088b09a264
...
7c573beb5c
Author | SHA1 | Date | |
---|---|---|---|
|
7c573beb5c | ||
|
f4342762e1 |
38
h -u origin master
Normal file
38
h -u origin master
Normal file
@ -0,0 +1,38 @@
|
||||
core.symlinks=false
|
||||
core.autocrlf=true
|
||||
core.fscache=true
|
||||
color.interactive=true
|
||||
color.ui=auto
|
||||
pack.packsizelimit=2g
|
||||
help.format=html
|
||||
diff.astextplain.textconv=astextplain
|
||||
rebase.autosquash=true
|
||||
filter.lfs.clean=git-lfs clean -- %f
|
||||
filter.lfs.smudge=git-lfs smudge -- %f
|
||||
filter.lfs.process=git-lfs filter-process
|
||||
filter.lfs.required=true
|
||||
user.name=A1300399510
|
||||
user.email=A1300399510
|
||||
user.password=EOEflx3e4VcN
|
||||
difftool.sourcetree.cmd=''
|
||||
mergetool.sourcetree.cmd=''
|
||||
mergetool.sourcetree.trustexitcode=true
|
||||
credential.helperselector.selected=manager
|
||||
credential.https://x--mo.com:9003.provider=generic
|
||||
credential.https://git.xiaoapi.com.provider=generic
|
||||
core.filemode=false
|
||||
http.sslverify=false
|
||||
core.repositoryformatversion=0
|
||||
core.filemode=false
|
||||
core.bare=false
|
||||
core.logallrefupdates=true
|
||||
core.symlinks=false
|
||||
core.ignorecase=true
|
||||
remote.origin.url=https://git.xiaoapi.com/gter.net/HKRentingMiniprogram
|
||||
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
|
||||
branch.main.remote=origin
|
||||
branch.main.merge=refs/heads/main
|
||||
branch.xiao.remote=origin
|
||||
branch.xiao.merge=refs/heads/xiao
|
||||
http.sslverify=false
|
||||
http.postbuffer=524288000
|
BIN
img/u666.png
BIN
img/u666.png
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
2483
pages/askHousing copy/askHousing.js
Normal file
2483
pages/askHousing copy/askHousing.js
Normal file
File diff suppressed because it is too large
Load Diff
12
pages/askHousing copy/askHousing.json
Normal file
12
pages/askHousing copy/askHousing.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"navigationBarTitleText": " ",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {
|
||||
"header-nav": "../../template/headerNav/index",
|
||||
"go-login": "../../template/goLogin/goLogin",
|
||||
"select-single": "../../template/selectSingle/selectSingle",
|
||||
"custom-picker": "/template/datepickerview/datepickerview",
|
||||
"choice-type-release": "/template/choiceTypeRelease/choiceTypeRelease",
|
||||
"about-release": "/template/aboutRelease/aboutRelease"
|
||||
}
|
||||
}
|
945
pages/askHousing copy/askHousing.wxml
Normal file
945
pages/askHousing copy/askHousing.wxml
Normal file
@ -0,0 +1,945 @@
|
||||
<!-- 求房源 -->
|
||||
<import src="../common/common.wxml" />
|
||||
<wxs module="m1">
|
||||
function fn(arr, arg, state) {
|
||||
var result = {
|
||||
indexOf: false,
|
||||
toString: ''
|
||||
}
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (state == 'type' || state == 'location') {
|
||||
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;
|
||||
}
|
||||
module.exports.fn = fn;
|
||||
</wxs>
|
||||
|
||||
<import src="../../wxParse/wxParse.wxml" />
|
||||
<view class="container" wx:if="{{ !loding }}">
|
||||
<!-- 选择发布类型 -->
|
||||
<!-- <choice-type-release></choice-type-release> -->
|
||||
<!-- 关于发布 -->
|
||||
<block wx:if="{{ popUpIs == 'about' }}">
|
||||
<about-release aboutRulesList="{{ aboutRulesList }}" bindsetValue="setValue"></about-release>
|
||||
</block>
|
||||
|
||||
<!-- 发布成功 -->
|
||||
<!-- <template is="succeed-pop"></template> -->
|
||||
|
||||
<!-- 发布失败 -->
|
||||
<!-- <template is="fail-pop"></template> -->
|
||||
|
||||
<!-- 租金预算 -->
|
||||
<!-- <template is="rent-budget" data="{{ min,max,change,slider2W,slider1Max,slider2Min,slider1Value,slider2Value,rate,scale,slider1W,slider2W,leftSliderPriceWidthX,rightSliderPriceWidthX,left }}"></template> -->
|
||||
|
||||
<!-- 目标区域 -->
|
||||
<!-- <template is="pop-target-area"></template> -->
|
||||
|
||||
<!-- 新的服务类型 -->
|
||||
<!-- <template is="new-marquee-box"></template> -->
|
||||
|
||||
<header-nav inner-text="Some text" bgcolor="rgba(246, 246, 246, 1)">发布求房源</header-nav>
|
||||
|
||||
<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>
|
||||
<block wx:if="{{ true }}">
|
||||
<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="edit-head-surplus flexacenter" bindtap="setValue" data-key="popUpIs" data-value="about">
|
||||
<view class="edit-head-surplus-text">您还可以发布 <text>3</text> 条普通房源</view>
|
||||
<view class="flexacenter">
|
||||
了解更多<image class="edit-head-surplus-icon" src="/img/blue-arrow.svg"></image>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<view class="edit-box">
|
||||
<view class="edit-top" wx:if="{{ false }}">
|
||||
<image class="edit-top-img" mode="widthFix" src="/img/u706.png"></image>
|
||||
<!-- {{ newcity.country }} <view class="clickInputLeftArrow"></view> {{ newcity.name }} -->
|
||||
{{ newcity.name }}
|
||||
</view>
|
||||
|
||||
<view class="edit-option">
|
||||
|
||||
<!-- 发布者身份 -->
|
||||
<!-- <view class="edit-option-item">
|
||||
<template is="clickInput" data="{{ item:fieldinfo.status[0], index:0,it:'status',newinfo }}"></template>
|
||||
</view> -->
|
||||
|
||||
<!-- 基础区域 -->
|
||||
<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:elif="{{ item.field == 'property' || item.field == 'floor' }}" is="clickInputUnderArrow" data="{{ item,index,it:'basic',newinfo }}"></template>
|
||||
<template wx:else is="clickInput" data="{{ item,index,it:'basic',newinfo,fieldinfoNew,leaseTimeValue }}"></template>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<!-- 所在区域 -->
|
||||
<view class="edit-option-item">
|
||||
<block wx:for="{{ fieldinfo.address }}" wx:key="index">
|
||||
<template wx:if="{{ item.field == 'location' }}" is="target-area"></template>
|
||||
<!-- <template wx:if="{{ item.field == 'school' && nearSchoolList.length > 0 }}" is="nearbySchool" data="{{ item, nearSchoolList,index }}"></template>
|
||||
<template wx:else is="clickInput" data="{{ item,it:'address',index,newinfo,fieldinfo,newcity}}"></template> -->
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<!-- 租客性别要求 -->
|
||||
<view class="edit-option-item">
|
||||
<block wx:for="{{ fieldinfo.identity }}" wx:key="index">
|
||||
<template is="clickInput" data="{{ item,index,it:'identity',newinfo }}"></template>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<!-- 房屋视频和照片区域 -->
|
||||
<!-- <view class="edit-option-item">
|
||||
<block wx:for="{{ fieldinfo.upload }}" wx:key="index">
|
||||
<template wx:if="{{ item.field == 'video' }}" is="homeVideo" data="{{ videos,it:'upload' }}"></template>
|
||||
<template wx:else is="homePhoto" data="{{ imgs,it:'upload' }}"></template>
|
||||
</block>
|
||||
</view> -->
|
||||
|
||||
<!-- 个人介绍 -->
|
||||
<view class="edit-option-item">
|
||||
<block wx:for="{{ fieldinfo.introduce }}" wx:key="index">
|
||||
<template is="clickInput" 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="contactInformation-wechat" wx:if="{{ contactInformationState == 0 }}">
|
||||
<!-- <view class="contactInformation-wechat-item" hover-class="option-hover" hover-stay-time="50" bindtap="contactInformationwechatcut" data-state="1">
|
||||
<image mode="widthFix" src="/img/pengreydark.png"></image><text>填写微信号</text>
|
||||
</view> -->
|
||||
<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 class="contactInformation-wechat-input" wx:elif="{{ contactInformationState == 2}}">
|
||||
<view class="already-uploaded">
|
||||
<image src="/img/u684.svg"></image>
|
||||
<text>已上传</text>
|
||||
</view>
|
||||
<view class="contactInformation-close" bindtap="contactInformationwechatcut" data-state="0">
|
||||
<image src="/img/plusgrey.png"></image>
|
||||
</view>
|
||||
</view> -->
|
||||
</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"> {{ newtype }}
|
||||
<block wx:if="{{newtype=='plus' || (newtype=='edit' && newStatus == 0 )}}">
|
||||
<view bindtap='NewRelease' data-status="0" class="submit save1">保存并退出</view>
|
||||
<view bindtap='NewRelease' data-status="1" class="submit">马上发布</view>
|
||||
</block>
|
||||
<block wx:if="{{ newtype=='edit' && newStatus == 1 }}">
|
||||
<view bindtap='NewRelease' data-status="1" class="submit">提交</view>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<!-- 弹窗应该出现那个状态在这里处理-->
|
||||
<view class="pop-up-dispose">
|
||||
<template is="{{ popUpIs }}" data="{{ item:popUpdate,fieldinfoNew,popUpSubtitle,leaseTimeValue,week, calculateOfDateList,calculateOfDateTime,popUpTitle,floorValue,popUpStepState,newinfo,nearSchoolList,contactInformationState,fieldinfo,imgs,videos,areaRegionIndex,newtype,newStatus,focustitle,pitchyear,pitchmonth,pitchday,focusState }}"></template>
|
||||
</view>
|
||||
|
||||
<!-- 触发规则1时 重复发布 -->
|
||||
<block wx:if="{{ triggerRules == 1 }}">
|
||||
<template is="repeatedRelease"></template>
|
||||
</block>
|
||||
<!-- 触发规则2时 提交失败 -->
|
||||
<block wx:elif="{{ triggerRules == 2 }}">
|
||||
<template is="submitFailuretwo"></template>
|
||||
</block>
|
||||
<!-- 触发规则3时 提交失败 -->
|
||||
<block wx:elif="{{ triggerRules == 3 }}">
|
||||
<template is="submitFailurethree"></template>
|
||||
</block>
|
||||
|
||||
<!-- 触发规则4时 你的微信号有误 -->
|
||||
<block wx:elif="{{ triggerRules == 4 }}">
|
||||
<template is="wrong-micro-signal"></template>
|
||||
</block>
|
||||
</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 }}">
|
||||
<input 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 type="{{item.type}}" placeholder="{{ item.placeholder }}" value="{{ newinfo[item.field] }}" disabled="{{fieldinfo[it][index].popupwindow == 1 ? true : false}}" />
|
||||
<text>{{ item.unit }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<!-- 房屋视频 -->
|
||||
<template name="homeVideo">
|
||||
<view class="homeVideo-box">
|
||||
<view class="homeVideo-title">房屋视频(最多可上传3个,不大于5M/个)</view>
|
||||
|
||||
<view class="flexflex homeVideo-list">
|
||||
<!-- 展示视频 -->
|
||||
<view class="homeVideo-add" wx:for="{{ videos }}" wx:key="index">
|
||||
<video class="homeVideo-add-video" show-center-play-btn="{{false}}" show-fullscreen-btn="{{ false }}" show-play-btn="{{ false }}" initial-time="0" src="{{ item.url || item.image}}"></video>
|
||||
<image class="homeVideo-videoplay" src="/img/videoplay.png"></image>
|
||||
<view class="close-btn" catchtap="del_pic" data-index="{{index}}" data-box="video">
|
||||
<image src="/img/plusf.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 上传按钮 -->
|
||||
<view class="homeVideo-add" bindtap="get_video" wx:if="{{ videos.length != 3 }}">
|
||||
<image class="homeVideo-add-img" src="/img/plusgrey.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<!-- 房屋照片 -->
|
||||
<template name="homePhoto">
|
||||
<view class="homePhoto-box">
|
||||
<view class="homePhoto-title">房屋照片(最多可上传9张,不大于5M/张)</view>
|
||||
<view class="homePhoto-boxes">
|
||||
<view class="homePhoto-add" bindtap="get_img" wx:for="{{ imgs }}" wx:key="aid">
|
||||
<image class="homePhoto-add-img" mode="aspectFill" src="{{ item.url || item.image }}"></image>
|
||||
<view class="close-btn" catchtap="del_pic" data-box="img" data-index="{{ index }}">
|
||||
<image src="/img/plusf.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="homePhoto-add" bindtap="get_img" wx:if="{{ imgs.length != 9 }}">
|
||||
<image class="homePhoto-add-icon" src="/img/plusgrey.png"></image>
|
||||
</view>
|
||||
</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">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<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">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<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">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<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">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<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">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<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="pop-up-HomeVideo">
|
||||
<view class="pop-up-HomeVideo pop-up" catchtouchmove="handScroll">
|
||||
<view class="pop-up-box">
|
||||
<view class="pop-up-skip" bindtap="popUpSkip"><text>跳过</text>
|
||||
<view class="clickInputLeftArrow"></view>
|
||||
</view>
|
||||
<view class="pop-up-top" bindtap="closePopUp">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
|
||||
</view>
|
||||
<view class="pop-up-title">房屋视频</view>
|
||||
<text class="last-step-text">最多可上传3个,不大于5M/个</text>
|
||||
|
||||
<view class="flexacenter homeVideo-case">
|
||||
<!-- 展示视频的 -->
|
||||
<view class="homeVideo-add" wx:for="{{ videos }}" wx:key="index">
|
||||
<video class="homeVideo-add-video" show-center-play-btn="{{false}}" show-fullscreen-btn="{{ false }}" show-play-btn="{{ false }}" initial-time="0" src="{{ item.url || item.image }}"></video>
|
||||
<image class="homeVideo-videoplay" src="/img/videoplay.png"></image>
|
||||
<view class="close-btn" catchtap="del_pic" data-index="{{ index }}" data-box="video">
|
||||
<image src="/img/plusf.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 没有视频时候的空白 -->
|
||||
<block wx:if="{{ videos.length < 2 }}">
|
||||
<view class="homeVideo-add" wx:for="{{ videos.length == 1 ? 1 : 2 }}" style="background: #fff;" wx:key="index"></view>
|
||||
</block>
|
||||
|
||||
<!-- 上传视频按钮 -->
|
||||
<view class="homeVideo-add" bindtap="get_video" wx:if="{{ videos.length != 3 }}">
|
||||
<image class="homeVideo-add-img" src="/img/plusgrey.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 展示视频 -->
|
||||
<!-- <view class="homeVideo-add" wx:else>
|
||||
<video class="homeVideo-add-video" show-center-play-btn="{{false}}" show-fullscreen-btn="{{ false }}" show-play-btn="{{ false }}" initial-time="0" src="{{ videos[0].url || videos[0].image }}"></video>
|
||||
<image class="homeVideo-videoplay" src="/img/videoplay.png"></image>
|
||||
<view class="close-btn" catchtap="del_pic" data-box="video">
|
||||
<image src="/img/plusf.png"></image>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<!-- 弹窗-房屋照片 -->
|
||||
<template name="pop-up-homePhoto">
|
||||
<view class="pop-up-homePhoto pop-up" catchtouchmove="handScroll">
|
||||
<view class="pop-up-box">
|
||||
<view class="pop-up-skip" bindtap="popUpSkip"><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">房屋照片</view>
|
||||
<text class="last-step-text">最多可上传6张,不大于5M</text>
|
||||
<!-- 上传图片 -->
|
||||
<view class="pop-up-homePhoto-image-box">
|
||||
<view class="pop-up-homePhoto-image" wx:for="{{ imgs }}" wx:key="index">
|
||||
<image mode="aspectFit" class="pop-up-homePhoto-image-item" src="{{ item.url || item.image }}">
|
||||
</image>
|
||||
<view class="close-btn" catchtap="del_pic" data-box="img" data-index="{{ index }}">
|
||||
<image src="/img/plusf.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pop-up-homePhoto-image pop-up-homePhoto-image-kong" wx:for="{{ 8 - imgs.length }}" wx:key="index">
|
||||
</view>
|
||||
<view class="homePhoto-add" bindtap="get_img" wx:if="{{ imgs.length != 9 }}">
|
||||
<image class="homePhoto-add-img homePhoto-add-icon" src="/img/plusgrey.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,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="nearSchool">
|
||||
<view class="nearSchool pop-up" catchtouchmove="handScroll">
|
||||
<view class="pop-up-box">
|
||||
<view class="pop-up-skip" bindtap="popUpSkip"><text>跳过</text>
|
||||
<view class="clickInputLeftArrow"></view>
|
||||
</view>
|
||||
<view class="pop-up-top" bindtap="closePopUp">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<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>
|
||||
<view class="nearSchool-box">
|
||||
<view class="nearSchool-item" wx:for="{{ nearSchoolList }}" wx:for-item="it" wx:key="index">
|
||||
<view class="nearSchool-serial">{{ index + 1 }}</view>
|
||||
<view wx:if="{{ nearSchoolList.length != 1 }}" class="close-btn" catchtap="del_nearSchool" data-index="{{ index }}">
|
||||
<image src="/img/plusf.png"></image>
|
||||
</view>
|
||||
<input class="nearSchool-input" placeholder="请输入学校名称" bindinput="nearSchoolInput" data-index="{{ index }}" data-name="name" value="{{ it.name }}" maxlength="200" />
|
||||
<textarea class="nearSchool-textarea" placeholder="房源距离该学校有多远?可以写步行或坐车需要花费的时间…" cursor-spacing="10" bindinput="nearSchoolInput" data-index="{{ index }}" data-name="distance" value="{{ it.distance }}" maxlength="200"></textarea>
|
||||
</view>
|
||||
|
||||
<view class="nearSchool-add" bindtap="nearSchoolAdd" wx:if="{{ nearSchoolList.length < 3 }}">
|
||||
<image src="/img/plus-3.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</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">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<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="contactInformation-wechat" wx:if="{{ contactInformationState == 0 }}">
|
||||
<!-- <view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="contactInformationwechatcut" data-state="1">
|
||||
<image mode="widthFix" src="/img/pengreydark.png"></image><text>填写微信号</text>
|
||||
</view> -->
|
||||
<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 class="contactInformation-wechat-input" wx:elif="{{ contactInformationState == 2}}">
|
||||
<view class="already-uploaded">
|
||||
<image src="/img/u684.svg"></image>
|
||||
<text>已上传</text>
|
||||
</view>
|
||||
<view class="contactInformation-close" bindtap="contactInformationwechatcut" data-state="0">
|
||||
<image src="/img/plusgrey.png"></image>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ item.field != 'wechat' }}" class="contactInformation-item">
|
||||
<view class="title">
|
||||
<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">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<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="area">
|
||||
<view class="area pop-up">
|
||||
<view class="pop-up-box">
|
||||
<view class="pop-up-top" bindtap="closePopUp">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
|
||||
</view>
|
||||
<view class="pop-up-title">
|
||||
{{ item.title }}
|
||||
</view>
|
||||
|
||||
<view class="area-box">
|
||||
<!-- 左边 -->
|
||||
<view class="area-region">
|
||||
<block wx:for="{{ item.choices }}" wx:for-item="it" wx:for-index="i" wx:key="key">
|
||||
<view class="area-region-item {{ i == areaRegionIndex ? 'area-region-item-pitch' : ''}}" bindtap="clickAreaRegion" data-index="{{ i }}">
|
||||
<view class="yellow-dot" wx:if="{{ i == areaRegionIndex }}"></view>
|
||||
<text>{{ it.value }}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- 右边 -->
|
||||
<view class="area-district">
|
||||
<view class="area-district-item {{ m1.fn([newinfo[item.field]],it.value,'location').indexOf ? 'option-hover':'' }}" wx:for="{{ item.choices[areaRegionIndex].choices }}" wx:for-item="it" wx:for-index="i" wx:key="key" bindtap="clickAreaDistrict" hover-class="click-areaDistrict-hover" data-key="{{it.key}}" data-value="{{ it.value }}" data-field="{{ item.field }}">
|
||||
{{ it.value }}
|
||||
</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>
|
||||
|
||||
<!-- 当前数据 附近学校有数据时 -->
|
||||
<template name="nearbySchool">
|
||||
<view class="nearbySchool {{'clickInput' + item.field }}">
|
||||
<view class="nearbySchool-title">{{ item.title }}</view>
|
||||
<view class="nearbySchool-box">
|
||||
<view class="nearbySchool-item" wx:for="{{ nearSchoolList }}" wx:key="index">
|
||||
<view class="nearbySchool-title">
|
||||
<view class="nearbySchool-yellow-dot"></view>
|
||||
<text>{{ item.name }}</text>
|
||||
</view>
|
||||
<view class="nearbySchool-content">
|
||||
{{ item.distance }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="nearbySchool-modification" bindtap="modification" data-step="{{ index }}">修改 > </view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<!-- 弹窗-香港的地址 -->
|
||||
<template name="AddressHongKong">
|
||||
<view class="unilineInput pop-up" id="unilineInput{{item.field}}">
|
||||
<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">地址</view>
|
||||
<view class="unilineInput-box AddressHongKong-box">
|
||||
<input type="{{ item.type }}" placeholder="请选择" data-field="{{ item.field }}" bindtap="chooseLocation" value="{{newinfo[item.field]}}" disabled />
|
||||
<text class="clickInputLeftArrow">{{ item.unit }}</text>
|
||||
</view>
|
||||
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
|
||||
</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-title">租金预算</view>
|
||||
<view class="rent-budget-unit flexcenter">HK$/月</view>
|
||||
|
||||
<view class='sliderHCon'>
|
||||
<view class='twoSlider'>
|
||||
<view class='select-construct'>
|
||||
<view class="select-value flexcenter" style="left: {{ leftSliderPriceWidthX }};right: {{ rightSliderPriceWidthX }};">{{ slider1Value }} ~ {{ slider2Value }}</view>
|
||||
<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>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<template is="pop-up-footer" data="{{ popUpStepState:1,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="{{ 3 }}" wx:key="index">
|
||||
<view class="target-area-index flexcenter">{{ index }}</view>
|
||||
<view class="target-area-content">九龙 > 尖沙咀/佐敦</view>
|
||||
<image class="target-area-cross" src="/img/close-c.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="target-area-edit flexcenter">
|
||||
<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="{{ 5 }}">
|
||||
<view class="pop-area-name">港岛</view>
|
||||
<view class="pop-area-content flexflex">
|
||||
<view class="pop-area-content-item flexcenter {{ index == 0 ? 'pitch' : '' }}" wx:for="{{ 10 }}" wx:key="index">不限</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<view class="pop-area-pitch-list flexacenter">
|
||||
<view class="pop-area-pitch-item flexacenter" wx:for="{{ 2 }}" wx:key="index">
|
||||
<view class="pop-area-pitch-index flexcenter">{{ index + 1}}</view>
|
||||
<view class="pop-area-pitch-content flexacenter">上环上环上环上环/中环</view>
|
||||
<image class="pop-area-pitch-cross" 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">服务类型</view>
|
||||
<view class="pop-new-marquee-unlimited flexacenter">
|
||||
<image wx:if="{{ false }}" class="pop-new-marquee-unlimited-icom" mode="widthFix" src="/img/green-circle-pitch.svg"></image>
|
||||
<view 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="{{ 7 }}" wx:key="index">
|
||||
<view class="pop-new-marquee-case"></view>唐楼
|
||||
</view>
|
||||
</view>
|
||||
<template is="pop-up-footer" data="{{ popUpStepState:2 }}"></template>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
</template>
|
1694
pages/askHousing copy/askHousing.wxss
Normal file
1694
pages/askHousing copy/askHousing.wxss
Normal file
File diff suppressed because it is too large
Load Diff
@ -28,14 +28,7 @@ Page({
|
||||
latitude: '',
|
||||
longitude: '',
|
||||
info: {
|
||||
intermediary: {
|
||||
name: '发布者身份',
|
||||
value: '',
|
||||
data: [],
|
||||
title: "intermediary",
|
||||
need: true
|
||||
},
|
||||
'type': {
|
||||
type: {
|
||||
name: '出租方式',
|
||||
title: 'type',
|
||||
data: {},
|
||||
@ -49,14 +42,12 @@ Page({
|
||||
name: '所在区域',
|
||||
need: true
|
||||
},
|
||||
|
||||
gender: {
|
||||
name: '租客性别要求',
|
||||
title: 'gender',
|
||||
data: [],
|
||||
value: '',
|
||||
need: true
|
||||
|
||||
},
|
||||
property: {
|
||||
title: 'property',
|
||||
@ -84,7 +75,6 @@ Page({
|
||||
need: true,
|
||||
numberType: true
|
||||
},
|
||||
|
||||
floor: {
|
||||
title: 'floor',
|
||||
value: '',
|
||||
@ -102,7 +92,6 @@ Page({
|
||||
unit: '',
|
||||
numberType: true
|
||||
},
|
||||
|
||||
subject: {
|
||||
title: 'subject',
|
||||
value: '',
|
||||
@ -116,18 +105,6 @@ Page({
|
||||
name: '所在小区',
|
||||
placeholder: '请填写小区名称'
|
||||
},
|
||||
school: {
|
||||
title: 'school',
|
||||
value: '',
|
||||
name: '附近学校',
|
||||
placeholder: '可输入附近的学校,最多可输入3个'
|
||||
},
|
||||
distanceschool: {
|
||||
title: 'distanceschool',
|
||||
value: '',
|
||||
name: '距离学校',
|
||||
placeholder: '可输入与学校的距离'
|
||||
},
|
||||
wechat: {
|
||||
title: 'wechat',
|
||||
value: '',
|
||||
@ -220,139 +197,102 @@ Page({
|
||||
fieldinfoNew: [],
|
||||
step: 0, // 步数
|
||||
newcity: {},
|
||||
aa: [{
|
||||
aa: {
|
||||
type: {
|
||||
name: '求租方式',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 0,
|
||||
it: 'basic',
|
||||
field: "type"
|
||||
}, {
|
||||
name: '找人合租',
|
||||
},
|
||||
rentalduration: {
|
||||
name: '租期',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
it: 'basic',
|
||||
}, {
|
||||
name: '整套出租',
|
||||
popUpIs: 'twoLines',
|
||||
popUpStepState: 1,
|
||||
it: 'basic'
|
||||
}, {
|
||||
name: '出租时长',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
it: 'basic',
|
||||
field: "rentalduration"
|
||||
}, {
|
||||
name: '选择租期',
|
||||
popUpIs: 'leaseTime',
|
||||
popUpStepState: 2,
|
||||
it: 'basic'
|
||||
}, {
|
||||
},
|
||||
leasetime: {
|
||||
name: '起租日期',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
it: 'basic',
|
||||
field: "leasetime"
|
||||
}, {
|
||||
name: '选择日期',
|
||||
popUpIs: 'ofDate',
|
||||
popUpStepState: 1,
|
||||
it: 'basic'
|
||||
}, {
|
||||
name: '年租',
|
||||
popUpIs: 'unilineInput',
|
||||
},
|
||||
rent: {
|
||||
name: '租金预算',
|
||||
popUpIs: 'rent-budget',
|
||||
popUpStepState: 2,
|
||||
it: 'basic',
|
||||
field: "rent"
|
||||
}, {
|
||||
name: '月租',
|
||||
popUpIs: 'unilineInput',
|
||||
popUpStepState: 2,
|
||||
it: 'basic',
|
||||
field: "rent"
|
||||
}, {
|
||||
field: "slider"
|
||||
},
|
||||
property: {
|
||||
name: '房屋类型',
|
||||
popUpIs: 'twoLines',
|
||||
popUpIs: 'new-marquee-box',
|
||||
popUpStepState: 1,
|
||||
it: 'basic',
|
||||
field: "property"
|
||||
}, {
|
||||
},
|
||||
floor: {
|
||||
name: '所在楼层',
|
||||
popUpIs: 'floor',
|
||||
popUpIs: 'new-marquee-box',
|
||||
popUpStepState: 2,
|
||||
it: 'basic',
|
||||
field: "floor"
|
||||
}, {
|
||||
name: '面积',
|
||||
popUpIs: 'unilineInput',
|
||||
popUpStepState: 2,
|
||||
it: 'basic',
|
||||
field: "acreage"
|
||||
}, {
|
||||
name: '所在区域',
|
||||
popUpIs: 'area',
|
||||
popUpStepState: 1,
|
||||
field: "location"
|
||||
}, {
|
||||
name: '地址',
|
||||
popUpIs: 'multilineInput',
|
||||
popUpStepState: 2,
|
||||
field: "address"
|
||||
}, {
|
||||
name: '附近学校',
|
||||
popUpIs: 'nearSchool',
|
||||
popUpStepState: 2,
|
||||
field: "school"
|
||||
}, {
|
||||
name: '租客性别要求',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
field: "gender"
|
||||
}, {
|
||||
name: '发布者身份',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
field: "intermediary"
|
||||
}, {
|
||||
name: '房屋视频',
|
||||
popUpIs: 'pop-up-HomeVideo',
|
||||
popUpStepState: 2,
|
||||
field: "video"
|
||||
}, {
|
||||
name: '房屋照片',
|
||||
popUpIs: 'pop-up-homePhoto',
|
||||
popUpStepState: 2,
|
||||
field: "images"
|
||||
}, {
|
||||
name: '个人情况介绍',
|
||||
popUpIs: 'multilineInput',
|
||||
popUpStepState: 2,
|
||||
field: "introduction"
|
||||
}, {
|
||||
name: '微信',
|
||||
popUpIs: 'contactInformation',
|
||||
popUpStepState: 2,
|
||||
field: "wechat"
|
||||
}, {
|
||||
name: '标题',
|
||||
popUpIs: 'multilineInput',
|
||||
popUpStepState: 3,
|
||||
field: "subject"
|
||||
}, {
|
||||
},
|
||||
elevator: {
|
||||
name: '电梯',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
field: "elevator"
|
||||
}, {
|
||||
},
|
||||
sunshinearea: {
|
||||
name: '晾晒区',
|
||||
popUpIs: 'AListOF',
|
||||
popUpIs: 'new-marquee-box',
|
||||
popUpStepState: 1,
|
||||
field: "sunshinearea"
|
||||
}
|
||||
},
|
||||
acreage: {
|
||||
name: '面积',
|
||||
popUpIs: 'rent-budget',
|
||||
popUpStepState: 2,
|
||||
it: 'basic',
|
||||
field: "acreage"
|
||||
},
|
||||
gender: {
|
||||
name: '同住人性别要求',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
field: "gender"
|
||||
},
|
||||
publishergender: {
|
||||
name: '发布者性别',
|
||||
popUpIs: 'AListOF',
|
||||
popUpStepState: 1,
|
||||
field: "gender"
|
||||
},
|
||||
introduction: {
|
||||
name: '求租描述',
|
||||
popUpIs: 'multilineInput',
|
||||
popUpStepState: 2,
|
||||
field: "introduction"
|
||||
},
|
||||
wechat: {
|
||||
name: '微信',
|
||||
popUpIs: 'contactInformation',
|
||||
popUpStepState: 2,
|
||||
field: "wechat"
|
||||
},
|
||||
subject: {
|
||||
name: '标题',
|
||||
popUpIs: 'multilineInput',
|
||||
popUpStepState: 3,
|
||||
field: "subject"
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
},
|
||||
popUpit: "",
|
||||
popUpOrder: ['status', 'basic', 'address', 'identity', 'upload', 'introduce', 'contact', 'info'],
|
||||
popUpOrder: ['basic', 'address', 'identity', 'introduce', 'contact', 'info'],
|
||||
newinfo: {},
|
||||
areaRegionIndex: 0,
|
||||
newToken: "", // 新的token
|
||||
@ -381,7 +321,7 @@ Page({
|
||||
leftSliderPriceWidthX: '0%',
|
||||
rightSliderPriceWidthX: '0%',
|
||||
|
||||
|
||||
aboutRulesList: {}, // 关于发布的数据
|
||||
},
|
||||
|
||||
// 开始滑动
|
||||
@ -438,29 +378,15 @@ Page({
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
let list = []
|
||||
for (let i = 0; i < 24; i++) {
|
||||
list.push(i + '点-' + (i + 1) + '点');
|
||||
}
|
||||
this.setData({
|
||||
list: list
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
this.calculateOfDate()
|
||||
wx.showLoading({
|
||||
title: '加载中',
|
||||
})
|
||||
|
||||
let nowDate = new Date()
|
||||
|
||||
let that = this;
|
||||
@ -514,6 +440,7 @@ Page({
|
||||
})
|
||||
this.get_config()
|
||||
},
|
||||
|
||||
get_config() {
|
||||
var that = this;
|
||||
if (app.globalData.config.lists) {
|
||||
@ -526,6 +453,7 @@ Page({
|
||||
|
||||
app.globalData.notice = false;
|
||||
this.newPublish()
|
||||
this.getAbout()
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
that.get_config()
|
||||
@ -533,6 +461,15 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
// 获取关于发布
|
||||
getAbout() {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2.Publish/about`).then(res => {
|
||||
this.setData({
|
||||
aboutRulesList: res.data
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 新的获取发布数据
|
||||
newPublish() {
|
||||
wx.showLoading({
|
||||
@ -549,7 +486,11 @@ Page({
|
||||
uniqid: this.data.uniqid,
|
||||
}
|
||||
}
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/publish`, requestData).then(res => {
|
||||
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2/api/publish`, {
|
||||
intermediary: 6
|
||||
}).then(res => {
|
||||
console.log(res, "res");
|
||||
wx.hideLoading()
|
||||
this.setData({
|
||||
loding: false
|
||||
@ -567,15 +508,21 @@ Page({
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
let data = res.data
|
||||
let fieldinfoNew = []
|
||||
let fieldinfoNew = {}
|
||||
let locationhead = ""
|
||||
let locationtail = ""
|
||||
let aa = this.data.aa
|
||||
for (const key in data.fieldinfo) {
|
||||
let choices = null
|
||||
data.fieldinfo[key].forEach(element => {
|
||||
|
||||
if (!element) return
|
||||
// fieldinfoNew[element.field] = {}
|
||||
// console.log("fieldinfoNew[element.field]",aa[element.field].popUpIs);
|
||||
// fieldinfoNew[element.field]['popUpIs'] = aa[element.field].popUpIs
|
||||
|
||||
|
||||
if (element.field == 'type') {
|
||||
let choices = element.choices
|
||||
let choicesnew = []
|
||||
@ -584,7 +531,7 @@ Page({
|
||||
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
|
||||
if (e.key == [Math.trunc(el.key)]) data.info.type = e.value + '>' + el.value
|
||||
})
|
||||
}
|
||||
if (el.key % 1 == 0) {
|
||||
@ -702,9 +649,7 @@ Page({
|
||||
choices.forEach((el, i) => {
|
||||
if (!el) return
|
||||
if (this.data.types == 'edit' || this.data.types == 'edit1') {
|
||||
if (el.key == data.info[field]) {
|
||||
locationtail = el.value
|
||||
}
|
||||
if (el.key == data.info[field]) locationtail = el.value
|
||||
|
||||
if (el.key == [Math.trunc(data.info[field])]) {
|
||||
locationhead = el.value
|
||||
@ -712,8 +657,6 @@ Page({
|
||||
}
|
||||
}
|
||||
if (el.key % 1 == 0) {
|
||||
|
||||
|
||||
choicesnew[el.key - 1] = {
|
||||
value: el.value,
|
||||
key: el.key,
|
||||
@ -726,6 +669,8 @@ Page({
|
||||
field: element.field
|
||||
})
|
||||
}
|
||||
|
||||
// console.log("choicesnew", choicesnew);
|
||||
});
|
||||
fieldinfoNew[element.field] = ({
|
||||
choices: choicesnew,
|
||||
@ -751,6 +696,8 @@ Page({
|
||||
});
|
||||
}
|
||||
|
||||
console.log("fieldinfoNew", fieldinfoNew);
|
||||
|
||||
if (data.info.floor != null) data.info.floor = data.info.floor != 0 ? data.info.floor + '楼' : null
|
||||
|
||||
if (data.type == "edit") this.data.contactInformationState = data.info.iswechattype
|
||||
@ -777,16 +724,16 @@ Page({
|
||||
|
||||
|
||||
// 将发布者身份 放到最前面
|
||||
data.fieldinfo['status'] = [data.fieldinfo['identity'][1]] || []
|
||||
data.fieldinfo['identity'].splice(1, 1)
|
||||
// data.fieldinfo['status'] = [data.fieldinfo['identity'][1]] || []
|
||||
// data.fieldinfo['identity'].splice(1, 1)
|
||||
|
||||
console.log("fieldinfoNew", fieldinfoNew);
|
||||
this.setData({
|
||||
fieldinfo: data.fieldinfo,
|
||||
fieldinfoNew,
|
||||
newcity: data.city,
|
||||
newinfo: data.info,
|
||||
newToken: data.token,
|
||||
newType: data.type,
|
||||
imgs: data.info.images,
|
||||
videos: data.info.video,
|
||||
publishingrules: data.publishingrules,
|
||||
@ -817,12 +764,12 @@ Page({
|
||||
// 初始化弹出的窗口
|
||||
firstStepPopover() {
|
||||
return
|
||||
// let field = 'type'
|
||||
// let step = 0
|
||||
// let it = 'basic'
|
||||
let field = 'intermediary'
|
||||
let field = 'type'
|
||||
let step = 0
|
||||
let it = 'status'
|
||||
let it = 'basic'
|
||||
// let field = 'intermediary'
|
||||
// let step = 0
|
||||
// let it = 'status'
|
||||
|
||||
let popUpIs = ""
|
||||
let popUpStepState = ""
|
||||
@ -1123,12 +1070,10 @@ Page({
|
||||
var size = res.tempFiles[i].size / 1024 / 1024;
|
||||
let suffixIndex = res.tempFiles[i].path.lastIndexOf('.')
|
||||
let suffix = res.tempFiles[i].path.slice(suffixIndex + 1, res.tempFiles[i].path.length)
|
||||
if (size < 5 && !limitSuffix.includes(suffix.toLowerCase())) {
|
||||
// 小于3M且照片数量<6的时候才触发上传
|
||||
that.upload_picnew(res.tempFiles[i].path, "image")
|
||||
} else if (size >= 5) isLt10M = false;
|
||||
// 小于3M且照片数量<6的时候才触发上传
|
||||
if (size < 5 && !limitSuffix.includes(suffix.toLowerCase())) that.upload_picnew(res.tempFiles[i].path, "image")
|
||||
else if (size >= 5) isLt10M = false;
|
||||
else if (limitSuffix.includes(suffix.toLowerCase())) isSvg = false
|
||||
|
||||
}
|
||||
|
||||
if (!isLt10M) {
|
||||
@ -1217,22 +1162,25 @@ Page({
|
||||
|
||||
// 选择mp4
|
||||
get_video: function () {
|
||||
console.log("3 - that.data.videos.length", 3 - this.data.videos.length);
|
||||
let that = this;
|
||||
// wx.chooseVideo({
|
||||
wx.chooseMedia({
|
||||
count: 3 - that.data.videos.length,
|
||||
mediaType: ['video'],
|
||||
success: function (res) {
|
||||
console.log("res", res);
|
||||
var size = res.size / 1024 / 1024;
|
||||
if (size > 5) {
|
||||
let isSize5M = false
|
||||
let tempFiles = res.tempFiles
|
||||
tempFiles.forEach(element => {
|
||||
var size = element.size / 1024 / 1024;
|
||||
if (size > 5) isSize5M = true
|
||||
else that.upload_videonew(element.tempFilePath)
|
||||
})
|
||||
|
||||
if (isSize5M) {
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '视频大小不能超过5M',
|
||||
})
|
||||
} else {
|
||||
that.upload_videonew(res.tempFilePath)
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -1240,11 +1188,11 @@ Page({
|
||||
|
||||
// 上传mp4
|
||||
upload_videonew: function (videoUrl) {
|
||||
console.log("dffdf");
|
||||
var that = this;
|
||||
wx.showLoading({
|
||||
title: '视频上传中',
|
||||
})
|
||||
|
||||
const uploadTask = wx.uploadFile({
|
||||
url: `${app.globalData.baseURL}/tenement/publish/upload`,
|
||||
filePath: videoUrl,
|
||||
@ -2046,13 +1994,9 @@ Page({
|
||||
field,
|
||||
popupit
|
||||
} = e.currentTarget.dataset
|
||||
if (field == 'introduction') {
|
||||
value = value.substr(0, 500)
|
||||
} else if (field == 'address') {
|
||||
value = value.substr(0, 100)
|
||||
} else if (field == 'subject') {
|
||||
value = value.substr(0, 80)
|
||||
}
|
||||
if (field == 'introduction') value = value.substr(0, 500)
|
||||
else if (field == 'address') value = value.substr(0, 100)
|
||||
else if (field == 'subject') value = value.substr(0, 80)
|
||||
|
||||
this.setData({
|
||||
[`newinfo.${e.currentTarget.dataset.field}`]: value
|
||||
@ -2490,6 +2434,7 @@ Page({
|
||||
// 禁止用户滚动,原因是有可能输入框会被用户滚走
|
||||
handScroll() {
|
||||
return
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
})
|
@ -1,3 +1,4 @@
|
||||
<!-- 求房源 -->
|
||||
<import src="../common/common.wxml" />
|
||||
<wxs module="m1">
|
||||
function fn(arr, arg, state) {
|
||||
@ -30,7 +31,7 @@
|
||||
<!-- <choice-type-release></choice-type-release> -->
|
||||
<!-- 关于发布 -->
|
||||
<block wx:if="{{ popUpIs == 'about' }}">
|
||||
<about-release bindsetValue="setValue"></about-release>
|
||||
<about-release aboutRulesList="{{ aboutRulesList }}" bindsetValue="setValue"></about-release>
|
||||
</block>
|
||||
|
||||
<!-- 发布成功 -->
|
||||
@ -40,7 +41,7 @@
|
||||
<!-- <template is="fail-pop"></template> -->
|
||||
|
||||
<!-- 租金预算 -->
|
||||
<template is="rent-budget" data="{{ min,max,change,slider2W,slider1Max,slider2Min,slider1Value,slider2Value,rate,scale,slider1W,slider2W,leftSliderPriceWidthX,rightSliderPriceWidthX }}"></template>
|
||||
<!-- <template is="rent-budget" data="{{ min,max,change,slider2W,slider1Max,slider2Min,slider1Value,slider2Value,rate,scale,slider1W,slider2W,leftSliderPriceWidthX,rightSliderPriceWidthX,left }}"></template> -->
|
||||
|
||||
<!-- 目标区域 -->
|
||||
<!-- <template is="pop-target-area"></template> -->
|
||||
@ -84,7 +85,6 @@
|
||||
</view>
|
||||
</block>
|
||||
|
||||
|
||||
<view class="edit-box">
|
||||
<view class="edit-top" wx:if="{{ false }}">
|
||||
<image class="edit-top-img" mode="widthFix" src="/img/u706.png"></image>
|
||||
@ -95,29 +95,25 @@
|
||||
<view class="edit-option">
|
||||
|
||||
<!-- 发布者身份 -->
|
||||
<view class="edit-option-item">
|
||||
<!-- <view class="edit-option-item">
|
||||
<template is="clickInput" data="{{ item:fieldinfo.status[0], index:0,it:'status',newinfo }}"></template>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 基础区域 -->
|
||||
<view class="edit-option-item">
|
||||
<block wx:for="{{ fieldinfo.basic }}" wx:key="index">
|
||||
<template wx:if="{{ item.field == 'acreage' || item.field == 'rent' }}" is="pageInput" data="{{ item,index,it:'basic',newinfo,fieldinfo }}"></template>
|
||||
<template wx:if="{{ item.field == 'acreage' }}" is="pageInput" data="{{ item,index,it:'basic',newinfo,fieldinfo }}"></template>
|
||||
<template wx:elif="{{ item.field == 'property' || item.field == 'floor' }}" is="clickInputUnderArrow" data="{{ item,index,it:'basic',newinfo }}"></template>
|
||||
<template wx:else is="clickInput" data="{{ item,index,it:'basic',newinfo,fieldinfoNew,leaseTimeValue }}"></template>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<!-- 目标区域 -->
|
||||
<view class="edit-option-item" wx:if="{{ false }}">
|
||||
<template is="target-area"></template>
|
||||
</view>
|
||||
|
||||
<!-- 所在区域 -->
|
||||
<view class="edit-option-item">
|
||||
<block wx:for="{{ fieldinfo.address }}" wx:key="index">
|
||||
<template wx:if="{{ item.field == 'school' && nearSchoolList.length > 0 }}" is="nearbySchool" data="{{ item, nearSchoolList,index }}"></template>
|
||||
<template wx:else is="clickInput" data="{{ item,it:'address',index,newinfo,fieldinfo,newcity}}"></template>
|
||||
<template wx:if="{{ item.field == 'location' }}" is="target-area"></template>
|
||||
<!-- <template wx:if="{{ item.field == 'school' && nearSchoolList.length > 0 }}" is="nearbySchool" data="{{ item, nearSchoolList,index }}"></template>
|
||||
<template wx:else is="clickInput" data="{{ item,it:'address',index,newinfo,fieldinfo,newcity}}"></template> -->
|
||||
</block>
|
||||
</view>
|
||||
|
||||
@ -129,12 +125,12 @@
|
||||
</view>
|
||||
|
||||
<!-- 房屋视频和照片区域 -->
|
||||
<view class="edit-option-item">
|
||||
<!-- <view class="edit-option-item">
|
||||
<block wx:for="{{ fieldinfo.upload }}" wx:key="index">
|
||||
<template wx:if="{{ item.field == 'video' }}" is="homeVideo" data="{{ videos,it:'upload' }}"></template>
|
||||
<template wx:else is="homePhoto" data="{{ imgs,it:'upload' }}"></template>
|
||||
</block>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 个人介绍 -->
|
||||
<view class="edit-option-item">
|
||||
@ -156,7 +152,6 @@
|
||||
</view> -->
|
||||
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2">
|
||||
<image src="/img/u789.svg"></image>
|
||||
<!-- <image class="contactInformation-recommend" src="/img/u666.png"></image> -->
|
||||
<text>上传二维码</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -211,12 +206,10 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="footer-btn">
|
||||
<view class="footer-btn"> {{ newtype }}
|
||||
<block wx:if="{{newtype=='plus' || (newtype=='edit' && newStatus == 0 )}}">
|
||||
<view bindtap='NewRelease' data-status="0" class="submit save1">保存并退出</view>
|
||||
<view bindtap='NewRelease' data-status="1" class="submit">马上发布</view>
|
||||
@ -515,7 +508,6 @@
|
||||
</view>
|
||||
|
||||
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -630,7 +622,6 @@
|
||||
</view> -->
|
||||
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2">
|
||||
<image src="/img/u789.svg"></image>
|
||||
<!-- <image class="contactInformation-recommend" src="/img/u666.png"></image> -->
|
||||
<text>上传二维码</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -852,12 +843,12 @@
|
||||
</view>
|
||||
<view class="pop-up-title">租金预算</view>
|
||||
<view class="rent-budget-unit flexcenter">HK$/月</view>
|
||||
|
||||
<view class='sliderHCon'>
|
||||
<view class='twoSlider'>
|
||||
<view class='select-construct'>
|
||||
<view class="select-value flexcenter" style="left: {{ leftSliderPriceWidthX }};right: {{ rightSliderPriceWidthX }};">{{ slider1Value }} ~ {{ slider2Value }}</view>
|
||||
<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>
|
||||
|
@ -1422,6 +1422,11 @@
|
||||
|
||||
|
||||
/* 标记 */
|
||||
|
||||
wx-slider {
|
||||
/* opacity: 0; */
|
||||
}
|
||||
|
||||
wx-slider .wx-slider-handle-wrapper {
|
||||
height: 12rpx;
|
||||
}
|
||||
|
@ -394,6 +394,7 @@ Page({
|
||||
leftSliderPriceWidthX: '0%',
|
||||
rightSliderPriceWidthX: '0%',
|
||||
|
||||
aboutRulesList: {}, // 关于发布的数据
|
||||
|
||||
},
|
||||
|
||||
@ -450,22 +451,17 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
let list = []
|
||||
for (let i = 0; i < 24; i++) {
|
||||
list.push(i + '点-' + (i + 1) + '点');
|
||||
}
|
||||
this.setData({
|
||||
list: list
|
||||
})
|
||||
// let list = []
|
||||
// for (let i = 0; i < 24; i++) {
|
||||
// list.push(i + '点-' + (i + 1) + '点');
|
||||
// }
|
||||
// this.setData({
|
||||
// list: list
|
||||
// })
|
||||
|
||||
|
||||
|
||||
@ -536,9 +532,10 @@ Page({
|
||||
status: app.globalData.status,
|
||||
user: app.globalData.user
|
||||
})
|
||||
|
||||
app.globalData.notice = false;
|
||||
this.newPublish()
|
||||
this.getAbout()
|
||||
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
that.get_config()
|
||||
@ -546,6 +543,15 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
// 获取关于发布
|
||||
getAbout() {
|
||||
miucms.request(`${app.globalData.baseURL}/tenement/v2.Publish/about`).then(res => {
|
||||
this.setData({
|
||||
aboutRulesList: res.data
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
// 新的获取发布数据
|
||||
newPublish() {
|
||||
wx.showLoading({
|
||||
@ -1237,15 +1243,19 @@ Page({
|
||||
count: 3 - that.data.videos.length,
|
||||
mediaType: ['video'],
|
||||
success: function (res) {
|
||||
console.log("res", res);
|
||||
var size = res.size / 1024 / 1024;
|
||||
if (size > 5) {
|
||||
let isSize5M = false
|
||||
let tempFiles = res.tempFiles
|
||||
tempFiles.forEach(element => {
|
||||
var size = element.size / 1024 / 1024;
|
||||
if (size > 5) isSize5M = true
|
||||
else that.upload_videonew(element.tempFilePath)
|
||||
})
|
||||
|
||||
if (isSize5M) {
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '视频大小不能超过5M',
|
||||
})
|
||||
} else {
|
||||
that.upload_videonew(res.tempFilePath)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -30,7 +30,7 @@
|
||||
<!-- <choice-type-release></choice-type-release> -->
|
||||
<!-- 关于发布 -->
|
||||
<block wx:if="{{ popUpIs == 'about' }}">
|
||||
<about-release bindsetValue="setValue"></about-release>
|
||||
<about-release aboutRulesList="{{ aboutRulesList }}" bindsetValue="setValue"></about-release>
|
||||
</block>
|
||||
|
||||
<!-- 发布成功 -->
|
||||
@ -45,9 +45,6 @@
|
||||
<!-- 目标区域 -->
|
||||
<!-- <template is="pop-target-area"></template> -->
|
||||
|
||||
<!-- 新的服务类型 -->
|
||||
<template is="new-marquee-box"></template>
|
||||
|
||||
<header-nav inner-text="Some text" bgcolor="rgba(246, 246, 246, 1)">{{ isInput? isInput :( types=='edit' ?'编辑房源信息' :'发布房源信息' ) }}</header-nav>
|
||||
|
||||
<view class="header-tips" wx:if="{{ false }}">
|
||||
@ -85,16 +82,13 @@
|
||||
</view>
|
||||
</block>
|
||||
|
||||
|
||||
<view class="edit-box">
|
||||
<view class="edit-top" wx:if="{{ false }}">
|
||||
<image class="edit-top-img" mode="widthFix" src="/img/u706.png"></image>
|
||||
<!-- {{ newcity.country }} <view class="clickInputLeftArrow"></view> {{ newcity.name }} -->
|
||||
{{ newcity.name }}
|
||||
</view>
|
||||
|
||||
<view class="edit-option">
|
||||
|
||||
<!-- 发布者身份 -->
|
||||
<view class="edit-option-item">
|
||||
<template is="clickInput" data="{{ item:fieldinfo.status[0], index:0,it:'status',newinfo }}"></template>
|
||||
@ -157,7 +151,6 @@
|
||||
</view> -->
|
||||
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2">
|
||||
<image src="/img/u789.svg"></image>
|
||||
<!-- <image class="contactInformation-recommend" src="/img/u666.png"></image> -->
|
||||
<text>上传二维码</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -583,7 +576,6 @@
|
||||
<view class="clickInputLeftArrow"></view>
|
||||
</view>
|
||||
<view class="pop-up-top" bindtap="closePopUp">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
|
||||
</view>
|
||||
<view class="pop-up-title">{{ item.title }}</view>
|
||||
@ -604,7 +596,6 @@
|
||||
</view>
|
||||
|
||||
<template is="pop-up-footer" data="{{ popUpStepState,field:item.field,newtype,newStatus }}"></template>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -614,7 +605,6 @@
|
||||
<view class="contactInformation pop-up" catchtouchmove="handScroll">
|
||||
<view class="pop-up-box">
|
||||
<view class="pop-up-top" bindtap="closePopUp">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
|
||||
</view>
|
||||
<view class="pop-up-title">联系方式</view>
|
||||
@ -626,12 +616,8 @@
|
||||
<view class="yellowDot"></view><text>微信</text>
|
||||
</view>
|
||||
<view class="contactInformation-wechat" wx:if="{{ contactInformationState == 0 }}">
|
||||
<!-- <view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="contactInformationwechatcut" data-state="1">
|
||||
<image mode="widthFix" src="/img/pengreydark.png"></image><text>填写微信号</text>
|
||||
</view> -->
|
||||
<view class="contactInformation-wechat-item" hover-class="option-hover" bindtap="UploadQRCode" data-state="2">
|
||||
<image src="/img/u789.svg"></image>
|
||||
<!-- <image class="contactInformation-recommend" src="/img/u666.png"></image> -->
|
||||
<text>上传二维码</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -685,7 +671,6 @@
|
||||
<view class="ofDate pop-up">
|
||||
<view class="pop-up-box">
|
||||
<view class="pop-up-top" bindtap="closePopUp">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
|
||||
</view>
|
||||
<view class="pop-up-title">选择起租日期</view>
|
||||
@ -733,7 +718,6 @@
|
||||
<view class="area pop-up">
|
||||
<view class="pop-up-box">
|
||||
<view class="pop-up-top" bindtap="closePopUp">
|
||||
<!-- <view class="pop-up-arrow"></view> -->
|
||||
<image class="pop-up-arrow" mode="widthFix" src="/img/back.png"></image>
|
||||
</view>
|
||||
<view class="pop-up-title">
|
||||
@ -777,7 +761,6 @@
|
||||
</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' }}">
|
||||
@ -795,8 +778,7 @@
|
||||
<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-save" bindtap='NewRelease' data-status="0" wx:if="{{ newtype != 'edit' && newStatus != 1 }}">保存并退出</view>
|
||||
<view class="pop-up-nextStep" bindtap="fillThe">填好了</view>
|
||||
</view>
|
||||
</template>
|
||||
@ -919,36 +901,8 @@
|
||||
</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="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">服务类型</view>
|
||||
<view class="new-marquee-unlimited flexacenter">
|
||||
<image wx:if="{{ false }}" class="new-marquee-unlimited-icom" mode="widthFix" src="/img/green-circle-pitch.svg"></image>
|
||||
<view class="new-marquee-unlimited-icom new-marquee-unlimited-unselected-icom"></view>
|
||||
不限
|
||||
</view>
|
||||
<view class="new-marquee-line"></view>
|
||||
<view class="new-marquee-list flexflex">
|
||||
<view class="new-marquee-item flexacenter" wx:for="{{ 7 }}" wx:key="index">
|
||||
<view class="new-marquee-case"></view>唐楼
|
||||
</view>
|
||||
</view>
|
||||
<template is="pop-up-footer" data="{{ popUpStepState:2 }}"></template>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
</template>
|
@ -1582,58 +1582,6 @@ wx-slider .wx-slider-handle-wrapper {
|
||||
margin-left: 24rpx;
|
||||
}
|
||||
|
||||
.pop-new-marquee-box {
|
||||
height: 500rpxx;
|
||||
}
|
||||
|
||||
.pop-new-marquee-box .pop-new-marquee-unlimited {
|
||||
font-size: 24rpx;
|
||||
color: #000;
|
||||
align-self: flex-start;
|
||||
margin-left: 48rpx;
|
||||
margin-bottom: 48rpx;
|
||||
margin-top: 91.5rpx;
|
||||
}
|
||||
|
||||
.pop-new-marquee-box .pop-new-marquee-unlimited .pop-new-marquee-unlimited-icom {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
margin-right: 12rpx;
|
||||
}
|
||||
|
||||
.pop-new-marquee-box .pop-new-marquee-unlimited .pop-new-marquee-unlimited-unselected-icom {
|
||||
border: 6rpx solid #d7d7d7;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.pop-new-marquee-box .pop-new-marquee-line {
|
||||
width: 654rpx;
|
||||
height: 1rpx;
|
||||
background-color: #ebebeb;
|
||||
}
|
||||
|
||||
.pop-new-marquee-box .pop-new-marquee-list {
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
padding: 27.75rpx 0 27.75rpx 48rpx;
|
||||
margin-bottom: 64.5rpx;
|
||||
}
|
||||
|
||||
.pop-new-marquee-box .pop-new-marquee-list .pop-new-marquee-item {
|
||||
width: 33.33%;
|
||||
padding: 27.75rpx 0;
|
||||
font-size: 27rpx;
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
.pop-new-marquee-box .pop-new-marquee-list .pop-new-marquee-case {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 8rpx;
|
||||
border: 4rpx solid #aaaaaa;
|
||||
margin-right: 15rpx;
|
||||
}
|
||||
|
||||
.target-area {}
|
||||
|
||||
.target-area .target-area-list {
|
||||
|
@ -4,28 +4,20 @@ Component({
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
|
||||
aboutRulesList: Object,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
rulesList: {
|
||||
person: [`个人账号发布的房源信息将展示在“<span style="color: #000; font-weight:650;">个人房源</span>”或“<span style="color: #000; font-weight:650;">求房源</span>”频道中,其中个人房源包括<span style="color: #000; font-weight:650;">普通房源</span>、<span style="color: #000; font-weight:650;">认证房源</span>;`,
|
||||
`个人账号最多可同时上架 <span style="color: #000; font-weight:650;">3</span> 条普通房源/求房源;`,
|
||||
`可对普通房源提交认证申请,审核通过后不占用普通房源/求房源的上架名额, <span style="color: #000; font-weight:650;">不限制认证房源的上架数量 </span> 。`
|
||||
],
|
||||
agent: [`中介账号发布的房源信息将展示在“<span style="color: #000; font-weight:650;">中介房源</span>”频道中;`, `中介账号(未认证)最多可发布 <span style="color: #000; font-weight:650;">3</span> 条房源;`, `中介账号(有认证)最多可发布 <span style="color: #000; font-weight:650;">20</span> 条房源。`],
|
||||
more: [`请按真实身份发布、请勿发布非寄托官方群/代看房信息,违规发布将被永久禁言,感谢合作;`, `所有房源信息每次上架的有效期为 <span style="color: #000; font-weight:650;">12</span> 个月,有效期内没有进行任何更新操作的,到期后将自动下架。`]
|
||||
},
|
||||
tab: "person", // person 个人 agent 中介 more 更多
|
||||
tab: "person", // person 个人 intermediary 中介 more 更多
|
||||
navList: [{
|
||||
name: "个人账号",
|
||||
type: "person"
|
||||
}, {
|
||||
name: "中介账号",
|
||||
type: "agent"
|
||||
type: "intermediary"
|
||||
}, {
|
||||
name: "更多说明",
|
||||
type: "more"
|
||||
@ -49,7 +41,5 @@ Component({
|
||||
this.triggerEvent('setValue', e)
|
||||
},
|
||||
|
||||
|
||||
|
||||
}
|
||||
})
|
@ -8,7 +8,7 @@
|
||||
</view>
|
||||
|
||||
<view class="rules-box">
|
||||
<view class="rules-item flexflex" wx:for="{{ rulesList[tab] }}" wx:key="index">
|
||||
<view class="rules-item flexflex" wx:for="{{ aboutRulesList[tab] }}" wx:key="index">
|
||||
<view class="rules-icon-box flexcenter"></view>
|
||||
<view class="rules-content flex1">
|
||||
<rich-text nodes="{{ item }}"></rich-text>
|
||||
|
@ -62,9 +62,10 @@
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
margin-right: 18rpx;
|
||||
margin-top: 39.5rpx;
|
||||
margin-top: 46rpx;
|
||||
background-color: rgb(80, 227, 194);
|
||||
border-radius: 50%;
|
||||
line-height: 37.5rpx;
|
||||
}
|
||||
|
||||
.rules-item {
|
||||
|
Loading…
x
Reference in New Issue
Block a user