| @@ -17,12 +17,13 @@ const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingCo | |||||
| import Loadable from 'components/Loadable'; | import Loadable from 'components/Loadable'; | ||||
| import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
| import { notifySaveSuccess } from 'utils/CommonFunction'; | import { notifySaveSuccess } from 'utils/CommonFunction'; | ||||
| import {useIntl} from "react-intl"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | ||||
| const intl = useIntl(); | |||||
| const [creditorConfirmPopUp, setCreditorConfirmPopUp] = React.useState(false); | const [creditorConfirmPopUp, setCreditorConfirmPopUp] = React.useState(false); | ||||
| const [nonCreditorConfirmPopUp, setNonCreditorConfirmPopUp] = React.useState(false); | const [nonCreditorConfirmPopUp, setNonCreditorConfirmPopUp] = React.useState(false); | ||||
| @@ -371,7 +372,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
| label: FieldUtils.notNullFieldLabel("District:"), | label: FieldUtils.notNullFieldLabel("District:"), | ||||
| valueName: "district", | valueName: "district", | ||||
| disabled: (!editMode && !createMode), | disabled: (!editMode && !createMode), | ||||
| dataList: ComboData.district, | |||||
| dataList: ComboData.district(intl), | |||||
| form: formik | form: formik | ||||
| })} | })} | ||||
| </Grid> | </Grid> | ||||
| @@ -17,12 +17,13 @@ const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingCo | |||||
| import Loadable from 'components/Loadable'; | import Loadable from 'components/Loadable'; | ||||
| import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
| import { notifyCreateSuccess } from 'utils/CommonFunction'; | import { notifyCreateSuccess } from 'utils/CommonFunction'; | ||||
| import {useIntl} from "react-intl"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| const OrganizationCard_loadFromUser = ({ userData, userId }) => { | const OrganizationCard_loadFromUser = ({ userData, userId }) => { | ||||
| const intl = useIntl(); | |||||
| const [currentUserData, setCurrentUserData] = useState(userData); | const [currentUserData, setCurrentUserData] = useState(userData); | ||||
| const navigate = useNavigate(); | const navigate = useNavigate(); | ||||
| const [onReady, setOnReady] = useState(false); | const [onReady, setOnReady] = useState(false); | ||||
| @@ -235,7 +236,7 @@ const OrganizationCard_loadFromUser = ({ userData, userId }) => { | |||||
| {FieldUtils.getComboField({ | {FieldUtils.getComboField({ | ||||
| label: FieldUtils.notNullFieldLabel("District:"), | label: FieldUtils.notNullFieldLabel("District:"), | ||||
| valueName: "district", | valueName: "district", | ||||
| dataList: ComboData.district, | |||||
| dataList: ComboData.district(intl), | |||||
| form: formik | form: formik | ||||
| })} | })} | ||||
| </Grid> | </Grid> | ||||
| @@ -16,11 +16,13 @@ const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingCo | |||||
| import Loadable from 'components/Loadable'; | import Loadable from 'components/Loadable'; | ||||
| import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
| import { notifyActiveSuccess, notifyLockSuccess, notifySaveSuccess, notifyVerifySuccess } from 'utils/CommonFunction'; | import { notifyActiveSuccess, notifyLockSuccess, notifySaveSuccess, notifyVerifySuccess } from 'utils/CommonFunction'; | ||||
| import {useIntl} from "react-intl"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | ||||
| const intl = useIntl(); | |||||
| const [currentUserData, setCurrentUserData] = useState(formData); | const [currentUserData, setCurrentUserData] = useState(formData); | ||||
| const [editMode, setEditMode] = useState(false); | const [editMode, setEditMode] = useState(false); | ||||
| const [locked, setLocked] = useState(false); | const [locked, setLocked] = useState(false); | ||||
| @@ -46,7 +48,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
| emailAddress: yup.string().email(intl.formatMessage({id: 'validEmailFormat'})).max(255).required(intl.formatMessage({id: 'requireEmail'})), | emailAddress: yup.string().email(intl.formatMessage({id: 'validEmailFormat'})).max(255).required(intl.formatMessage({id: 'requireEmail'})), | ||||
| identification: yup.string().min(7, "請輸入證件號碼").required('請輸入證件號碼'), | identification: yup.string().min(7, "請輸入證件號碼").required('請輸入證件號碼'), | ||||
| checkDigit: yup.string().max(1).required('請輸入括號內的數字或字母').nullable(), | checkDigit: yup.string().max(1).required('請輸入括號內的數字或字母').nullable(), | ||||
| idDocType: yup.string().max(255).required('請輸入證件類別'), | |||||
| idDocType: yup.string().max(255).required(intl.formatMessage({id: 'requireIdDocType'})), | |||||
| tel_countryCode: yup.string().min(3, intl.formatMessage({id: 'require3Number'})).required(intl.formatMessage({id: 'requireDialingCode'})), | tel_countryCode: yup.string().min(3, intl.formatMessage({id: 'require3Number'})).required(intl.formatMessage({id: 'requireDialingCode'})), | ||||
| fax_countryCode: yup.string().min(3, intl.formatMessage({id: 'require3Number'})), | fax_countryCode: yup.string().min(3, intl.formatMessage({id: 'require3Number'})), | ||||
| phoneNumber: yup.string().min(8, intl.formatMessage({id: 'require8Number'})).required(intl.formatMessage({id: 'requireContactNumber'})), | phoneNumber: yup.string().min(8, intl.formatMessage({id: 'require8Number'})).required(intl.formatMessage({id: 'requireContactNumber'})), | ||||
| @@ -351,7 +353,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
| valueName: "identification", | valueName: "identification", | ||||
| disabled: (!editMode), | disabled: (!editMode), | ||||
| form: formik, | form: formik, | ||||
| placeholder: "證件號碼", | |||||
| placeholder: intl.formatMessage({id: 'idDocNumber'}), | |||||
| inputProps: { | inputProps: { | ||||
| maxLength: 7, | maxLength: 7, | ||||
| onKeyDown: (e) => { | onKeyDown: (e) => { | ||||
| @@ -496,7 +498,7 @@ const UserInformationCard_Individual = ({ formData, loadDataFun }) => { | |||||
| {FieldUtils.getComboField({ | {FieldUtils.getComboField({ | ||||
| label: "District:", | label: "District:", | ||||
| valueName: "district", | valueName: "district", | ||||
| dataList: ComboData.district, | |||||
| dataList: ComboData.district(intl), | |||||
| disabled: (!editMode), | disabled: (!editMode), | ||||
| form: formik | form: formik | ||||
| })} | })} | ||||
| @@ -17,6 +17,7 @@ const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingCo | |||||
| import Loadable from 'components/Loadable'; | import Loadable from 'components/Loadable'; | ||||
| import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
| import { notifyActiveSuccess, notifyLockSuccess, notifySaveSuccess, notifyVerifySuccess } from 'utils/CommonFunction'; | import { notifyActiveSuccess, notifyLockSuccess, notifySaveSuccess, notifyVerifySuccess } from 'utils/CommonFunction'; | ||||
| import {useIntl} from "react-intl"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| @@ -30,7 +31,7 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| const [confirmAction, setConfirmAction] = React.useState(); | const [confirmAction, setConfirmAction] = React.useState(); | ||||
| const [editMode, setEditMode] = React.useState(false); | const [editMode, setEditMode] = React.useState(false); | ||||
| const [onReady, setOnReady] = React.useState(false); | const [onReady, setOnReady] = React.useState(false); | ||||
| const intl = useIntl(); | |||||
| React.useEffect(() => { | React.useEffect(() => { | ||||
| //if state data are ready and assign to different field | //if state data are ready and assign to different field | ||||
| // console.log(currentApplicationDetailData) | // console.log(currentApplicationDetailData) | ||||
| @@ -563,7 +564,7 @@ const UserInformationCard_Organization = ({ userData, loadDataFun, orgData }) => | |||||
| {FieldUtils.getComboField({ | {FieldUtils.getComboField({ | ||||
| label: "District:", | label: "District:", | ||||
| valueName: "district", | valueName: "district", | ||||
| dataList: ComboData.district, | |||||
| dataList: ComboData.district(intl), | |||||
| disabled: true, | disabled: true, | ||||
| form: formik | form: formik | ||||
| })} | })} | ||||
| @@ -101,7 +101,7 @@ const BusCustomFormWizard = (props) => { | |||||
| const [checkEmail, setCheckEmail] = useState(false) | const [checkEmail, setCheckEmail] = useState(false) | ||||
| const [checkEmailBlur, setCheckEmailBlur] = useState(false) | const [checkEmailBlur, setCheckEmailBlur] = useState(false) | ||||
| const address4ComboList = ComboData.district; | |||||
| const address4ComboList = ComboData.district(intl); | |||||
| const address5ComboList = ComboData.country(intl); | const address5ComboList = ComboData.country(intl); | ||||
| const termsAndCon = "此網址由香港特別行政區政府物流服務署製作及管理。本署會盡力確保網址上的資料無誤,\n" | const termsAndCon = "此網址由香港特別行政區政府物流服務署製作及管理。本署會盡力確保網址上的資料無誤,\n" | ||||
| + "但有絕對酌情權隨時刪除、暫停登載或編輯各項資料而無須給予任何理由。\n由於任何與網址" | + "但有絕對酌情權隨時刪除、暫停登載或編輯各項資料而無須給予任何理由。\n由於任何與網址" | ||||
| @@ -102,7 +102,7 @@ const CustomFormWizard = (props) => { | |||||
| const [checkEmailBlur, setCheckEmailBlur] = useState(false) | const [checkEmailBlur, setCheckEmailBlur] = useState(false) | ||||
| const idDocTypeComboList = ComboData.idDocType; | const idDocTypeComboList = ComboData.idDocType; | ||||
| const address4ComboList = ComboData.district; | |||||
| const address4ComboList = ComboData.district(intl); | |||||
| const address5ComboList = ComboData.country(intl); | const address5ComboList = ComboData.country(intl); | ||||
| const termsAndCon = "此網址由香港特別行政區政府物流服務署製作及管理。本署會盡力確保網址上的資料無誤,\n" | const termsAndCon = "此網址由香港特別行政區政府物流服務署製作及管理。本署會盡力確保網址上的資料無誤,\n" | ||||
| + "但有絕對酌情權隨時刪除、暫停登載或編輯各項資料而無須給予任何理由。\n由於任何與網址" | + "但有絕對酌情權隨時刪除、暫停登載或編輯各項資料而無須給予任何理由。\n由於任何與網址" | ||||
| @@ -626,7 +626,7 @@ const CustomFormWizard = (props) => { | |||||
| } | } | ||||
| }), | }), | ||||
| checkDigit: yup.string().max(1).required(displayErrorMsg('請輸入括號內的數字或字母')), | checkDigit: yup.string().max(1).required(displayErrorMsg('請輸入括號內的數字或字母')), | ||||
| idDocType: yup.string().max(255).required(displayErrorMsg('請輸入證件類別')), | |||||
| idDocType: yup.string().max(255).required(displayErrorMsg(intl.formatMessage({id: 'requireIdDocType'}))), | |||||
| phoneCountryCode: yup.string().min(2, displayErrorMsg(intl.formatMessage({id: 'requireAtLeast2Number'}))).required(displayErrorMsg(intl.formatMessage({id: 'requireDialingCode'}))), | phoneCountryCode: yup.string().min(2, displayErrorMsg(intl.formatMessage({id: 'requireAtLeast2Number'}))).required(displayErrorMsg(intl.formatMessage({id: 'requireDialingCode'}))), | ||||
| // faxCountryCode: yup.string().min(3,'請輸入3位數字'), | // faxCountryCode: yup.string().min(3,'請輸入3位數字'), | ||||
| phone: yup.string().min(8, displayErrorMsg(intl.formatMessage({id: 'requireAtLeast8Number'}))).required(displayErrorMsg(intl.formatMessage({id: 'requireContactNumber'}))), | phone: yup.string().min(8, displayErrorMsg(intl.formatMessage({id: 'requireAtLeast8Number'}))).required(displayErrorMsg(intl.formatMessage({id: 'requireContactNumber'}))), | ||||
| @@ -789,7 +789,7 @@ const CustomFormWizard = (props) => { | |||||
| </Grid> | </Grid> | ||||
| <Grid item> | <Grid item> | ||||
| <Typography variant="subtitle1"> | <Typography variant="subtitle1"> | ||||
| {level?.label} | |||||
| <FormattedMessage id={level ? level?.label : "pwWeak" }/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -846,10 +846,10 @@ const CustomFormWizard = (props) => { | |||||
| <Grid container spacing={2} alignItems="center"> | <Grid container spacing={2} alignItems="center"> | ||||
| <Grid item sx={{mt:1}}> | <Grid item sx={{mt:1}}> | ||||
| <Typography variant="subtitle1"> | <Typography variant="subtitle1"> | ||||
| •至少8個字元,字元越多越好 <br /> | |||||
| •字母和數字的混合<br /> | |||||
| •英文字母大寫與小寫的混合<br /> | |||||
| •至少包含一個特殊符號,例如,@ # ? | |||||
| •<FormattedMessage id="pwRemark1"/> <br /> | |||||
| •<FormattedMessage id="pwRemark2"/><br /> | |||||
| •<FormattedMessage id="pwRemark3"/><br /> | |||||
| •<FormattedMessage id="pwRemark4"/> | |||||
| </Typography> | </Typography> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -892,13 +892,13 @@ const CustomFormWizard = (props) => { | |||||
| //value={selectedIdDocType} | //value={selectedIdDocType} | ||||
| size="small" | size="small" | ||||
| options={idDocTypeComboList} | options={idDocTypeComboList} | ||||
| // getOptionLabel={(idDocTypeComboList) => idDocTypeComboList.label} | |||||
| getOptionLabel={(option) => intl.formatMessage({ id: option.label })} | |||||
| onBlur={formik.handleBlur} | onBlur={formik.handleBlur} | ||||
| filterOptions={(options) => options} | filterOptions={(options) => options} | ||||
| inputValue={selectedIdDocInputType} | inputValue={selectedIdDocInputType} | ||||
| onChange={(event, newValue) => { | onChange={(event, newValue) => { | ||||
| if (newValue != null ) { | if (newValue != null ) { | ||||
| setSelectedIdDocInputType(newValue.label); | |||||
| setSelectedIdDocInputType(intl.formatMessage({ id: newValue.label })); | |||||
| setSelectedIdDocType(newValue); | setSelectedIdDocType(newValue); | ||||
| if (newValue.type !== "HKID") { | if (newValue.type !== "HKID") { | ||||
| formik.setFieldValue("checkDigit", "") | formik.setFieldValue("checkDigit", "") | ||||
| @@ -910,13 +910,13 @@ const CustomFormWizard = (props) => { | |||||
| sx={{ "#address4-combo": { padding: "0px 0px 0px 0px" }, "& .MuiAutocomplete-endAdornment": { top: "auto" }, }} | sx={{ "#address4-combo": { padding: "0px 0px 0px 0px" }, "& .MuiAutocomplete-endAdornment": { top: "auto" }, }} | ||||
| renderInput={(params) => <TextField | renderInput={(params) => <TextField | ||||
| {...params} | {...params} | ||||
| placeholder="證件類別" | |||||
| placeholder={intl.formatMessage({id: 'idDocType'})} | |||||
| />} | />} | ||||
| /> | /> | ||||
| {formik.touched.idDocType && ( | {formik.touched.idDocType && ( | ||||
| selectedIdDocType === null ? | selectedIdDocType === null ? | ||||
| <FormHelperText error id="helper-text-idDocType-signup"> | <FormHelperText error id="helper-text-idDocType-signup"> | ||||
| 請輸入證件類別 | |||||
| <FormattedMessage id="requireIdDocType"/> | |||||
| </FormHelperText> : '' | </FormHelperText> : '' | ||||
| )} | )} | ||||
| </Stack> | </Stack> | ||||
| @@ -944,7 +944,7 @@ const CustomFormWizard = (props) => { | |||||
| } | } | ||||
| } | } | ||||
| }} | }} | ||||
| placeholder="證件號碼" | |||||
| placeholder={intl.formatMessage({id: 'idDocNumber'})} | |||||
| fullWidth | fullWidth | ||||
| sx={{ mr: 1 }} | sx={{ mr: 1 }} | ||||
| error={Boolean(formik.touched.idNo && formik.errors.idNo)} | error={Boolean(formik.touched.idNo && formik.errors.idNo)} | ||||
| @@ -1024,7 +1024,7 @@ const CustomFormWizard = (props) => { | |||||
| } | } | ||||
| } | } | ||||
| }} | }} | ||||
| placeholder="證件號碼" | |||||
| placeholder={intl.formatMessage({id: 'idDocNumber'})} | |||||
| fullWidth | fullWidth | ||||
| sx={{ mr: 1 }} | sx={{ mr: 1 }} | ||||
| error={Boolean(formik.touched.idNo && formik.errors.idNo)} | error={Boolean(formik.touched.idNo && formik.errors.idNo)} | ||||
| @@ -1062,7 +1062,7 @@ const CustomFormWizard = (props) => { | |||||
| value={formik.values.enName} | value={formik.values.enName} | ||||
| name="enName" | name="enName" | ||||
| onChange={formik.handleChange} | onChange={formik.handleChange} | ||||
| placeholder="與你的身份證明文件相同" | |||||
| placeholder={intl.formatMessage({id: 'sameAsYourIdDoc'})} | |||||
| fullWidth | fullWidth | ||||
| error={Boolean(formik.touched.enName && formik.errors.enName && selectedIdDocType.type !== "CNID")} | error={Boolean(formik.touched.enName && formik.errors.enName && selectedIdDocType.type !== "CNID")} | ||||
| onBlur={formik.handleBlur} | onBlur={formik.handleBlur} | ||||
| @@ -1097,7 +1097,7 @@ const CustomFormWizard = (props) => { | |||||
| value={formik.values.chName.trim()} | value={formik.values.chName.trim()} | ||||
| name="chName" | name="chName" | ||||
| onChange={formik.handleChange} | onChange={formik.handleChange} | ||||
| placeholder="與你的身份證明文件相同" | |||||
| placeholder={intl.formatMessage({id: 'sameAsYourIdDoc'})} | |||||
| onBlur={formik.handleBlur} | onBlur={formik.handleBlur} | ||||
| inputProps={{ | inputProps={{ | ||||
| maxLength: 6, | maxLength: 6, | ||||
| @@ -1464,12 +1464,16 @@ const CustomFormWizard = (props) => { | |||||
| <Typography display="inline" variant="h4" sx={{ color: 'primary.primary' }}> | <Typography display="inline" variant="h4" sx={{ color: 'primary.primary' }}> | ||||
| <FormattedMessage id="userIdDoc"/> | <FormattedMessage id="userIdDoc"/> | ||||
| <span style={{ color: '#f10000' }}>*</span></Typography> | <span style={{ color: '#f10000' }}>*</span></Typography> | ||||
| <Typography display="inline" variant="subtitle1" sx={{ color: 'primary.primary' }}>請上傳你的 有效身份證明文件 的數碼檔案,以驗證你的身份。</Typography> | |||||
| <Typography display="inline" variant="subtitle1" sx={{ color: 'primary.primary' }}>如: 香港身份證; 護照; 中國內地身份證; 專業執業証書等</Typography> | |||||
| <Typography display="inline" variant="subtitle1" sx={{ color: 'primary.primary' }}> | |||||
| <FormattedMessage id="pleaseUploadIdDoc"/> | |||||
| </Typography> | |||||
| <Typography display="inline" variant="subtitle1" sx={{ color: 'primary.primary' }}> | |||||
| <FormattedMessage id="pleaseUploadIdDocSubTitle"/> | |||||
| </Typography> | |||||
| <Stack mt={1} direction="row" justifyContent="flex-start" alignItems="center" spacing={2}> | <Stack mt={1} direction="row" justifyContent="flex-start" alignItems="center" spacing={2}> | ||||
| <ThemeProvider theme={PNSPS_LONG_BUTTON_THEME}> | <ThemeProvider theme={PNSPS_LONG_BUTTON_THEME}> | ||||
| <Button variant="contained" component="label" sx={{ height: '40px' }}> | <Button variant="contained" component="label" sx={{ height: '40px' }}> | ||||
| 上傳身份證明文件 | |||||
| <FormattedMessage id="uploadIdDoc"/> | |||||
| <input | <input | ||||
| accept="image/png, .jpg, .bmp, .pdf" | accept="image/png, .jpg, .bmp, .pdf" | ||||
| //className={classes.input} | //className={classes.input} | ||||
| @@ -1646,7 +1650,7 @@ const CustomFormWizard = (props) => { | |||||
| <Grid item xs={12} md={6} > | <Grid item xs={12} md={6} > | ||||
| <Stack spacing={1} direction="row"> | <Stack spacing={1} direction="row"> | ||||
| <Typography variant="pnspsFormHeader" color={theme.palette.grey[600]}> | <Typography variant="pnspsFormHeader" color={theme.palette.grey[600]}> | ||||
| 證件類別: | |||||
| <FormattedMessage id="idDocType"/>: | |||||
| </Typography> | </Typography> | ||||
| <Typography variant="pnspsFormHeader" name="preview-idDocType"> | <Typography variant="pnspsFormHeader" name="preview-idDocType"> | ||||
| {selectedIdDocType.label} | {selectedIdDocType.label} | ||||
| @@ -1656,7 +1660,7 @@ const CustomFormWizard = (props) => { | |||||
| <Grid item xs={12} md={6}> | <Grid item xs={12} md={6}> | ||||
| <Stack spacing={1} direction="row"> | <Stack spacing={1} direction="row"> | ||||
| <Typography variant="pnspsFormHeader" color={theme.palette.grey[600]}> | <Typography variant="pnspsFormHeader" color={theme.palette.grey[600]}> | ||||
| 證件號碼: | |||||
| <FormattedMessage id="idDocNumber"/>: | |||||
| </Typography> | </Typography> | ||||
| <Typography variant="pnspsFormHeader" id="idNo-login"> | <Typography variant="pnspsFormHeader" id="idNo-login"> | ||||
| {formik.values.idNo} {selectedIdDocType.type == "HKID" ? '(' + formik.values.checkDigit + ')' : null} | {formik.values.idNo} {selectedIdDocType.type == "HKID" ? '(' + formik.values.checkDigit + ')' : null} | ||||
| @@ -64,7 +64,7 @@ const CustomFormWizard = (props) => { | |||||
| const [checkEmail, setCheckEmail] = useState(false) | const [checkEmail, setCheckEmail] = useState(false) | ||||
| const [checkEmailBlur, setCheckEmailBlur] = useState(false) | const [checkEmailBlur, setCheckEmailBlur] = useState(false) | ||||
| const address4ComboList = ComboData.district; | |||||
| const address4ComboList = ComboData.district(intl); | |||||
| const address5ComboList = ComboData.country; | const address5ComboList = ComboData.country; | ||||
| const termsAndCon = "此網址由香港特別行政區政府物流服務署製作及管理。本署會盡力確保網址上的資料無誤,\n" | const termsAndCon = "此網址由香港特別行政區政府物流服務署製作及管理。本署會盡力確保網址上的資料無誤,\n" | ||||
| + "但有絕對酌情權隨時刪除、暫停登載或編輯各項資料而無須給予任何理由。\n由於任何與網址" | + "但有絕對酌情權隨時刪除、暫停登載或編輯各項資料而無須給予任何理由。\n由於任何與網址" | ||||
| @@ -97,6 +97,9 @@ | |||||
| "businessRegCertAndDoc":"Business Registration Certificate and other documents", | "businessRegCertAndDoc":"Business Registration Certificate and other documents", | ||||
| "pleaseUploadDoc": "Please upload a digital file of your valid business registration certificate and other documents to verify your identity.", | "pleaseUploadDoc": "Please upload a digital file of your valid business registration certificate and other documents to verify your identity.", | ||||
| "uploadFile": "Upload business registration certificate and other documents", | "uploadFile": "Upload business registration certificate and other documents", | ||||
| "pleaseUploadIdDoc": "Please upload a digital file of your valid identity document to verify your identity.", | |||||
| "pleaseUploadIdDocSubTitle": "Such as: Hong Kong ID card; passport; Mainland China ID card; professional practice certificate, etc.", | |||||
| "uploadIdDoc": "Upload identity document", | |||||
| "fileName": "File name", | "fileName": "File name", | ||||
| "fileSize": "File size", | "fileSize": "File size", | ||||
| "fileSizeWarning": "Upload file size should be <10MB", | "fileSizeWarning": "Upload file size should be <10MB", | ||||
| @@ -138,6 +141,14 @@ | |||||
| "mainland": "Mainland China", | "mainland": "Mainland China", | ||||
| "macau": "Macau", | "macau": "Macau", | ||||
| "yourContact": "Your Contact Information", | "yourContact": "Your Contact Information", | ||||
| "passport": "Passport", | |||||
| "HKIDcard": "Hong Kong ID Card", | |||||
| "mainlandIDCard": "Mainland ID card", | |||||
| "proCert": "Professional Practice Certificate", | |||||
| "idDocType": "Document Category", | |||||
| "requireIdDocType": "Please enter the document type", | |||||
| "idDocNumber": "ID number", | |||||
| "sameAsYourIdDoc": "Same as your ID document", | |||||
| "pwRemark1": "At least 8 characters, the more characters the better", | "pwRemark1": "At least 8 characters, the more characters the better", | ||||
| "pwRemark2": "A mix of letters and numbers", | "pwRemark2": "A mix of letters and numbers", | ||||
| @@ -148,6 +159,28 @@ | |||||
| "pwGood": "Good", | "pwGood": "Good", | ||||
| "pwStrong": "Strong", | "pwStrong": "Strong", | ||||
| "islandCombo": "Island District", | |||||
| "kwaiTsingCombo": "Kwai Tsing District", | |||||
| "northCombo": "North District", | |||||
| "saiKungCombo": "Sai Kung District", | |||||
| "shaTinCombo": "Sha Tin District", | |||||
| "taiPoCombo": "Tai Po District", | |||||
| "tsuenWanCombo": "Tsuen Wan District", | |||||
| "tuenMunCombo": "Tuen Mun District", | |||||
| "yuenLongCombo": "Yuen Long District", | |||||
| "kowloonCityCombo": "Kowloon City District", | |||||
| "kwunTongCombo": "Kwun Tong District", | |||||
| "shamShuiPoCombo": "Sham Shui Po District", | |||||
| "wongTaiSinCombo": "Wong Tai Sin District", | |||||
| "yauTsimMongCombo": "Yau Tsim Mong District", | |||||
| "centralAndWesternCombo": "Central and Western District", | |||||
| "easternCombo": "Eastern District", | |||||
| "southernCombo": "Southern District", | |||||
| "wanChaiCombo": "Wan Chai District", | |||||
| "lantauIslandCombo": "Lantau Island", | |||||
| "lammaIslandCombo": "Lamma Island District", | |||||
| "pengChauCombo": "Peng Chau District", | |||||
| "Dashboard": "Dashboard", | "Dashboard": "Dashboard", | ||||
| "event": "Event" | "event": "Event" | ||||
| } | } | ||||
| @@ -97,6 +97,9 @@ | |||||
| "businessRegCertAndDoc":"商业登记证及其他文件", | "businessRegCertAndDoc":"商业登记证及其他文件", | ||||
| "pleaseUploadDoc": "请上传你的 有效商业登记证及其他文件 的数码档案,以验证你的身份。", | "pleaseUploadDoc": "请上传你的 有效商业登记证及其他文件 的数码档案,以验证你的身份。", | ||||
| "uploadFile": "上传商业登记证及其他文件", | "uploadFile": "上传商业登记证及其他文件", | ||||
| "pleaseUploadIdDoc": "请上传你的 有效身份证明文件 的数码档案,以验证你的身份。", | |||||
| "pleaseUploadIdDocSubTitle": "如: 香港身份证; 护照; 中国内地身份证; 专业执业证书等", | |||||
| "uploadIdDoc": "上传身份证明文件", | |||||
| "fileName": "档案名称", | "fileName": "档案名称", | ||||
| "fileSize": "档案大小", | "fileSize": "档案大小", | ||||
| "fileSizeWarning": "上传档案大小应<10MB", | "fileSizeWarning": "上传档案大小应<10MB", | ||||
| @@ -133,11 +136,19 @@ | |||||
| "requireUsername": "请输入用户名称", | "requireUsername": "请输入用户名称", | ||||
| "requirePassword": "请输入密码", | "requirePassword": "请输入密码", | ||||
| "region": "区域 (只适用于香港)", | "region": "区域 (只适用于香港)", | ||||
| "region Or Country": "国家/地区", | |||||
| "hong Kong": "香港", | |||||
| "regionOrCountry": "国家/地区", | |||||
| "hongKong": "香港", | |||||
| "mainland": "内地", | "mainland": "内地", | ||||
| "macau": "澳门", | "macau": "澳门", | ||||
| "yourContact": "你的联络资料", | "yourContact": "你的联络资料", | ||||
| "passport": "护照", | |||||
| "HKIDcard": "香港身份证", | |||||
| "mainlandIDCard": "内地身份证", | |||||
| "proCert": "专业执业证书", | |||||
| "idDocType": "证件类别", | |||||
| "requireIdDocType": "请输入证件类别", | |||||
| "idDocNumber": "证件号码", | |||||
| "sameAsYourIdDoc": "与你的身份证明文件相同", | |||||
| "pwRemark1": "至少8个字元,字元越多越好", | "pwRemark1": "至少8个字元,字元越多越好", | ||||
| "pwRemark2": "字母和数字的混合", | "pwRemark2": "字母和数字的混合", | ||||
| @@ -148,6 +159,28 @@ | |||||
| "pwGood": "良好", | "pwGood": "良好", | ||||
| "pwStrong": "强", | "pwStrong": "强", | ||||
| "islandCombo": "离岛区", | |||||
| "kwaiTsingCombo": "葵青区", | |||||
| "northCombo": "北区", | |||||
| "saiKungCombo": "西贡区", | |||||
| "shaTinCombo": "沙田区", | |||||
| "taiPoCombo": "大埔区", | |||||
| "tsuenWanCombo": "荃湾区", | |||||
| "tuenMunCombo": "屯门区", | |||||
| "yuenLongCombo": "元朗区", | |||||
| "kowloonCityCombo": "九龙城区", | |||||
| "kwunTongCombo": "观塘区", | |||||
| "shamShuiPoCombo": "深水埗区", | |||||
| "wongTaiSinCombo": "黄大仙区", | |||||
| "yauTsimMongCombo": "油尖旺区", | |||||
| "centralAndWesternCombo": "中西区", | |||||
| "easternCombo": "东区", | |||||
| "southernCombo": "南区", | |||||
| "wanChaiCombo": "湾仔区", | |||||
| "lantauIslandCombo": "大屿山区", | |||||
| "lammaIslandCombo": "南丫岛区", | |||||
| "pengChauCombo": "坪洲区", | |||||
| "Dashboard": "仪表板", | "Dashboard": "仪表板", | ||||
| "event": "活动" | "event": "活动" | ||||
| } | } | ||||
| @@ -96,6 +96,9 @@ | |||||
| "businessRegCertNumber": "商業登記證號碼", | "businessRegCertNumber": "商業登記證號碼", | ||||
| "businessRegCertAndDoc":"商業登記證及其他文件", | "businessRegCertAndDoc":"商業登記證及其他文件", | ||||
| "pleaseUploadDoc": "請上傳你的 有效商業登記證及其他文件 的數碼檔案,以驗證你的身份。", | "pleaseUploadDoc": "請上傳你的 有效商業登記證及其他文件 的數碼檔案,以驗證你的身份。", | ||||
| "pleaseUploadIdDoc": "請上傳你的 有效身份證明文件 的數碼檔案,以驗證你的身份。", | |||||
| "pleaseUploadIdDocSubTitle": "如: 香港身份證; 護照; 中國內地身份證; 專業執業証書等", | |||||
| "uploadIdDoc": "上傳身份證明文件", | |||||
| "uploadFile": "上傳商業登記證及其他文件", | "uploadFile": "上傳商業登記證及其他文件", | ||||
| "fileName": "檔案名稱", | "fileName": "檔案名稱", | ||||
| "fileSize": "檔案大小", | "fileSize": "檔案大小", | ||||
| @@ -138,6 +141,14 @@ | |||||
| "mainland": "內地", | "mainland": "內地", | ||||
| "macau": "澳門", | "macau": "澳門", | ||||
| "yourContact": "你的聯絡資料", | "yourContact": "你的聯絡資料", | ||||
| "passport": "護照", | |||||
| "HKIDcard": "香港身份證", | |||||
| "mainlandIDCard": "內地身份證", | |||||
| "proCert": "專業執業證書", | |||||
| "idDocType": "證件類別", | |||||
| "requireIdDocType": "請輸入證件類別", | |||||
| "idDocNumber": "證件號碼", | |||||
| "sameAsYourIdDoc": "與你的身份證明文件相同", | |||||
| "pwRemark1": "至少8個字元,字元越多越好", | "pwRemark1": "至少8個字元,字元越多越好", | ||||
| "pwRemark2": "字母和數字的混合", | "pwRemark2": "字母和數字的混合", | ||||
| @@ -148,6 +159,28 @@ | |||||
| "pwGood": "良好", | "pwGood": "良好", | ||||
| "pwStrong": "強", | "pwStrong": "強", | ||||
| "islandCombo": "離島區", | |||||
| "kwaiTsingCombo": "葵青區", | |||||
| "northCombo": "北區", | |||||
| "saiKungCombo": "西貢區", | |||||
| "shaTinCombo": "沙田區", | |||||
| "taiPoCombo": "大埔區", | |||||
| "tsuenWanCombo": "荃灣區", | |||||
| "tuenMunCombo": "屯門區", | |||||
| "yuenLongCombo": "元朗區", | |||||
| "kowloonCityCombo": "九龍城區", | |||||
| "kwunTongCombo": "觀塘區", | |||||
| "shamShuiPoCombo": "深水埗區", | |||||
| "wongTaiSinCombo": "黃大仙區", | |||||
| "yauTsimMongCombo": "油尖旺區", | |||||
| "centralAndWesternCombo": "中西區", | |||||
| "easternCombo": "東區", | |||||
| "southernCombo": "南區", | |||||
| "wanChaiCombo": "灣仔區", | |||||
| "lantauIslandCombo": "大嶼山區", | |||||
| "lammaIslandCombo": "南丫島區", | |||||
| "pengChauCombo": "坪洲區", | |||||
| "Dashboard": "儀表板", | "Dashboard": "儀表板", | ||||
| "event": "活動" | "event": "活動" | ||||
| } | } | ||||
| @@ -1,12 +1,20 @@ | |||||
| export const idDocType = [ | export const idDocType = [ | ||||
| { key: 1, label: '護照', type: 'passport' }, | |||||
| { key: 2, label: '香港身份證', type: 'HKID' }, | |||||
| { key: 3, label: '內地身份證', type: 'CNID' }, | |||||
| { key: 4, label: '專業執業證書', type: 'otherCert' } | |||||
| { key: 1, label: 'passport', type: 'passport' }, | |||||
| { key: 2, label: 'HKIDcard', type: 'HKID' }, | |||||
| { key: 3, label: 'mainlandIDCard', type: 'CNID' }, | |||||
| { key: 4, label: 'proCert', type: 'otherCert' } | |||||
| ]; | ]; | ||||
| export const district = ['北區', '長洲區', '大埔區', '大嶼山區', '東區', '觀塘區', '黃大仙區', '九龍城區', '葵青區', '南區', '南丫島區', | |||||
| '坪洲區', '荃灣區', '沙田區', '深水埗區', '屯門區', '灣仔區', '西貢區', '油尖旺區', '元朗區', '中西區']; | |||||
| export const district = (intl) =>{ | |||||
| return [ | |||||
| 'islandCombo', 'kwaiTsingCombo', 'northCombo', 'saiKungCombo', | |||||
| 'shaTinCombo', 'taiPoCombo', 'tsuenWanCombo', 'tuenMunCombo', | |||||
| 'yuenLongCombo', 'kowloonCityCombo', 'kwunTongCombo', 'shamShuiPoCombo', | |||||
| 'wongTaiSinCombo', 'yauTsimMongCombo', 'centralAndWesternCombo', 'easternCombo', | |||||
| 'southernCombo', 'wanChaiCombo', 'lantauIslandCombo', 'lammaIslandCombo', | |||||
| 'pengChauCombo' | |||||
| ].map((district) => intl.formatMessage({id: district})); | |||||
| }; | |||||
| export const country = (intl) => { | export const country = (intl) => { | ||||
| return ["hongKong", "mainland", "macau"] | return ["hongKong", "mainland", "macau"] | ||||