wangxia 4 months ago
commit 500610d43f

@ -40,6 +40,18 @@
<!-- #endif -->
</slot>
</g-panel-form-slot>
<view class="g_flex_row_end" hover-class="none" hover-stop-propagation="false"
style="padding: 10px 22px;"
>
<view class=""
style="position: relative;font-size: 14px;color: #576b95;"
>
获取微信昵称
<button open-type="getUserInfo" @getuserinfo="getUserInfo"
style="position: absolute;left: 0;top: 0;width: 100%;height: 100%;opacity: 0;color: #576b95;"
>获取微信昵称</button>
</view>
</view>
<view class="g_flex_row_center" style="margin-top:90px">
<g-button btnText="提交" type="primary" @clickBtn="submitForm" />
</view>
@ -105,6 +117,10 @@ export default {
});
},
methods: {
getUserInfo(e){
console.log(e)
this.info.value = e.detail.userInfo.nickName;
},
submitForm() {
let that = this;
if (that.info.value == "") {

Loading…
Cancel
Save