|
|
@@ -38,7 +38,7 @@
|
|
|
<input type="text" class="enter-box" v-model="inputInfo" :adjust-position="true"
|
|
|
@confirm='sendInputInfo' />
|
|
|
<!-- <button type="primary" class="submit-message" @click="sendInputInfo()">发送</button> -->
|
|
|
- <image src="/static/icon/setIcon.png" @click.stop='open' ></image>
|
|
|
+ <image src="/static/setIcon.png" @click.stop='openModal()' ></image>
|
|
|
</view>
|
|
|
<!-- <drag-button :isDock="true" :existTabBar="true" @btnClick="goUserSelf" /> -->
|
|
|
<uni-popup ref="popup" type="bottom">
|
|
|
@@ -58,14 +58,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- // import navigationCustom from "../../components/struggler-navigationCustom/navigation-custom";
|
|
|
- //import dragButton from "../../components/drag-button/drag-button.vue";
|
|
|
import uniPopup from "@/components/uni-popup/uni-popup.vue"
|
|
|
var md5 = require("../../common/md5.js");
|
|
|
var page = 1;
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ isShowSetModal:false,
|
|
|
title: 'RABOT',
|
|
|
nowTime: '',
|
|
|
nowHeight: '622px',
|
|
|
@@ -74,17 +73,6 @@
|
|
|
rabotHeadImg: "../../static/rabotHead.png",
|
|
|
userHeadUrl: getApp().globalData.user_headUrl || '../../static/userDefault.png',
|
|
|
talkList: [],
|
|
|
- config: {
|
|
|
- title: "阿拉丁神灯", //title
|
|
|
- bgcolor: "#fff", //背景颜色
|
|
|
- fontcolor: "black", //文字颜色,默认白色
|
|
|
- type: 3, //type 1,3胶囊 2,4无胶囊模式
|
|
|
- transparent: false, //是否背景透明 默认白色
|
|
|
- linear: true, //是为开启下滑渐变
|
|
|
- share: true, //是否将主页按钮显示为分享按钮
|
|
|
- menuIcon: "../../static/icon/iconfont-user.png", //当type为3或者4的时候左边的icon文件位置,注意位置与当前页面不一样
|
|
|
- // menuText:"返回", 当type为3或4的时候icon右边的文字
|
|
|
- },
|
|
|
scrollTopNav: 0, // 当linear为true的时候需要通过onpagescroll传递参数
|
|
|
scrollMaxHeight: 200 ,//滑动的高度限制,超过这个高度即背景全部显示
|
|
|
scrollTop:0,
|
|
|
@@ -99,8 +87,6 @@
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- //navigationCustom
|
|
|
- //dragButton
|
|
|
uniPopup
|
|
|
},
|
|
|
onPageScroll(e) {
|
|
|
@@ -164,7 +150,7 @@
|
|
|
this.nowHeight = height + 'px';
|
|
|
getApp().globalData.glbalHeight = this.nowHeight;
|
|
|
this.style.pageHeight = height;
|
|
|
- this.style.contentViewHeight = height - uni.getSystemInfoSync().screenWidth / 750 * (100) -5; //像素 因为给出的是像素高度 然后我们用的是upx 所以换算一下
|
|
|
+ this.style.contentViewHeight = height - uni.getSystemInfoSync().screenWidth / 750 * (100) -7; //像素 因为给出的是像素高度 然后我们用的是upx 所以换算一下
|
|
|
},
|
|
|
scrollToBottom() {
|
|
|
let that = this;
|
|
|
@@ -276,13 +262,13 @@
|
|
|
getInputBlur(){
|
|
|
//this.isShowKeyBoard = 0
|
|
|
},
|
|
|
- open(){
|
|
|
+ openModal(){
|
|
|
// 需要在 popup 组件,指定 ref 为 popup
|
|
|
- this.$refs.popup.open()
|
|
|
+ this.$refs.popup.open();
|
|
|
},
|
|
|
cancelModal(){
|
|
|
// 需要在 popup 组件,指定 ref 为 popup
|
|
|
- this.$refs.popup.close()
|
|
|
+ this.$refs.popup.close();
|
|
|
}
|
|
|
},
|
|
|
}
|
|
|
@@ -326,6 +312,7 @@
|
|
|
background: #F4F0ED;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ padding: 2upx;
|
|
|
}
|
|
|
|
|
|
.talk-box {
|
|
|
@@ -369,11 +356,10 @@
|
|
|
.enter-box {
|
|
|
width: 85%;
|
|
|
height: 70rpx;
|
|
|
- margin-left: 5px;
|
|
|
- margin-right: 10px;
|
|
|
background: #fff;
|
|
|
border-radius: 1%;
|
|
|
text-align: left;
|
|
|
+ margin: 8px
|
|
|
}
|
|
|
.send-box image {
|
|
|
width: 60rpx;
|