<template>
<view class="content">
<view>
<button open-type="getAuthorize" @GetAuthorize="onGetAuthorize" @Error="onAuthError" scope="phoneNumber"></button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
};
},
onLoad() {},
methods: {
test() {
console.log('success');
},
onGetAuthorize(){
console.log('onGetAuthorize');
},
onAuthError(){
console.log('onAuthError');
}
}
};
</script>

凌云阁
- 发布:2019-07-02 19:47
- 更新:2019-07-03 16:36
- 阅读:1224
1 个回复
DCloud_uni-ad_HDX
参考这个方案
https://ask.dcloud.net.cn/question/71900