提交
This commit is contained in:
parent
c05944e183
commit
f652b677f9
2
app.js
2
app.js
@ -1,4 +1,4 @@
|
||||
//app.js
|
||||
//app.js wx9c68fbf7886ea9c4 租房的 wxcf0a799771cf2ae6 港校的
|
||||
var initial_url = 'https://app.gter.net/tenement';
|
||||
var __ = require('./utils/miucms.js');
|
||||
App({
|
||||
|
BIN
img/issue-plus-sign.png
Normal file
BIN
img/issue-plus-sign.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 578 B |
@ -743,14 +743,14 @@ Page({
|
||||
let choicesnew = []
|
||||
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 == [Math.trunc(data.info[field])]) {
|
||||
locationhead = el.value
|
||||
this.data.areaRegionIndex = el.key - 1
|
||||
}
|
||||
}
|
||||
// if (this.data.types == 'edit' || this.data.types == 'edit1') {
|
||||
// // if (el.key == data.info[field]) locationtail = el.value
|
||||
// console.log("locationtail", locationtail);
|
||||
// if (el.key == [Math.trunc(data.info[field])]) {
|
||||
// locationhead = el.value
|
||||
// this.data.areaRegionIndex = el.key - 1
|
||||
// }
|
||||
// }
|
||||
|
||||
if (el.key % 1 == 0) {
|
||||
choicesnew[el.key - 1] = {
|
||||
@ -1914,7 +1914,7 @@ Page({
|
||||
}
|
||||
|
||||
|
||||
if (field == "acreage" && this.data.newinfo[field].length < 2) {
|
||||
if ((field == "acreage" || field == 'rent') && this.data.newinfo[field].length < 2) {
|
||||
// let estimatedValue = this.data.estimatedValue[field]
|
||||
// this.data.newinfo[field] = [estimatedValue.defaultMin, estimatedValue.defaultMax]
|
||||
// popUpdate['value'] = [estimatedValue.defaultMin, estimatedValue.defaultMax]
|
||||
@ -2062,7 +2062,7 @@ Page({
|
||||
}
|
||||
|
||||
if (!newinfo['wechatdata']['aid']) newinfo.iswechattype = 0
|
||||
|
||||
|
||||
|
||||
|
||||
if (newinfo.leasetime == '随时') newinfo.leasetime = 0
|
||||
|
@ -57,9 +57,6 @@
|
||||
<!-- 发布失败 -->
|
||||
<!-- <template is="fail-pop"></template> -->
|
||||
|
||||
<!-- 租金预算 -->
|
||||
<!-- <template is="rent-budget" data="{{ min,max,change,slider1Max,slider2Min,slider1Value,slider2Value,rate,scale,slider1W,slider2W,leftSliderPriceWidthX,rightSliderPriceWidthX,left }}"></template> -->
|
||||
|
||||
<!-- 目标区域 -->
|
||||
<!-- <template is="pop-target-area"></template> -->
|
||||
|
||||
@ -783,7 +780,8 @@
|
||||
<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 class="target-area-content">九龙 > {{ locationObj[item] }}</view>
|
||||
<!-- <view class="target-area-content">九龙 > {{ locationObj[item] }}</view> -->
|
||||
<view 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>
|
||||
@ -852,7 +850,6 @@
|
||||
<view class="pop-new-marquee-case"></view>
|
||||
{{ it.value }}
|
||||
</block>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<template is="pop-up-footer" data="{{ popUpStepState: item.popUpStepState,newStatus,newtype }}"></template>
|
||||
|
@ -28,6 +28,31 @@ Page({
|
||||
'district': 1,
|
||||
'type': 2,
|
||||
},
|
||||
|
||||
envVersionState: false, // 是否在开发环境
|
||||
images: "https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-W-58oc3nqqsgFptxhXa6SWi2uePJ5Bg8cFLPIvsEG-4BUA27F7lfn5E55tXAL34gR30K6A7FxO7Sa1zx17l80NDI5", // 新公寓列表的图片链接 随时删除
|
||||
tabList: [{
|
||||
title: "推荐",
|
||||
value: "recommend",
|
||||
left: 26,
|
||||
}, {
|
||||
title: "整租",
|
||||
value: "entire",
|
||||
left: 122.5,
|
||||
}, {
|
||||
title: "合租",
|
||||
value: "joint",
|
||||
left: 221.5,
|
||||
}, {
|
||||
title: "已认证",
|
||||
value: "authenticated",
|
||||
left: 316.5,
|
||||
}, {
|
||||
title: "招室友",
|
||||
value: "attract",
|
||||
left: 436,
|
||||
},],
|
||||
tabValue: 0,
|
||||
},
|
||||
|
||||
/**
|
||||
@ -37,6 +62,14 @@ Page({
|
||||
onLoad: function (options) {
|
||||
wx.showLoading()
|
||||
this.get_config()
|
||||
|
||||
let accountInfo = wx.getAccountInfoSync()
|
||||
let envVersion = accountInfo.miniProgram.envVersion
|
||||
if (envVersion != 'develop') return
|
||||
this.setData({
|
||||
envVersionState: true
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
// 获取系统通知数量
|
||||
@ -159,9 +192,10 @@ Page({
|
||||
},
|
||||
|
||||
setValue(e) {
|
||||
let key = e.currentTarget.dataset.key
|
||||
let value = e.currentTarget.dataset.value
|
||||
this.setData({
|
||||
areaTab: value
|
||||
[key]: value
|
||||
})
|
||||
},
|
||||
})
|
@ -48,10 +48,10 @@
|
||||
</navigator>
|
||||
</view>
|
||||
|
||||
<!-- 区域选择 -->
|
||||
<view class="area-selection" wx:if="{{ false }}">
|
||||
<!-- 区域选择 新 -->
|
||||
<view class="area-selection" wx:if="{{ envVersionState && false }}">
|
||||
<view class="head flexacenter shadow">
|
||||
<view class="head-item flexcenter flex1 {{ item == areaTab ? 'pitch' : '' }}" wx:for="{{ areaList }}" bindtap="setValue" data-value="{{ item }}">
|
||||
<view class="head-item flexcenter flex1 {{ item == areaTab ? 'pitch' : '' }}" wx:for="{{ areaList }}" wx:key="index" bindtap="setValue" data-key="areaTab" data-value="{{ item }}">
|
||||
学校附近
|
||||
<view class="head-underline" wx:if="{{ item == areaTab }}"></view>
|
||||
</view>
|
||||
@ -64,17 +64,17 @@
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ areaTab == 'school' }}" class="area-list area-school flexflex">
|
||||
<view class="area-item flexcenter" wx:for="{{ 10 }}">港岛</view>
|
||||
<view class="area-item flexcenter" wx:for="{{ 10 }}" wx:key="index">港岛</view>
|
||||
</view>
|
||||
<view wx:if="{{ areaTab == 'district' }}" class="area-list area-district flexflex">
|
||||
<view class="area-item flexcenter" wx:for="{{ 3 }}">港岛</view>
|
||||
<view class="area-item flexcenter" wx:for="{{ 3 }}" wx:key="index">港岛</view>
|
||||
</view>
|
||||
|
||||
<block wx:if="{{ areaTab == 'type' }}">
|
||||
<view class="area-list area-type flexflex">
|
||||
<view class="area-type-name">合租</view>
|
||||
<view class="area-type-block flex1 flexflex">
|
||||
<view class="area-item flexcenter" wx:for="{{ 5 }}">港岛</view>
|
||||
<view class="area-item flexcenter" wx:for="{{ 5 }}" wx:key="index">港岛</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="area-list area-type flexflex">
|
||||
@ -100,7 +100,6 @@
|
||||
</view>
|
||||
|
||||
<view class="area-pop-content flexflex" style="top: {{ screen_data.totalTopHeight }}px;">
|
||||
|
||||
<view class="flexflex flex1">
|
||||
<view class="area-pop-content-left">
|
||||
<view class="area-pop-content-left-item pitch flexcenter">港岛</view>
|
||||
@ -108,7 +107,7 @@
|
||||
<view class="area-pop-content-left-item flexcenter">新界</view>
|
||||
</view>
|
||||
<view class="area-pop-content-right flex1">
|
||||
<view class="area-pop-content-right-item flexacenter" wx:for="{{ 10 }}">
|
||||
<view class="area-pop-content-right-item flexacenter" wx:for="{{ 10 }}" wx:key="index">
|
||||
<view class="area-pop-content-right-name">不限</view>
|
||||
<view class="area-pop-content-right-operate"></view>
|
||||
</view>
|
||||
@ -122,15 +121,37 @@
|
||||
</view>
|
||||
<view class="area-pop-confirm-btn flex1 flexcenter">确定</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
</page-container>
|
||||
</view>
|
||||
|
||||
<!-- 公寓列表 新 -->
|
||||
<view class="apartment-block" wx:if="{{ envVersionState && false }}">
|
||||
<scroll-view scroll-x="{{ true }}" class="scroll">
|
||||
<view class="apartment-list flexflex">
|
||||
<view class="apartment-item flexflex" wx:for="{{ 10 }}" wx:key="index">
|
||||
<view class="apartment-name">iRent佐敦二期公寓</view>
|
||||
<view class="apartment-introduce">油尖旺中心品质公寓</view>
|
||||
|
||||
<view class="apartment-image-list flexacenter">
|
||||
<image class="apartment-image-item" wx:for="{{ 2 }}" wx:key="index" src="{{ images }}"></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- 数据列表 tab 新 -->
|
||||
<view class="tab-list flexacenter">
|
||||
<view class="tab-item {{ tabValue == index ? 'pitch' : '' }}" wx:for="{{ tabList }}" wx:key="index" bindtap="setValue" data-key="tabValue" data-value="{{ index }}">{{ item.title }}</view>
|
||||
<view class="tab-green" style="left: {{ tabList[tabValue].left }}rpx;"></view>
|
||||
</view>
|
||||
|
||||
<view class="pinterest-list">
|
||||
<view class="pinterest-list-item apartment"></view>
|
||||
</view>
|
||||
|
||||
<!-- 个人房源 -->
|
||||
<view class="house-block">
|
||||
<navigator url="/pages/personList/personList" hover-class="hover" class="title">
|
||||
|
@ -271,6 +271,7 @@
|
||||
border-radius: 24rpx;
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
filter: drop-shadow(0 0 12rpx rgba(0, 0, 0, 0.0784313725490196));
|
||||
}
|
||||
|
||||
.area-selection .head {
|
||||
@ -553,4 +554,103 @@
|
||||
background-color: rgba(98, 177, 255, 1);
|
||||
color: #fff;
|
||||
font-size: 650;
|
||||
}
|
||||
|
||||
.apartment-block {}
|
||||
|
||||
.apartment-block .apartment-list {
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-item {
|
||||
flex: 0 0 300rpx;
|
||||
width: 300rpx;
|
||||
height: 235.5rpx;
|
||||
border-radius: 24rpx;
|
||||
background: linear-gradient(169.477903549005deg, rgba(252, 248, 251, 1) 27%, rgba(98, 177, 255, 1) 348%);
|
||||
box-shadow: 0 0 12rpx rgba(0, 0, 0, 0.0784313725490196);
|
||||
border: 1rpx solid rgba(229, 232, 240, 1);
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 22.5rpx 18rpx 27rpx 18rpx;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-item:not(:last-of-type) {
|
||||
margin-right: 15rpx;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-name {
|
||||
color: #000000;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-introduce {
|
||||
color: #7f7f7f;
|
||||
font-size: 21rpx;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-image-list {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-image-item {
|
||||
width: 126rpx;
|
||||
height: 82.5rpx;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
|
||||
.tab-list {
|
||||
color: #7F7F7F;
|
||||
font-size: 25.5rpx;
|
||||
font-weight: 400;
|
||||
padding: 0 30rpx;
|
||||
margin-top: 30rpx;
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.tab-list .tab-item {
|
||||
/* margin-right: 48rpx; */
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.tab-list .tab-item:first-of-type {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.tab-list .tab-item.pitch {
|
||||
color: #000;
|
||||
font-weight: 650;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tab-list .tab-item.pitch:first-of-type::after {
|
||||
left: -4rpx;
|
||||
}
|
||||
|
||||
.tab-list .tab-item.pitch::after {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
/* content: ""; */
|
||||
position: absolute;
|
||||
top: -9rpx;
|
||||
/* left: -4rpx; */
|
||||
left: 25.5rpx;
|
||||
background-color: #50e3c2;
|
||||
border-radius: 50%;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.tab-list .tab-green {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
background-color: #50e3c2;
|
||||
position: absolute;
|
||||
top: -9rpx;
|
||||
left: 26rpx;
|
||||
border-radius: 50%;
|
||||
z-index: -1;
|
||||
transition: left 0.1s;
|
||||
|
||||
}
|
@ -339,8 +339,6 @@ Page({
|
||||
let locationList = []
|
||||
for (const key in location) {
|
||||
if (pendingData.indexOf(key) != -1 && Math.trunc(key) != key) {
|
||||
console.log("key", location[key]);
|
||||
|
||||
locationList.push({
|
||||
head: location[Math.trunc(key)],
|
||||
end: location[key],
|
||||
|
@ -370,7 +370,7 @@
|
||||
|
||||
|
||||
|
||||
<view style="position: relative;z-index: 11;">
|
||||
<view style="position: relative;z-index: 1001;">
|
||||
<announcement-popup interface='my' init="{{ initState }}"></announcement-popup>
|
||||
</view>
|
||||
|
||||
|
@ -8,9 +8,24 @@
|
||||
<navigator class='plus view' url='/pages/edit/edit?cityName=香港&alias=Hongkong&uniqid=kbu4a9v7CjzvjJ__vUlA_jYDaTVRHWsf93n0bXfpkc4Q5XuCsk2ubBTz-qLRaUT_87YAS_ET7pf5tt0itORxLtPJJ7C76Q5_qXBATZgDTr_uyuBsaOnC0YA0Gm239lTdshoOpmqksJ85qQMXI_-jSNt7O4wZA5bropLHPIPdq6sX51OVn1WobolXqAcUbe-4mXPFIFpawZNCwmPlLf8e2ZZdkxkmfq_fCw7Pd8jj5rFiJh2_Im7unspYmE8nOO4iePI0wmW9F50tai27VeWj2s2mmGO6kiqhIb3B_Irub_WT3ys-0-1Yvf9oHop6dz0TAXgc6-ReM_tIZDE0NQ~~' hover-class="hover">
|
||||
<view class='roll'></view>
|
||||
<view class='c'>
|
||||
<view class='round'>
|
||||
<image class='hotbtn' src="../../img/plust.png" />
|
||||
<!-- <view class='round1'>
|
||||
<image class='hotbtn' src="/img/issue-plus-sign.png" />
|
||||
</view> -->
|
||||
|
||||
<view class="" style="height: 66rpx;height: 66rpx;border-radius: 50%;">
|
||||
<view class="selected-point">
|
||||
<view class="selected-point-center"></view>
|
||||
|
||||
<view class="selected-point-mid flexcenter">
|
||||
<image class="selected-point-mid-icon" src="/img/issue-plus-sign.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
<!-- <view class='round'>
|
||||
<image class='hotbtn' src="../../img/plust.png" />
|
||||
</view> -->
|
||||
<view>发布房源</view>
|
||||
</view>
|
||||
</navigator>
|
||||
|
@ -108,6 +108,41 @@
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.fixfooter .plus .c .round1 {
|
||||
width: 62rpx;
|
||||
height: 62rpx;
|
||||
background: #fdda58;
|
||||
border-radius: 50%;
|
||||
margin: 0 auto -14rpx;
|
||||
position: relative;
|
||||
top: -20rpx;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
animation: grow-shrink 1s infinite;
|
||||
|
||||
}
|
||||
|
||||
.fixfooter .plus .c .round1 image {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
}
|
||||
|
||||
@keyframes grow-shrink {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
.submit-form {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
@ -135,4 +170,105 @@
|
||||
|
||||
.hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.selected-point,
|
||||
.selected-point-mid,
|
||||
.selected-point-center {
|
||||
display: block;
|
||||
height: 30rpx;
|
||||
width: 30rpx;
|
||||
border-radius: 50000%;
|
||||
position: absolute;
|
||||
background: transparent;
|
||||
z-index: 9999;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.selected-point {
|
||||
top: 100px;
|
||||
left: 200px;
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 50%;
|
||||
|
||||
}
|
||||
|
||||
.selected-point {
|
||||
animation-name: sploosh;
|
||||
animation-duration: 2s;
|
||||
animation-delay: 0.5s;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: normal;
|
||||
|
||||
}
|
||||
|
||||
.selected-point-mid {
|
||||
animation-name: sploosh1;
|
||||
animation-duration: 2s;
|
||||
animation-delay: 0.5s;
|
||||
animation-timing-function: ease-in;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: normal;
|
||||
|
||||
}
|
||||
|
||||
.selected-point-center {
|
||||
animation-name: sploosh2;
|
||||
animation-duration: 2s;
|
||||
animation-timing-function: ease-in;
|
||||
animation-delay: 0.5s;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: normal;
|
||||
|
||||
}
|
||||
|
||||
@keyframes sploosh {
|
||||
0% {
|
||||
box-shadow: 0 0 0 15rpx rgba(255, 215, 74, 0.30);
|
||||
background: rgba(255, 215, 74, 0.05);
|
||||
}
|
||||
|
||||
100% {
|
||||
box-shadow: 0 0 0 50rpx rgba(255, 215, 74, 0.0);
|
||||
background: rgba(255, 215, 74, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sploosh1 {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 215, 74, 0.99);
|
||||
background: rgba(255, 215, 74, 0.90);
|
||||
|
||||
}
|
||||
|
||||
100% {
|
||||
box-shadow: 0 0 0 37.5rpx rgba(255, 215, 74, 0.0);
|
||||
background: rgba(255, 215, 74, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sploosh2 {
|
||||
0% {
|
||||
box-shadow: 0 0 0 7.5rpx rgba(255, 215, 74, 0.60);
|
||||
background: rgba(255, 215, 74, 0.60);
|
||||
}
|
||||
|
||||
100% {
|
||||
box-shadow: 0 0 0 50rpx rgba(255, 215, 74, 0.0);
|
||||
background: rgba(255, 215, 74, 0.0);
|
||||
}
|
||||
}
|
||||
|
||||
.selected-point-mid-icon {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
border-radius: 50%;
|
||||
z-index: 111111;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user