浏览代码

update fps mobile btn

CR003
Alex Cheung 1年前
父节点
当前提交
36ebdfce6f
共有 1 个文件被更改,包括 38 次插入30 次删除
  1. +38
    -30
      src/pages/Payment/FPS/FPS.js

+ 38
- 30
src/pages/Payment/FPS/FPS.js 查看文件

@@ -49,6 +49,7 @@ const Index = () => {
const [fpsqrcodeurlPrd, setFpsqrcodeurlPrd] = React.useState(""); const [fpsqrcodeurlPrd, setFpsqrcodeurlPrd] = React.useState("");
const [fpsqrcodeurlFps, setFpsqrcodeurlFps] = React.useState(""); const [fpsqrcodeurlFps, setFpsqrcodeurlFps] = React.useState("");
const [browserType, setBrowserType] = React.useState(""); const [browserType, setBrowserType] = React.useState("");
const [sysEnv, setSysEnv] = React.useState("");
const mobileBrowser = "Mobile"; const mobileBrowser = "Mobile";
const desktopBrowser = "Desktop"; const desktopBrowser = "Desktop";
@@ -159,6 +160,7 @@ const Index = () => {
*/ */
setResponeDataData(responseData) setResponeDataData(responseData)
const timeoutdatetime = responseData.fpsmerchanttimeoutdatetime const timeoutdatetime = responseData.fpsmerchanttimeoutdatetime
setSysEnv(responseData.sysEnv)
const searchString = "[UTC]"; const searchString = "[UTC]";
let convertedDateString = ""; let convertedDateString = "";
if ( timeoutdatetime.toString().includes(searchString) ){ if ( timeoutdatetime.toString().includes(searchString) ){
@@ -338,36 +340,42 @@ const Index = () => {
</Typography> </Typography>
{browserType==mobileBrowser? {browserType==mobileBrowser?
<Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
<Button
component="span"
variant="contained"
size="large"
color="primary"
onClick={()=>{
mobliePayment();
}}
sx={{ m: 4 }}
>請選擇支付程式付款-Testing</Button>
<Button
component="span"
variant="contained"
size="large"
color="primary"
onClick={()=>{
mobliePaymentPrd();
}}
sx={{ m: 4 }}
>請選擇支付程式付款-PRD</Button>
<Button
component="span"
variant="contained"
size="large"
color="primary"
onClick={()=>{
mobliePaymentFps();
}}
sx={{ m: 4 }}
>請選擇支付程式付款-fps prefix</Button>
{
sysEnv=="prod"?
<Button
component="span"
variant="contained"
size="large"
color="primary"
onClick={()=>{
mobliePaymentPrd();
}}
sx={{ m: 4 }}
>請選擇支付程式付款</Button>
:
<>
<Button
component="span"
variant="contained"
size="large"
color="primary"
onClick={()=>{
mobliePayment();
}}
sx={{ m: 4 }}
>請選擇支付程式付款-Testing</Button>
<Button
component="span"
variant="contained"
size="large"
color="primary"
onClick={()=>{
mobliePaymentFps();
}}
sx={{ m: 4 }}
>請選擇支付程式付款-fps prefix</Button>
</>
}
</Typography> </Typography>
: :
<Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>


正在加载...
取消
保存