Skip to content

Commit b362b38

Browse files
committed
update: platforms
1 parent 28a78c0 commit b362b38

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

‎pages/API/file/file.vue‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
this.tempFilePath = '';
7878
this.savedFilePath = '';
7979
},
80+
// #ifndef MP-ALIPAY || MP-TOUTIAO
8081
openDocument() {
8182
uni.downloadFile({
8283
url: 'https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf',
@@ -89,7 +90,8 @@
8990
});
9091
}
9192
});
92-
}
93+
},
94+
// #endif
9395
}
9496
}
9597
</script>

‎pages/API/login/login.vue‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@
4141
onLoad() {
4242
uni.getProvider({
4343
service: 'oauth',
44-
success: (e) => {
45-
console.log('oauth..........');
46-
this.providerList = e.provider.map((value) => {
44+
success: (result) => {
45+
this.providerList = result.provider.map((value) => {
4746
let providerName = '';
4847
switch (value) {
4948
case 'weixin':
@@ -58,21 +57,25 @@
5857
case 'xiaomi':
5958
providerName = '小米登录'
6059
break;
60+
case 'alipay':
61+
providerName = '支付宝登录'
62+
break;
6163
case 'baidu':
6264
providerName = '百度登录'
6365
break;
64-
case 'alipay':
65-
providerName = '支付宝登录'
66+
case 'toutiao':
67+
providerName = '头条登录'
6668
break;
6769
}
6870
return {
6971
name: providerName,
7072
id: value
7173
}
72-
})
74+
});
75+
7376
},
74-
fail: (e) => {
75-
console.log("获取登录通道失败", e);
77+
fail: (error) => {
78+
console.log('获取登录通道失败', error);
7679
}
7780
});
7881
},

0 commit comments

Comments
 (0)