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:
Force restart
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:
Force restart
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?