|
|
@@ -18,10 +18,10 @@
|
|
|
src="https://wl-1306604067.cos.ap-guangzhou.myqcloud.com/production/ct/103548289110001/1742017747738/element-ui.js"></script>
|
|
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
|
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
|
|
|
- <!-- <script src="js/vconsole.min.js"></script>
|
|
|
+ <script src="js/vconsole.min.js"></script>
|
|
|
<script>
|
|
|
var vConsole = new window.VConsole();
|
|
|
- </script> -->
|
|
|
+ </script>
|
|
|
</head>
|
|
|
<style>
|
|
|
body {
|
|
|
@@ -380,8 +380,6 @@
|
|
|
problem: '',
|
|
|
reply: '',
|
|
|
},
|
|
|
- timer: null,
|
|
|
- secondTimer: null,
|
|
|
loading: false,
|
|
|
disabled1: true,
|
|
|
disabled2: true,
|
|
|
@@ -407,23 +405,15 @@
|
|
|
} else {
|
|
|
this.httpUrl = 'http://test.wefanbot.com:18993'
|
|
|
}
|
|
|
-
|
|
|
+ this.activeName = 'first'
|
|
|
if (this.getQueryParam('memberId')) {
|
|
|
// 已授权
|
|
|
this.memberId = this.getQueryParam('memberId')
|
|
|
if (this.getQueryParam('externalUserId')) {
|
|
|
this.externalUserId = this.getQueryParam('externalUserId')
|
|
|
this.getClientExt()
|
|
|
- this.getLastMsg()
|
|
|
- // 设置定时器:每60秒刷新一次
|
|
|
- this.timer = setInterval(() => {
|
|
|
- this.getLastMsg()
|
|
|
- }, 5 * 1000)
|
|
|
- this.insight()
|
|
|
- this.secondTimer = setInterval(() => {
|
|
|
- this.insight()
|
|
|
- }, 5 * 1000)
|
|
|
this.getCityLevel()
|
|
|
+ this.getLastMsg()
|
|
|
} else {
|
|
|
this.getQyWxSign()
|
|
|
}
|
|
|
@@ -431,15 +421,6 @@
|
|
|
// 授权
|
|
|
this.getAuth()
|
|
|
}
|
|
|
- // this.memberId = "woU17nDAAAfzP9lzjd-G8iwCiveKR8GA"
|
|
|
- // this.externalUserId = "wmU17nDAAALFy-xUBJDwHbB5CsjzeY_g"
|
|
|
- // this.getClientExt()
|
|
|
- // this.getLastMsg()
|
|
|
- // // 设置定时器:每60秒刷新一次
|
|
|
- // this.timer = setInterval(() => {
|
|
|
- // this.getLastMsg()
|
|
|
- // }, 60 * 1000)
|
|
|
- // this.getCityLevel()
|
|
|
},
|
|
|
methods: {
|
|
|
getAuth() {
|
|
|
@@ -491,14 +472,6 @@
|
|
|
that.externalUserId = res.userId
|
|
|
that.getClientExt()
|
|
|
that.getLastMsg()
|
|
|
- // 设置定时器:每60秒刷新一次
|
|
|
- that.timer = setInterval(() => {
|
|
|
- that.getLastMsg()
|
|
|
- }, 5 * 1000)
|
|
|
- that.insight()
|
|
|
- that.secondTimer = setInterval(() => {
|
|
|
- that.insight()
|
|
|
- }, 5 * 1000)
|
|
|
that.getCityLevel()
|
|
|
} else {
|
|
|
//错误处理
|
|
|
@@ -584,6 +557,11 @@
|
|
|
type: 'warning'
|
|
|
})
|
|
|
}
|
|
|
+ }).finally(() => {
|
|
|
+ // 无论成功失败都等待5秒后重新调用
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getLastMsg()
|
|
|
+ }, 5000)
|
|
|
})
|
|
|
},
|
|
|
sendMsg(item) {
|
|
|
@@ -675,6 +653,11 @@
|
|
|
type: 'warning'
|
|
|
})
|
|
|
}
|
|
|
+ }).finally(() => {
|
|
|
+ // 无论成功失败都等待5秒后重新调用
|
|
|
+ setTimeout(() => {
|
|
|
+ this.insight()
|
|
|
+ }, 5000)
|
|
|
})
|
|
|
},
|
|
|
handleSave (num, status) {
|