作者 xuqiang

提交

... ... @@ -25,7 +25,7 @@ Vue.prototype.$request=function(url,data='',type = 1){
}
if(type == 3){
uni.showLoading({
title:'发布中...'
title:'发布中'
})
}
if(type == 2){
... ...
... ... @@ -82,7 +82,7 @@
</view>
</view>
<!-- 底部输入栏 -->
<view class="input-box" :class="popupLayerClass" @touchmove.stop.prevent="discard">
<view class="input-box" :style="{bottom: keyboardHeight+'rpx'}" :class="popupLayerClass" @touchmove.stop.prevent="discard">
<!-- H5下不能录音,输入栏布局改动一下 -->
<!-- #ifndef H5 -->
<!-- <view class="voice">
... ... @@ -101,9 +101,9 @@
<view class="box">
<textarea auto-height="true" v-model="textMsg" @focus="textareaFocus" />
</view>
<!-- <view class="em" @tap="chooseEmoji">
<view class="em" @tap="chooseEmoji">
<view class="icon biaoqing"></view>
</view> -->
</view>
</view>
</view>
<!-- #ifndef H5 -->
... ... @@ -152,6 +152,7 @@
export default {
data() {
return {
keyboardHeight:-2,
//TIM变量
conversationActive:null,
toUserId:'',
... ... @@ -228,6 +229,15 @@
},
},
onLoad(option) {
//监听键盘高度变化
uni.onKeyboardHeightChange(res => {
console.log('键盘高度变化了',res.height)
if(res.height == 0){
this.keyboardHeight = -2
}else{
this.keyboardHeight = 20
}
})
if(!this.isLogin){
this.loginTim()
}else{
... ...
<template>
<view>
<map id="around-food-map" @regionchange="regionchange" :style="{width: '100%',height:mapHeight + 'px'}" :scale="scale" :layer-style="'d5f046428dcc29769f0256117754064b'" @markertap="markertap" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
<map id="around-food-map" @regionchange="regionchange" :style="{width: '100%',height:mapHeight + 'px'}" :scale="scale" :layer-style="layerStyle" @markertap="markertap" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
<!-- 查询地址区域 -->
<view class="searchWrap" :style="{top:statusBarHeight + 'rpx'}">
<view class="searchTab">
... ... @@ -268,7 +268,8 @@
showSearchLand:false,//展示查询地主列表弹框
addressList:[],
becomeLandImg:'',//成为地主弹框图片
showLandInfo:false
showLandInfo:false,
layerStyle:'d5f046428dcc29769f0256117754064b'
}
},
computed:{
... ...
... ... @@ -12,7 +12,7 @@
</view>
<view class="recItem" >
<view class="recVal">
<input type="number" v-model="custNum" placeholder="自定义" style="width: 50%;" placeholder-style="font-size:28rpx;color:#4a8b94;"/>
<input type="number" v-model="custNum" placeholder="自定义" style="width: 50%;text-align: center;" placeholder-style="font-size:28rpx;color:#4a8b94;"/>
</view>
<view class="recPrice" style="font-weight: 600;" @click="custom">
立即充值
... ...
... ... @@ -158,6 +158,7 @@ page{
width: 100%;
min-height: 70upx;
margin-top: 15upx;
margin-bottom: 15upx;
margin-right: 20upx;
.voice-mode{
width: calc(100% - 2upx);
... ...