提交 80e1fd0a 编写于 作者: M mahaifeng

[provider]添加getProviderSync 示例

上级 3ec62c32
...@@ -56,15 +56,6 @@ ...@@ -56,15 +56,6 @@
this.serviceList.forEach((item : ProviderItem) => { this.serviceList.forEach((item : ProviderItem) => {
var provider = uni.getProviderSync({ var provider = uni.getProviderSync({
service: item.service, service: item.service,
// success: (e) => {
// // e.providerIds.forEach((value) => {
// // this.providerIds.push(value)
// // })
// // this.updateProvider(item.service, e.providerIds, e.providerObjects);
// },
// fail: (e) => {
// console.log("获取provider失败:", e);
// }
} as GetProviderSyncOptions) } as GetProviderSyncOptions)
provider.providerIds.forEach((value) => { provider.providerIds.forEach((value) => {
this.providerIds.push(value) this.providerIds.push(value)
...@@ -159,4 +150,4 @@ ...@@ -159,4 +150,4 @@
.btn-get-provider { .btn-get-provider {
margin-top: 30px; margin-top: 30px;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册