Javascript-WeChat, shared shipping address, suspected bug?

Source: Internet
Author: User
I tried to call the editAddress interface through wxjsbridge. A suspected bug occurs on ios devices. The Code is as follows: {code...} code execution is normal. The problem occurs. After opening the shipping address page, if you do not click [OK] or [Return] Any one, you can use the iphon... I tried to call the editAddress interface through wxjsbridge. A suspected bug occurs on ios devices. The Code is as follows:

WeixinJSBridge. invoke ('editaddress', {appId: "******", scope: "jsapi_address", signType: "sha1", addrSign: "*******", timeStamp: "1457939672", nonceStr: "123456"}, function (res) {alert ('000000'); alert (res. err_msg); // If the returned value in res is not empty, the return value is selected as the receiving address. // Otherwise, if null is returned, the user cancels this edit shipping address. Document. form1.address1. value = res. proviceFirstStageName; document. form1.address2. value = res. addressCitySecondStageName; document. form1.address3. value = res. addressCountiesThirdStageName; document. form1.detail. value = res. addressDetailInfo; document. form1.phone. value = res. telNumber ;});

Code execution is normal. The problem occurs. After opening the shipping address page, if you do not click [OK] or [Return] Any one, but use the left slide gesture of the iphone, the system will return to the Public Account page, at this time, the returned event cannot be captured by js Code. When you refresh the page again, you can no longer use the invoke code to enter the shipping address selection page.

Supplement: The experiment shows that the solution to this problem is:

  1. Force restart

  2. Manually go to the [my shipping address] menu and perform a left-sliding return gesture operation. Then, go to the page and call up the shipping address.

At present, I am not very familiar with this behavior. Is there an event I didn't listen to, or is there a bug in shipping address sharing itself?

Reply content:

I tried to call the editAddress interface through wxjsbridge. A suspected bug occurs on ios devices. The Code is as follows:

WeixinJSBridge. invoke ('editaddress', {appId: "******", scope: "jsapi_address", signType: "sha1", addrSign: "*******", timeStamp: "1457939672", nonceStr: "123456"}, function (res) {alert ('000000'); alert (res. err_msg); // If the returned value in res is not empty, the return value is selected as the receiving address. // Otherwise, if null is returned, the user cancels this edit shipping address. Document. form1.address1. value = res. proviceFirstStageName; document. form1.address2. value = res. addressCitySecondStageName; document. form1.address3. value = res. addressCountiesThirdStageName; document. form1.detail. value = res. addressDetailInfo; document. form1.phone. value = res. telNumber ;});

Code execution is normal. The problem occurs. After opening the shipping address page, if you do not click [OK] or [Return] Any one, but use the left slide gesture of the iphone, the system will return to the Public Account page, at this time, the returned event cannot be captured by js Code. When you refresh the page again, you can no longer use the invoke code to enter the shipping address selection page.

Supplement: The experiment shows that the solution to this problem is:

  1. Force restart

  2. Manually go to the [my shipping address] menu and perform a left-sliding return gesture operation. Then, go to the page and call up the shipping address.

At present, I am not very familiar with this behavior. Is there an event I didn't listen to, or is there a bug in shipping address sharing itself?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.