|
...
|
...
|
@@ -21,6 +21,8 @@ Component({ |
|
|
|
*/
|
|
|
|
methods: {
|
|
|
|
userinfo(e){
|
|
|
|
if(this.hasToChat) return;
|
|
|
|
this.hasToChat=true
|
|
|
|
let wechat=e.detail
|
|
|
|
wechat.openid=wechat.openid||getApp().openid
|
|
|
|
console.log('userinfo',wechat)
|
|
...
|
...
|
@@ -29,10 +31,13 @@ Component({ |
|
|
|
openid: wechat.openid, // 小程序的openid,必填项
|
|
|
|
success: () => {
|
|
|
|
wx.navigateTo({
|
|
|
|
url: util.http_build_query(this.data.params,'/pages/me/chat')
|
|
|
|
url: util.http_build_query(this.data.params,'/pages/me/chat'),
|
|
|
|
success:()=>{
|
|
|
|
this.hasToChat=false
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
fail: (error) => {},
|
|
|
|
fail: (error) => {this.hasToChat=false},
|
|
|
|
guideList: [],
|
|
|
|
textToSpeech: false, //默认为ture打开状态
|
|
|
|
background: "rgba(247,251,252,1)",
|
...
|
...
|
|