|
@@ -20,6 +20,9 @@
|
|
|
|
|
|
<body>
|
|
|
<div class="warp" style="background: #fff">
|
|
|
+ <!--<button onclick="alert(accessToken);">获取access_token</button>-->
|
|
|
+ <!--<button onclick="localStorage.removeItem('access_token')">删除access_token</button>-->
|
|
|
+ <!--<button onclick="alert(currentUrl)">当前页面</button>-->
|
|
|
<div class="weui-cells weui-cells_form" style="margin-top: 0px;">
|
|
|
<form id="registerForm">
|
|
|
<div class="weui-cell ">
|
|
@@ -87,6 +90,15 @@
|
|
|
<script type="text/javascript">
|
|
|
$("#birthDate").calendar();
|
|
|
|
|
|
+ //填入昵称和性别数据
|
|
|
+ $.authAjax({
|
|
|
+ url: api+"marketing/weixin/getWxUserInfo",
|
|
|
+ success: function (res) {
|
|
|
+ $('input[name="nickName"]').val(res.nickname);
|
|
|
+ $('input[name="sex"][value="'+res.sex+'"]').prop('checked',true);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
function submit() {
|
|
|
$.showLoading('数据提交中');
|
|
|
|