|
|
@@ -37,7 +37,11 @@
|
|
|
type="text"
|
|
|
style="width:400rpx;"
|
|
|
/>
|
|
|
- <button class="admin-button-com blue mini-btn" open-type="getUserInfo" @getuserinfo="getWxAvatar">点击生成</button>
|
|
|
+ <button
|
|
|
+ class="admin-button-com blue mini-btn"
|
|
|
+ open-type="getUserInfo"
|
|
|
+ @getuserinfo="getWxAvatar"
|
|
|
+ >点击生成</button>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<div
|
|
|
@@ -51,7 +55,7 @@
|
|
|
</block>
|
|
|
</tui-list-cell>
|
|
|
<div class="btn-wrap">
|
|
|
- <button class="admin-button-com blue big" formType="submit">确认</button>
|
|
|
+ <button class="admin-button-com blue big" formType="submit">完成</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
@@ -143,8 +147,6 @@ export default {
|
|
|
uni.showToast({
|
|
|
icon: "success"
|
|
|
});
|
|
|
- this.wxPhoneInfo = res.data.mobile;
|
|
|
- wxLoginFn(true);
|
|
|
|
|
|
setTimeout(() => {
|
|
|
this.stepIndex = 2;
|
|
|
@@ -154,31 +156,33 @@ export default {
|
|
|
this.$msg("获取信息失败!");
|
|
|
}
|
|
|
},
|
|
|
- // 获取微信信息
|
|
|
- getWxAvatar() {
|
|
|
- uni.getUserInfo({
|
|
|
- provider: 'weixin',
|
|
|
- success: res => {
|
|
|
- console.log('res', res)
|
|
|
- // this.popupShow = true
|
|
|
- getWxInfo({ iv: res.iv, encryptedData: res.encryptedData }).then(subRes => {
|
|
|
- console.log('用户信息', subRes)
|
|
|
- uni.showToast({
|
|
|
- icon: 'success'
|
|
|
- })
|
|
|
- this.wxInfo = subRes.data
|
|
|
- // this.$msg('创建用户信息成功!')
|
|
|
- // this.popupShow = true
|
|
|
- setTimeout(() => {
|
|
|
- this.stepIndex = 1
|
|
|
- }, 1000)
|
|
|
- })
|
|
|
- },
|
|
|
- fail: () => {
|
|
|
- // this.loading = false
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ // 获取微信信息
|
|
|
+ getWxAvatar() {
|
|
|
+ uni.getUserInfo({
|
|
|
+ provider: "weixin",
|
|
|
+ success: res => {
|
|
|
+ console.log("res", res);
|
|
|
+ // this.popupShow = true
|
|
|
+ getWxInfo({ iv: res.iv, encryptedData: res.encryptedData }).then(
|
|
|
+ subRes => {
|
|
|
+ console.log("用户信息", subRes);
|
|
|
+ uni.showToast({
|
|
|
+ icon: "success"
|
|
|
+ });
|
|
|
+ this.wxInfo = subRes.data;
|
|
|
+ // this.$msg('创建用户信息成功!')
|
|
|
+ // this.popupShow = true
|
|
|
+ setTimeout(() => {
|
|
|
+ this.stepIndex = 1;
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
+ fail: () => {
|
|
|
+ // this.loading = false
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|