提交
This commit is contained in:
parent
768d3d5a91
commit
256a6eb849
@ -973,6 +973,8 @@ Page({
|
||||
popUpSubtitle = value
|
||||
popUpIs = this.data.popUpIs
|
||||
|
||||
if (field == "type" && choices.length > 4) popUpIs = "twoLines"
|
||||
|
||||
let popUpStepState = this.data.popUpStepState
|
||||
if (field == "rentalduration") {
|
||||
popUpIs = "leaseTime"
|
||||
|
@ -1868,8 +1868,8 @@ Page({
|
||||
url: '/pages/user/user?tab=publish',
|
||||
})
|
||||
} else {
|
||||
if (res.data['uniqid']) this.data.uniqid = res.data['uniqid']
|
||||
let uniqid = this.data.uniqid
|
||||
this.data.uniqid = uniqid
|
||||
|
||||
let intermediary = app.globalData.user.intermediary
|
||||
let popUpIs = ""
|
||||
|
@ -458,7 +458,7 @@
|
||||
|
||||
<!-- 没有视频时候的空白 -->
|
||||
<block wx:if="{{ videos.length < 2 }}">
|
||||
<view class="homeVideo-add" wx:for="{{ videos.length == 1 ? 1 : 2 }}" style="background: #fff;" wx:key="index"></view>
|
||||
<view class="homeVideo-add" wx:for="{{ videos.length == 1 ? 1 : 2 }}" style="background: #fff;border-style: dashed;" wx:key="index"></view>
|
||||
</block>
|
||||
|
||||
<!-- 上传视频按钮 -->
|
||||
|
@ -746,6 +746,7 @@
|
||||
border-radius: 10rpx;
|
||||
margin: 0 30rpx 20rpx;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.pop-up-homePhoto-image .pop-up-homePhoto-image-item {
|
||||
|
@ -282,8 +282,7 @@ Page({
|
||||
})
|
||||
|
||||
let updatetime = data.info['updatetime']
|
||||
console.log("updatetime", updatetime);
|
||||
|
||||
data.info['updatetimeText'] = miucms.getTimeAgo(updatetime)
|
||||
that.setData({
|
||||
contactValue,
|
||||
irentCouponBig: app.globalData.irentCouponBig || true,
|
||||
|
@ -27,13 +27,13 @@
|
||||
<image class="bj-right" mode="widthFix" src="/img/show-head-right.svg"></image>
|
||||
</view>
|
||||
<view class="housing-info flexacenter">
|
||||
<image class="housing-info-avatar" src="{{ info.avatar }}"></image>
|
||||
<image class="housing-info-avatar" mode="widthFix" src="{{ info.avatar }}"></image>
|
||||
<view class="housing-info-right flexflex">
|
||||
<view class="housing-info-name flexacenter">
|
||||
{{ info.author }}
|
||||
<view class="housing-info-identity">{{ info.intermediary_text }}</view>
|
||||
</view>
|
||||
<view class="housing-info-update flexacenter">{{ info.updatetime }}更新
|
||||
<view class="housing-info-update flexacenter">{{ info.updatetimeText }}更新
|
||||
<block wx:if="{{ verifiedlistingcount > 1 && info['intermediary'] != 1 }}">
|
||||
<view class="vertical">|</view>认证房源×{{ verifiedlistingcount }}
|
||||
</block>
|
||||
@ -41,7 +41,6 @@
|
||||
<view class="vertical">|</view>房源×{{ intermediarylistingcount }}
|
||||
</block>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -103,7 +102,7 @@
|
||||
<view class="media-item media-video" wx:for="{{ info.video }}" wx:key="index" bindtap="show_video" data-src="{{ item.url }}">
|
||||
<image class="media-video-bj" src="{{ item.image }}"></image>
|
||||
<view class="media-video-play">
|
||||
<image class="media-video-play-icon" src="/img/videoplay.png"></image>
|
||||
<image class="media-video-play-icon" mode="widthFix" src="/img/videoplay.png"></image>
|
||||
<view class="size">{{ item.size }}</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -121,15 +120,15 @@
|
||||
<view class="HResource-item basic-ask-for">
|
||||
<view class="HResource-item-head flexacenter">
|
||||
<image class="HResource-item-head-icon" src="/img/ask-for.png" mode="widthFix"></image>
|
||||
基本要求
|
||||
基本{{ info['intermediary'] == 6 ? '要求' : '信息' }}
|
||||
</view>
|
||||
<view class="HResource-item-list {{ info['intermediary'] == 6 ? 'basic-list-aLine' : 'basic-list-twoLine' }}">
|
||||
<block wx:for="{{ basicRequirementsObj }}" wx:key="index">
|
||||
<view class="basic-item-Line flexacenter {{ index == basicRequirementsObj.length - 1 ? 'flex1' : '' }}" wx:if="{{ item.value }}">
|
||||
<view class="basic-Line-key">{{ item.name }}</view>
|
||||
<view class="basic-Line-value flex1" wx:if="{{ m.isArray(item.value) }}">
|
||||
<view class="basic-Line-value flex1 flexacenter" wx:if="{{ m.isArray(item.value) }}">
|
||||
<block wx:for="{{ item.value }}" wx:for-item="it" wx:for-index="ind" wx:key="ind">
|
||||
{{ it }}<text class="vertical" wx:if="{{ ind != item.value.length - 1 }}"> | </text>
|
||||
{{ it }}<text class="vertical" wx:if="{{ ind != item.value.length - 1 }}"></text>
|
||||
</block>
|
||||
</view>
|
||||
<view class="basic-Line-value flex1" wx:else>{{ item.value }}</view>
|
||||
@ -142,7 +141,7 @@
|
||||
<!-- 目标区域 -->
|
||||
<view class="HResource-item" wx:if="{{ info.intermediary == 6 }}">
|
||||
<view class="HResource-item-head flexacenter">
|
||||
<image class="HResource-item-head-icon" src="/img/ask-for.png" mode="widthFix"></image>
|
||||
<image class="HResource-item-head-icon" src="/img/u1695.png" mode="widthFix"></image>
|
||||
目标区域
|
||||
</view>
|
||||
<view class="HResource-item-list target-area-list">
|
||||
@ -183,7 +182,7 @@
|
||||
<!-- 更多 -->
|
||||
<view class="school-item more">
|
||||
<text class="school-name">更多</text>
|
||||
<image class="more-icon" src="/img/u1908.svg"></image>
|
||||
<image class="more-icon" mode="widthFix" src="/img/u1908.svg"></image>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
@ -222,7 +221,7 @@
|
||||
<view class="housing-contact" wx:if="{{ contacts }}">
|
||||
<view class="housing-contact-title">房源联系人</view>
|
||||
<view class="housing-contact-box flexflex">
|
||||
<image class="housing-contact-avatar" src="{{ contacts.avatar }}"></image>
|
||||
<image class="housing-contact-avatar" mode="widthFix" src="{{ contacts.avatar }}"></image>
|
||||
<view class="housing-contact-content flexflex">
|
||||
<view class="housing-contact-name flexacenter">{{ contacts.nickname }}
|
||||
<image class="housing-contact-icon" mode="widthFix" src="/img/certifying-agent.png"></image>
|
||||
@ -911,7 +910,7 @@
|
||||
<view class="academy-item">
|
||||
<view class="academy-title">
|
||||
<view class="academy-icon-box">
|
||||
<image class="academy-icon" src="/img/u1827.png"></image>
|
||||
<image class="academy-icon" mode="widthFix" src="/img/u1827.png"></image>
|
||||
</view>
|
||||
<view class="academy-place">
|
||||
{{ info.address }}
|
||||
@ -922,7 +921,7 @@
|
||||
<view class="academy-item" wx:for="{{ info.pointData }}" wx:key="index">
|
||||
<view class="academy-title">
|
||||
<view class="academy-icon-box">
|
||||
<image class="academy-icon" src="/img/u1834.png"></image>
|
||||
<image class="academy-icon" mode="widthFix" src="/img/u1834.png"></image>
|
||||
</view>
|
||||
<view class="academy-place">
|
||||
{{ item.name }}
|
||||
@ -931,7 +930,7 @@
|
||||
<view class="school-list">
|
||||
<view class="school-item" wx:for="{{ item.point }}" wx:for-item="it" wx:for-index="i" wx:key="index">
|
||||
<view class="school-name">{{ it.title }}</view>
|
||||
<view class="school-distance">{{ it.distance }} km</view>
|
||||
<view class="school-distance">{{ it.distance }} 公里</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -928,7 +928,7 @@ map .clickmap {
|
||||
display: inline-block;
|
||||
height: 150rpx;
|
||||
margin-right: 15rpx;
|
||||
border-radius: 15rpx;
|
||||
/* border-radius: 15rpx; */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@ -943,7 +943,7 @@ map .clickmap {
|
||||
height: 150rpx;
|
||||
position: absolute;
|
||||
background-color: rgba(51, 51, 51, 0.73333);
|
||||
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
|
||||
.certification .media-video .media-video-play .media-video-play-icon {
|
||||
@ -966,6 +966,7 @@ map .clickmap {
|
||||
.certification .media-item image {
|
||||
width: 204rpx;
|
||||
height: 150rpx;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
|
||||
.certification .location-box {
|
||||
@ -1774,8 +1775,12 @@ map .clickmap {
|
||||
}
|
||||
|
||||
.HResource-item-list.basic-list-twoLine .basic-Line-value .vertical {
|
||||
color: #D7D7D7;
|
||||
/* color: #D7D7D7; */
|
||||
margin: 0 10rpx;
|
||||
width: 2rpx;
|
||||
height: 27rpx;
|
||||
display: flex;
|
||||
background-color: #D7D7D7;
|
||||
}
|
||||
|
||||
.basic-ask-for {}
|
||||
|
@ -374,6 +374,22 @@ function getTopTitle(that, app) {
|
||||
|
||||
}
|
||||
|
||||
function getTimeAgo(time) {
|
||||
const now = new Date();
|
||||
time = new Date(time)
|
||||
const diff = now - time;
|
||||
const seconds = Math.floor(diff / 1000);
|
||||
const minutes = Math.floor(seconds / 60);
|
||||
const hours = Math.floor(minutes / 60);
|
||||
const days = Math.floor(hours / 24);
|
||||
if (seconds < 60) return `${seconds}秒前`;
|
||||
else if (minutes < 60) return `${minutes}分钟前`;
|
||||
else if (hours < 24) return `${hours}小时前`;
|
||||
else if (days < 7) return `${days}天前`;
|
||||
else return time;
|
||||
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
initial: initial,
|
||||
share: share,
|
||||
@ -387,6 +403,7 @@ module.exports = {
|
||||
clickAD,
|
||||
count,
|
||||
getTopTitle,
|
||||
getTimeAgo,
|
||||
https: function (url, data, success, fail) {
|
||||
wx.request({
|
||||
url: url,
|
||||
|
Loading…
x
Reference in New Issue
Block a user