|
|
@@ -10,7 +10,8 @@
|
|
|
<image src="../../static/images/shower2x.png" mode=""></image>
|
|
|
<text>洗 浴</text>
|
|
|
</navigator>
|
|
|
- <navigator url="" open-type="redirect" class="menu_item">
|
|
|
+ <navigator :url="'/pages/jiaofei/jiaofei?item=' + encodeURIComponent(JSON.stringify(this.userinfo))"
|
|
|
+ open-type="redirect" class="menu_item">
|
|
|
<image src="../../static/images/recharge2x.png" mode=""></image>
|
|
|
<text>电费充值</text>
|
|
|
</navigator>
|
|
|
@@ -165,6 +166,7 @@
|
|
|
} else {
|
|
|
this.access_token = res.data.access_token;
|
|
|
this.refresh_token = res.data.refresh_token;
|
|
|
+
|
|
|
|
|
|
// 通过access_token换取用户信息
|
|
|
this.get_user_info();
|
|
|
@@ -197,6 +199,8 @@
|
|
|
this.userinfo.appid = this.appid_pass
|
|
|
this.userinfo.app_secret = this.app_secret_pass
|
|
|
this.userinfo.ocode = this.ocode_pass
|
|
|
+ this.userinfo.access_token = this.access_token
|
|
|
+ // console.log(this.access_token)
|
|
|
// 存储用户信息
|
|
|
uni.setStorageSync('userinfo_storage_key', this.userinfo)
|
|
|
// 提示授权成功
|