Commit 994bb2df by liang ce

修改绑定app流程

parent 70c47b22
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="sidebarContent" catchTap="preventSort"> <view class="sidebarContent" catchTap="preventSort">
<view class="sidebarLogo"> <view class="sidebarLogo">
<template is="avater" data="{{item: userInfo}}"/> <template is="avater" data="{{item: userInfo}}"/>
<view>{{ userInfo.username }}</view> <view>{{ userInfo.userName }}</view>
</view> </view>
<view class="hasAssociated" a:if="{{relatedAppList.length !== 1}}"> <view class="hasAssociated" a:if="{{relatedAppList.length !== 1}}">
<view class="associated"> <view class="associated">
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<view class="applicationMsg" data-item="{{item}}" catchTap="toAppDetails"> <view class="applicationMsg" data-item="{{item}}" catchTap="toAppDetails">
<view> <view>
<view> <view>
{{item.thirdUserIdentify}} {{item.userName}}
</view> </view>
<view> <view>
支持会议日程双向同步,实时同步日程信息等 支持会议日程双向同步,实时同步日程信息等
......
...@@ -21,7 +21,7 @@ create.Component({ ...@@ -21,7 +21,7 @@ create.Component({
let relatedAppList = this.data.relatedAppList; let relatedAppList = this.data.relatedAppList;
let relatedAppPlatformList = this.data.relatedAppPlatformList; let relatedAppPlatformList = this.data.relatedAppPlatformList;
relatedAppList.push({ relatedAppList.push({
thirdUserIdentify: this.$store.data.relatedAppNeedUpdate.name, userName: this.$store.data.relatedAppNeedUpdate.name,
platform: this.$store.data.relatedAppNeedUpdate.platform platform: this.$store.data.relatedAppNeedUpdate.platform
}); });
relatedAppPlatformList.push( relatedAppPlatformList.push(
......
...@@ -2,7 +2,8 @@ import { ...@@ -2,7 +2,8 @@ import {
getOutlookUrl, getOutlookUrl,
getZoomUrl, getZoomUrl,
authorizationCodeReplacementToken, authorizationCodeReplacementToken,
sendZoomCode sendZoomCode,
getThirdUserPlatForm
} from "../../api/request"; } from "../../api/request";
import "dingtalk-jsapi/entry/mobile"; import "dingtalk-jsapi/entry/mobile";
import openLink from "dingtalk-jsapi/api/biz/util/openLink"; import openLink from "dingtalk-jsapi/api/biz/util/openLink";
...@@ -24,9 +25,6 @@ create.Page({ ...@@ -24,9 +25,6 @@ create.Page({
openLink({ openLink({
url: res.data.data url: res.data.data
}); });
// this.setData({
// url: res.data.data
// });
}); });
} else if (e.platform === "zoom") { } else if (e.platform === "zoom") {
getZoomUrl("").then(res => { getZoomUrl("").then(res => {
...@@ -36,6 +34,26 @@ create.Page({ ...@@ -36,6 +34,26 @@ create.Page({
}); });
} }
}, },
onShow() {
const interval = setInterval(() => {
getThirdUserPlatForm().then(res => {
let relatedAppPlatformList = [];
res.data.data.forEach(item => {
if (item.platform === this.data.platform) {
clearInterval(interval);
this.$store.data.relatedAppNeedUpdate = {
name: item.userName,
platform: this.data.platform
};
this.update();
dd.navigateBack({
delta: 1
});
}
});
});
}, 1000);
},
test(e) { test(e) {
const code = e.detail.code; const code = e.detail.code;
const state = e.detail.state; const state = e.detail.state;
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
<view class="platformImg {{item.platform}}"> <view class="platformImg {{item.platform}}">
</view> </view>
<view class="platformName"> <view class="platformName">
{{item.thirdUserIdentify}} {{item.userName}}
</view> </view>
</view> </view>
<view class="platformMsg" a:if="{{item.platform === 'zoom'}}"> <view class="platformMsg" a:if="{{item.platform === 'zoom'}}">
<view class="platformImg {{item.platform}}"> <view class="platformImg {{item.platform}}">
</view> </view>
<view class="platformName"> <view class="platformName">
{{item.thirdUserIdentify}} {{item.userName}}
</view> </view>
</view> </view>
<view class="unBinding" onTap="showPopup"> <view class="unBinding" onTap="showPopup">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment