This commit is contained in:
A1300399510 2023-05-16 21:24:03 +08:00
parent e98a17fb06
commit d4df621072
43 changed files with 541 additions and 2567 deletions

12
app.js
View File

@ -95,9 +95,14 @@ App({
this.autoUpdate()
let getAccountInfoSync = wx.getAccountInfoSync();
if (getAccountInfoSync.miniProgram.appId == "wx9c68fbf7886ea9c4") this.globalData.topTitle = "寄托香港租房"
else this.globalData.topTitle = "寄托港校租房"
if (getAccountInfoSync.miniProgram.appId == "wx9c68fbf7886ea9c4") {
this.globalData.topTitle = "寄托香港租房"
this.globalData.miniProgram = "xg"
} else {
this.globalData.topTitle = "寄托港校租房"
this.globalData.miniProgram = "gx"
}
},
onShow() {
@ -175,5 +180,6 @@ App({
unreadMessagesState: false,
firstWxParseImgLoaddState: false,
topTitle: "", // 寄托港校租房 寄托香港租房
miniProgram: "", // 处于那个小程序 xg gx
}
})

View File

@ -2,7 +2,6 @@
"pages": [
"pages/index/index",
"pages/appeal/appeal",
"pages/UK/UK",
"pages/restOfWorld/restOfWorld",
"pages/personList/personList",
"pages/irentList/irentList",

View File

@ -987,6 +987,15 @@ view {
-moz-osx-font-smoothing: grayscale;
}
@font-face {
font-family: 'Arial-Black';
src: url('data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAAckAA0AAAAADrwAAAbNAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCYhEICosAiQMLJgABNgIkA0gEIAWKHAdNG7EMUZRPUprsR0J12wvGNknS5vxJSNd4P4Onbf28BUxaL3qNzrNixUhYwUzgIiKIi4z/m+e/v9Hp/v7j2LIEIgniJMAa35kFWdlZWvPyfxzgaK3Vnxcs/YeIDBYKnVQp5XbnfTDfOyxeRMyjeKjaD/eoKUCqpGSt0SKLdZ45uUgx4wU+CAABQL/GyQwAbtxdzkRvTQB8QE8AhSAkCC6AAnB7HpmBB7yz+wEYpRxGXlSRmvEoSwsuRagoDRegtgl4ZPqckQkaLbUfGnYNdmbXKA0NLH9sBIDuPQA0AuDo3L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mJgBEJBIGYB8xgABFkAQHjaY2BgYGQAgqtL1DlA9IWb80NgNABD5QbiAAA=') format('woff');
font-weight: 900;
font-style: normal;
font-display: swap;
}
/* 公共的flex 布局方法 */
.flexflex {

11
img/arrow-White.svg Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="8px" height="8px" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter x="-50.00%" y="-50.00%" width="200.00%" height="200.00%" filterUnits="objectBoundingBox" id="filter104">
<feColorMatrix type="matrix" values="1 0 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 1 0 " in="SourceGraphic" />
</filter>
</defs>
<g transform="matrix(1 0 0 1 -1729 -331 )">
<image preserveAspectRatio="none" style="overflow:visible" width="8" height="8" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAEKADAAQAAAABAAAAEAAAAAA0VXHyAAABN0lEQVQ4EeVQMUuFYBRVX4K4uAehjg1Njc7+gIKEynjU9JZGoSmcJVpakiCqF/R0aekH+E90agpCBzWo7BzR+Cr6AdGFj3vuuffc794rSX/eZG4QRdFx13UzWZbnQRAcwXe/bZam6STP81PktxRFOZHDMFR0XX8BsUQRGl00TTMD/85YNIqLorgC5w/88yTLss513VUQayTx+7qqqiuO4zwwNxRKg3iOeHfk4K8VBoZhTOHuiQc7wFS3mKKfSvh5eyyAT+q6PuxvQDKOY7UsywRwg/FgiaZp07ZtLxHvjCQ8xT4+eP1swCSbVFW1wB02heJH4OUx5qFN09z3PO+N3JcGJIRdxXGZ4oEXtm37o5jcjwYkhyY3gOLYd5Zl7Yli1vZHJBCNRdiRhz3He8I7487fxaLmP+MPGYl+YP5Oj+IAAAAASUVORK5CYII=" x="1729px" y="331px" filter="url(#filter104)" />
</g>
</svg>

BIN
img/arrow-gray.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

BIN
img/top-image1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1,190 +0,0 @@
// pages/UK/UK.js
var WxParse = require('../../wxParse/wxParse.js');
var app = getApp()
var config = {};
var miucms = require('../../utils/miucms.js');
Page({
/**
* 页面的初始数据
*/
data: {
appid:'wxb09c358c3ec5e34f',
activeCity:0,
activeCityIndex:0,
wechat:'',
strategy:[],
hotHouseList:[],
swiperHeight:220,
activeSwiperIndex:0,
current:0,
aboutBelloliving:[
{
text:'6年时间八楼校舍帮助上万中国留学生寻找住所。住宿是留学的开始我们秉持公正透明的态度为留学生提供方便可靠的住宿。',
icon:'year',
name:'6年',
},
{
text: '在八楼所有房源均为实地考察的真实房源。我们对虚假房源实施“0容忍策略”。',
icon: 'percent',
name: '真实房源',
},
{
text: "不仅如此八楼所有学生公寓预定业务均为100%免费,并且与公寓供应商官方价格一致,绝不加价。",
icon: 'free',
name: '0服务费',
},
{
text: "我们将会为您提供最简单、最方便、最贴心的服务。",
icon: 'service',
name: '优质服务',
}
],
banner:""
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.get_list();
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
get_list(){
var that = this;
wx.showLoading({
title: '',
})
miucms.request('https://app.gter.net/tenement/belloliving', {}).then(res => {
wx.hideLoading()
var data = res.data;
var hotCity = [], beforeLength = 0;
data.hotHouseList.forEach(item=>{
hotCity.push({
cityName: item.cityName,
cityid:item.cityid,
length: item.houseList.length,
beforeLength: beforeLength
})
beforeLength += item.houseList.length;
})
that.setData({
hotHouseList: data.hotHouseList,
strategy: data.strategy,
wechat: data.wechat,
hotCity: hotCity,
activeCity: data.hotHouseList[0].cityid,
banner: data.banner
})
}).catch(res => { wx.hideLoading() })
},
swiperList:{},
changeHotCity(e){
this.setData({
activeCity:e.currentTarget.dataset.id,
current: e.currentTarget.dataset.beforelength,
activeCityIndex:e.currentTarget.dataset.index,
activeSwiperIndex:0
})
this.stat('cityswitch', e.currentTarget.dataset.id, e.currentTarget.dataset.name)
},
loadHeight(e){
if (this.data.swiperHeight>220){return false}
this.setData({
swiperHeight: e.detail.height
})
},
changeSwiper(e){
// .detail.current
if(e.detail.source== "touch"){
// 用户主动触发
for (var i = this.data.hotCity.length-1;i>=0;i--){
if (e.detail.current >= this.data.hotCity[i].beforeLength) {
if (this.data.hotCity[i].cityid != this.data.activeCity){
this.setData({
activeCity: this.data.hotCity[i].cityid,
activeCityIndex:i,
})
}
this.setData({
activeSwiperIndex: e.detail.current - this.data.hotCity[i].beforeLength
})
break;
}
}
}
},
copy(e){
wx.setClipboardData({
data: e.currentTarget.dataset.wechat,
})
this.stat('service', e.currentTarget.dataset.wechat, e.currentTarget.dataset.wechat)
},
// 点击房源
statHouse(e){
this.stat('house', e.currentTarget.dataset.id, e.currentTarget.dataset.name)
},
// 点击按钮
statBtn(e) {
this.stat(e.currentTarget.dataset.type, e.currentTarget.dataset.id, e.currentTarget.dataset.name)
},
// 统计点击
stat(type, id, name, isOpen){
miucms.request('https://app.gter.net/tenement/belloliving/stat', { type, relatedid: { id, name, isOpen}}).then(res => {
var data = res.data;
}).catch(res => { })
},
tominiProgram(e){
let {path,name,id,type} = e.currentTarget.dataset;
let that = this;
wx.navigateToMiniProgram({
appId: that.data.appid,
path,
success(res) {
// 打开成功
console.log('打开成功')
},
complete(res){
console.log('complete',res)
let isOpen = res.errMsg =='navigateToMiniProgram:ok' ? true:false;
that.stat(type, id, name, isOpen)
}
})
}
})

View File

@ -1,8 +0,0 @@
{
"navigationBarTitleText": "寄托租房",
"usingComponents": {
"header-nav": "../../template/headerNav/index",
"hot-card":"./hotCard/hotCard"
},
"enablePullDownRefresh": false
}

View File

@ -1,83 +0,0 @@
<view class="container">
<header-nav>英国学生公寓</header-nav>
<view class="page-header">
<image src="{{ banner }}" mode="widthFix"></image>
</view>
<view class="hot-apartment">
<view class="title">热门公寓</view>
<view class="city-list">
<view wx:for="{{ hotCity }}" bindtap="changeHotCity" wx:key="index" data-index="{{ index }}" data-id="{{ item.cityid }}" data-name="{{ item.cityName }}" data-beforeLength="{{ item.beforeLength }}" class="item {{ activeCity==item.cityid ? 'active' :''}}">
<view class="text">{{ item.cityName }}</view>
</view>
<view class="item" data-path="/pages/search/index" bindtap="tominiProgram" data-id="all" data-type="city">
<view class="text">所有城市
<image class="you" src="/img/you.png"></image>
</view>
</view>
</view>
<view class="card-container">
<swiper next-margin="50px" style="height:{{ swiperHeight }}px" circular="true" current="{{ current }}" bindchange="changeSwiper">
<block wx:for="{{ hotHouseList }}" wx:key="index">
<swiper-item wx:for="{{ item.houseList }}" wx:for-item="s" wx:for-index="i" wx:key="i">
<hot-card bindtap="tominiProgram" data-path="/pages/house/index?id={{ s.id }}" data-name="{{ s.title }}" data-type="house" data-id="{{ s.id }}" bindloadHeight="loadHeight" item="{{ s }}"></hot-card>
</swiper-item>
</block>
</swiper>
<view class="indicator-dots">
<view wx:for="{{ hotHouseList[activeCityIndex].houseList.length }}" wx:key="index" class="item {{ activeSwiperIndex==index ? 'active' :''}}"></view>
</view>
<view class="btn">
<view data-id="{{ activeCity }}" data-name="{{ hotCity[activeCityIndex].cityName }}" data-type="city" data-path="/pages/house/list?word={{ hotCity[activeCityIndex].cityName }}" class="item" bindtap="tominiProgram">
<view class="text">
<view>更多{{ hotCity[activeCityIndex].cityName }}公寓</view>
<image src="/img/hk-right.png"></image>
</view>
</view>
</view>
</view>
</view>
<view class="uk-strategy">
<view class="title">英国攻略</view>
<view class="list">
<navigator hover-class="hover" url="/{{ item.url }}" class="item {{ item.icon }}" wx:for="{{ strategy }}" wx:key="index" bindtap="statBtn" data-id="{{ item.icon }}" data-name="{{ item.name }}" data-type="strategy">
<view class="order">
<view class="text">{{ index + 1 }}</view>
</view>
<view class="icon">
<image src="/img/hk-{{ item.icon }}.png"></image>
</view>
<view class="name">{{ item.name }}</view>
</navigator>
</view>
</view>
<view class="about-belloliving">
<view class="title">关于八楼校舍</view>
<view class="list">
<view class="item {{ item.icon }}" wx:for="{{ aboutBelloliving }}" wx:key="index">
<view class="sub">
<view class="icon"><image src="/img/hk-{{ item.icon}}.png"></image></view>
<view class="name" wx:if="{{ item.icon !='year' }}">{{ item.name }}</view>
<view class="name" wx:if="{{ item.icon =='year' }}"><view class="num">6</view>年</view>
</view>
<view class="text">{{ item.text }}</view>
</view>
</view>
<view class="contact">
<view class="name">欢迎联系</view>
<view class="belloliving-wechat">官方客服微信号: <view class="num">{{ wechat}}</view> </view>
<view class="tips">备注:<view class="text">寄托</view>,获优先咨询</view>
<view class="button" bindtap="copy" data-wechat="{{wechat}}"> <image src="/img/wechat.png"></image> 复制微信号</view>
</view>
</view>
</view>

View File

@ -1,347 +0,0 @@
/* pages/UK/UK.wxss */
.page-header image{
display: block;
width: 100%;
height: 500rpx;
}
.hot-apartment{
padding: 56rpx 0 80rpx;
}
.hot-apartment .title{
padding: 0 40rpx 32rpx;
font-size: 38rpx;
color: #333;
font-weight: 600;
}
.city-list{
padding: 0 20rpx 0 40rpx;
display: flex;
flex-wrap: wrap;
}
.city-list .item{
margin-right: 20rpx;
margin-bottom: 20rpx;
display: inline-flex;
}
.city-list .item:last-child{
margin-right: 0;
}
.city-list .item .text{
display: inline-flex;
align-items: center;
background: #f2f2f2;
color: #666;
padding: 0 20rpx;
line-height: 72rpx;
height: 72rpx;
border-radius: 10rpx;
}
.city-list .item.active .text{
color: #fff;
background: #77cbc1;
}
.city-list .item .text .you{
display: inline-flex;
width: 16px;
height: 16px;
flex:0 0 16px;
margin-left: 4px;
}
.card-container{
padding:20rpx 0 0 40rpx;
}
.indicator-dots{
display: flex;
align-items: center;
justify-content: center;
padding-left: 2px;
margin: 40rpx auto 44rpx;
}
.indicator-dots .item{
display: inline-flex;
border:1px solid #ccc;
border-radius: 50%;
flex: 0 0 8px;
width: 8px;
height: 8px;
margin-right: 2px;
}
.indicator-dots .item.active{
background: #77cbc1;
border-color: #77cbc1
}
.card-container .btn .text{
display: flex;
align-items: center;
justify-content: center;
border:1px solid #77cbc1;
color: #77cbc1;
font-size: 26rpx;
width: 400rpx;
height: 72rpx;
border-radius: 36rpx;
margin: 0 auto;
}
.card-container .btn image{
display: inline-flex;
flex:0 0 12px;
width: 12px;
height: 12px;
margin-left: 4px;
}
.hover{
background: transparent
}
.uk-strategy{
border-top: 10px solid #f2f2f2;
padding: 60rpx 0 40rpx;
}
.uk-strategy .title{
padding: 0 40rpx 40rpx;
font-size: 38rpx;
color: #333;
font-weight: 600;
}
.uk-strategy .list{
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 0 40rpx 0;
}
.uk-strategy .item{
display: inline-flex;
width: calc(50% - 10rpx);
height: 280rpx;
border-radius: 20rpx;
align-items: center;
justify-content: center;
flex-direction: column;
position: relative;
margin-bottom: 20rpx;
font-size: 30rpx;
color: #000
}
/* app,card,job,luggage,strategy,ticket */
.uk-strategy .item.luggage{
background: #fef7da;
}
.uk-strategy .item .icon{
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 32rpx;
height: 100rpx;
}
.uk-strategy .item.luggage .icon image{
width: 65.6rpx;
height: 100rpx;
}
.uk-strategy .item.housetype{
background: #e5faf5;
}
.uk-strategy .item.housetype .icon image{
width: 103rpx;
height: 96rpx;
}
.uk-strategy .item.ticket{
background: #eef1f6;
}
.uk-strategy .item.ticket .icon image{
width: 95.7rpx;
height: 84rpx;
}
.uk-strategy .item.card{
background: #faeceb;
}
.uk-strategy .item.card .icon image{
width: 100rpx;
height: 100rpx;
}
.uk-strategy .item.job{
background: #fff4e2;
}
.uk-strategy .item.job .icon image{
width: 94rpx;
height: 72rpx;
}
.uk-strategy .item.app{
background: #f0eff5;
}
.uk-strategy .item.app .icon image{
width: 64.5rpx;
height: 98rpx;
}
.uk-strategy .item .order{
position: absolute;
left: -16rpx;
top: -16rpx;
transform: rotateZ(-40deg);
border-bottom: 1px solid #e4e4e4;
width: 80rpx;
height: 80rpx;
color: #ccc;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
transform-origin: center;
font-size: 28rpx;
}
.uk-strategy .item .order .text{
transform: rotateZ(40deg);
position: absolute;
left: 40rpx;
top: 34rpx;
}
.about-belloliving{
border-top: 10px solid #f2f2f2;
padding: 60rpx 40rpx 60rpx;
}
.about-belloliving .title{
padding: 0 0rpx 32rpx;
font-size: 38rpx;
color: #333;
font-weight: 600;
}
.about-belloliving .list{
background: #f9f9f9;
border-radius: 20rpx;
padding: 16rpx 40rpx;
}
.about-belloliving .list .item{
display: flex;
align-items: center;
padding: 44rpx 0rpx 44rpx 16rpx;
border-bottom: 1px solid #e4e4e4;
}
.about-belloliving .list .item:last-child{
border-bottom: none;
}
.about-belloliving .list .item image{
width: 60rpx;
height: 60rpx;
}
.about-belloliving .list .text{
color: #666;
display: inline-flex;
word-break: break-all;
font-size: 26rpx;
line-height: 1.6
}
.about-belloliving .list .sub{
display: inline-flex;
width: 120rpx;
flex:0 0 120rpx;
margin-right: 60rpx;
color: #77cbc1;
flex-direction: column;
position: relative;
align-items: center;
}
.about-belloliving .list .icon{
display: inline-flex;
width: 100%;
align-items: center;
justify-content: center;
margin-bottom: 20rpx;
}
.about-belloliving .list .year{
padding-left: 0;
}
.about-belloliving .list .year .sub{
flex: 0 0 160rpx;
width: 160rpx;
margin-right: 36rpx;
}
.about-belloliving .list .year .sub image{
width: 160rpx;
height: 160rpx;
}
.about-belloliving .list .year .sub .name{
position: absolute;
left: 0;
top: -10rpx;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
}
.about-belloliving .list .year .sub .name .num{
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
margin-right: 4rpx;
}
.contact{
margin-top: 40rpx;
background: #f9f9f9;
border-radius: 20rpx;
padding: 64rpx 0 56rpx;
}
.contact .name{
display: flex;
align-items: center;
justify-content: center;
color: #999;
}
.contact .name::before,.contact .name::after{
display: inline-flex;
content: "";
width: 48rpx;
flex: 0 0 48rpx;
height: 1px;
background: #ccc;
margin: 0 20rpx;
}
.contact .belloliving-wechat{
display: flex;
align-items: center;
justify-content: center;
margin: 40rpx 0 10rpx;
font-size: 30rpx;
color: #333;
}
.contact .belloliving-wechat .num{
display: inline-flex;
color: #77cbc1;
background: #ebebeb;
border-radius: 6rpx;
padding: 0 28rpx;
height: 48rpx;
line-height: 46rpx;
align-items: center;
justify-content: center;
font-size: 28rpx;
}
.contact .button{
border:1px solid #e4e4e4;
background: transparent;
border-radius:36rpx;
height: 72rpx;
box-sizing: border-box;
width: 310rpx;
font-size: 26rpx;
margin: 40rpx auto 0;
display: flex;
align-items: center;
justify-content: center;
}
.contact .button image{
width: 44rpx;
height: 36rpx;
margin-right: 14rpx;
}
.contact .tips{
text-align: center;
}
.contact .tips .text{
color: #77cbc1;
font-weight: bold;
display: inline
}

View File

@ -1,34 +0,0 @@
// pages/UK/hotCard/hotCard.js
Component({
/**
* 组件的属性列表
*/
properties: {
appid:String,
item:Object
},
/**
* 组件的初始数据
*/
data: {
lazyLoad:true
},
/**
* 组件的方法列表
*/
methods: {
loadImg(e){
const query = this.createSelectorQuery();
let that = this;
query.select('#id' + that.properties.item.id).boundingClientRect();
query.exec((res) => {
that.triggerEvent('loadHeight', {
height: res[0].height + 186
}, {})
})
}
}
})

View File

@ -1,4 +0,0 @@
{
"component": true,
"usingComponents": {}
}

View File

@ -1,18 +0,0 @@
<view class="card">
<view>
<image src="{{ item.image }}" id="id{{ item.id }}" lazy-load="lazyLoad" bindload="loadImg" class="cover" mode="widthFix"></image>
<view class="title">{{ item.title }}</view>
<view class="price">
from<view class="now">{{ item.country_symbol + item.bottomprice}}</view>
<view class="old" wx:if="{{ item.oldBottomPrice }}">{{ item.country_symbol + item.oldBottomPrice}}</view>
</view>
<view class="distance">
<view class="item" wx:for="{{ item.scope }}" wx:if="{{ i<3 }}" wx:for-item="s" wx:for-index="i" wx:key="i">
<image src="/img/{{ s.type }}.png" class="{{ s.type }}"></image>
<view class="name">{{ s.name }}</view>
<view class="intro">{{ s.intro }}</view>
<view class="time">{{ s.time }}</view>
</view>
</view>
</view>
</view>

View File

@ -1,77 +0,0 @@
/* pages/UK/hotCard/hotCard.wxss */
.card{
border-radius: 20rpx;
overflow: hidden;
border:1px solid #f2f2f2;
margin-right: 20rpx;
padding-bottom: 24px;
height: 100%;
}
.cover{
display: block;
width: 100%;
}
.title{
padding: 24px 20rpx 10px;
font-size: 16px;
color: #000;
font-weight: bold;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.price{
color: #333;
padding: 0 20rpx 20rpx;
font-size: 12px;
}
.price .now{
color: #389afe;
display: inline;
margin: 0 6rpx 0rpx 10rpx;
font-size: 13px;
}
.price .old{
color: #999;
display: inline;
text-decoration:line-through;
}
.distance{
color: #000;
padding: 0 20rpx 0;
/* font-weight: 600; */
font-size: 12px;
}
.distance image{
display: inline-block;
width: 32rpx;
height: 32rpx;
margin-right: 6rpx;
position: relative;
top: 2px;
}
.distance .item{
margin-bottom: 8px;
display: block;
flex-wrap: wrap;
align-items: center;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden
}
.name{
display: inline;
color: #000;
}
.time{
display: inline;
color: #000;
}
.intro{
display: inline;
color: #666;
margin: 0 4rpx 0 10rpx;
}
.hover{
background: transparent
}

View File

@ -1,5 +1,4 @@
<view class="container">
<!-- <header-nav>寄托港校租房</header-nav> -->
<header-nav>{{ topTitle }}</header-nav>
<block wx:for="{{ template }}" wx:key="index">
<image class='head-img' bindtap='previewImg' data-img="{{ item.data.url }}" mode='widthFix' wx:if="{{ item['type']=='bigpicture' }}" src='{{ item.data.url }}'></image>

View File

@ -1,629 +0,0 @@
// pages/replyQuestions/replyQuestions.js
var app = getApp()
var miucms = require('../../utils/miucms.js');
var WxParse = require('../../wxParse/wxParse.js');
var config = {};
var loading = false,
loading_new = false;
var have_new_msg = true;
var windowHeight = 0,
windowWidth = 0;
var tempFilePaths = [],
tempFilePath = '';
Page({
/**
* 页面的初始数据
*/
data: {
questions: [],
can_submit: false,
status: '',
avatar: '',
show_custom: false,
show_fast_reply: false,
uniqid: 'jayaiqDyHvv5',
token: '',
messageid: '',
XiaoappHKid: '',
islandlord: false,
lastmessageid: 0,
maxmessageid: 0,
page: {
next_page: 1
},
pagemessageid: 0,
count: 0,
data: [],
impression: [],
reply_message: '',
show_new_msg: false,
customreply: [],
q: "",
show_page: false,
can_get_new: false,
can_send: false,
function_show: false,
video_obj: {
show: false,
src: ''
},
scrollHeight: '', //聊天记录窗口高度
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function(options) {
this.setData({
uniqid: options.uniqid,
q: options.q ? options.q : ''
})
this.get_config()
},
get_config() {
var that = this;
if (app.globalData.config.lists) {
config = app.globalData.config;
wx.showLoading({
title: '加载中',
})
that.setData({
user: app.globalData.user,
status: app.globalData.status
})
this.to_message_show();
} else {
setTimeout(function() {
that.get_config()
}, 200)
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
console.log('onShow')
var that = this;
wx.getSystemInfo({
success: function(res) {
windowHeight = res.windowHeight;
windowWidth = res.windowWidth;
},
})
if (this.data.show_fast_reply) {
wx.getStorage({
key: 'message',
success: function(res) {
console.log(res)
that.setData({
customreply: res.data,
show_fast_reply: false
})
wx.removeStorage({
key: 'message',
success: function(res) {},
})
},
})
}
this.setData({
show_page: true
})
this.data.can_get_new && this.get_new_msg()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {
console.log('onHide')
this.setData({
show_page: false
})
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {
console.log('onUnload')
this.setData({
show_page: false
})
if (this.data.video_obj.show === true) {
this.close_video()
return false
}
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {
},
/**
* 用户点击右上角分享
*/
// onShareAppMessage: function () {
// },
input: function(e) {
let that = this;
if (e.detail.value.trim() !== '') {
this.setData({
reply_message: e.detail.value,
can_send: true
})
} else {
this.setData({
reply_message: e.detail.value,
can_send: false
})
}
},
to_fast_reply: function(e) {
let that = this;
let data = that.data.customreply;
wx.setStorage({
key: 'message',
data: data,
success: function(res) {
that.setData({
show_fast_reply: true,
show_custom: false
})
wx.navigateTo({
url: '../setFastrReply/setFastrReply',
})
}
})
},
// 在线聊天页
to_message_show: function() {
var that = this;
// 避免重複加載
if (loading || that.data.pagemessageid === false) {
return false
}
loading = true;
wx.showLoading({
title: '加载中',
})
miucms.request(app.globalData.config.message.show, {
uniqid: that.data.uniqid,
pagemessageid: that.data.pagemessageid,
}).then(data => {
if (data.extraparam && data.extraparam.mode == 'alert') {
wx.showModal({
title: '',
content: data.message,
})
} else {
// for (let i = 0; i < data.data.length; i++) {
// if (data.data[i].event != 'Answer' && data.data[i].type == 'text') {
// data.data[i].message = data.data[i].message.split('\n')
// } else if (data.data[i].event == 'Answer'){
// console.log('Answer', data.data[i])
// for (let j = 0; j < data.data[i].message.length;j++){
// console.log(data.data[i].message[j])
// data.data[i].message[j].message = data.data[i].message[j].message.split('\n')
// }
// }
// }
that.data.data = data.data.concat(that.data.data);
if (that.data.pagemessageid == 0) {
that.setData({
lastmessageid: data.lastmessageid,
impression: data.impression,
can_get_new: true
})
setTimeout(function() {
that.get_new_msg()
}, 2000)
}
that.setData({
islandlord: data.islandlord,
maxmessageid: data.maxmessageid,
// page:data.page,
pagemessageid: data.pagemessageid,
count: data.count,
data: that.data.data,
customreply: data.customreply
})
}
}).catch(res=>{})
},
to_show_custom: function(e) {
var show = e.currentTarget.dataset.show == 'true' ? true : false;
this.setData({
show_custom: show
})
},
reply: function(e) {
var that = this;
if (that.data.reply_message.trim().length == 0) {
wx.showModal({
title: '提示',
content: '不能发送空白消息',
})
} else {
// type '消息类型 (voice:语音,text:文本, image:图片,video:视频,map:地图)
miucms.request(app.globalData.config.message.send, {
uniqid: that.data.uniqid,
message: that.data.reply_message,
formid: e.detail.formId,
type: 'text',
}).then(data => {
if (data.extraparam && data.extraparam.mode == 'right') {
that.setData({
reply_message: '',
can_send: false
})
}
}).catch(res=>{})
}
},
upper: function() {
this.to_message_show()
},
// 滚动到屏幕底部时,如果有新消息,则跳到新消息去,没有就不跳
lower: function() {
},
scroll: function(e) {
var that = this;
if (e.detail.scrollHeight - e.detail.scrollTop > windowHeight * 1.5) {
have_new_msg = false;
} else {
have_new_msg = true;
that.setData({
show_new_msg: false
})
}
},
// 获取最新消息
get_new_msg: function() {
var that = this;
// console.log(this.data.show_page)
if (this.data.show_page === true) {
setTimeout(function() {
that.get_new_msg()
}, 1000)
}
if (loading_new) {
return false
}
loading_new = true;
miucms.request(app.globalData.config.message.monitoring, {
uniqid: that.data.uniqid,
lastmessageid: that.data.lastmessageid
}).then(data => {
if (data.extraparam && data.extraparam.mode == 'alert') {
wx.showModal({
title: '',
content: data.message,
})
} else {
// for(let i=0;i<data.data.length;i++){
// if (data.data[i].event != 'Answer' && data.data[i].type=='text'){
// data.data[i].message = data.data[i].message.split('\n')
// }
// }
// 如果在頁面底部,直接跳到最新消息,如果不是,显示有最新消息按钮
if (data.lastmessageid) {
that.setData({
lastmessageid: data.lastmessageid
})
}
if (data.data.length > 0) {
that.data.data = that.data.data.concat(data.data);
that.setData({
data: that.data.data
})
if (have_new_msg) {
that.setData({
maxmessageid: data.lastmessageid,
show_new_msg: false
})
} else {
that.setData({
show_new_msg: true
})
}
}
}
}).catch(res=>{})
},
to_new_msg: function() {
var that = this;
that.setData({
maxmessageid: that.data.lastmessageid,
show_new_msg: false
})
},
select_item: function(e) {
var content = e.currentTarget.dataset.content;
this.setData({
reply_message: content,
show_custom: false,
can_send: true
})
// this.reply()
},
get_img: function() {
var that = this;
wx.chooseImage({
count: 9,
success: function(res) {
tempFilePaths = res.tempFilePaths;
that.upload_pic(0, res.tempFilePaths.length)
}
})
},
upload_pic: function(index, length) {
var that = this;
const uploadTask = wx.uploadFile({
url: 'https://app.gter.net/upload',
filePath: tempFilePaths[index],
name: 'files',
formData: {
uniqid: that.data.uniqid,
session: app.globalData.session
},
header: app.globalData.header,
success: function(res) {
var data = app.return_data(res);
// 上传成功
// 发送消息
wx.request({
url: app.globalData.config.message.send,
data: {
session: wx.getStorageSync('session'),
uniqid: that.data.uniqid,
message: data.aid,
type: 'image',
aid: data.aid
},
method: 'POST', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
header: app.globalData.header,
success: function(res) {
var data = app.return_data(res);
if (data.extraparam && data.extraparam.mode == 'right') {}
}
})
index++;
if (index < length) {
that.upload_pic(index, length)
}
},
fail: function(res) {
wx.showModal({
content: res,
})
}
})
uploadTask.onProgressUpdate((res) => {
console.log('上传进度', res.progress)
})
},
get_video: function() {
let that = this;
wx.chooseVideo({
count: 9,
success: function(res) {
tempFilePath = res.tempFilePath;
that.upload_video(0, 1)
}
})
},
upload_video: function(index, length) {
var that = this;
const uploadTask = wx.uploadFile({
url: 'https://app.gter.net/upload',
filePath: tempFilePath,
name: 'files',
formData: {
uniqid: that.data.uniqid,
session: app.globalData.session,
type: 'video'
},
header: app.globalData.header,
success: function(res) {
var data = app.return_data(res);
// 发送消息
wx.request({
url: app.globalData.config.message.send,
data: {
session: wx.getStorageSync('session'),
uniqid: that.data.uniqid,
message: data.aid,
type: 'video',
aid: data.aid
},
method: 'POST', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
header: app.globalData.header,
success: function(res) {
var data = app.return_data(res);
if (data.extraparam && data.extraparam.mode == 'right') {}
}
})
},
fail: function(res) {
console.log(res)
}
})
// uploadTask.onProgressUpdate((res) => {
// for (let i = 0; i < that.data.imgs.length; i++) {
// if (that.data.imgs[i].id === id_now) {
// that.data.imgs[i]['progress'] = res.progress == 100 ? 0 : res.progress;
// that.setData({
// videos: that.data.videos
// })
// }
// }
// })
},
get_location: function() {
let that = this;
wx.chooseLocation({
success: function(res) {
// 发送消息
miucms.request(app.globalData.config.message.send, {
uniqid: that.data.uniqid,
type: 'map',
message: res,
}).then(data => {
}).catch(res => {})
},
})
},
// 去地图
to_map: function(e) {
console.log(e)
var that = this;
var latitude = Number(e.currentTarget.dataset.latitude);
var longitude = Number(e.currentTarget.dataset.longitude);
var address = e.currentTarget.dataset.address;
wx.openLocation({
latitude: latitude,
longitude: longitude,
scale: 28,
// name: name,
address: address
})
},
imageLoad: function(e) {
let originalWidth = e.detail.width;
let originalHeight = e.detail.height;
let index = e.currentTarget.dataset.index;
this.data.data[index].image_height = originalHeight * (windowWidth - 74) / originalWidth
this.setData({
data: this.data.data
})
},
// 图片预览
previewimg: function(e) {
let arr = [];
var data = this.data.data;
for (let i = 0; i < data.length; i++) {
if (data[i].type == 'image') {
arr.push(data[i].message)
}
}
let index = e.currentTarget.dataset.index;
wx.previewImage({
current: data[index].message, // 当前显示图片的http链接
urls: arr // 需要预览的图片http链接列表
})
},
// 设置印象
check_item: function(e) {
var that = this;
var impression = '' + e.currentTarget.dataset.impression;
var index = e.currentTarget.dataset.index;
wx.showLoading({
title: '数据提交中',
})
miucms.request(app.globalData.config.message.setimpression,{
uniqid: that.data.uniqid,
impression: impression
}).then(data=>{
if (data.extraparam.mode == 'right') {
for (var i = 0; i < that.data.impression.length; i++) {
that.data.impression[i].selected = false;
}
that.data.impression[index].selected = true;
that.setData({
impression: that.data.impression
})
}
}).catch(res=>{})
},
to_show_functions: function(e) {
let that = this;
if (this.data.function_show === true) {
this.onfocus()
return false
}
this.setData({
function_show: true,
maxmessageid: that.data.data[that.data.data.length - 1].id
})
setTimeout(function() {
wx.pageScrollTo({
scrollTop: 5000,
})
}, 50)
// this.get_img()
},
onfocus: function() {
this.setData({
function_show: false
})
setTimeout(function() {
wx.pageScrollTo({
scrollTop: 0,
})
}, 50)
},
wxParseTagATap: function(e) {
var url = e.currentTarget.dataset.src;
// console.log(e)
wx.navigateTo({
url: url,
})
},
show_video: function(e) {
var src = e.currentTarget.dataset.src;
// this.setData({
// video_obj:{
// show:true,
// src: src
// }
// })
wx.navigateTo({
url: '../video_show/video_show?src=' + src
})
},
})

View File

@ -1,7 +0,0 @@
{
"navigationBarTitleText": "在线聊天",
"enablePullDownRefresh": false,
"usingComponents": {
"header-nav": "../../template/headerNav/index"
}
}

View File

@ -1,207 +0,0 @@
<import src="../common/common.wxml"/>
<import src="../../wxParse/wxParse.wxml"/>
<view class="container">
<header-nav inner-text="Some text">在线聊天</header-nav>
<view class='chart-header' wx:if="{{ islandlord }}">
<view class="{{item.selected ? 'btn active' :'btn'}}" wx:for="{{impression}}" wx:key="index" data-impression="{{ item.id }}" data-index="{{ index }}" bindtap='check_item'>
<image src='../../img/checked.png' wx:if="{{ item.selected }}"></image>
<image src='../../img/check.png' wx:if="{{ !item.selected }}"></image>
{{ item.name }}
</view>
</view>
<scroll-view class="{{ islandlord ? (function_show ? 'chart-content chart-content2':'chart-content') :(function_show ? 'chart-content long chart-content2' :'chart-content long')}}" scroll-y="true" scroll-into-view="{{ 'id' + maxmessageid }}" enable-back-to-top="true" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" lower-threshold="500" bindtap='onfocus'>
<view class='content-list'>
<view wx:for="{{ data }}" id="{{ 'id' + item.id }}" wx:key="index">
<!--回答问题 -->
<block wx:if="{{ item.event=='Answer'}}">
<view class='times' wx:if="{{ item.timestamp }}">{{ item.timestamp }}</view>
<view wx:for="{{ item.message }}" wx:for-index="i" wx:for-item="s" wx:key="i">
<view wx:if="{{ s.ismyself==0 }}" class="ta">
<image class='avatar' src='{{ s.avatar}}'></image>
<view class='c'>
<view class='username'>{{ s.nickname }}</view>
<view class='content'>
<view class='bg'>
<text decode="true">{{s.message }}</text>
</view>
</view>
</view>
</view>
<view wx:if="{{ s.ismyself==1 }}" class='wo'>
<view class='c'>
<view class='username'>{{ s.nickname }}</view>
<view class='content'>
<view class='bg'>
<text decode="true">{{s.message }}</text>
</view>
</view>
</view>
<image class='avatar' src='{{ s.avatar}}'></image>
</view>
</view>
</block>
<block wx:if="{{ item.event=='XiaoappHK' || item.event==''}}">
<view class='times'>{{ item.timestamp }}</view>
<view wx:if="{{ item.ismyself==0 }}" class='ta'>
<image class='avatar' src='{{ item.avatar}}'></image>
<view class='c'>
<view class='username'>{{ item.nickname }}</view>
<view class='content'>
<!--链接 -->
<navigator class='bg navigator' wx:if="{{ item.event=='XiaoappHK'&& item.eventid }}" url="../show/show?show_btn=not&uniqid={{ item.eventid }}">
<view class='source'>
<image src="../../img/source.png" class='article'></image>房源
</view>
<view>
<text decode="true">{{item.message }}</text>
</view>
</navigator>
<!--普通消息、系统消息 -->
<view class='bg' wx:if="{{ item.event=='' && (item.type=='text' || item.type=='') }}">
<view>
<text decode="true">{{item.message }}</text>
</view>
</view>
<!--图片 -->
<view class='pic_bg' wx:if="{{ item.event=='' && item.type=='image'}}">
<view>
<image src="{{ item.message}}" data-index="{{ index }}" bindload="imageLoad" style="height:{{item.image_height}}px" catchtap='previewimg' ></image>
</view>
</view>
<!--视频 -->
<view class='video' bindtap='show_video' data-src="{{ item.message.url}}" wx:if="{{ item.event=='' && item.type=='video' }}">
<view >
<image src='../../img/videoplay.png'></image>
<view class='num'>{{ item.message.size || "" }}</view>
</view>
</view>
<!--地图 -->
<view class='map' catchtap='to_map' data-longitude="{{ item.message.longitude }}" data-latitude="{{ item.message.latitude }}" wx:if="{{ item.event=='' && item.type=='map' }}">
<view class='top'>
{{ item.message.address }}
</view>
<image src='../../img/map.png'></image>
</view>
</view>
</view>
</view>
<view wx:if="{{ item.ismyself==1 }}" class='wo'>
<view class='c'>
<view class='username'>{{ item.nickname }}</view>
<view class='content'>
<!-- 链接-->
<navigator class='bg navigator' url="../show/show?show_btn=not&uniqid={{ item.eventid }}" wx:if="{{ item.event=='XiaoappHK'&& item.eventid}}">
<view class='source'>
<image src="../../img/source.png" class='article'></image>房源
</view>
<view>
<text decode="true">{{item.message }}</text>
</view>
</navigator>
<!--普通消息或者系统消息 -->
<view class='bg' wx:if="{{ item.event=='' && (item.type=='text' || item.type=='')}}">
<text decode="true">{{item.message }}</text>
</view>
<!--图片消息 -->
<view class='pic_bg' wx:if="{{ item.event=='' && item.type=='image'}}">
<view >
<image src="{{ item.message}}" data-index="{{ index }}" bindload="imageLoad" style="height:{{item.image_height}}px" catchtap='previewimg'></image>
</view>
</view>
<!--视频 -->
<view class='video' bindtap='show_video' data-src="{{ item.message.url}}" wx:if="{{ item.event=='' && item.type=='video' }}">
<view >
<image src='../../img/videoplay.png'></image>
<view class='num'>{{ item.message.size || "" }}</view>
</view>
</view>
<!--地图 -->
<view class='map' catchtap='to_map' data-address='{{ item.message.address }}' data-longitude="{{ item.message.longitude }}" data-latitude="{{ item.message.latitude }}" wx:if="{{ item.event=='' && item.type=='map' }}">
<view class='top'>
{{ item.message.address }}
</view>
<image src='../../img/map.png'></image>
</view>
</view>
</view>
<image class='avatar' src='{{ item.avatar}}'></image>
</view>
</block>
</view>
</view>
</scroll-view>
<view class="page-footer">
<view class='chart-footer'>
<view class='l' bindtap='to_show_custom' data-show="true">
常用
<image class='tobottom' src="../../img/tobottom.png"></image>
</view>
<view class='c'>
<textarea class='text' maxlength='-1' bindinput='input' value='{{ reply_message }}' auto-height cursor-spacing="20" adjust-position="true" show-confirm-bar="{{ false }}" bindfocus='onfocus'></textarea>
</view>
<view class='r' bindtap='to_show_functions' wx:if="{{ !can_send }}">
<image src="../../img/plusgrey.png" class='plusgrey' ></image>
</view>
<form bindsubmit="reply" report-submit='true' data-types="confirm" class='submit-form r send_btn' wx:if="{{ can_send }}">
发送
<button form-type="submit"hover-class="none" type="default" size="mini"></button>
</form>
<!-- <view class='r send_btn' bindtap="reply" >
发送
</view> -->
<view wx:if="{{ show_new_msg }}" class="show_new_msg" bindtap='to_new_msg'>有新消息</view>
</view>
<block wx:if="{{ function_show }}" >
<view class='function-box'>
<view class='item' bindtap="get_img">
<view class='pic-box'>
<image src="../../img/pic.jpg" class='pic'></image>
</view>
图片
</view>
<view class='item'>
<view class='pic-box' bindtap="get_video">
<image src="../../img/video.png" class='video'></image>
</view>
视频
</view>
<view class='item' bindtap='get_location'>
<view class='pic-box'>
<image src="../../img/location-3.png" class='location'></image>
</view>
位置
</view>
</view>
</block>
</view>
<block wx:if="{{ show_custom }}">
<view class='select-options1'>
<view class='black' bindtap='to_show_custom' data-show="false"></view>
<view class='box'>
<view class='title'>常用回复</view>
<view class='ul'>
<view class='li' wx:for="{{ customreply }}" wx:key="index" bindtap='select_item' data-content="{{ item }}">
{{ item }}
</view>
<view class='nocontent' wx:if="{{ customreply.length==0 }}">您还没有设置快速回复哦~</view>
</view>
<view class='edit' bindtap='to_fast_reply'>
<image src="../../img/pengreydark.png"></image>
编辑
</view>
</view>
</view>
</block>
</view>

View File

@ -1,450 +0,0 @@
/* pages/replyQuestions/replyQuestions.wxss */
.nocontent{
text-align: center;
color: #999;
margin: 20rpx 0;
}
.container{
background: #f2f2f2;
height: 100vh;
}
/*聊天室 */
.chart-header{
display: flex;
padding: 0 32rpx ;
font-size: 0;
text-align: center;
border-bottom: 1px solid #e8e8e8;
height: 74px;
box-sizing: border-box;
background: #fff;
align-items: center;
justify-content: space-between;
}
.chart-header .btn{
display: inline-flex;
width: calc(33.33% - 16rpx);
height: 80rpx;
line-height: 80rpx;
box-sizing: border-box;
border:1px solid #e8e8e8;
border-radius: 5px;
font-size: 30rpx;
color: #666;
position: relative;
justify-content: center;
}
.chart-header .btn image{
display: inline-block;
width: 36rpx;
height: 36rpx;
vertical-align: middle;
position: absolute;
left: 16rpx;
top: 22rpx;
}
.chart-header .btn.active{
background: #62b1fe;
color: #fff;
}
.chart-content{
height: calc(100vh - 400rpx);
padding:0rpx 0rpx 0rpx;
box-sizing: border-box;
background: #fff;
}
.chart-content2{
height: calc(100vh - 630rpx);
}
.chart-content.long{
height: calc(100vh - 250rpx);
}
.chart-content2.long{
height: calc(100vh - 480rpx);
}
.content-list{
padding: 60rpx 32rpx 30rpx;
}
.content-list .times{
font-size: 26rpx;
color: #ccc;
text-align: center;
margin-bottom: 60rpx;
}
.content-list .avatar{
width: 64rpx;
height: 64rpx;
display: inline-block;
vertical-align: top;
border-radius: 5px;
z-index: 1000;
}
.content-list .ta,.content-list .wo{
font-size: 0;
margin-bottom: 60rpx;
position: relative;
}
.content-list .c{
display: inline-block;
width: calc(100% - 64rpx);
box-sizing: border-box;
padding-left: 20rpx;
}
.content-list .username{
font-size: 26rpx;
color: #999;
}
.content-list .content{
margin-top: 20rpx;
}
.content-list .content .article{
width: 20rpx;
height: 21rpx;
display: inline-block;
vertical-align: middle;
position: relative;
top: -4rpx;
margin-right: 12rpx;
}
.content-list .content .bg{
display: inline-block;
background: #eeeff3;
font-size: 30rpx;
color: #333;
padding: 20rpx;
border-radius: 5px;
word-break: break-word;
}
.content-list .content .bg view{
min-height: 38rpx;
}
.content-list .content .pic_bg{
display: inline-block;
font-size: 30rpx;
color: #333;
padding: 20rpx 0;
border-radius: 5px;
word-break: break-word;
}
.content-list .content .pic_bg image,.content-list .content .pic_bg video{
max-width:calc(100vw - 148rpx);
border-radius: 5px;
}
.content-list .content .video{
width: 160rpx;
height: 160rpx;
background: #62b1fe;
border-radius: 5px;
position: relative;
display: inline-block
}
/* .content-list .wo .video{
} */
.content-list .content .video image{
width: 60rpx;
height: 60rpx;
position: absolute;
left: 50rpx;
top: 50rpx;
}
.content-list .content .video .num{
color: #fff;
position: absolute;
bottom: 10rpx;
right: 10rpx;
text-align: right;
font-size: 24rpx;
}
.content-list .content .map{
width:400rpx;
border-radius: 5px;
display: inline-block;
}
.content-list .content .map .top{
background: #eeeff3;
color: #333;
padding:0 30rpx;
line-height: 100rpx;
height: 100rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 30rpx;
border-radius: 5px 5px 0 0;
text-align: left;
}
.content-list .content .map image{
width: 400rpx;
height:145.6rpx;
}
.content-list .wo .bg{
/* animation: show_content 0.1s 1s ease-out forwards;
overflow: hidden;
position: relative;
width: 0;
height: 0;
left: -80rpx;
top: -60rpx;
z-index: 1;
background: transparent; */
background: #75cdc1;
color: #fff;
}
.content-list .content .navigator{
background: #62b1fe !important;
color: #fff;
}
.source{
font-size: 24rpx;
margin-bottom: 10rpx;
}
.content-list .wo .c{
padding: 0 20rpx 0 0;
}
.content-list .wo{
text-align: right;
}
.content-list .wo .username{
text-align: right;
}
.content-list .wo .bg{
text-align: left;
/* animation: show_contentr 0.1s 1s ease-out forwards;
overflow: hidden;
position: relative;
width: 0;
height: 0;
right: -80rpx;
top: -60rpx;
z-index: 1;
background: transparent; */
}
@keyframes show_content{
0%{
width: 0;
height: 0;
left: -80rpx;
top: -60rpx;
background: transparent;
}
100%{
width: auto;
height: auto;
left: 0;
top: 0;
background: #eeeff3;
}
}
@keyframes show_contentr{
0%{
width: 0;
height: 0;
right: -80rpx;
top: -60rpx;
background: transparent;
}
100%{
width: auto;
height: auto;
right: 0;
top: 0;
background: #eeeff3;
}
}
.chart-footer{
box-sizing: border-box;
border-top: 2rpx solid #e8e8e8;
background: #f2f2f2;
display: table;
width: 100vw;
padding: 24rpx 0 16rpx;
line-height: 78rpx;
position: relative;
}
.chart-footer .show_new_msg{
position: absolute;
top:-80rpx;
right: 30rpx;
color: #1aad19;
z-index: 1000;
}
.chart-footer>view{
display: table-cell;
vertical-align: top;
}
.chart-footer .l{
width: 17%;
font-size: 30rpx;
text-align: left;
padding-left: 20rpx;
}
.chart-footer .c{
width: 71%;
height: 78rpx;
position: relative;
}
.chart-footer .c .text{
width: 100%;
box-sizing: border-box;
min-height: 80rpx;
background: #fff;
border:1px solid #e8e8e8;
vertical-align: top;
border-radius: 5px;
/* position: absolute;
left: 0;
top: 0; */
padding: 6rpx 8rpx 26rpx;
line-height: 44rpx;
height: auto;
max-height: 240rpx;
}
.chart-footer .r{
width: 12%;
text-align: center;
display: table-cell;
}
.chart-footer .tobottom{
width: 20rpx;
height: 10rpx;
display: inline-block;
}
.chart-footer .pic{
width: 43.2rpx;
height: 34.4rpx;
display: inline-block;
position: relative;
top: 4rpx;
}
.chart-footer .plusgrey{
width: 43.2rpx;
height: 43.2rpx;
display: inline-block;
position: relative;
top: 8rpx;
}
.select-options1 .title{
text-align: center;
line-height: 160rpx;
color: #333;
font-size: 30rpx;
font-weight: 650;
}
.select-options1 .ul{
max-height: calc(64vh - 316rpx);
overflow-y: scroll;
-webkit-overflow-scrolling: touch
}
.select-options1 .edit{
width: 216rpx;
height: 76rpx;
border-radius: 76rpx;
line-height: 76rpx;
text-align: center;
margin: 40rpx auto;
background: #f2f2f2;
font-size: 30rpx;
color: #666;
}
.select-options1 .box .li{
padding: 31rpx 40rpx;
line-height: 40rpx;
}
.select-options1 .edit image{
width: 32rpx;
height: 32rpx;
display: inline-block;
position: relative;
top: 3rpx;
margin-right: 4rpx;
float: none;
}
.select-options1 .black{
height: 36vh;
}
.send_btn{
font-size: 30rpx;
color: #1aad19
}
.function-box{
border-top: 2rpx solid #e8e8e8;
background: #f2f2f2;
padding:30rpx 20rpx 40rpx 20rpx;
display: flex;
align-items: center;
justify-content: flex-start;
height: 114px;
box-sizing: border-box;
}
.function-box .item{
display: inline-block;
margin-right: 48rpx;
text-align: center;
color: #999;
font-size: 28rpx;
letter-spacing: 1px;
}
.function-box .item .pic-box{
width: 110rpx;
height: 110rpx;
border:1px solid #e8e8e8;
background: #fff;
border-radius: 16rpx;
margin-bottom: 10rpx;
position: relative
}
.function-box .item image{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%)
}
.function-box .item .pic{
width: 54rpx;
height: 43rpx;
}
.function-box .item .video{
width: 54rpx;
height:54rpx;
}
.function-box .item .location{
width: 54rpx;
height:54rpx;
}
.back-to-index{
position: fixed;
right: 20rpx;
bottom: 140rpx;
background:#eb7b78;
border-radius: 50%;
width: 100rpx;
height: 100rpx;
z-index: 1000;
}
.back-to-index.movetop{
bottom: 380rpx;
}
.back-to-index image{
width: 56rpx;
height:46rpx;
position: absolute;
left:22rpx;
top: 27rpx;
}
.page-footer{
position: fixed;
left: 0;
bottom: 0;
width: 100vw;
}

View File

@ -181,7 +181,7 @@
</view>
</view>
<view class='footer'>
<view class='footer flexacenter'>
<view class='l'>
<image class="personalList-avatar" src="{{ item.avatar }}"></image>
<text class="personalList-name">{{ item.author }}</text>

View File

@ -41,6 +41,7 @@ Page({
pagevalue: null, // 推荐列表的 value
showTOTOP: false, // 返回顶部按钮状态
HeadSwiperHeight: 0, // 轮播图的最高度
isNewVersions: true,
},
@ -49,7 +50,7 @@ Page({
*/
timer: null,
onLoad: function (options) {
this.getLocationData()
// this.getLocationData()
wx.showLoading()
this.get_config()
@ -339,7 +340,6 @@ Page({
} else {
areaPopList.splice(indexOf, 1)
getLocationList[areaPopId].data[index].pitch = false
}
this.setData({
areaPopList,
@ -470,10 +470,6 @@ Page({
targetData
})
// this.getPictureHeight(targetData.image).then(res => {
// altitude += res.actual
// targetData['imageLocal'] = res.path
altitude += (150 / 180 * 337 * ratio)
let select = type == 'apartment' ? '#apartment' : '#general'
@ -553,14 +549,17 @@ Page({
// 轮播图的加载事件
loadHeadSwiper(e) {
if (!this.data.HeadSwiperHeight) return
let ratio = app.globalData.screen_data['windowWidth'] / 750
let originalWidth = e.detail.width;
let originalHeight = e.detail.height;
let height = originalHeight / originalWidth * 690 * ratio
this.setData({
HeadSwiperHeight: height
})
if (height > this.data.HeadSwiperHeight) {
this.setData({
HeadSwiperHeight: height
})
}
},

View File

@ -10,7 +10,7 @@
</view>
<block wx:if="{{ isNewVersions }}">
<header-nav inner-text="Some text" isIndexPage="index" position="{{ 'absolute' }}" bgcolor="linear-gradient(0deg, rgba(246, 246, 246, 1) 2%, rgba(98, 177, 255, 1) 333%)" topImage="{{ true }}"></header-nav>
<header-nav inner-text="Some text" isIndexPage="index" position="{{ 'absolute' }}" headerSrc="{{ miniProgram == 'gx' ? 'top-image1.png' : 'top-image.png' }}" bgcolor="linear-gradient(0deg, rgba(246, 246, 246, 1) 2%, rgba(98, 177, 255, 1) 333%)" topImage="{{ true }}"></header-nav>
</block>
<block wx:else>
<header-nav inner-text="Some text" isIndexPage="index">{{ topTitle }}</header-nav>
@ -26,7 +26,7 @@
</view>
</navigator>
<view class="headSwiper">
<swiper class='headSwiper-swiper' current="{{ swiperCurrent }}" autoplay="{{ true }}" circular interval="{{ 3000 }}" duration="{{ 1000 }}" bindchange="bindchangeSwiper" style="height: {{ HeadSwiperHeight + 5 }}px;">
<swiper class='headSwiper-swiper' current="{{ swiperCurrent }}" autoplay="{{ true }}" circular interval="{{ 3000 }}" duration="{{ 500 }}" bindanimationfinish="bindchangeSwiper" style="height: {{ HeadSwiperHeight + 5 }}px;">
<block wx:for="{{ banner }}" wx:key="index">
<swiper-item>
<image class="headSwiper-img" mode="widthFix" bindtap="handleSwiper" data-appid="{{ item.appid }}" data-url="{{ item.url }}" src="{{ item.imageurl }}" bindload="loadHeadSwiper"></image>
@ -106,8 +106,17 @@
<view class="head flexacenter shadow">
<!-- <view class="head-item flexcenter flex1 {{ index == areaIndex ? 'pitch' : '' }}" wx:for="{{ combination }}" wx:key="index" bindtap="setValue" data-key="areaIndex" data-value="{{ index }}"> -->
<view class="head-item flexflex flex1 {{ index == areaIndex ? 'pitch' : '' }}" wx:for="{{ combination }}" wx:key="index" bindtap="setValue" data-key="areaIndex" data-value="{{ index }}">
<view class="head-item-pitch head-item-pitch-left"></view>
<view class="head-item-pitch head-item-pitch-right"></view>
<block wx:if="{{ index == areaIndex }}">
<view class="head-item-pitch head-item-pitch-left">
<view class="semicircle"></view>
<view class="head-item-bj"></view>
</view>
<view class="head-item-pitch head-item-pitch-right">
<view class="semicircle"></view>
<view class="head-item-bj"></view>
</view>
</block>
<view class="head-name">{{ item.name }}</view>
<view class="head-underline" wx:if="{{ index == areaIndex }}"></view>
</view>
@ -119,13 +128,17 @@
当前共有 <view class="area-amount">{{ combination[areaIndex] && combination[areaIndex].num }}</view> 个房源
</view>
<view wx:if="{{ areaIndex == 0 }}" class="area-list area-school flexflex">
<view wx:if="{{ areaIndex == 0 || areaIndex == 1 }}" class="area-list area-school flexflex">
<view class="area-item flexcenter" bindtap="{{ areaIndex == 0 ? 'skipPersonList' : 'openAreaPop' }}" wx:for="{{ combination[areaIndex].where }}" wx:key="index" data-id="{{ item.id }}" data-index="{{ index }}" data-key="school">{{ item.name }}</view>
</view>
<!-- <view wx:if="{{ areaIndex == 0 }}" class="area-list area-school flexflex">
<view class="area-item flexcenter" bindtap="skipPersonList" wx:for="{{ combination[areaIndex].where }}" wx:key="index" data-id="{{ item.id }}" data-key="school">{{ item.name }}</view>
</view>
<view wx:if="{{ areaIndex == 1 }}" class="area-list area-district flexflex">
<view class="area-item flexcenter" bindtap="openAreaPop" data-index="{{ index }}" wx:for="{{ combination[areaIndex].where }}" wx:key="index" data-id="{{ item.id }}">{{ item.name }}</view>
</view>
</view> -->
<block wx:if="{{ areaIndex == 2 }}">
<view class="area-list area-type flexflex" wx:for="{{ combination[areaIndex].where }}" wx:for-item="ite" wx:key="index">
@ -336,7 +349,7 @@
</view>
<!-- 区域找房的 弹窗 -->
<page-container show="{{ areaPopState }}" z-index="{{ 1001 }}">
<page-container show="{{ areaPopState }}" z-index="{{ 1001 }}" bind:clickoverlay="openAreaPop">
<view class="area-pop-header" style="height: {{ screen_data.totalTopHeight }}px;">
<view style="height:{{screen_data.statusBarHeight}}px"></view>
<view class="flexacenter" style="height:{{screen_data.titleBarHeight}}px">
@ -390,7 +403,6 @@
<!-- 公寓 -->
<template name="apartment">
<navigator url="/pages/irentDetail/irentDetail?uniqid={{ item.id }}" hover-class="none">
<!-- <navigator url="/pages/irentDetail/irentDetail?uniqid=jKPD401ujqHf" hover-class="none"> -->
<view class="pinterest-list-item apartment">
<view class="apartment-top flexcenter">
<image class="apartment-icon" mode="widthFix" src="/img/apartment-icon.png"></image>
@ -423,10 +435,10 @@
<template name="general">
<navigator url="/pages/show/show?uniqid={{ item.uniqid }}" hover-class="none">
<view class="pinterest-list-item general">
<view class="top-right-corner flexcenter" wx:if="{{ item.gptype }}">{{ item.gptype }}</view>
<view class="top-right-corner flexcenter" wx:if="{{ item.intermediarytext }}">{{ item.intermediarytext }}</view>
<image class="general-img" mode="widthFix" src="{{ item.imageLocal || item.image }}"></image>
<view class="general-name flexacenter" wx:if="{{ item.title }}">
<view class="general-tag flexcenter" wx:if="{{ item.leaseterm }}">{{ item.leaseterm }}</view>
<view class="general-tag flexcenter" wx:if="{{ item.gptype }}">{{ item.gptype }}</view>
{{ item.title }}
</view>

View File

@ -332,7 +332,7 @@ page {
/* -moz-box-shadow: 0 -12rpx 12rpx rgba(0, 0, 0, 0.0784313725490196);
-webkit-box-shadow: 0 -12rpx 12rpx rgba(0, 0, 0, 0.0784313725490196);
box-shadow: 0 -12rpx 12rpx rgba(0, 0, 0, 0.0784313725490196) */
box-shadow: 0 -8rpx 12rpx rgba(0, 0, 0, 0.0784313725490196);
/* box-shadow: 0 -8rpx 12rpx rgba(0, 0, 0, 0.0784313725490196); */
padding-top: 20rpx;
}
@ -352,34 +352,91 @@ page {
.area-selection .pitch .head-item-pitch {
display: block;
width: 25rpx;
height: 25rpx;
position: absolute;
/* bottom: 0; */
/* left: 0; */
background-color: rgb(98, 177, 255);
border: none;
}
.area-selection .head .head-item-pitch::after {
/* .area-selection .head .head-item-pitch::after {
content: "";
width: 24rpx;
height: 24rpx;
background-color: rgb(98, 177, 255);
position: absolute;
}
padding: 0;
margin: 0;
} */
.area-selection .head .head-item-pitch-left {
left: -24rpx;
/* left: -24rpx; */
left: -25rpx;
}
.area-selection .head .head-item-pitch-right {
right: -24rpx;
right: -25rpx;
}
.area-selection .head .head-item-pitch .head-item-bj {
background-color: #fff;
width: 90%;
height: 90%;
position: absolute;
bottom: 0;
border: none;
}
.area-selection .head .head-item-pitch-left .head-item-bj {
right: 0;
}
.area-selection .head .head-item-pitch-right .head-item-bj {
left: 0;
}
.area-selection .head .head-item-pitch .semicircle {
position: absolute;
z-index: 11;
width: 100%;
height: 100%;
background-color: rgb(98, 177, 255);
/* border: 1rpx solid rgb(98, 177, 255); */
box-sizing: border-box;
bottom: 0;
}
.area-selection .head .head-item-pitch-left::after {
.area-selection .head .head-item-pitch-left .semicircle {
right: 0rpx;
border-radius: 0 0 24rpx 0;
/* border-width: 1rpx 0rpx 0rpx 1rpx;
border-color: rgb(98, 177, 255) #fff #fff rgb(98, 177, 255); */
}
.area-selection .head .head-item-pitch-right::after {
.area-selection .head .head-item-pitch-right .semicircle {
left: 0rpx;
border-radius: 0 0 0 24rpx;
/* border-width: 1rpx 1rpx 0rpx 0rpx; */
/* left: 0;
border-color: rgb(98, 177, 255) rgb(98, 177, 255) #fff #fff; */
}
/* .area-selection .head .head-item-pitch-left::after {
border-radius: 0 0 24rpx 0;
border: 1rpx solid rgb(98, 177, 255);
box-sizing: border-box;
} */
/* .area-selection .head .head-item-pitch-right::after {
border-radius: 0 0 0 24rpx;
border: 1rpx solid rgb(98, 177, 255);
box-sizing: border-box;
} */
/* .area-selection .head .pitch::after,
.area-selection .head .pitch::before {
content: "";
@ -811,7 +868,7 @@ page {
.pinterest-list .pinterest-list-item.apartment .apartment-introduce {
color: #aaaaaa;
font-size: 21rpx;
font-size: 22rpx;
padding: 0 15rpx;
}
@ -840,10 +897,14 @@ page {
font-size: 21rpx;
color: #555555;
justify-content: flex-end;
font-family: 'Arial-Black';
/* white-space: nowrap; */
}
.pinterest-list .pinterest-list-item.apartment .apartment-price-unit {
font-weight: 900;
font-family: 'Arial-Black', 'Arial Black', sans-serif;
}
.pinterest-list .pinterest-list-item.apartment .apartment-price-number {
@ -851,6 +912,8 @@ page {
color: #f95d5d;
font-weight: 900;
margin: 0 10rpx;
font-family: 'Arial-Black', 'Arial Black', sans-serif;
}
.pinterest-list .pinterest-list-item.apartment .apartment-price-more {
@ -903,11 +966,11 @@ page {
border: 1rpx solid rgba(235, 235, 235, 1);
border-radius: 8rpx;
height: 36rpx;
font-size: 21rpx;
font-size: 23rpx;
color: #555555;
display: inline-flex;
margin-right: 15rpx;
padding: 0 15rpx;
padding: 0 10rpx;
}
.pinterest-list .pinterest-list-item.general .label-list {
@ -936,7 +999,7 @@ page {
}
.pinterest-list .pinterest-list-item.general .general-cost {
font-size: 21rpx;
font-size: 22rpx;
color: #555555;
padding: 0 15rpx;
margin-top: 15rpx;
@ -945,6 +1008,7 @@ page {
.pinterest-list .pinterest-list-item.general .general-cost .general-unit {
font-weight: 900;
color: #000000;
font-family: 'Arial-Black', 'Arial Black', sans-serif;
}
.pinterest-list .pinterest-list-item.general .general-cost .general-number {
@ -952,6 +1016,9 @@ page {
color: #F95D5D;
font-weight: 900;
margin: 0 10rpx;
/* font-family: 'Arial-Black'; */
font-family: 'Arial-Black', 'Arial Black', sans-serif;
}
.pinterest-list .pinterest-list-item .color-scheme {
@ -975,6 +1042,10 @@ page {
background-color: #fff;
}
.headSwiper-swiper {
position: relative;
}
.headSwiper {
width: 690rpx;
margin: 32rpx auto 30rpx;

View File

@ -3,7 +3,7 @@
<view class="container">
<to-top wx:if="{{ showTOTOP }}"></to-top>
<!-- <header-nav inner-text="Some text">寄托港校租房</header-nav> -->
<header-nav inner-text="Some text">{{ topTitle }}</header-nav>
<header-nav inner-text="Some text">{{ isNewVersions? '香港房源' : topTitle }}</header-nav>
<template is="irenCouponReceive" data="{{ irentCouponBig:irentCouponBig,hideCoupon:hideCoupon,irenCouponReceive:irenCouponReceive }}"></template>
<view class='irent-list-box'>
<head-swiper attachment="{{ imgUrls }}"></head-swiper>
@ -153,4 +153,34 @@
</view>
</view> -->
<announcement-popup interface="apartmentlist" init="{{ initState }}"></announcement-popup>
<page-container show="{{ true }}" z-index="{{ 2000 }}" class="page-container" position="{{ 'top' }}">
<view class="page-header flexacenter" style="height: {{ screen_data.totalTopHeight}}px;">
<view class="page-statusBar" style="height: {{ screen_data.statusBarHeight }}px;"></view>
<view class="page-titlebar flexacenter" style="height: {{ screen_data.titleBarHeight}}px;">
<view class="page-header-side flex1 flexacenter">
<image class="page-header-back" src="/img/Back.svg"></image>
</view>
<view class="page-header-centre">品牌公寓</view>
<view class="page-header-side flex1"></view>
</view>
</view>
<view class="page-action-bar flexacenter">
<view class="page-action-item flex1 flexcenter" wx:for="{{ 4 }}" wx:key="index">
品牌
<view class="page-action-circle flexcenter pitch" wx:if="{{ index == 1 }}">
<image class="page-action-circle-icon" mode="widthFix" src="/img/arrow-White.svg"></image>
</view>
<view class="page-action-circle flexcenter" wx:else>
<image class="page-action-circle-icon" mode="widthFix" src="/img/arrow-gray.png"></image>
</view>
</view>
</view>
</page-container>
</view>

View File

@ -474,4 +474,61 @@
background-color: rgb(231, 251, 247);
border: none;
color: rgb(80, 227, 194);
}
.page-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start
}
.page-container .page-header {
font-size: 32rpx;
flex-direction: column;
color: #000000;
font-weight: 650;
}
.page-container .page-header .page-header-back {
width: 12px;
height: 18px;
}
.page-container .page-header .page-statusBar {
background-color: #fff;
width: 100%;
}
.page-container .page-header .page-titlebar {
width: 100%;
}
.page-container .page-header .page-header-side {
padding-left: 32rpx;
}
.page-container .page-action-bar {
color: rgb(127, 127, 127);
font-size: 24rpx;
height: 96rpx;
border-bottom: 1rpx solid #ebebeb;
}
.page-container .page-action-bar .page-action-circle.pitch {
background-color: #000;
transform: rotate(180deg);
}
.page-container .page-action-bar .page-action-circle {
background-color: #ebebeb;
width: 24rpx;
height: 24rpx;
border-radius: 50%;
margin-left: 15rpx;
}
.page-container .page-action-bar .page-action-circle .page-action-circle-icon {
width: 12rpx;
height: 12rpx;
}

View File

@ -1,91 +1,66 @@
// pages/login/index.js
var app = getApp()
// var config = {};
// var id = 0;
// var timer = null;
var __ = require('../../utils/miucms.js');
Page({
/**
* 页面的初始数据
*/
data: {
canIUseGetUserProfile:false
},
/**
* 页面的初始数据
*/
data: {
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
canIUseGetUserProfile:app.globalData.canIUseGetUserProfile
})
},
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
},
/**
* 用户点击右上角分享
*/
// onShareAppMessage: function () {
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
// },
onGotUserInfo: function (e) {
var initial_url = 'https://api.gter.net/XiaoappHK:Index.init.json';
console.log(e.detail.errMsg)
console.log(e.detail.userInfo)
console.log(e.detail.rawData)
// var url = '../..' + app.globalData.source.substr(5);
// console.log(url)
// wx.redirectTo({
// url: url
// });
if (e.detail.errMsg == 'getUserInfo:ok') {
//用户同意授权
console.log('用户同意授权')
app.globalData.is_login = true;
__.initial(initial_url, app)
wx.navigateBack({ changed: true });
}
},
})

View File

@ -1,7 +0,0 @@
{
"navigationBarTitleText": " ",
"enablePullDownRefresh": false,
"usingComponents": {
"header-nav": "../../template/headerNav/index"
}
}

View File

@ -1,12 +1,2 @@
<view class="cantainer">
<header-nav inner-text="Some text">登录</header-nav>
<!-- <button style='margin-top:50px' open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGotUserInfo">获取用户信息</button> -->
<button style='margin-top:50px' wx:if="{{canIUseGetUserProfile}}" class="btn" bindtap="onGotUserInfo">
获取用户信息
</button>
<button style='margin-top:50px' wx:else class="btn" open-type="getUserInfo" bindgetuserinfo="onGotUserInfo">
获取用户信息
</button>
</view>
<!--pages/login/index.wxml-->
<text>pages/login/index.wxml</text>

View File

@ -1 +0,0 @@
/* pages/login/index.wxss */

View File

@ -14,6 +14,16 @@ Component({
*/
data: {
isNewVersions: true,
tabList: [{
name: "个人房源",
value: "personList",
}, {
name: "中介房源",
value: "quarantineLists"
}, {
name: "学生公寓",
value: "irentList"
}]
},
/**

View File

@ -1,5 +1,5 @@
<view class="tab-list flexacenter">
<view class="tab-item flexcenter {{ index == 1 ? 'pitch' : '' }}" wx:for="{{ 3 }}" wx:key="index">个人房源</view>
<view class="tab-list flexacenter" wx:if="{{ false }}">
<view class="tab-item flexcenter {{ page == item.value ? 'pitch' : '' }}" wx:for="{{ tabList }}" wx:key="index" bindtap="toPage" data-page="{{ item.value }}">{{ item.name }}</view>
</view>
<view class='irent-tab-box tab-box'>

View File

@ -124,5 +124,4 @@
font-weight: 650;
background-color: rgb(98, 177, 255);
border-radius: 132rpx;
}

View File

@ -1,3 +1,5 @@
<import src="../common/common.wxml" />
<view class="container" wx:if="{{ !isloding }}">
<to-top wx:if="{{ showTOTOP }}"></to-top>
<header-nav haveSearch="true">{{ topTitle }}</header-nav>
@ -49,20 +51,29 @@
<!-- 列表数据 -->
<view class='house-list' wx:if="{{ isNewVersions }}">
<block wx:for="{{ data }}" wx:key="index">
<navigator wx:if="{{ !item.isad }}" url="/pages/show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
<house-item item="{{ item }}"></house-item>
</navigator>
<ads isList="true" isrestofworld="true" wx:if="{{ item.isad && !item.banner }}" data-index="{{ index }}" bindclickAD="clickAD" bindcloseAD="closeAD" item="{{ item }}"></ads>
<template is="personalList" wx:if="{{ !item.isad }}" data="{{ item:item }}" />
<ads isList="true" wx:if="{{ item.isad && !item.banner }}" data-index="{{ index }}" bindclickAD="clickAD" bindcloseAD="closeAD" item="{{ item }}"></ads>
<banner-ad wx:if="{{ item.isad && item.banner }}" index="{{ index }}" item="{{ item }}"></banner-ad>
<!-- <list-item item="{{ item }}" listTab="{{ listTab }}"></list-item> -->
</block>
<block wx:if="{{ data.length==0 && !loading }}">
<block wx:if="{{ lists.length==0 && !loading }}">
<view class='nocontent'>
<image src="../../img/file.png" class='file'></image>
暂无数据
</view>
</block>
<!-- <block wx:for="{{ data }}" wx:key="index">
<navigator wx:if="{{ !item.isad }}" url="/pages/show/show?tid={{ item.tid }}&uniqid={{ item.uniqid }}">
<house-item item="{{ item }}"></house-item>
</navigator>
<ads isList="true" isrestofworld="true" wx:if="{{ item.isad && !item.banner }}" data-index="{{ index }}" bindclickAD="clickAD" bindcloseAD="closeAD" item="{{ item }}"></ads>
<banner-ad wx:if="{{ item.isad && item.banner }}" index="{{ index }}" item="{{ item }}"></banner-ad>
</block>
<block wx:if="{{ data.length==0 && !loading }}">
<view class='nocontent'>
<image src="../../img/file.png" class='file'></image>
暂无数据
</view>
</block> -->
</view>
<view class='house-list' wx:else>

View File

@ -155,4 +155,162 @@
height: 46rpx;
display: block;
margin: 0 auto 20rpx;
}
.personalList .region {
height: 44rpx;
padding: 0 14rpx;
border-radius: 18rpx;
background-color: #f2f2f2;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
}
.personalList .tips {
margin-top: 28rpx;
color: #555555;
font-size: 22rpx;
}
.personalList .footer {
color: #343434;
}
.personalList .money {
margin-top: 32rpx;
font-size: 26rpx;
line-height: 26rpx;
}
.personalList {
border-bottom: 15rpx solid #eee;
}
.personalList .footer {
height: 90rpx;
line-height: 90rpx;
border-top: 1rpx dotted #d0d0d0;
padding-left: 30rpx;
padding-right: 30rpx;
margin-top: 40rpx;
}
.personalList .submit-form {
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
padding-top: 38rpx;
}
.personalList .personalList-top {
padding: 0 30rpx;
}
.personalList .personalList-avatar {
width: 34rpx;
height: 34rpx;
border-radius: 50rpx;
}
.personalList .l {
display: flex;
align-items: center;
height: 90rpx;
line-height: 90rpx;
}
.personalList .personalList-name {
font-size: 24rpx;
padding: 0 24rpx 0 20rpx;
}
.personalList .agent {
color: #343434;
background-color: #fff;
border: 2rpx solid #d3d3d3;
display: flex;
font-size: 20rpx;
align-items: center;
line-height: 30rpx;
height: 30rpx;
padding: 0 10rpx;
}
.personalList .footer-right {
height: 36rpx;
line-height: 36rpx;
display: flex;
align-items: center;
padding: 0 18rpx;
border-radius: 8rpx;
background-color: #e8f4ff;
color: #5eb1ff;
}
.personalList .housingInfo {
display: flex;
align-items: center;
justify-content: space-between;
}
.personalList .housingSite {
flex: 1;
}
.personalList .housingMedia {
width: 200rpx;
height: 150rpx;
margin-left: 10rpx;
position: relative;
}
.personalList .housingMedia image {
width: 200rpx;
height: 150rpx;
border-radius: 15rpx;
}
.personalList .orientation {
width: 30rpx;
height: 30rpx;
margin-right: 10rpx;
}
.personalList .tips .i:not(:last-child):after {
background-color: #555555;
}
.personalList .title {
font-weight: bold;
line-height: 38rpx;
}
.personalList .housingVideo {
width: 200rpx;
height: 150rpx;
margin-left: 10rpx;
border-radius: 15rpx;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.personalList .housingVideo .playBtn-bj {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: 200rpx;
height: 150rpx;
background: rgba(0,0,0,0.5);
}
.personalList .housingVideo .playBtn {
width: 46rpx;
height: 46rpx;
border-radius: 50rpx;
}

View File

@ -825,16 +825,11 @@ map .clickmap {
}
/* .certification .HResource-box .HResource-detail-tier:nth-child(-n+2) { */
/* .certification .HResource-box .HResource-detail-tier:nth-last-child(-n+2) { */
/* .certification .HResource-box .HResource-detail-tier:last-child(even) { */
/* .certification .HResource-box .HResource-detail-tier:nth-of-type(odd):nth-last-child(-n+2) { */
/* border-bottom: 2rpx dotted #d7d7d7; */
.certification .HResource-box .HResource-detail-tier:nth-last-child(2):nth-of-type(odd) {
border-bottom: none;
}
/* border-bottom: none; */
/* } */
.certification .HResource-box .HResource-detail-tier:nth-last-child(-n+2) {
.certification .HResource-box .HResource-detail-tier:last-child {
border-bottom: none;
}
@ -932,7 +927,6 @@ map .clickmap {
.certification .media-item {
display: inline-block;
/* width: 204rpx; */
height: 150rpx;
margin-right: 15rpx;
border-radius: 15rpx;
@ -990,7 +984,6 @@ map .clickmap {
align-items: center;
font-size: 27rpx;
color: #000;
/* margin-bottom: 33rpx; */
}
.certification .location-box .location {

View File

@ -1,183 +1,66 @@
// pages/textarea/textarea.js
Page({
/**
* 页面的初始数据
*/
data: {
maxlength:-1,
content:null,
name:'questions',
title:'',
placeholder:'',
index:null,
},
distanceObj: {},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let that = this;
let title_box = {
subject:'填写标题',
introduction:'填写个人情况介绍',
message:'填写更多介绍',
questions:'向求租者提问',
address:'填写地址',
aroundSchool:'填写距离'
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
if (options.name =='introduction'){
this.data.placeholder = '介绍一下房东/合租人/室友的情况。可以写下作息习惯、性格、是否有养宠物等'
} else if (options.name =='message'){
this.data.placeholder = '可以填写如需签约至多久,和谁签约,如何交房租,房子是否断隔房、房租以外的费用项支付规则、户型家具、生活配套、地理位置(距离学校多远)等'
}
if(options.placeholder){
this.data.placeholder = options.placeholder;
}
wx.setNavigationBarTitle({
title:title_box[options.name],
})
this.setData({
name: options.name,
title: title_box[options.name],
placeholder: this.data.placeholder
})
if (options.name =='subject'){
this.setData({
maxlength:80
})
}
wx.getStorage({
key: that.data.name,
success: function(res) {
if (options.name == 'questions' && res.data.length == 0){
that.setData({
content:['']
})
return false
}
if (options.name =='aroundSchool'){
that.distanceObj = res.data;
that.setData({
content: res.data.distance,
})
return false
}
that.setData({
content: res.data
})
},
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
cle:function(){
wx.navigateBack({
delta: 1, // 回退前 delta(默认为1) 页面
})
},
input: function (e) {
let that = this;
if (this.data.name=='questions'){
var i = e.currentTarget.dataset.i;
this.data.content[i] = e.detail.value;
this.setData({
content: that.data.content
})
}else{
this.setData({
content: e.detail.value
})
}
},
del_item:function(e){
var i = e.currentTarget.dataset.i;
var that = this;
that.data.content.splice(i,1);
this.setData({
content: that.data.content
})
},
add_item:function(){
var that = this;
this.data.content.push('');
this.setData({
content: that.data.content
})
},
submit:function(){
let that = this;
if (this.data.name =='aroundSchool'){
this.distanceObj.distance = this.data.content;
wx.setStorage({
key: that.data.name,
data: that.distanceObj,
success: function (res) {
wx.navigateBack({
delta: 1, // 回退前 delta(默认为1) 页面
})
}
})
return false
}
wx.setStorage({
key: that.data.name,
data: that.data.content,
success:function(res){
console.log(res)
wx.navigateBack({
delta: 1, // 回退前 delta(默认为1) 页面
})
}
})
}
})

View File

@ -1,7 +0,0 @@
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"usingComponents": {
"header-nav": "../../template/headerNav/index"
}
}

View File

@ -1,41 +1,2 @@
<view class="container">
<header-nav inner-text="Some text">{{ title }}</header-nav>
<!--填写长内容 -->
<view wx:if="{{name!='questions'}}" class="text-box-container">
<view class='text-box'>
<textarea maxlength='{{ maxlength }}' cursor-spacing="100" value='{{ content }}' bindinput='input' placeholder='{{ placeholder || ("请" + title) }}' placeholder-class='placeholder' show-confirm-bar="{{ false }}"></textarea>
<view class='restletter' wx:if="{{ maxlength > 0}}">{{ content.length }}/80</view>
</view>
<view class='button-box'>
<view class='cle' bindtap="cle">取消</view>
<view class='submit' bindtap='submit'>完成</view>
</view>
</view>
<!-- 设置问题 -->
<view wx:if="{{name=='questions'}}" class='questions-box'>
<view class='question-list'>
<view class='li' wx:for="{{ content }}">
<view class='header'>
<view class='title'>提问{{ index + 1 }}</view>
<view class='btn' data-i="{{ index }}" bindtap='del_item'>
<image src='../../img/del.png' class='del'></image>
</view>
</view>
<view class='content-box'>
<textarea maxlength='-1' cursor-spacing="30" value='{{ item }}' bindinput='input' data-i="{{ index }}" show-confirm-bar="{{ false }}"></textarea>
</view>
</view>
</view>
<view class='add-question' bindtap='add_item'>
<image src='../../img/plus-o.png' class='plus'></image>添加提问
</view>
<view class='button-box'>
<view class='cle' bindtap="cle questions-cle">取消</view>
<view class='submit' bindtap='submit'>完成</view>
</view>
</view>
</view>
<!--pages/textarea/textarea.wxml-->
<text>pages/textarea/textarea.wxml</text>

View File

@ -1,134 +0,0 @@
.text-box-container{
background: #eeeff3;
min-height: 100vh;
padding:20rpx 0;
}
.text-box{
position: relative;
}
textarea{
width: 100vw;
height: 460rpx;
background: #fff;
padding: 48rpx 32rpx;
box-sizing: border-box;
font-size: 28rpx;
}
.restletter{
position: absolute;
right: 20rpx;
bottom: 20rpx;
color: #ccc;
}
.button-box{
padding: 36rpx 0 ;
text-align: center
}
.button-box view{
display: inline-flex;
width: 240rpx;
height: 72rpx;
justify-content: center;
align-items: center;
box-sizing: border-box;
font-size: 32rpx;
border-radius: 10rpx;
}
.button-box .cle{
color: #333;
margin-right: 28rpx;
border:1px solid #e8e8e8;
background: #fff;
}
.questions-box .button-box .cle{
background: #fff;
}
.button-box .submit{
background: #62b1fe;
border:1px solid #62b1fe;
color: #fff;
}
.questions-box .button-box .submit{
background: #bc312e;
border-color: #bc312e
}
.questions-box{
padding-bottom: 100rpx;
}
.questions-box .button-box{
position: fixed;
bottom: 30rpx;
width: 100%;
padding: 0;
}
.question-list{
padding:0rpx 36rpx 30rpx;
}
.question-list .li{
margin: 30rpx 0;
border:1px solid #e8e8e8;
border-radius: 5px;
}
.question-list .header{
font-size: 0;
border-bottom: 1px solid #e8e8e8;
height: 100rpx;
line-height: 100rpx;
}
.question-list .title{
display: inline-block;
font-size: 28rpx;
height: 100rpx;
vertical-align: top;
}
.question-list .title:before{
content:'';
width: 8rpx;
height: 32rpx;
background: #ffd14f;
display: inline-block;
margin:0 20rpx;
vertical-align: middle;
}
.question-list .btn{
width: 120rpx;
float: right;
border-left: 1px solid #e8e8e8;
text-align: center;
line-height: 100rpx;
}
.question-list .btn .del{
width: 32rpx;
height: 34rpx;
display: inline-block;
margin: 0 auto;
position: relative;
top: 14rpx;
}
.question-list .content-box{
padding: 24rpx 20rpx;
font-size: 28rpx;
color: #333;
}
.question-list textarea{
width: 100%;
height: 180rpx;
padding: 0
}
.add-question{
margin: 0 36rpx;
border:1px solid #e8e8e8;
border-radius: 5px;
line-height: 32rpx;
text-align: center;
padding: 34rpx 0;
margin-bottom: 100px;
}
.add-question .plus{
width: 32rpx;
height: 32rpx;
vertical-align: top;
margin-right: 10rpx;
}

View File

@ -42,7 +42,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.31.1",
"appid": "wx9c68fbf7886ea9c4",
"appid": "wxcf0a799771cf2ae6",
"projectname": "%E5%AF%84%E6%89%98%E7%A7%9F%E6%88%BF",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},

View File

@ -18,6 +18,7 @@ Component({
bgcolor: String,
position: String, // css 定位方式
topImage: Boolean,
headerSrc: String,
},
/**

View File

@ -17,7 +17,9 @@
</view>
<view class="NavBar-left NavBar-left-more" style="width:{{screen_data.titleWidth}}px;width:{{!notShowIndex && haveSearch ? 108 :88}}px;flex: {{ topImage ? 1 : 'none' }};">
<block wx:if="{{ topImage }}">
<image class="top-image" mode="widthFix" src="/img/top-image.png"></image>
<image class="top-image" mode="widthFix" src="/img/{{ headerSrc }}"></image>
<!-- <image class="top-image" mode="widthFix" src="/img/top-image.png"></image> -->
<!-- <image class="top-image" mode="widthFix" src="/img/top-image1.png"></image> -->
</block>
<block wx:if="{{ !isIndexPage }}">
<view bindtap="navigategoBack" class='Btn'>

View File

@ -385,7 +385,8 @@ function getTopTitle(that, app) {
let topTitle = app.globalData.topTitle
if (topTitle) {
that.setData({
topTitle: app.globalData.topTitle
topTitle: app.globalData.topTitle,
miniProgram: app.globalData.miniProgram,
})
} else {
setTimeout(() => {