|
@@ -71,8 +71,9 @@
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
import JhliveApp from './live-wechat';
|
|
import JhliveApp from './live-wechat';
|
|
//#endif
|
|
//#endif
|
|
-
|
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
const dom = uni.requireNativePlugin('dom');
|
|
const dom = uni.requireNativePlugin('dom');
|
|
|
|
+ //#endif
|
|
const LOGTAG = '--JHLIVE--:';
|
|
const LOGTAG = '--JHLIVE--:';
|
|
const EXPIRETIME = 604800;
|
|
const EXPIRETIME = 604800;
|
|
|
|
|
|
@@ -132,6 +133,7 @@
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
imMsgs() {
|
|
imMsgs() {
|
|
|
|
+ // #ifdef APP-PLUS
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
const el = this.$refs.imScrollContent;
|
|
const el = this.$refs.imScrollContent;
|
|
dom.getComponentRect(el, (e)=>{
|
|
dom.getComponentRect(el, (e)=>{
|
|
@@ -139,6 +141,10 @@
|
|
// el&&dom.scrollToElement(el, {offset: -100})
|
|
// el&&dom.scrollToElement(el, {offset: -100})
|
|
})
|
|
})
|
|
},50);
|
|
},50);
|
|
|
|
+ //#endif
|
|
|
|
+ // #ifndef APP-PLUS
|
|
|
|
+ this.imScrollTop = 10000+ this.imMsgs.length
|
|
|
|
+ //#endif
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|