Commit 5bd00ca2 by xiexiaoqin

merge

parents 1273711b 381c50f9
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
<view a:if="{{isCanDelete}}" class="iconfont iconicon_noAgreed1" catchTap="removeFile" data-id="{{item.fileId}}"></view> <view a:if="{{isCanDelete}}" class="iconfont iconicon_noAgreed1" catchTap="removeFile" data-id="{{item.fileId}}"></view>
</view> </view>
</view> </view>
<view class="btns-pop" a:if="{{fileView.id == logId && (organizer === currentPeople ? true : currentPeople === fileView.creatorId)}}"> <!-- && (organizer === currentPeople ? true : currentPeople === fileView.creatorId) -->
<view class="btns-pop" a:if="{{fileView.id == logId}}">
<view class="edit" catchTap="updateFile" data-fileView="{{fileView}}"> <view class="edit" catchTap="updateFile" data-fileView="{{fileView}}">
编辑 编辑
</view> </view>
......
...@@ -26,7 +26,11 @@ create.Component({ ...@@ -26,7 +26,11 @@ create.Component({
didUnmount() {}, didUnmount() {},
methods: { methods: {
getData() { getData() {
getThirdUserPlatForm().then(res => { let data = {
platForm: "",
ddUserId: getApp().globalData.userid
};
getThirdUserPlatForm(data).then(res => {
let relatedAppPlatformList = []; let relatedAppPlatformList = [];
res.data.data.forEach(item => { res.data.data.forEach(item => {
relatedAppPlatformList.push(item.platform); relatedAppPlatformList.push(item.platform);
......
...@@ -47,12 +47,28 @@ create.Page({ ...@@ -47,12 +47,28 @@ create.Page({
clearInterval(interval); clearInterval(interval);
} }
requestNum++; requestNum++;
getThirdUserPlatForm().then(res => { let data = {
let relatedAppPlatformList = []; platForm: this.data.platform,
res.data.data.forEach(item => { ddUserId: getApp().globalData.userid
if (item.platform === this.data.platform) { };
getThirdUserPlatForm(data).then(res => {
console.log(JSON.stringify(res));
console.log(res.data.msg === "当前账号已被其他账号绑定!");
if (res.data.msg === "当前账号已被其他账号绑定!") {
this.setData({
isBind: false,
bindStatus: "binded"
});
setTimeout(() => {
that.setData({
isLoading: false
});
}, 10000);
clearInterval(interval);
} else if (res.data.data) {
if (res.data.data.platform === this.data.platform) {
this.setData({ this.setData({
name: item.userName, name: res.data.data.userName,
isBind: true, isBind: true,
bindStatus: "success" bindStatus: "success"
}); });
...@@ -65,7 +81,7 @@ create.Page({ ...@@ -65,7 +81,7 @@ create.Page({
this.$store.data.relatedAppNeedUpdate = true; this.$store.data.relatedAppNeedUpdate = true;
this.update(); this.update();
} }
}); }
}); });
}, 1000); }, 1000);
}, },
......
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