Commit 3195aa15 authored by xieyishang's avatar xieyishang

addxx

parent 6ac6148c
......@@ -360,7 +360,7 @@
name: "你好,您的订单骑手已经取餐。"
},
{
name: ",店铺主页有优惠券可以领取。"
name: ",店铺主页有优惠券可以领取。"
},
{
name: "我们的店铺是支持配送的"
......@@ -501,13 +501,15 @@
//语音和文字输入切换
taggleisVoice() {
this.isVoice = !this.isVoice;
if (!this.isVoice) {
if (this.isVoice) {
// this.tagglecamera();
this.showcamera = false;
}
},
tagglecamera(type) {
this.showtype = type;
this.showcamera = !this.showcamera;
// this.showcamera = !this.showcamera;
this.showcamera = true;
if (this.showcamera) {
if (type == 1 || type == 2) {
this.isVoice = false;
......@@ -528,6 +530,8 @@
textareaFocus() {
this.showcamera = false;
this.imcleargoods();
this.ToTheBottom();//置底
},
imcleargoods() {
this.isshowtisgoods = false; //关闭提示产品
......@@ -548,12 +552,19 @@
//页面置底
ToTheBottom() {
console.info("置底");
setTimeout(() => {
uni.pageScrollTo({
scrollTop: 9999999999, // 设置一个超大值,以保证滚动条滚动到底部
duration: 0
});
}, 1000)
this.$nextTick(() => {
// dom元素更新后执行,因此这里能正确打印更改之后的值
let curRoute = this.$mp.page.route;
if(curRoute=='pages/chat/chat/chat'){
uni.pageScrollTo({
scrollTop: 9999999999, // 设置一个超大值,以保证滚动条滚动到底部
duration: 0
});
}else{
console.info("不在当前页面了 不能置底");
}
})
},
// 获取历史消息
getHistoryMsg() {
......
......@@ -246,7 +246,7 @@ page{
background-color: #fff;
box-shadow: 0px 1upx 30upx 0px rgba(0,0,0 ,0.1);
top: -240upx;
top: -280upx;
left: 0;
.thumbnails{
width: 160upx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment