File tree 5 files changed +44
-6
lines changed
5 files changed +44
-6
lines changed Original file line number Diff line number Diff line change 31
31
32
32
gtag ( 'config' , 'UA-112201282-1' ) ;
33
33
</ script >
34
- < script src ="//wechatfe.github.io/vconsole/lib /vconsole.min.js?v=3.2.0 "> </ script >
34
+ < script src ="https://cdn.bootcss.com/vConsole/3.2.2 /vconsole.min.js "> </ script >
35
35
< script >
36
36
var debug = location . href . match ( / d e b u g = ( \w + ) / ) ;
37
37
if ( debug && debug [ 1 ] ) {
Original file line number Diff line number Diff line change 43
43
"babel-core" : " ^6.22.1" ,
44
44
"babel-eslint" : " ^7.1.1" ,
45
45
"babel-loader" : " ^6.2.10" ,
46
- "babel-runtime" : " ^6.26.0" ,
47
46
"babel-plugin-transform-runtime" : " ^6.22.0" ,
48
47
"babel-preset-env" : " ^1.2.1" ,
49
48
"babel-preset-es2015" : " ^6.24.0" ,
50
49
"babel-preset-stage-2" : " ^6.22.0" ,
51
50
"babel-register" : " ^6.22.0" ,
51
+ "babel-runtime" : " ^6.26.0" ,
52
52
"chalk" : " ^1.1.3" ,
53
53
"connect-history-api-fallback" : " ^1.3.0" ,
54
54
"cookie-parser" : " ^1.4.3" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ import 'muse-ui/dist/muse-ui.css';
11
11
import './styles/main.styl' ;
12
12
import socket from './socket' ;
13
13
import { queryString } from '@utils/queryString' ;
14
+ import ios from './utils/ios' ;
15
+
16
+ // 微信 回弹 bug
17
+ ios ( ) ;
14
18
15
19
import vuePicturePreview from './components/photo-viewer' ;
16
20
Vue . use ( vuePicturePreview ) ;
Original file line number Diff line number Diff line change
1
+ export default function ( ) {
2
+ const u = navigator . userAgent ;
3
+ const isIOS = ! ! u . match ( / \( i [ ^ ; ] + ; ( U ; ) ? C P U .+ M a c O S X / ) ; // ios终端
4
+ const classList = 'input' ;
5
+ setTimeout ( ( ) => {
6
+ [ ] . forEach . call ( document . querySelectorAll ( classList ) , function ( el ) {
7
+ el . addEventListener ( "blur" , function ( e ) {
8
+ console . log ( 1111 ) ;
9
+ if ( isIOS ) {
10
+ blurAdjust ( ) ;
11
+ }
12
+ } ) ;
13
+ } ) ;
14
+ } , 1000 ) ;
15
+
16
+ // 解决苹果不回弹页面 https://blog.csdn.net/m0_37520980/article/details/86305488
17
+ function blurAdjust ( e ) {
18
+ setTimeout ( ( ) => {
19
+ if ( document . activeElement . tagName === 'INPUT' || document . activeElement . tagName === 'TEXTAREA' ) {
20
+ return ;
21
+ }
22
+ let result = 'pc' ;
23
+ if ( / ( i P h o n e | i P a d | i P o d | i O S ) / i. test ( navigator . userAgent ) ) { // 判断iPhone|iPad|iPod|iOS
24
+ result = 'ios' ;
25
+ } else if ( / ( A n d r o i d ) / i. test ( navigator . userAgent ) ) { // 判断Android
26
+ result = 'android' ;
27
+ }
28
+
29
+ if ( result === 'ios' ) {
30
+ document . activeElement . scrollIntoViewIfNeeded ( true ) ;
31
+ }
32
+ } , 100 ) ;
33
+ }
34
+ }
Original file line number Diff line number Diff line change 19
19
<mu-icon-button icon =" people" slot =" right" @click =" openSimpleDialog" />
20
20
</mu-appbar >
21
21
</div >
22
- <div class =" notice" v-if =" noticeList.length > 0" :class =" [noticeBar ? 'notice-hidden' : '']" >
22
+ <!-- < div class="notice" v-if="noticeList.length > 0" :class="[noticeBar ? 'notice-hidden' : '']">
23
23
<div class="notice-container">
24
24
<div class="notice-li" v-for="(item, key) in noticeList" :key="key">
25
25
<a :href="item.href">{{key + 1}}. {{item.title}}</a>
26
26
</div>
27
27
</div>
28
- <!-- < div class="notice-tool-bar" @click="handleNotice">
28
+ <div class="notice-tool-bar" @click="handleNotice">
29
29
{{noticeBar ? '显示通知' : '关闭通知'}}
30
- </div> -->
31
- </div >
30
+ </div>
31
+ </div> -->
32
32
<div class =" chat-inner" >
33
33
<div class =" chat-container" >
34
34
<div v-if =" getInfos.length === 0" class =" chat-no-people" >暂无消息,赶紧来占个沙发~</div >
You can’t perform that action at this time.
0 commit comments