删除旧版本代码
This commit is contained in:
parent
90c139f358
commit
f7ed879537
@ -113,8 +113,8 @@
|
||||
<!-- 所在区域 -->
|
||||
<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:if="{{ verified == 1 && newinfo[item.field] }}" is="clickInput-unchangeable" data="{{ item,it:'address',index,newinfo,fieldinfo,newcity}}"></template>
|
||||
<view wx:elif="{{ item.field == 'address' && !newinfo['location'] }}"></view>
|
||||
<template wx:else is="clickInputUnderArrow" data="{{ item,it:'address',index,newinfo,fieldinfo,newcity}}"></template>
|
||||
</block>
|
||||
|
||||
|
@ -47,7 +47,6 @@ Page({
|
||||
miniProgram: "23231",
|
||||
isMapFindState: false,
|
||||
|
||||
isNewVersions: true,
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -139,7 +139,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<fix-footer isNewVersions="{{ isNewVersions }}" unreadMessages="{{ unreadMessages }}" bottomLift="{{ bottomLift }}"></fix-footer>
|
||||
<fix-footer unreadMessages="{{ unreadMessages }}" bottomLift="{{ bottomLift }}"></fix-footer>
|
||||
<view class='video-box' wx:if="{{ video }}">
|
||||
<video src="{{ video }}" custom-cache="{{false}}" autoplay='true'>
|
||||
<cover-view bindtap="closePage" style="top:{{ screen_data.statusBarHeight -5 }}px;height:{{ screen_data.titleBarHeight +10 }}px;width:{{ screen_data.titleBarHeight +10 }}px" class="cover">
|
||||
|
@ -64,7 +64,6 @@ Page({
|
||||
operationsTop: false,
|
||||
|
||||
|
||||
isNewVersions: true,
|
||||
|
||||
},
|
||||
timer: null,
|
||||
|
@ -1,12 +1,12 @@
|
||||
<import src="../common/common.wxml" />
|
||||
<import src="../../wxParse/wxParse.wxml" />
|
||||
<view class="container {{ isNewVersions ? 'newContainer' : '' }}" wx:if="{{ !isloding }}">
|
||||
<view class="container newContainer" wx:if="{{ !isloding }}">
|
||||
<header-nav bgcolor="{{ operationsTop ? '#fff' : 'transparent' }}">公寓详情</header-nav>
|
||||
<view class="bj"></view>
|
||||
<view class="content">
|
||||
<image class="arc" src="/img/arc-shadow.png"></image>
|
||||
<view class="media-module">
|
||||
<head-swiper isNewVersions="{{ isNewVersions }}" attachment="{{ attachment }}" bindplay="playVideo" bindclose="closeVideo" pages="apartmentDetail"></head-swiper>
|
||||
<head-swiper attachment="{{ attachment }}" bindplay="playVideo" bindclose="closeVideo" pages="apartmentDetail"></head-swiper>
|
||||
</view>
|
||||
|
||||
<view class="tab-box flexacenter">
|
||||
@ -113,7 +113,8 @@
|
||||
|
||||
<view class="apartment-tips">
|
||||
<view class="apartment-tips-text">温馨提示:房源信息均由公寓方/酒店提供并对其真实性、合法性等负责,平台不负责甄别和审核具体内容真实性和有效性等,请务必仔细核实相关信息,谨防上当受骗。</view>
|
||||
<view class="apartment-tips-text flexacenter">公寓/酒店/中介房源推广合作请联系: <view class="" style="text-decoration: underline;" bindtap="copy" data-value="ad@gter.net">ad@gter.net</view></view>
|
||||
<view class="apartment-tips-text flexacenter">公寓/酒店/中介房源推广合作请联系: <view class="" style="text-decoration: underline;" bindtap="copy" data-value="ad@gter.net">ad@gter.net</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="apartment-block" id="dual-brand" wx:if="{{ withSameBrand.length }}">
|
||||
@ -126,134 +127,9 @@
|
||||
|
||||
<template is="irenCouponReceive" data="{{ irentCouponBig:irentCouponBig,hideCoupon:hideCoupon,irenCouponReceive:irenCouponReceive }}"></template>
|
||||
<view></view>
|
||||
<block wx:if="{{ !isNewVersions }}">
|
||||
<view class='info-box'>
|
||||
<view class='title'>{{ data.title }}</view>
|
||||
<view class='sub'>{{ data.introduction }}</view>
|
||||
</view>
|
||||
<view class='house-classify'>
|
||||
<view class='title'>房间类型</view>
|
||||
<view class='ul'>
|
||||
<view class='li' wx:for="{{ data.specifications }}" wx:key="index">
|
||||
<view class='left'>
|
||||
<view class='name'>{{ item.title }}</view>
|
||||
<view class='price' wx:if="{{ item.value }}">
|
||||
<view class='color-red'>{{ item.value }}</view>HK$
|
||||
</view>
|
||||
</view>
|
||||
<view class='right'>
|
||||
<form bindsubmit="send_form_id" data-title="{{ item.title }}" report-submit='true' data-types="confirm" class='submit-form'>{{data.booking && data.booking.button}}
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='position block-box'>
|
||||
<view class='title'>地理位置及交通</view>
|
||||
<view class='traffic' bindtap='to_map'>
|
||||
<image src='../../img/traffic-location.png'></image>
|
||||
<view class='text'>
|
||||
<view class='intro'>
|
||||
<view class="item tomap">
|
||||
<view>{{ data.address }}</view>
|
||||
<image src='../../img/back.png'></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<map latitude='{{ coordinate[0] }}' longitude='{{ coordinate[1] }}' markers="{{ markers }}">
|
||||
<view class='clickmap' bindtap='to_map'></view>
|
||||
</map>
|
||||
<!-- 香港的附近学校只在有地图的时候出现 -->
|
||||
<block wx:if="{{ data.pointData.length>0 }}">
|
||||
<view class="aroundSchool">
|
||||
<view class="li" wx:for="{{ data.pointData }}" wx:if="{{ index<3 }}" wx:key="index">
|
||||
<view class="schoolname">{{ item.name}}</view>
|
||||
<view class="distance">{{ item.recently_text }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="showmore" wx:if="{{ data.pointData &&data.pointData.length>0 }}" bindtap="showSchoolAlert" data-show="1">显示更多</view>
|
||||
</block>
|
||||
<view class='traffic'>
|
||||
<image src='../../img/traffic.png'></image>
|
||||
<view class='text'>
|
||||
<view class='intro'>
|
||||
<text decode="true">{{ traffic }}</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='block-box' wx:if="{{ data.life.length>0 }}">
|
||||
<view class='title'>生活</view>
|
||||
<view class='intro'>
|
||||
<text decode="true">{{ life }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class='block-box' wx:if="{{ data.consumption.length>0 }}">
|
||||
<view class='title'>消费水平</view>
|
||||
<view class='intro'>
|
||||
<text decode="true">{{ consumption }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class='block-box' wx:if="{{ data.facilities }}">
|
||||
<view class='title'>公寓设施</view>
|
||||
<view class='facility'>
|
||||
<view class='item' wx:if="{{ data.facilities.public.length>0 }}">
|
||||
<image class='logo' src="../../img/facility.png"></image>
|
||||
<view class='text'>
|
||||
<view class='i' wx:for="{{ data.facilities.public }}" wx:key="index">
|
||||
<image src="../../img/dui.png"></image>{{ item }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='item' wx:if="{{ data.facilities.kitchen.length>0 }}">
|
||||
<image class='logo' src="../../img/kitchen.png"></image>
|
||||
<view class='text'>
|
||||
<view class='i' wx:for="{{ data.facilities.kitchen }}" wx:key="index">
|
||||
<image src="../../img/dui.png"></image>{{ item }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='item' wx:if="{{ data.facilities.lavatory.length>0 }}">
|
||||
<image class='logo' src="../../img/toilet.png"></image>
|
||||
<view class='text'>
|
||||
<view class='i' wx:for="{{ data.facilities.lavatory }}" wx:key="index">
|
||||
<image src="../../img/dui.png"></image>{{ item }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='block-box' wx:if="{{ data.message.length>0 }}">
|
||||
<view class='title'>房源详情</view>
|
||||
<view class='intro'>
|
||||
<text decode="true">{{ message }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class='block-box' wx:if="{{ data.brand.length>0 }}">
|
||||
<view class='title'>品牌介绍</view>
|
||||
<view class='intro'>
|
||||
<image class='imageurl' mode="widthFix" src="{{ data.company.imageurl }}"></image>
|
||||
<text decode="true">{{ brand }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ withSameBrand.length>0 }}" class="with-same-brand">
|
||||
<view class="same-title">同品牌推荐</view>
|
||||
<block wx:for="{{ withSameBrand }}" wx:key="index" wx:if="{{ item.uniqid !=uniqid }}">
|
||||
<list-item item="{{ item }}" listTab="{{ listTab }}"></list-item>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- v4 的新底部栏 -->
|
||||
<view class="bottom-bar flexacenter" style="padding-bottom: {{ bottomLift }}rpx;">
|
||||
<!-- <view class="bottom-bar-item bottom-bar-collect flexcenter">
|
||||
<image class="bottom-bar-icon" mode="widthFix" src="/img/u1970.png"></image>6
|
||||
</view> -->
|
||||
<view class="bottom-bar-item bottom-bar-share flexcenter" catchtap="share_pic">
|
||||
<image class="bottom-bar-icon" mode="widthFix" src="/img/u1975.png"></image>转发
|
||||
</view>
|
||||
@ -363,10 +239,7 @@
|
||||
<image class="serviceWindow-bottom-bj" src="/img/u1506.svg" mode="widthFix"></image>
|
||||
<view class="serviceWindow-hint-outer">
|
||||
<view class="serviceWindow-hint-inside">
|
||||
<block wx:if="{{ isNewVersions }}">
|
||||
轻点二维码<image class="arrows" src="/img/u1803.svg"></image>长按识别添加客服<image class="arrows" src="/img/u1803.svg"></image>备注“寄托”
|
||||
</block>
|
||||
<block wx:else>{{ tips }}</block>
|
||||
轻点二维码<image class="arrows" src="/img/u1803.svg"></image>长按识别添加客服<image class="arrows" src="/img/u1803.svg"></image>备注“寄托”
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -1190,7 +1190,7 @@ map .clickmap {
|
||||
width: 100vw;
|
||||
height: 135rpx;
|
||||
background-color: #fff;
|
||||
z-index: 2;
|
||||
z-index: 11;
|
||||
border-top: 1rpx solid #d7d7d7;
|
||||
justify-content: space-between;
|
||||
box-sizing: content-box;
|
||||
|
@ -64,7 +64,6 @@ Page({
|
||||
initState: false,
|
||||
topTitle: "",
|
||||
consultState: false, // 咨询弹窗状态
|
||||
isNewVersions: true,
|
||||
},
|
||||
|
||||
headerSearchTopHeight: 10,
|
||||
|
@ -5,7 +5,6 @@
|
||||
<image class="to-top-icon" src="/img/totop.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<!-- <to-top wx:if="{{ showTOTOP }}"></to-top> -->
|
||||
<!-- <header-nav inner-text="Some text">{{ isNewVersions? '香港房源' : topTitle }}</header-nav> -->
|
||||
<header-nav bgcolor="{{ headerSearchTop ? '#fff' : 'transparent' }}">香港租房</header-nav>
|
||||
|
||||
<template is="irenCouponReceive" data="{{ irentCouponBig:irentCouponBig,hideCoupon:hideCoupon,irenCouponReceive:irenCouponReceive }}"></template>
|
||||
@ -21,7 +20,7 @@
|
||||
<view style="height: 48rpx; width: 100vw;"></view>
|
||||
|
||||
<view class="tab-box">
|
||||
<tab isNewVersions="{{ isNewVersions }}" StudentapartmentNew="{{ StudentapartmentNew }}" page="irentList" listTab="{{ listTab }}"></tab>
|
||||
<tab StudentapartmentNew="{{ StudentapartmentNew }}" page="irentList" listTab="{{ listTab }}"></tab>
|
||||
</view>
|
||||
|
||||
<view id="annex-school" class="annex-school flexacenter">
|
||||
@ -34,7 +33,7 @@
|
||||
|
||||
|
||||
<view id="list-operations" class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}" style="top: {{ screen_data.totalTopHeight }}px;">
|
||||
<list-operations tabTitle="品牌公寓" isNewVersions="{{ isNewVersions }}" operationstype="student" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations"></list-operations>
|
||||
<list-operations tabTitle="品牌公寓" operationstype="student" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations"></list-operations>
|
||||
</view>
|
||||
|
||||
<view class='house-list'>
|
||||
|
@ -17,7 +17,6 @@ Page({
|
||||
operationsTop: false,
|
||||
screen_data: {},
|
||||
wechat: {},
|
||||
isNewVersions: true,
|
||||
|
||||
},
|
||||
|
||||
@ -72,21 +71,6 @@ Page({
|
||||
data.data[i]['reportshowState'] = 0
|
||||
}
|
||||
|
||||
if (this.data.isNewVersions) {
|
||||
// data.data = [{
|
||||
// timestamp: "2023-06-05",
|
||||
// isread: 0,
|
||||
// littleMessage: "测试",
|
||||
// reportshowState: 0,
|
||||
// data: {
|
||||
// subject: "这是测试的标题",
|
||||
// reportnummessage: ["测试的数据"],
|
||||
// id: 15
|
||||
// },
|
||||
// }]
|
||||
// data.issubscribe = 0
|
||||
}
|
||||
|
||||
this.setData({
|
||||
list: this.data.list.concat(data.data),
|
||||
page: data.count > data.page * data.limit ? this.data.page + 1 : 0,
|
||||
|
@ -1,41 +1,26 @@
|
||||
<import src="../common/common.wxml" />
|
||||
|
||||
<view class="container">
|
||||
<block wx:if="{{ isNewVersions }}">
|
||||
<header-nav wx:if="{{ operationsTop }}" bgcolor="{{'#fff' }}" backSrc="{{ '' }}" notShowIndex="{{ true }}" isNoNeedHolder="{{ true }}" borderBottom="{{ true }}">{{ '系统通知' }}</header-nav>
|
||||
<header-nav wx:else bgcolor="{{ 'transparent' }}" backSrc="{{ '/img/back-white.svg' }}" notShowIndex="{{ true }}" isNoNeedHolder="{{ true }}"></header-nav>
|
||||
<header-nav wx:if="{{ operationsTop }}" bgcolor="{{'#fff' }}" backSrc="{{ '' }}" notShowIndex="{{ true }}" isNoNeedHolder="{{ true }}" borderBottom="{{ true }}">{{ '系统通知' }}</header-nav>
|
||||
<header-nav wx:else bgcolor="{{ 'transparent' }}" backSrc="{{ '/img/back-white.svg' }}" notShowIndex="{{ true }}" isNoNeedHolder="{{ true }}"></header-nav>
|
||||
|
||||
<view class="header flexflex">
|
||||
<image class="message-circle message-small" mode="widthFix" src="/img/message-small-circle.svg"></image>
|
||||
<image class="message-circle message-great" mode="widthFix" src="/img/message-great-circle.svg"></image>
|
||||
<view class="flexcenter">
|
||||
<image class="header-icon" mode="widthFix" src="https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-S_54rc37qqsgFptxhXa6RWi26P-BuTQxFEbKQ49kb8MVYZjQ0Mjk~"></image>
|
||||
<image class="header-text" mode="widthFix" src="https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-S_54rc3_qqsgFptxhXa6RWi26P-BuTVNGRrbH7tkb8MVYZjQ0Mjk~"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="attention-box flexacenter" wx:if="{{ issubscribe == 0 }}">
|
||||
<text>关注寄托服务号,第一时间收到消息通知</text>
|
||||
<view bindtap="attention" class="attention-btn flexcenter">关注</view>
|
||||
<view class="header flexflex">
|
||||
<image class="message-circle message-small" mode="widthFix" src="/img/message-small-circle.svg"></image>
|
||||
<image class="message-circle message-great" mode="widthFix" src="/img/message-great-circle.svg"></image>
|
||||
<view class="flexcenter">
|
||||
<image class="header-icon" mode="widthFix" src="https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-S_54rc37qqsgFptxhXa6RWi26P-BuTQxFEbKQ49kb8MVYZjQ0Mjk~"></image>
|
||||
<image class="header-text" mode="widthFix" src="https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-S_54rc3_qqsgFptxhXa6RWi26P-BuTVNGRrbH7tkb8MVYZjQ0Mjk~"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="attention-box flexacenter" wx:if="{{ issubscribe == 0 }}">
|
||||
<text>关注寄托服务号,第一时间收到消息通知</text>
|
||||
<view bindtap="attention" class="attention-btn flexcenter">关注</view>
|
||||
</view>
|
||||
|
||||
|
||||
</block>
|
||||
<block wx:else>
|
||||
<header-nav></header-nav>
|
||||
<view class="head">
|
||||
<view class="head-icon">
|
||||
<image mode="widthFix" src="../../img/u16.png"></image>
|
||||
</view>
|
||||
系统通知
|
||||
</view>
|
||||
<!-- 提示关注服务号 -->
|
||||
<view class="hintAttention" wx:if="{{ issubscribe == 0 }}">
|
||||
<text>关注寄托服务号,第一时间收到消息通知</text>
|
||||
<view bindtap="attention" class="attention-btn">关注</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 信息 -->
|
||||
<view class="information-box {{ isNewVersions ? 'information-new' : '' }}">
|
||||
<view class="information-box information-new">
|
||||
<block wx:for="{{ list }}" wx:key="index">
|
||||
<view class="information-item" wx:if="{{ item.event == 'certapplication' }}">
|
||||
<view class="time"><text>{{ item.timestamp }}</text>
|
||||
@ -72,11 +57,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 消息为空时 -->
|
||||
<view class="empty-box" wx:if="{{ list.length == 0 && !isNewVersions }}">
|
||||
<image src="/img/u6.png" mode="widthFix" class="empty"></image>
|
||||
<text class="noMessage">暂无消息</text>
|
||||
</view>
|
||||
<view class="vacancy-box" wx:if="{{ list.length == 0 && isNewVersions }}">
|
||||
<view class="vacancy-box" wx:if="{{ list.length == 0 }}">
|
||||
<template is="empty-icon" data="{{ hint: '暂无消息' }}"></template>
|
||||
</view>
|
||||
|
||||
|
@ -5,55 +5,6 @@
|
||||
background-color: rgba(246, 246, 246, 1);
|
||||
}
|
||||
|
||||
.head {
|
||||
height: 225rpx;
|
||||
width: 750rpx;
|
||||
background-color: #2c6cd2;
|
||||
font-size: 44rpx;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
.head-icon {
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #dfefff;
|
||||
margin-right: 20rpx;
|
||||
|
||||
}
|
||||
|
||||
.head-icon image {
|
||||
width: 52rpx;
|
||||
height: 44rpx;
|
||||
}
|
||||
|
||||
.hintAttention {
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: #e5e8f0;
|
||||
color: #333;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
.hintAttention .attention-btn {
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
border: 2rpx solid #d7d7d7;
|
||||
border-radius: 40rpx;
|
||||
color: #2c6cd2;
|
||||
font-size: 26rpx;
|
||||
padding: 0 26rpx;
|
||||
}
|
||||
|
||||
.information-box {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
@ -131,7 +131,6 @@ Page({
|
||||
totalSum: 0, // 数据总数
|
||||
isMapFindState: false,
|
||||
|
||||
isNewVersions: true,
|
||||
},
|
||||
|
||||
headerSearchTopHeight: 10,
|
||||
@ -231,8 +230,6 @@ Page({
|
||||
|
||||
app.globalData['langs'] ? '' : this.getDtailsLangs()
|
||||
|
||||
// if (!this.data.isNewVersions) this.getgroupSearch();
|
||||
|
||||
let screen_data = this.data.screen_data
|
||||
let windowWidth = screen_data['windowWidth']; //获取设备屏幕宽度
|
||||
this.headerSearchTopHeight = (windowWidth / 750) * Number(20)
|
||||
@ -492,7 +489,6 @@ Page({
|
||||
})
|
||||
|
||||
var that = this;
|
||||
let isNewVersions = this.data.isNewVersions
|
||||
let url = `/tenement/v2/api/lists`
|
||||
|
||||
miucms.request(`${app.globalData.baseURL}${url}`, sendData).then(data => {
|
||||
@ -506,13 +502,6 @@ Page({
|
||||
|
||||
this.handleDetailData(data.data)
|
||||
|
||||
// if (!isNewVersions) {
|
||||
// that.data.lists = that.data.lists.concat(data.data)
|
||||
// this.setData({
|
||||
// lists: that.data.lists,
|
||||
// })
|
||||
// }
|
||||
|
||||
that.setData({
|
||||
totalSum: data.count,
|
||||
// lists: that.data.lists,
|
||||
@ -813,8 +802,7 @@ Page({
|
||||
},
|
||||
// 提交出租方式
|
||||
submittype(e) {
|
||||
if (this.data.isNewVersions) this.data.types.value = e.detail.types
|
||||
else this.data.types.value = e.detail.data;
|
||||
this.data.types.value = e.detail.types
|
||||
|
||||
this.setData({
|
||||
types: this.data.types,
|
||||
|
@ -13,10 +13,10 @@
|
||||
<!-- 临时隔断用的 -->
|
||||
<view style="height: 48rpx; width: 100vw;"></view>
|
||||
|
||||
<tab isNewVersions="{{ isNewVersions }}" StudentapartmentNew="{{ StudentapartmentNew }}" page="{{ intermediary == 0 ? 'personList' : 'quarantineLists' }}" listTab="{{ listTab }}"></tab>
|
||||
<tab StudentapartmentNew="{{ StudentapartmentNew }}" page="{{ intermediary == 0 ? 'personList' : 'quarantineLists' }}" listTab="{{ listTab }}"></tab>
|
||||
|
||||
<!-- 新的 -->
|
||||
<view id="list-operations" class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}" wx:if="{{ isNewVersions }}" style="top: {{ screen_data.totalTopHeight - 1 }}px;">
|
||||
<view id="list-operations" class="list-operations {{ operationsTop ? 'list-operations-top' : '' }}" style="top: {{ screen_data.totalTopHeight - 1 }}px;">
|
||||
<list-operations tabTitle="{{ intermediary == 1 ? '中介' : '个人' }}房源" property="{{ property }}" school="{{ school }}" types="{{ types }}" location="{{ location }}" operationstype="{{ intermediary == 1 ? 'intermediaryhousing' : 'personhousing' }}" money="{{ money }}" brands="{{ brands }}" screen_data="{{ screen_data }}" roomtype="{{ roomtype }}" roomlistings="{{ roomlistings }}" bindsubmit="submitOperations"></list-operations>
|
||||
</view>
|
||||
|
||||
|
@ -7,14 +7,12 @@ Component({
|
||||
StudentapartmentNew: Boolean,
|
||||
page: String,
|
||||
listTab: Object,
|
||||
isNewVersions: Boolean
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
// isNewVersions: true,
|
||||
tabList: [{
|
||||
name: "个人房源",
|
||||
value: "personList",
|
||||
|
@ -1,18 +1,3 @@
|
||||
<view class="tab-list flexacenter" wx:if="{{ isNewVersions }}">
|
||||
<view class="tab-list flexacenter">
|
||||
<view class="tab-item flexcenter {{ page == item.value ? 'pitch' : '' }}" wx:for="{{ tabList }}" wx:key="index" bindtap="toPage" data-page="{{ item.value }}" data-url="{{ item.url }}">{{ item.name }}</view>
|
||||
</view>
|
||||
|
||||
<view class='irent-tab-box tab-box' wx:else>
|
||||
<view class="{{ page=='personList'? 'tab active' :'tab'}}" data-page="personList" bindtap="toPage">
|
||||
<view class="text">个人房源</view>
|
||||
</view>
|
||||
|
||||
<view class="{{ page=='quarantineLists'? 'tab active' :'tab'}}" bindtap="toIntermediaryPage">
|
||||
<view class="text">{{ '中介房源' }}</view>
|
||||
</view>
|
||||
|
||||
<view class="{{ page=='irentList'? 'tab active' :'tab'}}" data-page="irentList" bindtap="toPage">
|
||||
<view class="text">品牌公寓</view>
|
||||
<image src="/img/new.png" wx:if="{{ StudentapartmentNew }}" class='new'></image>
|
||||
</view>
|
||||
</view>
|
@ -1,98 +1,6 @@
|
||||
/* pages/index/tab/tab.wxss */
|
||||
@import '/app.wxss';
|
||||
|
||||
.tab-box {
|
||||
/* border-top: 1px solid #e4e4e4; */
|
||||
line-height: 128rpx;
|
||||
height: 128rpx;
|
||||
background: #f2f2f2;
|
||||
font-size: 0;
|
||||
text-align: center;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.tab-box .tab {
|
||||
display: inline-flex;
|
||||
flex: 1;
|
||||
font-size: 34rpx;
|
||||
}
|
||||
|
||||
.tab.active {
|
||||
background: #fff;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tab .text {
|
||||
position: relative;
|
||||
width: auto;
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.tab.active .text:after {
|
||||
content: '';
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
/* bottom:-4rpx; */
|
||||
bottom: -2rpx;
|
||||
left: 0;
|
||||
height: 8rpx;
|
||||
background: rgb(255, 192, 95);
|
||||
border-radius: 8rpx;
|
||||
|
||||
}
|
||||
|
||||
.irent-tab-box {
|
||||
height: 120rpx;
|
||||
display: flex;
|
||||
border-bottom: 2rpx solid #d5d5d5;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.irent-tab-box .tab {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.irent-tab-box .new {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
}
|
||||
|
||||
.irent-tab-box .new image {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
|
||||
.irent-tab-box .icon-box {
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
margin-right: 24rpx;
|
||||
display: inline-flex;
|
||||
border-radius: 50%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.irent-tab-box .personal {
|
||||
background-color: #a8bed9;
|
||||
}
|
||||
|
||||
.irent-tab-box .apartment {
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
.irent-tab-box image {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
}
|
||||
|
||||
.tab-list {
|
||||
height: 73rpx;
|
||||
background: linear-gradient(2.84217e-14deg, rgb(232, 244, 255) -4%, rgb(176, 216, 255) 148%);
|
||||
@ -102,7 +10,6 @@
|
||||
font-size: 30rpx;
|
||||
color: #000000;
|
||||
margin-bottom: 15rpx;
|
||||
|
||||
}
|
||||
|
||||
.tab-list .tab-item {
|
||||
|
@ -70,8 +70,6 @@ Page({
|
||||
allowsearch: false, // 是否需要筛选
|
||||
isMapFindState: false,
|
||||
|
||||
isNewVersions: true,
|
||||
|
||||
},
|
||||
headerSearchTopHeight: 10,
|
||||
onPageScroll(e) {
|
||||
@ -270,17 +268,13 @@ Page({
|
||||
requestData: {}, // 请求参数
|
||||
get_list() {
|
||||
var that = this;
|
||||
// let isNewVersions = this.data.isNewVersions
|
||||
// if (isNewVersions) {
|
||||
if (this.data.page == 0) return
|
||||
// }
|
||||
wx.showLoading({
|
||||
title: '加载中...',
|
||||
})
|
||||
this.setData({
|
||||
loading: true
|
||||
})
|
||||
// let url = isNewVersions ? `${app.globalData.baseURL}/tenement/v2/api/lists` : app.globalData.config.otherlist.init
|
||||
let url = `${app.globalData.baseURL}/tenement/v2/api/lists`
|
||||
let requestData = {
|
||||
page: 1,
|
||||
@ -289,13 +283,6 @@ Page({
|
||||
|
||||
requestData = Object.assign(requestData, this.requestData)
|
||||
|
||||
// requestData = Object.assign(requestData, this.data.moreCondition.data, {
|
||||
// page: this.data.page,
|
||||
// 'type': this.data.types.value * 1,
|
||||
// orderby: this.data.orderby.value,
|
||||
// cityid: this.data.city.uniqid,
|
||||
// })
|
||||
|
||||
miucms.request(url, requestData).then(data => {
|
||||
data = data.data
|
||||
let list = data.data
|
||||
@ -544,7 +531,7 @@ Page({
|
||||
let user = app.globalData['user']
|
||||
let miniProgram = app.globalData['miniProgram']
|
||||
if (user['uid']) {
|
||||
if (!user['nickname']) {
|
||||
if (!user['nickname'] || !user['avatar']) {
|
||||
wx.navigateTo({
|
||||
url: '/pagesLoginRequired/pages/setAvatarNickname/setAvatarNickname',
|
||||
})
|
||||
@ -612,6 +599,4 @@ Page({
|
||||
url: "/pages/search/search?isAskingSearch=true",
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
})
|
@ -122,8 +122,6 @@ Page({
|
||||
|
||||
isMapFindState: false,
|
||||
|
||||
isNewVersions: true,
|
||||
|
||||
},
|
||||
|
||||
operationsHeight: 50,
|
||||
|
@ -105,7 +105,6 @@ Page({
|
||||
attestationElseResource: [], // 发布者其他房源
|
||||
bgColorObj: app.globalData.bgColorObj,
|
||||
wechat: {},
|
||||
isNewVersions: true,
|
||||
|
||||
},
|
||||
to_share() {
|
||||
|
1089
pages/show/show.wxml
1089
pages/show/show.wxml
File diff suppressed because it is too large
Load Diff
@ -1879,14 +1879,6 @@ map .clickmap {
|
||||
|
||||
}
|
||||
|
||||
.popularize {
|
||||
display: block;
|
||||
width: calc(100vw - 60rpx);
|
||||
margin: 60rpx auto 0;
|
||||
padding-bottom: 60rpx;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.housing-contact {
|
||||
padding: 0 30rpx;
|
||||
background-color: rgba(238, 239, 242, 1);
|
||||
|
@ -134,7 +134,6 @@ Page({
|
||||
failPopState: false, // 提交失败的弹窗状态
|
||||
|
||||
|
||||
isNewVersions: true,
|
||||
|
||||
|
||||
},
|
||||
@ -218,8 +217,7 @@ Page({
|
||||
wechat: app.globalData.wechat,
|
||||
bottomLift: app.globalData.screen_data.bottomLift
|
||||
})
|
||||
if (this.data.isNewVersions) this.getUserInit()
|
||||
else this.initData()
|
||||
this.getUserInit()
|
||||
|
||||
// this['get_' + this.data.tab]()
|
||||
} else {
|
||||
@ -331,15 +329,14 @@ Page({
|
||||
token: token,
|
||||
uniqid: uniqid
|
||||
}).then(data => {
|
||||
if (this.data.isNewVersions) {
|
||||
that.data.fav.data.splice(index, 1);
|
||||
if (that.data.fav.data.length == 0) this.getFavData()
|
||||
that.data.fav.data.splice(index, 1);
|
||||
if (that.data.fav.data.length == 0) this.getFavData()
|
||||
|
||||
that.data.fav.count = that.data.fav.count - 1
|
||||
that.setData({
|
||||
fav: this.data.fav
|
||||
})
|
||||
|
||||
that.data.fav.count = that.data.fav.count - 1
|
||||
that.setData({
|
||||
fav: this.data.fav
|
||||
})
|
||||
}
|
||||
that.data.fav_list.splice(index, 1);
|
||||
that.setData({
|
||||
fav_count: data.data.user_count,
|
||||
@ -374,28 +371,20 @@ Page({
|
||||
wx.hideLoading()
|
||||
if (data.extraparam.mode == 'right') {
|
||||
// 成功
|
||||
if (that.data.isNewVersions) {
|
||||
let status = that.data.publish.data[index].status
|
||||
let stat = that.data.stat
|
||||
let status = that.data.publish.data[index].status
|
||||
let stat = that.data.stat
|
||||
|
||||
if (status == 0) stat['draft']--
|
||||
else if (status == 1) stat['listing']--
|
||||
else stat['offshelf']--
|
||||
if (status == 0) stat['draft']--
|
||||
else if (status == 1) stat['listing']--
|
||||
else stat['offshelf']--
|
||||
|
||||
that.data.publish.data.splice(index, 1);
|
||||
that.data.publish.count--;
|
||||
that.setData({
|
||||
publish: that.data.publish,
|
||||
stat
|
||||
})
|
||||
|
||||
that.data.publish.data.splice(index, 1);
|
||||
that.data.publish.count--;
|
||||
that.setData({
|
||||
publish: that.data.publish,
|
||||
stat
|
||||
})
|
||||
} else {
|
||||
that.data.publish_list.splice(index, 1);
|
||||
that.data.publish_count--;
|
||||
that.setData({
|
||||
publish_list: that.data.publish_list,
|
||||
publish_count: that.data.publish_count
|
||||
})
|
||||
}
|
||||
|
||||
wx.showToast({
|
||||
title: data.message,
|
||||
@ -538,17 +527,11 @@ Page({
|
||||
change_item_status: function (e) {
|
||||
let uniqid, token, index, status
|
||||
|
||||
if (this.data.isNewVersions) {
|
||||
uniqid = e.detail.uniqid;
|
||||
token = e.detail.token;
|
||||
index = e.detail.index;
|
||||
status = e.detail.status;
|
||||
} else {
|
||||
uniqid = e.currentTarget.dataset.uniqid
|
||||
token = e.currentTarget.dataset.token
|
||||
index = e.currentTarget.dataset.index
|
||||
status = e.currentTarget.dataset.status
|
||||
}
|
||||
uniqid = e.detail.uniqid;
|
||||
token = e.detail.token;
|
||||
index = e.detail.index;
|
||||
status = e.detail.status;
|
||||
|
||||
this.setData({
|
||||
chage_status_obj: {
|
||||
show: true,
|
||||
@ -574,32 +557,25 @@ Page({
|
||||
if (data.code == 200) {
|
||||
// 成功
|
||||
that.data.chage_status_obj.show = false;
|
||||
if (this.data.isNewVersions) {
|
||||
let status = that.data.chage_status_obj.status
|
||||
let stat = this.data.stat
|
||||
let status = that.data.chage_status_obj.status
|
||||
let stat = this.data.stat
|
||||
|
||||
if (status == 1) stat['listing']--
|
||||
else if (status == 0) stat['draft']--
|
||||
else stat['offshelf']--
|
||||
if (status == 1) stat['listing']--
|
||||
else if (status == 0) stat['draft']--
|
||||
else stat['offshelf']--
|
||||
|
||||
let newStatus = data.data.status
|
||||
if (newStatus == 1) stat['listing']++
|
||||
else if (newStatus == 0) stat['draft']++
|
||||
else stat['offshelf']++
|
||||
let newStatus = data.data.status
|
||||
if (newStatus == 1) stat['listing']++
|
||||
else if (newStatus == 0) stat['draft']++
|
||||
else stat['offshelf']++
|
||||
|
||||
this.data.publish.data[that.data.chage_status_obj.index].status = newStatus
|
||||
this.setData({
|
||||
stat,
|
||||
publish: this.data.publish,
|
||||
chage_status_obj: this.data.chage_status_obj
|
||||
})
|
||||
|
||||
this.data.publish.data[that.data.chage_status_obj.index].status = newStatus
|
||||
this.setData({
|
||||
stat,
|
||||
publish: this.data.publish,
|
||||
chage_status_obj: this.data.chage_status_obj
|
||||
})
|
||||
} else {
|
||||
that.data.publish_list[that.data.chage_status_obj.index].status = data.data.status;
|
||||
that.setData({
|
||||
publish_list: that.data.publish_list,
|
||||
chage_status_obj: that.data.chage_status_obj
|
||||
})
|
||||
}
|
||||
wx.showToast({
|
||||
title: data.message,
|
||||
})
|
||||
@ -639,15 +615,10 @@ Page({
|
||||
bindtopUp(e) {
|
||||
let token, index, isding
|
||||
|
||||
if (this.data.isNewVersions) {
|
||||
token = e.detail.token
|
||||
index = e.detail.index
|
||||
isding = e.detail.isding
|
||||
} else {
|
||||
token = e.currentTarget.dataset.token
|
||||
index = e.currentTarget.dataset.index
|
||||
isding = e.currentTarget.dataset.isding
|
||||
}
|
||||
token = e.detail.token
|
||||
index = e.detail.index
|
||||
isding = e.detail.isding
|
||||
|
||||
|
||||
if (isding == 1) {
|
||||
this.setData({
|
||||
@ -672,14 +643,9 @@ Page({
|
||||
}).then(res => {
|
||||
if (res.code == 200) {
|
||||
|
||||
let isNewVersions = this.data.isNewVersions
|
||||
if (isNewVersions) {
|
||||
if (isding == 0) this.data.publish.data[index].isding = 1
|
||||
else this.data.publish.data[index].isding = 0
|
||||
} else {
|
||||
if (isding == 0) this.data.publish_list[index].isding = 1
|
||||
else this.data.publish_list[index].isding = 0
|
||||
}
|
||||
if (isding == 0) this.data.publish.data[index].isding = 1
|
||||
else this.data.publish.data[index].isding = 0
|
||||
|
||||
|
||||
this.setData({
|
||||
raisePopupMessage: res.message,
|
||||
@ -1049,16 +1015,30 @@ Page({
|
||||
let identityList = data.data
|
||||
let isintermediary = data.isintermediary
|
||||
if (data['ispopup'] == 0) { // 确认身份 直接跳转
|
||||
|
||||
let user = app.globalData['user']
|
||||
let miniProgram = app.globalData.miniProgram
|
||||
let url = `/pages/edit/edit?intermediary=${isintermediary}`
|
||||
if (miniProgram == 'xg') {
|
||||
wx.navigateTo({
|
||||
url,
|
||||
})
|
||||
if (user['uid']) {
|
||||
let url = `/pages/edit/edit?intermediary=${isintermediary}`
|
||||
if (!user['nickname'] || !user['avatar']) {
|
||||
wx.navigateTo({
|
||||
url: '/pagesLoginRequired/pages/setAvatarNickname/setAvatarNickname',
|
||||
})
|
||||
return
|
||||
}
|
||||
if (miniProgram == 'xg') {
|
||||
wx.navigateTo({
|
||||
url,
|
||||
})
|
||||
} else {
|
||||
wx.navigateToMiniProgram({
|
||||
appId: "wx9c68fbf7886ea9c4",
|
||||
path: url
|
||||
})
|
||||
}
|
||||
} else {
|
||||
wx.navigateToMiniProgram({
|
||||
appId: "wx9c68fbf7886ea9c4",
|
||||
path: url
|
||||
this.setData({
|
||||
isAuthorization: 1
|
||||
})
|
||||
}
|
||||
return
|
||||
@ -1119,6 +1099,7 @@ Page({
|
||||
var date = new Date(timestamp * 1000);
|
||||
// 使用Date对象的get方法获取年、月、日
|
||||
var year = date.getFullYear();
|
||||
|
||||
var month = date.getMonth() + 1;
|
||||
var day = date.getDate();
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<import src="../common/common.wxml" />
|
||||
<import src="../../wxParse/wxParse.wxml" />
|
||||
<view class="container containerNew" wx:if="{{ !loding }}">
|
||||
<header-nav inner-text="Some text" isIndexPage="index" isMessageCount="{{ !isNewVersions }}" unreadMessages="{{ unreadMessages }}" bindunreadMessagesalter="unreadMessagesalter" bgcolor="transparent" position="{{ 'absolute' }}">
|
||||
<header-nav inner-text="Some text" isIndexPage="index" unreadMessages="{{ unreadMessages }}" bindunreadMessagesalter="unreadMessagesalter" bgcolor="transparent" position="{{ 'absolute' }}">
|
||||
<view>{{ topTitle }}</view>
|
||||
</header-nav>
|
||||
<template wx:if="{{ validityidentityState }}" is="public-hint" data="{{ hint: '认证有效期:' + validityidentity }}"></template>
|
||||
@ -9,313 +9,95 @@
|
||||
<to-top wx:if="{{ showTOTOP }}"></to-top>
|
||||
<go-login wx:if="{{ isAuthorization==1 }}" bindislogin="islogin" bindauthorizationSuccess="authorizationSuccess"></go-login>
|
||||
|
||||
<block wx:if="{{ isNewVersions }}">
|
||||
<view class="header-new" style="margin-top: -{{ screen_data.totalTopHeight }}px;">
|
||||
<view class="header-message flexacenter">
|
||||
<view class="header-user-message flexacenter">
|
||||
<view class="header-user-avatar" bindtap="goSetAvatarNickname">
|
||||
<image class="header-user-avatar-icon" src="{{ user.avatar }}"></image>
|
||||
<view class="info-camera flexcenter">
|
||||
<image class="info-camera-icon" mode="widthFix" src="/img/camera.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="header-user-info flexflex">
|
||||
<view bindtap="goSetAvatarNickname" class="header-user-name flexacenter">{{ user.nickname || '微信用户' }} <image wx:if="{{ user.intermediary == 1 }}" class="header-user-agent" mode="heightFix" catchtap="showValidityidentity" src="/img/certifying-agent.png"></image>
|
||||
</view>
|
||||
<view class="header-user-uid flexacenter">UID:{{ user.uid }}</view>
|
||||
<view class="header-new" style="margin-top: -{{ screen_data.totalTopHeight }}px;">
|
||||
<view class="header-message flexacenter">
|
||||
<view class="header-user-message flexacenter">
|
||||
<view class="header-user-avatar" bindtap="goSetAvatarNickname">
|
||||
<image class="header-user-avatar-icon" src="{{ user.avatar }}"></image>
|
||||
<view class="info-camera flexcenter">
|
||||
<image class="info-camera-icon" mode="widthFix" src="/img/camera.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <button open-type="contact" class='contact' bindcontact="bindcontact">
|
||||
<view class="header-user-info flexflex">
|
||||
<view bindtap="goSetAvatarNickname" class="header-user-name flexacenter">{{ user.nickname || '微信用户' }} <image wx:if="{{ user.intermediary == 1 }}" class="header-user-agent" mode="heightFix" catchtap="showValidityidentity" src="/img/certifying-agent.png"></image>
|
||||
</view>
|
||||
<view class="header-user-uid flexacenter">UID:{{ user.uid }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <button open-type="contact" class='contact' bindcontact="bindcontact">
|
||||
<image class="contact-icon" src="/img/u1872.png" mode="widthFix"></image>
|
||||
反馈
|
||||
</button> -->
|
||||
</view>
|
||||
<view class="header-btn flexacenter">
|
||||
<view class="header-btn-item flex1 flexcenter" bindtap="publicSkip" data-url="/pages/messageCenter/messageCenter">
|
||||
<view class="header-btn-box message-reminding flexcenter">
|
||||
<image class="header-btn-icon" mode="widthFix" src="/img/message-reminding.svg"></image>
|
||||
<view class="header-btn-num flexcenter" wx:if="{{ newmessagenum != 0 }}">{{ newmessagenum }}</view>
|
||||
</view>
|
||||
<view class="header-btn-text">消息提醒</view>
|
||||
</view>
|
||||
<view class="header-btn flexacenter">
|
||||
<view class="header-btn-item flex1 flexcenter" bindtap="publicSkip" data-url="/pages/messageCenter/messageCenter">
|
||||
<view class="header-btn-box message-reminding flexcenter">
|
||||
<image class="header-btn-icon" mode="widthFix" src="/img/message-reminding.svg"></image>
|
||||
<view class="header-btn-num flexcenter" wx:if="{{ newmessagenum != 0 }}">{{ newmessagenum }}</view>
|
||||
</view>
|
||||
<view class="header-btn-item flex1 flexcenter" bindtap="handleRightBtn">
|
||||
<view class="header-btn-box issue-housing flexcenter" style="--bgcolor: {{ identityObj[user.identity || 0].bgcolor }}">
|
||||
<image wx:if="{{ user.identity == 0 }}" class="header-btn-icon" mode="widthFix" src="/img/plus-3.png"></image>
|
||||
<image wx:else class="header-btn-icon" style="width: 33rpx;height: 33rpx;" mode="widthFix" src="/img/identification.png"></image>
|
||||
</view>
|
||||
<view class="header-btn-text">{{ identityObj[user.identity || 0].text }}</view>
|
||||
<view class="header-btn-text">消息提醒</view>
|
||||
</view>
|
||||
<view class="header-btn-item flex1 flexcenter" bindtap="handleRightBtn">
|
||||
<view class="header-btn-box issue-housing flexcenter" style="--bgcolor: {{ identityObj[user.identity || 0].bgcolor }}">
|
||||
<image wx:if="{{ user.identity == 0 }}" class="header-btn-icon" mode="widthFix" src="/img/plus-3.png"></image>
|
||||
<image wx:else class="header-btn-icon" style="width: 33rpx;height: 33rpx;" mode="widthFix" src="/img/identification.png"></image>
|
||||
</view>
|
||||
<view class="header-btn-text">{{ identityObj[user.identity || 0].text }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<image class="round1" src="/img/show-head-left.svg"></image>
|
||||
<image class="round2" src="/img/show-head-right.svg"></image>
|
||||
|
||||
<view class="list-new">
|
||||
<view class="list-new-top flexflex">
|
||||
<view class="list-new-top-bg"></view>
|
||||
<view class="list-new-top-item flexflex {{ tab == 'fav' ? 'selected' : '' }}" bindtap="cutTab" data-type="fav">
|
||||
<view class="flexacenter">
|
||||
<image wx:if="{{ tab == 'fav' }}" class="list-new-top-icon list-new-top-icon-selected" mode="widthFix" src="/img/user-collect-selected.png"></image>
|
||||
<image wx:else class="list-new-top-icon" mode="widthFix" src="/img/user-collect-unselected.svg"></image>收藏
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-new-top-item flexflex {{ tab == 'publish' ? 'selected selectedpublish' : '' }}" bindtap="cutTab" data-type="publish">
|
||||
<view class="flexacenter">
|
||||
<image wx:if="{{ tab == 'publish' }}" class="list-new-top-icon list-new-top-icon-selected" mode="widthFix" src="/img/user-issue-selected.png"></image>
|
||||
<image wx:else class="list-new-top-icon" mode="widthFix" src="/img/user-issue-unselected.svg"></image>发布
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<image class="round1" src="/img/show-head-left.svg"></image>
|
||||
<image class="round2" src="/img/show-head-right.svg"></image>
|
||||
|
||||
<view class="list-new">
|
||||
<view class="list-new-top flexflex">
|
||||
<view class="list-new-top-bg"></view>
|
||||
<view class="list-new-top-item flexflex {{ tab == 'fav' ? 'selected' : '' }}" bindtap="cutTab" data-type="fav">
|
||||
<view class="flexacenter">
|
||||
<image wx:if="{{ tab == 'fav' }}" class="list-new-top-icon list-new-top-icon-selected" mode="widthFix" src="/img/user-collect-selected.png"></image>
|
||||
<image wx:else class="list-new-top-icon" mode="widthFix" src="/img/user-collect-unselected.svg"></image>收藏
|
||||
<view wx:if="{{ tab == 'fav' }}" class="list-new-content list-new-content-collect">
|
||||
<block wx:if="{{ fav.count != 0 }}">
|
||||
<view class="list-new-content-total flexacenter">共收藏 <view class="list-new-content-total-num">{{ fav.count }}</view> 个房源</view>
|
||||
<view class="list-new-content-list">
|
||||
<view class="list-new-content-item" wx:for="{{ fav.data }}" wx:key="index">
|
||||
<common-list bindcollectOperation="add_to_fav" item="{{ item }}" index="{{ index }}" iscollect="{{ true }}"></common-list>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list-new-top-item flexflex {{ tab == 'publish' ? 'selected selectedpublish' : '' }}" bindtap="cutTab" data-type="publish">
|
||||
<view class="flexacenter">
|
||||
<image wx:if="{{ tab == 'publish' }}" class="list-new-top-icon list-new-top-icon-selected" mode="widthFix" src="/img/user-issue-selected.png"></image>
|
||||
<image wx:else class="list-new-top-icon" mode="widthFix" src="/img/user-issue-unselected.svg"></image>发布
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{ tab == 'fav' }}" class="list-new-content list-new-content-collect">
|
||||
<block wx:if="{{ fav.count != 0 }}">
|
||||
<view class="list-new-content-total flexacenter">共收藏 <view class="list-new-content-total-num">{{ fav.count }}</view> 个房源</view>
|
||||
<view class="list-new-content-list">
|
||||
<view class="list-new-content-item" wx:for="{{ fav.data }}" wx:key="index">
|
||||
<common-list bindcollectOperation="add_to_fav" item="{{ item }}" index="{{ index }}" iscollect="{{ true }}"></common-list>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<template wx:else is="empty-icon" data="{{ hint: '暂无内容' }}"></template>
|
||||
<image class="service flexflex" mode="widthFix" wx:if="{{ wechat['service'] }}" show-menu-by-longpress src="{{ wechat['service'] }}"></image>
|
||||
</view>
|
||||
|
||||
<view wx:else style="border-radius: 15rpx 0 0 0;" class="list-new-content list-new-content-issue">
|
||||
<block wx:if="{{ publish.count != 0 }}">
|
||||
<view class="list-new-content-total flexacenter">共 <view class="list-new-content-total-num">{{ publish.count }}</view> 条房源(上架 {{ stat.listing }} <view class="list-new-content-vertical"></view> 草稿 {{ stat.draft }} <view class="list-new-content-vertical"></view> 下架 {{ stat.offshelf }} )</view>
|
||||
<view class="list-new-content-list">
|
||||
<view class="list-new-content-item" wx:for="{{ publish.data }}" wx:key="index">
|
||||
<common-list binduserOperation="userOperation" stateData="{{ stateObj[item.status] }}" item="{{ item }}" index="{{ index }}" ispublish="{{ true }}"></common-list>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<template wx:else is="empty-icon" data="{{ hint: '暂无内容' }}"></template>
|
||||
<!-- 疑问 -->
|
||||
<view class="query-box flexcenter" wx:if="{{ data.length != 0 }}">
|
||||
<view class="query-text flexacenter">有疑问?来找<image class="query-img" mode="widthFix" src="/img/smiling-face.png"></image>{{ wechat.nickname }}!</view>
|
||||
<view class="query-btn flexcenter" bindtap="copy" data-value="{{ wechat['wechat'] }}">复制微信号</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<!-- tab -->
|
||||
<view class='tab-box'>
|
||||
<view class='{{tab=="fav" ?"tab active" :"tab"}}' bindtap='change_tab' data-tab='fav'>
|
||||
<block>
|
||||
<image src='/img/collect.jpg' class='star' wx:if="{{ tab=='fav' }}"></image>
|
||||
<image src='/img/collectc.jpg' class='star' wx:if="{{ tab!='fav' }}"></image>
|
||||
</block>
|
||||
收藏
|
||||
</view>
|
||||
<view class='{{tab=="publish" ?"tab active" :"tab"}}' bindtap='change_tab' data-tab='publish'>
|
||||
<block>
|
||||
<image src='/img/publishblue.jpg' class='publish' wx:if="{{ tab=='publish' }}"></image>
|
||||
<image src='/img/publishc.jpg' class='publish' wx:if="{{ tab!='publish' }}"></image>
|
||||
</block>
|
||||
发布
|
||||
</view>
|
||||
</block>
|
||||
<template wx:else is="empty-icon" data="{{ hint: '暂无内容' }}"></template>
|
||||
<image class="service flexflex" mode="widthFix" wx:if="{{ wechat['service'] }}" show-menu-by-longpress src="{{ wechat['service'] }}"></image>
|
||||
</view>
|
||||
|
||||
<!--list -->
|
||||
<view class='list' wx:if="{{ tab=='fav' }}">
|
||||
<view class='item' wx:for="{{ fav_list }}" wx:key="index">
|
||||
<template is="list" wx:if="{{ item.status !=2 }}" data="{{ item:item }}" />
|
||||
<view class='info-list' wx:if="{{ item.status==2 }}" bindtap='have_rent_info'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{
|
||||
item.subject
|
||||
}}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='tips'>
|
||||
<view class='i' wx:if="{{ item.location }}">{{ item.location }}</view>
|
||||
<view class='i' wx:if="{{ item.type }}">{{ item.type }}</view>
|
||||
<view class='i' wx:if="{{ item.acreage }}">{{ item.acreage }}平方{{ item.cityid == 1 ? '呎' :'米'}}</view>
|
||||
<view class='i' wx:if="{{ item.gender }}">{{ item.gender }}</view>
|
||||
<view class='i' wx:if="{{ item.leaseterm }}">{{ item.leaseterm ==1 ?'长租':(item.leaseterm ==2 ?'短租' :'')}}</view>
|
||||
</view>
|
||||
<view class='footer'>
|
||||
<view>{{ item.currency }}
|
||||
<view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }}
|
||||
</view>
|
||||
<view>
|
||||
<view class='agent' wx:if="{{ item.intermediary != 2 && item.intermediary != 5 }}">{{ item.intermediary
|
||||
==1?'中介' :(item.publisheridentity ==3 ?"房东" : '有房招室友') }}</view>
|
||||
</view>
|
||||
<view class='footer-right'>
|
||||
<view class='see' wx:if="{{item.count_view >0 }}">
|
||||
<image src="../../img/eye.png" />{{ item.count_view }}
|
||||
</view>
|
||||
<view class='stars' wx:if="{{item.count_fav >0 }}">
|
||||
<image src="../../img/star.png" />{{ item.count_fav }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class='publish_tips' wx:if="{{ item.status==0 }}">
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view class='is_rent_btn' wx:if="{{ item.status==2 }}">已出租</view>
|
||||
<view class='table'>
|
||||
<view class='cell' bindtap='add_to_fav' data-index="{{ index }}" data-uniqid="{{ item.uniqid }}" data-token="{{ item.token }}">
|
||||
<image class='star' src="../../img/star.png" />取消收藏
|
||||
<view wx:else style="border-radius: 15rpx 0 0 0;" class="list-new-content list-new-content-issue">
|
||||
<block wx:if="{{ publish.count != 0 }}">
|
||||
<view class="list-new-content-total flexacenter">共 <view class="list-new-content-total-num">{{ publish.count }}</view> 条房源(上架 {{ stat.listing }} <view class="list-new-content-vertical"></view> 草稿 {{ stat.draft }} <view class="list-new-content-vertical"></view> 下架 {{ stat.offshelf }} )</view>
|
||||
<view class="list-new-content-list">
|
||||
<view class="list-new-content-item" wx:for="{{ publish.data }}" wx:key="index">
|
||||
<common-list binduserOperation="userOperation" stateData="{{ stateObj[item.status] }}" item="{{ item }}" index="{{ index }}" ispublish="{{ true }}"></common-list>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="whether" wx:if="{{ fav_list.length != 0 && fav_page.next_page == 0}}">到底了</view>
|
||||
<view wx:if="{{ fav_list.length==0 && !loading }}" class='nocontent'>
|
||||
<image src="../../img/file.png" class='file'></image>
|
||||
暂无收藏
|
||||
</block>
|
||||
<template wx:else is="empty-icon" data="{{ hint: '暂无内容' }}"></template>
|
||||
<!-- 疑问 -->
|
||||
<view class="query-box flexcenter" wx:if="{{ data.length != 0 }}">
|
||||
<view class="query-text flexacenter">有疑问?来找<image class="query-img" mode="widthFix" src="/img/smiling-face.png"></image>{{ wechat.nickname }}!</view>
|
||||
<view class="query-btn flexcenter" bindtap="copy" data-value="{{ wechat['wechat'] }}">复制微信号</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 发布的状态码不要删除 -->
|
||||
<!-- // 1正常,0未发布,2关闭,-3被投诉下架,-1用户删除,-2论坛删帖,-4待审,-5到期自动下架 -->
|
||||
<view class='list' wx:if="{{ tab=='publish' }}">
|
||||
<view class='item' wx:for="{{ publish_list }}" wx:key="index">
|
||||
<view wx:if="{{ item.status==-4 }}" class='info-list'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
{{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='publish_tips'>
|
||||
<image src="../../img/u1385.png"></image>该信息正在审核中
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status==-3 }}" class='info-list'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
</view>
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
|
||||
<view class='publish_tips'>
|
||||
<image src="../../img/tips.png"></image>多人投诉,已下架
|
||||
</view>
|
||||
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status==0 }}" class='info-list' url="../show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
<block wx:if="{{ item.subject }}">{{ item.subject }}</block>
|
||||
<text wx:else style="color: #999; margin-right: 10rpx;">未填写标题</text>
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
|
||||
<view class='publish_tips'>
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view wx:if="{{ item.status == -5 }}" class='info-list' url="../show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" />
|
||||
<block wx:if="{{ item.subject }}">{{ item.subject }}</block>
|
||||
<text wx:else style="color: #999; margin-right: 10rpx;">未填写标题</text>
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
|
||||
<view class='publish_tips'>
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 超出发布期限,已自动下架
|
||||
</view>
|
||||
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<template is="list" wx:if="{{ item.status==1 }}" data="{{ item:item }}" />
|
||||
<view class='info-list' wx:if="{{ item.status==2 }}" bindtap='have_rent_info'>
|
||||
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form'>
|
||||
<view class='title'>
|
||||
<image class='authentication' wx:if="{{ item.verified == 1 }}" mode="heightFix" src="/img/authentication.jpg" />
|
||||
<view class="close-btn" wx:if="{{ item.status==2}}">已下架</view>
|
||||
<image class='newbtn' wx:if="{{ item.isnew }}" src="../../img/newbtn.png" />
|
||||
<image class='hotbtn' wx:if="{{ item.ishot }}" src="../../img/hotbtn.png" /> {{ item.subject }}
|
||||
<image src="../../img/pics.jpg" wx:if="{{ item.ispic }}" class='imgbtn'></image>
|
||||
</view>
|
||||
<view class='tips'>
|
||||
<view class='i' wx:if="{{ item.location }}">{{ item.location }}</view>
|
||||
<view class='i' wx:if="{{ item.type }}">{{ item.type }}</view>
|
||||
<view class='i' wx:if="{{ item.acreage }}">{{ item.acreage }}平方{{ item.cityid == 1 ? '呎' :'米'}}</view>
|
||||
<view class='i' wx:if="{{ item.gender }}">{{ item.gender }}</view>
|
||||
<view class='i' wx:if="{{ item.leaseterm }}">{{ item.leaseterm ==1 ?'长租':(item.leaseterm ==2 ?'短租' :'')}}</view>
|
||||
</view>
|
||||
<view class='footer'>
|
||||
<view>{{ item.currency }}
|
||||
<view class='num'>{{ item.rent }}</view>/{{ item.rentalperiod || '月' }}
|
||||
</view>
|
||||
<view class='agent' wx:if="{{ item.intermediary_text }}">{{ item.intermediary_text }}</view>
|
||||
</view>
|
||||
<view class='publish_tips' wx:if="{{ item.status==0 }}">
|
||||
<view class="caution">
|
||||
<view class="caution-baitiao"></view>
|
||||
</view> 该信息尚未发布
|
||||
</view>
|
||||
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
|
||||
</form>
|
||||
</view>
|
||||
<view class="house-id">房源ID:{{ item.id }}</view>
|
||||
<view class="operation" wx:if="{{ item.status !=-3 }}">
|
||||
<block wx:if="{{ item.status != -4 }}">
|
||||
<view class="operation-item" wx:if="{{ item.status != 4}}" bindtap='del_item' data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">删除</view>
|
||||
<view wx:if="{{ item.intermediary == 6 }}" bindtap="judgeEditSkip" class="operation-item" data-url="/pages/askHousing/askHousing?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</view>
|
||||
<view wx:else class="operation-item" bindtap="judgeEditSkip" data-url="/pages/edit/edit?uniqid={{ item.uniqid }}&token={{ item.token }}&types={{ item.status==0 ?'edit1' :'edit' }}">
|
||||
编辑</view>
|
||||
<view class="operation-item" wx:if="{{ item.status==1}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">下架</view>
|
||||
<view class="operation-item" wx:if="{{ item.status==2}}" bindtap='change_item_status' data-status="{{ item.status }}" data-index="{{ index }}" data-uniqid="{{item.uniqid}}" data-token="{{ item.token }}">上架</view>
|
||||
<view class="operation-item blue" wx:if="{{ item.status == 1 && item.isding == 0 }}" bindtap="bindtopUp" data-isding="{{ item.isding }}" data-index="{{ index }}" data-token="{{ item.token }}">顶上去</view>
|
||||
<view class="operation-item thinblue" bindtap="bindtopUp" data-isding="{{ item.isding }}" data-index="{{ index }}" data-token="{{ item.token }}" wx:if="{{ item.status == 1 && item.isding == 1 }}">已顶</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<view class="operation-item" bindtap="cancelAudit" data-index="{{index}}" data-token="{{ item.appeal.token }}">撤销审核</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view class="whether" wx:if="{{ publish_list.length != 0 && publish_page.next_page == 0 }}">到底了
|
||||
</view>
|
||||
<view wx:if="{{ publish_list.length==0 && !loading }}" class='nocontent'>
|
||||
<image src="../../img/file.png" class='file'></image>
|
||||
暂无发布
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</block>
|
||||
|
||||
<view class="loading" wx:if="{{ loading }}">
|
||||
<view></view>
|
||||
@ -348,7 +130,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 触发规则1时 重复发布 -->
|
||||
<!-- <template wx:if="{{ triggerRules == 1 }}" is="repeatedRelease" data="{{ pages:'user' }}"></template> -->
|
||||
<!-- 触发规则2时 提交失败 -->
|
||||
@ -358,6 +139,6 @@
|
||||
|
||||
<template wx:if="{{ failPopState }}" is="fail-pop" data="{{ state: 'user' }}"></template>
|
||||
|
||||
<fix-footer isNewVersions="{{ isNewVersions }}" user="1" unreadMessages="{{ unreadMessages }}" bottomLift="{{ bottomLift }}"></fix-footer>
|
||||
<fix-footer user="1" unreadMessages="{{ unreadMessages }}" bottomLift="{{ bottomLift }}"></fix-footer>
|
||||
|
||||
<choice-type-release bindsetValue="setValue" choiceTypeState="{{ choiceTypeState }}" housingnum="{{ housingnum }}" identityList="{{ identityList }}"></choice-type-release>
|
@ -84,7 +84,6 @@
|
||||
.info-list .submit-form {
|
||||
padding: 50rpx 40rpx 40rpx;
|
||||
display: block;
|
||||
|
||||
}
|
||||
|
||||
.house-id {
|
||||
|
@ -1,9 +1,6 @@
|
||||
// var miucms = require('../../utils/miucms.js');
|
||||
// var miucms = require('/utils/miucms');
|
||||
var miucms = require('../../../utils/miucms');
|
||||
const app = getApp()
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
@ -63,7 +60,6 @@ Page({
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
} else {
|
||||
wx.showToast({
|
||||
icon: "none",
|
||||
|
@ -15,7 +15,6 @@ Component({
|
||||
bottomLift: {
|
||||
type: Number
|
||||
},
|
||||
isNewVersions: Boolean,
|
||||
},
|
||||
|
||||
/**
|
||||
@ -54,18 +53,33 @@ Component({
|
||||
let identityList = data.data
|
||||
let isintermediary = data.isintermediary
|
||||
if (data['ispopup'] == 0) {
|
||||
let user = app.globalData['user']
|
||||
let miniProgram = app.globalData.miniProgram
|
||||
let url = `/pages/edit/edit?intermediary=${isintermediary}`
|
||||
if (miniProgram == 'xg') {
|
||||
wx.navigateTo({
|
||||
url,
|
||||
})
|
||||
if (user['uid']) {
|
||||
if (!user['nickname']) {
|
||||
wx.navigateTo({
|
||||
url: '/pagesLoginRequired/pages/setAvatarNickname/setAvatarNickname',
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
let url = `/pages/edit/edit?intermediary=${isintermediary}`
|
||||
if (miniProgram == 'xg') {
|
||||
wx.navigateTo({
|
||||
url,
|
||||
})
|
||||
} else {
|
||||
wx.navigateToMiniProgram({
|
||||
appId: "wx9c68fbf7886ea9c4",
|
||||
path: url
|
||||
})
|
||||
}
|
||||
} else {
|
||||
wx.navigateToMiniProgram({
|
||||
appId: "wx9c68fbf7886ea9c4",
|
||||
path: url
|
||||
this.setData({
|
||||
isAuthorization: 1
|
||||
})
|
||||
}
|
||||
|
||||
// 确认身份 直接跳转
|
||||
return
|
||||
}
|
||||
@ -81,16 +95,14 @@ Component({
|
||||
|
||||
// 处理发布房源
|
||||
handleIssue() {
|
||||
if (this.data.isNewVersions) {
|
||||
this.judgeIssue()
|
||||
return
|
||||
}
|
||||
this.judgeIssue()
|
||||
return
|
||||
|
||||
let user = app.globalData['user']
|
||||
let miniProgram = app.globalData['miniProgram']
|
||||
|
||||
if (user['uid']) {
|
||||
if (!user['nickname']) {
|
||||
if (!user['nickname'] || !user['avatar']) {
|
||||
wx.navigateTo({
|
||||
url: '/pagesLoginRequired/pages/setAvatarNickname/setAvatarNickname',
|
||||
})
|
||||
|
@ -8,7 +8,6 @@ Component({
|
||||
attachment: Array,
|
||||
isInner: Number,
|
||||
pages: String,
|
||||
isNewVersions: Boolean,
|
||||
},
|
||||
observers: {
|
||||
attachment(e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user