Home > front end >  This code can jump in apple mobile phone, not in android phones, there are compatibility problems un
This code can jump in apple mobile phone, not in android phones, there are compatibility problems un

Time:10-24

The function submitWechatOfficialAccountsPay ()
{
Var strPayType="03";
Var requestJsonStr=setPayOrderRequestJson (strPayType);
$. AjaxSettings. Async=false;
$.post ("/servlet/showStoreEChannel, "{
Type: "payOrder,"
RequestJson: requestJsonStr
{} function (jsonStr, status)
if (null !=jsonStr & amp; & ""!={jsonStr)
Var obj=$. ParseJSON (jsonStr);
if (null !=obj & amp; & ""!=obj)
{
If (obj. ErrorCode=="0000")
{
Var strPayUrl=obj. PayUrl;

FM. Action=strPayUrl;
FM. Submit ();

} else {
Var errorMessage=obj. ErrorMessage;
Alert (errorMessage);
return ;
}
} else {
Alert (" Error ");
return;
}
} else {
Alert (" Error ");
return ;
}
});
}

CodePudding user response:

See only the form submission, didn't see a jump

CodePudding user response:

Window. The location. Href=https://bbs.csdn.net/topics/strPayUrl
  • Related