Home > Mobile >  WeChat H5 public, how to obtain WeChat looked up
WeChat H5 public, how to obtain WeChat looked up

Time:09-27

Wx. Invoke (' chooseInvoiceTitle '{
"Scene" : "1"
{} function (res)
Alert (JSON. Stringify (res));
//this is the callback function
});
Use this not line, is this why

CodePudding user response:

To ask, how always returns chooseInvoiceTitle: fail?

CodePudding user response:

Yes, always display chooseInvoiceTitle: fail_api unauthoreized

CodePudding user response:

The original article is without this, only available in the original article

CodePudding user response:

Suggested that the program posted on the Internet, and add a click event to a is hard to find, click fill in wx. Invoke method as follows
Document. QuerySelector (' # chooseInvoiceTitle '). The onclick=function () {
Wx. Invoke (' chooseInvoiceTitle '{
"Scene" : "1"
{} function (res)
The processing and call//here X ` `
Var info=res. Choose_invoice_title_info
//alert (res) err_msg + res) choose_invoice_title_info)
Alert (" id number: "+ info. TaxNumber +" is payable to: "+ info. The title)
The console. The log (res)
})
}

And don't use WeChat development tools to WeChat open mobile phone directly, because WeChat development tools don't have the rise the function of the information, I have to solve this problem, have any questions please leave a message

CodePudding user response:

reference 4 floor a650413 response:
suggested that the program posted on the Internet, and add a click event to a is hard to find, click fill in wx. Invoke method as follows
Document. QuerySelector (' # chooseInvoiceTitle '). The onclick=function () {
Wx. Invoke (' chooseInvoiceTitle '{
"Scene" : "1"
{} function (res)
The processing and call//here X ` `
Var info=res. Choose_invoice_title_info
//alert (res) err_msg + res) choose_invoice_title_info)
Alert (" id number: "+ info. TaxNumber +" is payable to: "+ info. The title)
The console. The log (res)
})
}

And don't use WeChat development tools to WeChat open mobile phone directly, because WeChat development tools don't have the rise the function of the information, I have to solve this problem, have any questions please leave a message


I wrote a button calls wx. Invoke (' chooseInvoiceTitlexxxxx z this method, prompt system: function_not_exist, this how to do,

CodePudding user response:

 I also met
  • Related