This commit is contained in:
2020-08-18 10:43:15 +08:00
parent a39aa6e059
commit 9f17c5478c
5 changed files with 77 additions and 25 deletions

View File

@@ -61,6 +61,7 @@
</view>
</template>
<script>
import IMService from '@/static/imservice.js'
import identifying from '@/components/logininput/identifying'
import {
mapMutations
@@ -107,6 +108,8 @@
let pages = getCurrentPages();
let prePage = pages[pages.length - 2];
this.temp_url = prePage.route;
console.log(this.imService.lianjie)
this.imService.disconnect()
// console.log(this.temp_url);
},
// 切断正常返回
@@ -181,6 +184,12 @@
me.loginIn(res.data.token); //存储一个字符传值
// 缓存用户的信息
uni.setStorageSync('user_info',res.data);
let im = this.imService
im.status = false
console.log(123)
im.lianjie = false
im = new IMService();
console.log(im.lianjie)
if (res.data.member.has_labels) {
uni.switchTab({
url: '/pages/index/index'