提交
This commit is contained in:
parent
51ada8e530
commit
4d3ff75621
BIN
img/apartment-icon.png
Normal file
BIN
img/apartment-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
img/apartment-text.png
Normal file
BIN
img/apartment-text.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
@ -2132,10 +2132,16 @@ Page({
|
||||
url: '/pages/user/user?tab=publish',
|
||||
})
|
||||
} else {
|
||||
wx.redirectTo({
|
||||
// url: '/pages/show/show?uniqid=' + res.data.uniqid + '&cityid=' + this.data.newcity.id,
|
||||
url: '/pages/show/show?uniqid=' + res.data.uniqid
|
||||
this.setData({
|
||||
popUpIs: "succeed-pop"
|
||||
})
|
||||
setTimeout(() => {
|
||||
wx.redirectTo({
|
||||
// url: '/pages/show/show?uniqid=' + res.data.uniqid + '&cityid=' + this.data.newcity.id,
|
||||
url: '/pages/show/show?uniqid=' + res.data.uniqid
|
||||
})
|
||||
}, 2000)
|
||||
|
||||
}
|
||||
}
|
||||
if (res.code == 201) {
|
||||
|
@ -52,7 +52,7 @@
|
||||
</block>
|
||||
|
||||
<!-- 发布成功 -->
|
||||
<!-- <template is="succeed-pop"></template> -->
|
||||
<!-- <template is="succeed-pop" data="{{ popState:'ask' }}"></template> -->
|
||||
|
||||
<!-- 发布失败 -->
|
||||
<!-- <template is="fail-pop"></template> -->
|
||||
@ -240,7 +240,7 @@
|
||||
|
||||
<!-- 弹窗应该出现那个状态在这里处理-->
|
||||
<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,locationObj }}"></template>
|
||||
<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,locationObj,popState:'ask' }}"></template>
|
||||
</view>
|
||||
|
||||
<!-- 触发规则1时 重复发布 -->
|
||||
@ -253,7 +253,9 @@
|
||||
</block>
|
||||
<!-- 触发规则3时 提交失败 -->
|
||||
<block wx:elif="{{ triggerRules == 3 }}">
|
||||
<template is="submitFailurethree"></template>
|
||||
<!-- <template is="submitFailurethree"></template> -->
|
||||
<template is="fail-pop"></template>
|
||||
|
||||
</block>
|
||||
|
||||
<!-- 触发规则4时 你的微信号有误 -->
|
||||
|
@ -413,7 +413,12 @@
|
||||
<view class="succeed-box flexcenter">
|
||||
<image class="succeed-icom" src="/img/succeed-icon.png"></image>
|
||||
<view class="succeed-title">发布成功</view>
|
||||
<block wx:if="{{ true }}">
|
||||
<block wx:if="{{ popState == 'ask' }}">
|
||||
<view class="automatically-skip">
|
||||
2秒后自动跳转页面
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<block wx:if="{{ false }}">
|
||||
<view class="succeed-reminder">完成房源认证更快租出去</view>
|
||||
|
||||
@ -434,19 +439,11 @@
|
||||
<view class="succeed-btn flexcenter">前往认证<image class="succeed-btn-icom" mode="widthFix" src="/img/arrows-right-black.png"></image>
|
||||
</view>
|
||||
<view class="succeed-btn-no flexcenter">暂不认证</view>
|
||||
|
||||
|
||||
</block>
|
||||
|
||||
|
||||
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="automatically-skip">
|
||||
2秒后自动跳转页面
|
||||
</view>
|
||||
</block>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -464,8 +461,12 @@
|
||||
<view class="fail-explain">房源数量已达上限</view>
|
||||
<view class="fail-explain">下架旧房源,便可发布新房源</view>
|
||||
|
||||
<view class="fail-btn flexcenter">房源管理<image class="fail-btn-icom" mode="widthFix" src="/img/arrows-right-white.png"></image>
|
||||
</view>
|
||||
<!-- <view class="fail-btn flexcenter">房源管理<image class="fail-btn-icom" mode="widthFix" src="/img/arrows-right-white.png"></image> -->
|
||||
<!-- </view> -->
|
||||
|
||||
<navigator class="fail-btn flexcenter" hover-class="none" open-type="redirect" url="/pages/user/user?tab=publish">
|
||||
房源管理<image class="fail-btn-icom" mode="widthFix" src="/img/arrows-right-white.png"></image>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
@ -233,8 +233,8 @@
|
||||
}
|
||||
|
||||
.footer-btn .submit {
|
||||
/* flex: 1; */
|
||||
width: 330rpx;
|
||||
flex: 1;
|
||||
/* width: 330rpx; */
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
@ -51,7 +51,7 @@ Page({
|
||||
title: "招室友",
|
||||
value: "attract",
|
||||
left: 436,
|
||||
},],
|
||||
}, ],
|
||||
tabValue: 0,
|
||||
},
|
||||
|
||||
@ -91,6 +91,7 @@ Page({
|
||||
// if (app.globalData.code) {
|
||||
if (app.globalData.config && app.globalData.config.lists) {
|
||||
this.get_list();
|
||||
this.getNewInit()
|
||||
this.setData({
|
||||
initState: true
|
||||
})
|
||||
@ -100,6 +101,26 @@ Page({
|
||||
}, 10)
|
||||
}
|
||||
},
|
||||
// 新初始化数据
|
||||
getNewInit() {
|
||||
miucms.wxget(`${app.globalData.baseURL}/tenement/v2/api/home`).then(res => {
|
||||
let data = res.data
|
||||
console.log(data);
|
||||
|
||||
let {
|
||||
search,
|
||||
apartment,
|
||||
tabs
|
||||
} = data
|
||||
|
||||
this.setData({
|
||||
...data
|
||||
})
|
||||
|
||||
console.log("tabs", this.data.tabs);
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
get_list() {
|
||||
var that = this;
|
||||
@ -198,4 +219,14 @@ Page({
|
||||
[key]: value
|
||||
})
|
||||
},
|
||||
|
||||
// 公共跳转
|
||||
publicJumps(e) {
|
||||
let url = e.currentTarget.dataset.url
|
||||
wx.navigateTo({
|
||||
url,
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
})
|
@ -2,6 +2,11 @@
|
||||
<header-nav inner-text="Some text" isIndexPage="index">寄托香港租房</header-nav>
|
||||
<!-- swiper -->
|
||||
<head-swiper attachment="{{ banner }}" isInner="1"></head-swiper>
|
||||
<view class="headSwiper">
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
<!-- 搜索 -->
|
||||
<navigator url="/pages/search/search" class="search-btn" hover-class="hover">
|
||||
<!-- <image class='searchbtn' src="../../img/search-6.png" />搜索房源 -->
|
||||
@ -129,12 +134,15 @@
|
||||
<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-item flexflex" wx:for="{{ apartment }}" wx:key="index" bindtap="publicJumps" data-url="/pages/irentDetail/irentDetail?uniqid={{ item.id }}">
|
||||
<view class="apartment-name">{{ item.title }}</view>
|
||||
<view class="apartment-introduce">{{ item.propaganda }}</view>
|
||||
|
||||
<view class="apartment-image-list flexacenter">
|
||||
<image class="apartment-image-item" wx:for="{{ 2 }}" wx:key="index" src="{{ images }}"></image>
|
||||
<block wx:for="{{ item.images }}" wx:key="index">
|
||||
<image class="apartment-image-item" wx:if="{{ index < 2}}" src="{{ item }}"></image>
|
||||
</block>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
@ -144,12 +152,46 @@
|
||||
|
||||
<!-- 数据列表 tab 新 -->
|
||||
<view class="tab-list flexacenter" wx:if="{{ envVersionState && false }}">
|
||||
<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 class="tab-item {{ item.select ? 'pitch' : '' }}" wx:for="{{ recommendedTab }}" wx:key="index" bindtap="setValue" data-key="tabValue" data-value="{{ index }}">{{ item.name }}</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 class="pinterest-list flexflex" wx:if="{{ envVersionState && false }}">
|
||||
<!-- 广告 -->
|
||||
<image class="pinterest-list-item" mode="widthFix" src="https://axure-file.lanhuapp.com/md516b251fb-9cfa-46fc-a9b6-2a41a7b4dc37__3e8c7ffd967c39e01538667fc12558ab.svg"></image>
|
||||
<!-- 公寓 -->
|
||||
<view class="pinterest-list-item apartment" wx:if="{{ false }}">
|
||||
<view class="apartment-top flexcenter">
|
||||
<image class="apartment-icon" mode="widthFix" src="/img/apartment-icon.png"></image>
|
||||
<image class="apartment-text" mode="widthFix" src="/img/apartment-text.png"></image>
|
||||
</view>
|
||||
<image class="apartment-img" mode="widthFix" src="https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-R-JIscHrqqsgFptxhXa6SWi2uePJ5Bg8cFLPIvsEG-4BUA27F7lfn5E55tXAL34gR30LsULxzarqa1zx17l80NDI5"></image>
|
||||
<view class="apartment-name">iRent油麻地二期公寓</view>
|
||||
<view class="apartment-introduce">年轻有活力且超有玩趣的公寓</view>
|
||||
<view class="apartment-price">
|
||||
<view class="apartment-price-item flexacenter" wx:for="{{ 2 }}" wx:key="index">
|
||||
<view class="apartment-price-name">单人套间</view>
|
||||
<view class="apartment-price-cost flex1 flexacenter">
|
||||
<view class="apartment-price-unit">HK$</view>
|
||||
<view class="apartment-price-number">7200</view>
|
||||
/月
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="apartment-price-more flexcenter">更多</view>
|
||||
</view>
|
||||
|
||||
<!-- 普通 -->
|
||||
<view class="pinterest-list-item general">
|
||||
<image class="general-img" mode="widthFix" src="https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-T950rd3bqqsgFptxhXa6SWi2uePJ5Bg8VFrPIvsEG-4BUCm7F7lfn5E5jtX0K_tdQgQ_5bap6c_Ca1y466joQa7aoNKTjEaE0NDI5"></image>
|
||||
<view class="general-name">
|
||||
<view class="general-tag flexcenter">整租</view>
|
||||
大学附近 | 中城浸教公大理公 两房一厅,设备齐全拎包入住
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view wx:for="{{ 3 }}" wx:key="index" class="pinterest-list-item apartment">2323</view>
|
||||
</view>
|
||||
|
||||
<!-- 个人房源 -->
|
||||
|
@ -582,11 +582,22 @@
|
||||
.apartment-block .apartment-list .apartment-name {
|
||||
color: #000000;
|
||||
font-size: 24rpx;
|
||||
width: 264rpx;
|
||||
word-break: keep-all;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-introduce {
|
||||
color: #7f7f7f;
|
||||
font-size: 21rpx;
|
||||
width: 264rpx;
|
||||
word-break: keep-all;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.apartment-block .apartment-list .apartment-image-list {
|
||||
@ -610,7 +621,6 @@
|
||||
}
|
||||
|
||||
.tab-list .tab-item {
|
||||
/* margin-right: 48rpx; */
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
@ -632,7 +642,7 @@
|
||||
.tab-list .tab-item.pitch::after {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
/* content: ""; */
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -9rpx;
|
||||
/* left: -4rpx; */
|
||||
@ -652,5 +662,128 @@
|
||||
border-radius: 50%;
|
||||
z-index: -1;
|
||||
transition: left 0.1s;
|
||||
}
|
||||
|
||||
.pinterest-list {
|
||||
padding: 0 30rpx;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item {
|
||||
width: 337.5rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 24rpx 24rpx 14rpx 24rpx;
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment {
|
||||
padding-bottom: 36rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-top {
|
||||
background: linear-gradient(-47.9699747981038deg, rgba(183, 220, 253, 1) -59%, rgba(213, 208, 239, 1) 29%, rgba(98, 177, 255, 1) 135%);
|
||||
height: 45rpx;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-icon {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-text {
|
||||
width: 97.5rpx;
|
||||
height: 31.5rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-img {
|
||||
width: 337.5rpx;
|
||||
height: 125rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-name {
|
||||
font-size: 27rpx;
|
||||
color: #000000;
|
||||
font-weight: 650;
|
||||
padding: 13.5rpx 15rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-introduce {
|
||||
color: #aaaaaa;
|
||||
font-size: 21rpx;
|
||||
padding: 0 15rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price {
|
||||
margin-top: 6rpx;
|
||||
margin-bottom: 18rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price-item {
|
||||
justify-content: space-between;
|
||||
padding: 16.5rpx 0;
|
||||
margin: 0 15rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price-item:not(:last-of-type) {
|
||||
border-bottom: 1rpx solid #ebebeb;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price-name {
|
||||
color: #000000;
|
||||
font-size: 22.5rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price-cost {
|
||||
font-size: 21rpx;
|
||||
color: #555555;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price-unit {
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price-number {
|
||||
font-size: 24rpx;
|
||||
color: #f95d5d;
|
||||
font-weight: 900;
|
||||
margin: 0 10rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.apartment .apartment-price-more {
|
||||
margin: 0 auto;
|
||||
font-size: 21rpx;
|
||||
background-color: rgba(253, 223, 109, 1);
|
||||
border-radius: 30rpx;
|
||||
width: 84rpx;
|
||||
height: 36rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.general {}
|
||||
|
||||
.pinterest-list .pinterest-list-item.general .general-img {
|
||||
width: 337.5rpx;
|
||||
height: 253.5rpx;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.general .general-name {
|
||||
font-size: 27rpx;
|
||||
color: #000000;
|
||||
line-height: 48rpx;
|
||||
padding: 0 15rpx;
|
||||
}
|
||||
|
||||
.pinterest-list .pinterest-list-item.general .general-tag {
|
||||
background-color: rgba(242, 242, 242, 1);
|
||||
border: 1rpx solid rgba(235, 235, 235, 1);
|
||||
border-radius: 8rpx;
|
||||
height: 36rpx;
|
||||
font-size: 21rpx;
|
||||
color: #555555;
|
||||
display: inline-flex;
|
||||
margin-right: 15rpx;
|
||||
}
|
@ -42,7 +42,7 @@
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "2.31.1",
|
||||
"appid": "wxcf0a799771cf2ae6",
|
||||
"appid": "wx9c68fbf7886ea9c4",
|
||||
"projectname": "%E5%AF%84%E6%89%98%E7%A7%9F%E6%88%BF",
|
||||
"simulatorType": "wechat",
|
||||
"simulatorPluginLibVersion": {},
|
||||
|
@ -317,6 +317,51 @@ function request(url, data = {}, needGet = false) {
|
||||
})
|
||||
}
|
||||
|
||||
const wxget = function (url, data = {}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
var authorization = wx.getStorageSync('Authorization');
|
||||
wx.request({
|
||||
url: url,
|
||||
data: data,
|
||||
header: {
|
||||
'Cookie': 'miucms_session=' + authorization,
|
||||
Authorization: authorization
|
||||
},
|
||||
method: 'GET',
|
||||
success: (res) => {
|
||||
if (res.data.code == 200) {
|
||||
resolve(res.data)
|
||||
} else if (res.data.code == 401) {
|
||||
// 需要授权
|
||||
// console.log(app)
|
||||
app.globalData.user.uid = 0;
|
||||
wx.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.message
|
||||
})
|
||||
reject(res)
|
||||
} else {
|
||||
wx.hideLoading()
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: res.data.message,
|
||||
})
|
||||
reject(res.data)
|
||||
}
|
||||
|
||||
},
|
||||
fail(res) {
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: res,
|
||||
})
|
||||
reject(res)
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
function closeAD(id) {
|
||||
// console.log(id)
|
||||
if (!app.globalData.config || !app.globalData.config.adv) {
|
||||
@ -344,6 +389,7 @@ module.exports = {
|
||||
copy,
|
||||
sendData,
|
||||
request,
|
||||
wxget,
|
||||
closeAD,
|
||||
clickAD,
|
||||
count,
|
||||
|
Loading…
x
Reference in New Issue
Block a user