{
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 jumpCodePudding user response:
Window. The location. Href=https://bbs.csdn.net/topics/strPayUrl