Commit eab6b9df authored by haiyoucuv's avatar haiyoucuv

init

parent 357c5e93
...@@ -12,8 +12,7 @@ ComponentWithStore({ ...@@ -12,8 +12,7 @@ ComponentWithStore({
fields: { fields: {
homeInfo: () => store.homeInfo, homeInfo: () => store.homeInfo,
}, },
actions: { actions: {},
},
}, },
data: { data: {
showGetPanel: false, showGetPanel: false,
...@@ -28,6 +27,11 @@ ComponentWithStore({ ...@@ -28,6 +27,11 @@ ComponentWithStore({
}, },
methods: { methods: {
getPhoneNumber(e: any) {
console.log(e.detail)
console.log(e.detail.iv)
console.log(e.detail.encryptedData)
},
closeGetPanel() { closeGetPanel() {
this.setData({ this.setData({
showGetPanel: false, showGetPanel: false,
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
<view class="user_info"> <view class="user_info">
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
<view class="avatar_box"> <view class="avatar_box">
<image class="avatar" src="{{userInfo.avatarUrl}}"></image> <image class="avatar" src="{{userInfo.avatarUrl}}"></image>
</view> </view>
......
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