1、加载首页时保存一次客服消息总数,之后每5秒查询一次最新的总数并对数据进行比对,两条数据存储到localStorage中 2、切换到我的盛安页面后新增interval,每2秒调取一次数据进行比对 3、打开客服聊天离开页面时将最新的客服总数替换掉localStorage中数据 |
||
|---|---|---|
| .. | ||
| citys | ||
| order | ||
| search | ||
| index.vue | ||
| index1.vue | ||
| index2.vue | ||
| searchAddress.vue | ||
| webView.vue | ||
1、加载首页时保存一次客服消息总数,之后每5秒查询一次最新的总数并对数据进行比对,两条数据存储到localStorage中 2、切换到我的盛安页面后新增interval,每2秒调取一次数据进行比对 3、打开客服聊天离开页面时将最新的客服总数替换掉localStorage中数据 |
||
|---|---|---|
| .. | ||
| citys | ||
| order | ||
| search | ||
| index.vue | ||
| index1.vue | ||
| index2.vue | ||
| searchAddress.vue | ||
| webView.vue | ||