|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <navigation-custom :config="config" :scrollTop="scrollTopNav" @customConduct="customConduct" :scrollMaxHeight="scrollMaxHeight" />
|
|
|
+ <!-- <navigation-custom :config="config" :scrollTop="scrollTopNav" @customConduct="customConduct" :scrollMaxHeight="scrollMaxHeight" /> -->
|
|
|
<scroll-view id="scrollview" class='chat-box' :style="{height: style.contentViewHeight + 'px'}" scroll-y="true"
|
|
|
:scroll-with-animation="false" :scroll-top="scrollTop" @scrolltoupper="lower()">
|
|
|
<view class="tips-box">
|
|
|
@@ -35,14 +35,17 @@
|
|
|
|
|
|
</scroll-view>
|
|
|
<view class="send-box" :style="{ 'padding-bottom' : isShowKeyBoard + 'px'}">
|
|
|
- <input type="text" class="enter-box" v-model="inputInfo" adjust-position='{{true}}' >
|
|
|
+ <input type="text" class="enter-box" v-model="inputInfo" :adjust-position="true"
|
|
|
+ @focus="getInputFocus" @blur="getInputBlur" />
|
|
|
<button type="primary" class="submit-message" @click="sendInputInfo()">发送</button>
|
|
|
</view>
|
|
|
+ <drag-button :isDock="true" :existTabBar="true" @btnClick="goUserSelf" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import navigationCustom from "../../components/struggler-navigationCustom/navigation-custom";
|
|
|
+ // import navigationCustom from "../../components/struggler-navigationCustom/navigation-custom";
|
|
|
+ import dragButton from "../../components/drag-button/drag-button.vue";
|
|
|
var md5 = require("../../common/md5.js");
|
|
|
var page = 1;
|
|
|
export default {
|
|
|
@@ -81,7 +84,8 @@
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- navigationCustom
|
|
|
+ //navigationCustom
|
|
|
+ dragButton
|
|
|
},
|
|
|
onPageScroll(e) {
|
|
|
this.scrollTopNav = e.scrollTop;
|
|
|
@@ -144,7 +148,7 @@
|
|
|
this.nowHeight = height + 'px';
|
|
|
getApp().globalData.glbalHeight = this.nowHeight;
|
|
|
this.style.pageHeight = height;
|
|
|
- this.style.contentViewHeight = height - uni.getSystemInfoSync().screenWidth / 750 * (100) - 70; //像素 因为给出的是像素高度 然后我们用的是upx 所以换算一下
|
|
|
+ this.style.contentViewHeight = height - uni.getSystemInfoSync().screenWidth / 750 * (100); //像素 因为给出的是像素高度 然后我们用的是upx 所以换算一下
|
|
|
},
|
|
|
scrollToBottom() {
|
|
|
let that = this;
|
|
|
@@ -200,7 +204,7 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- customConduct() {
|
|
|
+ goUserSelf() {
|
|
|
uni.navigateTo({
|
|
|
url: '../selfInfo/selfInfo'
|
|
|
})
|
|
|
@@ -249,12 +253,12 @@
|
|
|
console.log('noData')
|
|
|
}
|
|
|
},
|
|
|
- // getInputFocus(e){
|
|
|
- // this.isShowKeyBoard = e.detail.height
|
|
|
- // },
|
|
|
- // getInputBlur(){
|
|
|
- // this.isShowKeyBoard = 0
|
|
|
- // },
|
|
|
+ getInputFocus(e){
|
|
|
+ //this.isShowKeyBoard = e.detail.height
|
|
|
+ },
|
|
|
+ getInputBlur(){
|
|
|
+ //this.isShowKeyBoard = 0
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
|
@@ -267,7 +271,7 @@
|
|
|
.chat-box {
|
|
|
background: #f4f5f7;
|
|
|
padding-top: 3%;
|
|
|
- padding-bottom: 100upx;
|
|
|
+ /* padding-bottom: 100upx; */
|
|
|
}
|
|
|
|
|
|
.tips-box {
|
|
|
@@ -373,4 +377,27 @@
|
|
|
font-size: 36upx;
|
|
|
color: #8f8f94;
|
|
|
}
|
|
|
+
|
|
|
+ .uniFab{
|
|
|
+ width:98px;
|
|
|
+ height:36px;
|
|
|
+ background:rgba(231,247,236,1);
|
|
|
+ box-shadow:-6px 5px 74px 0px rgba(60,188,99,0.08);
|
|
|
+ border-radius:100px 0px 0px 100px;
|
|
|
+ right: 0upx;
|
|
|
+ position: fixed;
|
|
|
+ z-index: 9999;
|
|
|
+ top: 50%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .uniFab text{
|
|
|
+ width:64px;
|
|
|
+ font-size:16px;
|
|
|
+ font-family:PingFangSC;
|
|
|
+ font-weight:600;
|
|
|
+ color:rgba(60,188,99,1);
|
|
|
+ text-shadow:0px 1px 2px rgba(12,39,20,0.2);
|
|
|
+ }
|
|
|
</style>
|