RegisterV4.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  1. /**
  2. * 带OTP的注册页面
  3. * @邠心vbe on 2023/02/06
  4. */
  5. import React from 'react';
  6. import { View, Text, ScrollView, StyleSheet, TextInput, Pressable, Image } from 'react-native';
  7. import apiUser from '../../api/apiUser';
  8. import Button from '../../components/Button';
  9. import { PageList } from '../Router';
  10. import Dialog from '../../components/Dialog';
  11. import Modal from 'react-native-modal';
  12. import { RegisterDialog } from '../charge/InfoDialog';
  13. import Dropdown from '../../components/Dropdown';
  14. import ImagePicker from 'react-native-image-crop-picker';
  15. import apiUpload from '../../api/apiUpload';
  16. import { host } from '../../api/http';
  17. import { ModalProps } from '../../components/BottomModal';
  18. import { CountryDropNum, GetCountryList } from '../../components/CountryIcon';
  19. import StrengthView from './StrengthView';
  20. import CheckBox from '../../components/CheckBox';
  21. import { UploadThemes } from '../../components/ThemesConfig';
  22. const options = {
  23. width: 300,
  24. height: 200,
  25. cropping: true,
  26. multiple: false,
  27. mediaType: 'photo',
  28. writeTempFile: false,
  29. compressImageQuality: 0.8,
  30. compressImageMaxWidth: 720,
  31. compressImageMaxHeight: 1280,
  32. ...UploadThemes
  33. }
  34. export default class RegisterV4 extends React.Component {
  35. constructor(props) {
  36. super(props);
  37. this.StrengthView = StrengthView.V2
  38. this.state = {
  39. agree: true,
  40. strength: 0,
  41. countryNum: '65',
  42. countryShow: false,
  43. userInfo: {
  44. email: "",
  45. verificationCode: ""
  46. },
  47. countryNums: [],
  48. wrongCount: 0,
  49. params: {...this.props.route.params},
  50. email: '',
  51. password: '',
  52. fleetCompanyId: '',
  53. sendMinutes: 0,
  54. visible: false,
  55. isFleetDriver: false,
  56. pdvImages: ['', ''],
  57. companyList: []
  58. };
  59. }
  60. componentDidMount() {
  61. //console.log(this.state.params);
  62. if (this.state.params.isFleetUser) {
  63. this.setState({
  64. isFleetDriver: true
  65. })
  66. this.props.navigation.setOptions({
  67. headerTitle: "Fleet / PHV Registration"
  68. })
  69. }
  70. this.getCountryList();
  71. this.getCompanyList();
  72. }
  73. applyStrength(text) {
  74. this.StrengthView.apply(text, strength => {
  75. if (this.state.strength != strength) {
  76. this.setState({
  77. password: text,
  78. strength: strength
  79. });
  80. } else {
  81. this.setState({
  82. password: text
  83. });
  84. }
  85. });
  86. }
  87. changeInfo(key, value) {
  88. var info = this.state.userInfo;
  89. info[key] = value;
  90. this.setState({
  91. 'userInfo': info
  92. });
  93. }
  94. getCountryList() {
  95. GetCountryList(list => {
  96. this.setState({
  97. countryNums: list
  98. })
  99. })
  100. }
  101. getCompanyList() {
  102. apiUser.getConmpany().then(res => {
  103. if (res.data) {
  104. this.setState({
  105. companyList: res.data
  106. })
  107. }
  108. }).catch(err => [
  109. toastShort(err)
  110. ])
  111. }
  112. sendVerification() {
  113. var info = this.state.userInfo;
  114. if (!info.email) {
  115. toastShort('Please enter email address');
  116. return;
  117. }
  118. if (!/^[a-zA-Z0-9]+[\S]+@[a-zA-Z0-9_-]+[\.][\Sa-zA-Z]+$/.test(info.email)) {
  119. toastShort('Email is incorrect format');
  120. return;
  121. }
  122. Dialog.showProgressDialog()
  123. apiUser.sendVerificationCodeV2({email: info.email, type: "register"}).then(res => {
  124. Dialog.dismissLoading()
  125. //this.state.sendMinutes = 60;
  126. this.state.sendMinutes = res.data?.resendTime ?? 60;
  127. toastShort('Send verification code successfully');
  128. this.contdownTime();
  129. }).catch(err => {
  130. Dialog.dismissLoading()
  131. toastShort(err);
  132. });
  133. }
  134. contdownTime() {
  135. if (this.state.sendMinutes > 0) {
  136. this.setState({
  137. sendMinutes: this.state.sendMinutes - 1
  138. })
  139. setTimeout(() => {
  140. this.contdownTime();
  141. }, 1000);
  142. }
  143. }
  144. onRegister() {
  145. //console.log('sign up', this.state);
  146. var info = this.state.userInfo;
  147. if (!info.nickName) {
  148. toastShort('Please enter display name');
  149. return;
  150. }
  151. if (!info.email) {
  152. toastShort('Please enter email address');
  153. return;
  154. }
  155. if (!/^[a-zA-Z0-9]+[\S]+@[a-zA-Z0-9_-]+[\.][\Sa-zA-Z]+$/.test(info.email)) {
  156. toastShort('Email is incorrect format');
  157. return;
  158. }
  159. if (!info.phone) {
  160. toastShort('Please enter contact number');
  161. return;
  162. }
  163. if (!/^\d{6,15}$/.test(info.phone)) {
  164. toastShort('Phone Number is incorrect format');
  165. return;
  166. }
  167. if (!this.state.password) {
  168. toastShort('Please enter password');
  169. return;
  170. }
  171. if (this.state.strength < this.StrengthView.maxStrength) {
  172. toastShort('Password is not strong');
  173. return;
  174. }
  175. if (!info.password) {
  176. toastShort('Please enter confirm password');
  177. return;
  178. }
  179. if (info.password != this.state.password) {
  180. toastShort('The twice passwords are inconsistent');
  181. if (this.state.wrongCount < 3) {
  182. this.setState({
  183. wrongCount: this.state.wrongCount + 1
  184. })
  185. }
  186. return;
  187. }
  188. if (this.state.isFleetDriver) {
  189. if (!info.pdvLicence) {
  190. toastShort('Please enter PDV Licence');
  191. return;
  192. }
  193. if (this.state.pdvImages[0] == '' || this.state.pdvImages[1] == '') {
  194. toastShort('Please upload PDV Licence Photos');
  195. return;
  196. }
  197. }
  198. let param = Object.assign({}, info);
  199. //param.phone = this.state.countryNum + info.phone
  200. param.callingCode = this.state.countryNum;
  201. if (this.state.isFleetDriver) {
  202. param.userType = 'Driver';
  203. param.pdvLicencePictures = this.state.pdvImages;
  204. param.fleetCompanyId = this.state.fleetCompanyId;
  205. } else {
  206. param.userType = 'Public';
  207. }
  208. param.otp = param.verificationCode;
  209. console.log('params', param);
  210. Dialog.showProgressDialog();
  211. apiUser.register(param).then(res => {
  212. Dialog.dismissLoading();
  213. //toastShort('Sign up successfully!');
  214. this.setState({
  215. email: param.email,
  216. visible: true
  217. });
  218. //this.backToLogin();
  219. }).catch(err => {
  220. toastShort(err);
  221. Dialog.dismissLoading();
  222. });
  223. }
  224. getBackTopPosition() {
  225. return isIOS ? statusHeight - 16 : 8;
  226. }
  227. backToLogin() {
  228. if (this.state.params.actionLogin) {
  229. goBack()
  230. startPage(PageList.login);
  231. } else {
  232. goBack();
  233. }
  234. }
  235. uploadImage(index) {
  236. ImagePicker.openPicker(options).then(image => {
  237. if (image.path) {
  238. apiUpload.uploadImage(image.path, image.mime, 'PDVL').then(res => {
  239. if (res.success && res.data.picturePath) {
  240. let imageUrl = this.state.pdvImages;
  241. imageUrl[index] = res.data.picturePath;
  242. this.setState({
  243. pdvImages: imageUrl
  244. });
  245. } else {
  246. toastShort('Upload failed, please retry');
  247. }
  248. }).catch(err => {
  249. toastShort(err);
  250. });
  251. }
  252. }).catch(err => {
  253. //console.log(err);
  254. });
  255. }
  256. changeAgree(ag) {
  257. this.setState({
  258. agree: ag
  259. })
  260. }
  261. hideDialog() {
  262. this.setState({
  263. visible: false
  264. });
  265. this.backToLogin();
  266. }
  267. render() {
  268. return (
  269. <View style={styles.container}>
  270. <ScrollView
  271. style={styles.scollView}
  272. keyboardShouldPersistTaps={'handled'}>
  273. <View style={styles.signView}>
  274. {/* <View style={styles.tabView}>
  275. <Text
  276. style={[
  277. styles.tabText,
  278. this.state.isFleetDriver ? {} : styles.tabActive
  279. ]}
  280. onPress={() => this.changeTab(false)}
  281. >Public Users</Text>
  282. <Text
  283. style={[
  284. styles.tabText,
  285. this.state.isFleetDriver ? styles.tabActive: {}
  286. ]}
  287. onPress={() => this.changeTab(true)}
  288. >Fleet/PH Drivers</Text>
  289. </View> */}
  290. <View style={styles.signInput}>
  291. <Text style={styles.inputLabel}>Display Name</Text>
  292. <TextInput
  293. style={styles.inputView}
  294. placeholder='Display Name'
  295. maxLength={50}
  296. onChangeText={v => this.changeInfo('nickName', v)}
  297. />
  298. </View>
  299. <View style={styles.signInput}>
  300. <Text style={styles.inputLabel}>Email Address</Text>
  301. <TextInput
  302. style={styles.inputView}
  303. placeholder='Email Address'
  304. maxLength={50}
  305. keyboardType="email-address"
  306. textContentType='emailAddress'
  307. onChangeText={v => this.changeInfo('email', v)}
  308. />
  309. </View>
  310. <View style={styles.signInput}>
  311. <Text style={[styles.inputLabel, {flex: 2}]}>Validate Email</Text>
  312. <TextInput
  313. style={[styles.inputView, {flex: 2.2, marginLeft: 2}]}
  314. placeholder='OTP'
  315. maxLength={6}
  316. keyboardType="number-pad"
  317. textContentType="telephoneNumber"
  318. onChangeText={v => this.changeInfo('verificationCode', v)}
  319. />
  320. <Button
  321. text={this.state.sendMinutes > 0 ? (this.state.sendMinutes + " s") : 'EMAIL OTP'}
  322. style={styles.sendBtn}
  323. disabled={this.state.sendMinutes > 0}
  324. viewStyle={styles.sendBtnView}
  325. textStyle={styles.sendBtnText}
  326. onClick={() => this.sendVerification()}
  327. />
  328. </View>
  329. <View style={styles.signInput}>
  330. <Text style={styles.inputLabel}>Phone Number</Text>
  331. <View style={styles.mobileView}>
  332. <View style={styles.dropView}>
  333. <TextInput style={styles.dropInput} editable={false}/>
  334. <Text style={styles.countryText}>{"+" + this.state.countryNum}</Text>
  335. <MaterialIcons name={'arrow-drop-down'} size={24} color={colorDark}/>
  336. <Dropdown
  337. style={styles.dropLayer}
  338. title='Country'
  339. prefixText="+"
  340. list={this.state.countryNums}
  341. value={this.state.countryNum}
  342. nameKey='countryNum'
  343. valueKey='countryNum'
  344. onChange={(value, index)=> {
  345. this.setState({
  346. countryNum: value
  347. })
  348. }}
  349. customerItemView={
  350. (item, index, onClick) =>
  351. <CountryDropNum
  352. key={index}
  353. country={item}
  354. value={this.state.countryNum}
  355. onClick={onClick}/>
  356. }/>
  357. </View>
  358. <TextInput
  359. style={styles.contactView}
  360. placeholder='Mobile Number'
  361. keyboardType='phone-pad'
  362. maxLength={15}
  363. onChangeText={v => this.changeInfo('phone', v)}
  364. />
  365. </View>
  366. </View>
  367. <View style={styles.signInput}>
  368. <Text style={styles.inputLabel}>Create Password</Text>
  369. <TextInput
  370. secureTextEntry={this.state.wrongCount < 3}
  371. style={styles.inputView}
  372. placeholder='Password'
  373. maxLength={20}
  374. onChangeText={(value) => {
  375. this.applyStrength(value);
  376. }}
  377. />
  378. </View>
  379. <View style={styles.signInput}>
  380. <Text style={styles.inputLabel}></Text>
  381. <View style={styles.passwordView}>
  382. <this.StrengthView.VIEW strength={this.state.strength}/>
  383. </View>
  384. </View>
  385. <View style={styles.signInput}>
  386. <Text style={styles.inputLabel}>Confirm Password</Text>
  387. <TextInput
  388. secureTextEntry={this.state.wrongCount < 3}
  389. style={styles.inputView}
  390. placeholder='Password'
  391. maxLength={20}
  392. onChangeText={v => this.changeInfo('password', v)}
  393. />
  394. </View>
  395. { this.state.isFleetDriver &&
  396. <>
  397. <View style={styles.signInput}>
  398. <Text style={styles.inputLabel}>Your Company</Text>
  399. <Dropdown
  400. style={[styles.inputView, ui.flexc]}
  401. title='Company'
  402. list={this.state.companyList}
  403. value={this.state.fleetCompanyId}
  404. valueKey='fleetCompanyId'
  405. nameKey='fleetCompanyName'
  406. onChange={(value, index)=> {
  407. this.setState({
  408. fleetCompanyId: value
  409. })
  410. }}/>
  411. </View>
  412. <View style={styles.signInput}>
  413. <Text style={styles.inputLabel}>{'PDV Licence'}</Text>
  414. <TextInput
  415. style={styles.inputView}
  416. placeholder='PH Driver Vocational Licence'
  417. maxLength={20}
  418. onChangeText={v => this.changeInfo('pdvLicence', v)}
  419. />
  420. </View>
  421. <View style={styles.signInput}>
  422. <Text style={styles.inputLabel}>{' PDV Photos\n(Front & Back)'}</Text>
  423. <View style={styles.uploadGroup}>
  424. { this.state.pdvImages.map((item, index) => (
  425. <UploadView
  426. key={index}
  427. onPress={() => this.uploadImage(index)}
  428. url={item}/>
  429. ))
  430. }
  431. </View>
  432. </View>
  433. </>
  434. }
  435. {/* <View style={styles.referView}>
  436. <Text style={styles.referTitle}>Have a referral code?</Text>
  437. <View style={styles.referText}>
  438. <Text>You'll get</Text>
  439. <Text style={styles.weight}>$5</Text>
  440. <Text>Credit as registration bonus!</Text>
  441. </View>
  442. <View style={styles.codeView}>
  443. <Text style={{ color: textPrimary, fontSize: 16 }}>Referral Code</Text>
  444. <TextInput
  445. style={styles.codeText}
  446. maxLength={6}
  447. placeholder='Referral Code'
  448. onChangeText={v => this.changeInfo('referralCode', v)}
  449. />
  450. </View>
  451. </View> */}
  452. <View style={styles.agreeView}>
  453. <CheckBox
  454. value={this.state.agree}
  455. onValueChange={v => this.changeAgree(v)}
  456. />
  457. <View style={styles.agreeTextRow}>
  458. <Text style={styles.agreeText} onPress={() => this.changeAgree(!this.state.agree)}>
  459. {'I have read and I agree with the '}
  460. </Text>
  461. <Text style={styles.agreeLink} onPress={() => startPage(PageList.condition)}>Terms of Use</Text>
  462. <Text style={styles.agreeText}>{' '}</Text>
  463. <Text style={styles.agreeText}>{'and '}</Text>
  464. <Text style={styles.agreeLink} onPress={() => startPage(PageList.privacy)}>Privacy Policy</Text>
  465. <Text style={styles.agreeText}>.</Text>
  466. </View>
  467. </View>
  468. <Button
  469. style={styles.signButton}
  470. elevation={1.5}
  471. disabled={!this.state.agree}
  472. text='SIGN UP'
  473. fontSize={14}
  474. onClick={() => {
  475. this.onRegister();
  476. }}
  477. />
  478. </View>
  479. </ScrollView>
  480. <Modal
  481. isVisible={this.state.visible}
  482. onBackButtonPress={() => this.hideDialog()}
  483. {...ModalProps}>
  484. <RegisterDialog
  485. address={this.state.email}
  486. onClose={() => this.hideDialog()}
  487. />
  488. </Modal>
  489. </View>
  490. );
  491. }
  492. }
  493. const UploadView = ({url, onPress}) => (
  494. <Pressable
  495. style={styles.uploadView}
  496. onPress={onPress}>
  497. { url == ''
  498. ? <Image
  499. style={styles.uploadIcon}
  500. source={require('../../images/icon/ic-add-photo.png')}/>
  501. : <Image
  502. style={styles.uploadIcon}
  503. defaultSource={require('../../images/icon/icon-upload-default.png')}
  504. source={{uri: host + url}}/>
  505. }
  506. </Pressable>
  507. )
  508. const styles = StyleSheet.create({
  509. container: {
  510. flex: 1,
  511. backgroundColor: colorLight
  512. },
  513. header: {
  514. paddingTop: 56,
  515. backgroundColor: colorAccent
  516. },
  517. backView: {
  518. top: 12,
  519. zIndex: 5,
  520. padding: 16,
  521. position: 'absolute',
  522. flexDirection: 'row'
  523. },
  524. backButton: {
  525. borderRadius: 60,
  526. backgroundColor: colorLight
  527. },
  528. backButtonView: {
  529. height: 43,
  530. paddingLeft: 16,
  531. paddingRight: 16,
  532. alignItems: 'center',
  533. flexDirection: 'row'
  534. },
  535. scollView: {
  536. flex: 1
  537. },
  538. logoView: {
  539. paddingTop: 32,
  540. paddingBottom: 56,
  541. alignItems: 'center'
  542. },
  543. logoImg: {
  544. width:165.09,
  545. height: 51.94,
  546. },
  547. signView: {
  548. flex: 1,
  549. padding: 16,
  550. //marginTop: -30,
  551. borderTopLeftRadius: 20,
  552. borderTopRightRadius: 20,
  553. backgroundColor: colorLight
  554. },
  555. tabView: {
  556. marginBottom: 4,
  557. borderWidth: 1,
  558. borderRadius: 6,
  559. overflow: 'hidden',
  560. alignItems: 'center',
  561. flexDirection: 'row',
  562. borderColor: colorAccent,
  563. },
  564. tabText: {
  565. flex: 1,
  566. color: textPrimary,
  567. fontSize: 15,
  568. textAlign: 'center',
  569. ...$padding(10, 0),
  570. },
  571. tabActive: {
  572. fontWeight: 'bold',
  573. backgroundColor: colorAccent
  574. },
  575. title: {
  576. color: textPrimary,
  577. fontSize: 18,
  578. fontWeight: '700',
  579. paddingTop: 4,
  580. paddingBottom: 6,
  581. },
  582. signInput: {
  583. marginTop: 16,
  584. alignItems: 'center',
  585. flexDirection: 'row'
  586. },
  587. inputLabel: {
  588. flex: 1,
  589. color: textPrimary,
  590. fontSize: 14,
  591. marginRight: 4
  592. },
  593. inputView: {
  594. flex: 2,
  595. color: textPrimary,
  596. fontSize: 14,
  597. borderRadius: 5,
  598. minHeight: 40,
  599. paddingTop: 6,
  600. paddingLeft: 12,
  601. paddingRight: 12,
  602. paddingBottom: 6,
  603. backgroundColor: '#F5F5F5'
  604. },
  605. mobileView: {
  606. flex: 2,
  607. marginLeft: -12,
  608. alignItems: 'center',
  609. flexDirection: 'row'
  610. },
  611. dropView: {
  612. fontSize: 16,
  613. borderRadius: 4,
  614. paddingRight: 4,
  615. flexDirection: 'row',
  616. alignItems: 'center',
  617. backgroundColor: '#F5F5F5'
  618. },
  619. dropInput: {
  620. width: 12,
  621. padding: 6,
  622. color: textPrimary,
  623. minHeight: 40,
  624. },
  625. countryText: {
  626. color: textPrimary,
  627. fontSize: 14,
  628. paddingRight: 4
  629. },
  630. dropLayer: {
  631. left: 0,
  632. right: 0,
  633. opacity: 0,
  634. position: 'absolute'
  635. },
  636. contactView: {
  637. flex: 1,
  638. color: textPrimary,
  639. fontSize: 15,
  640. borderRadius: 4,
  641. minHeight: 40,
  642. paddingTop: 6,
  643. paddingLeft: 12,
  644. paddingRight: 12,
  645. paddingBottom: 6,
  646. marginLeft: 10,
  647. backgroundColor: '#F5F5F5'
  648. },
  649. passwordView: {
  650. flex: 2,
  651. marginTop: -8,
  652. },
  653. referView: {
  654. padding: 16,
  655. marginTop: 24,
  656. borderRadius: 6,
  657. alignItems: 'center',
  658. backgroundColor: '#F5F5F5'
  659. },
  660. referTitle: {
  661. color: textPrimary,
  662. fontSize: 18,
  663. fontWeight: 'bold'
  664. },
  665. referText: {
  666. color: textPrimary,
  667. paddingTop: 4,
  668. alignItems: 'flex-end',
  669. flexDirection: 'row'
  670. },
  671. weight: {
  672. fontSize: 18,
  673. paddingLeft: 4,
  674. paddingRight: 4,
  675. color: colorAccent,
  676. fontWeight: 'bold'
  677. },
  678. codeView: {
  679. paddingTop: 16,
  680. alignItems: 'center',
  681. flexDirection: 'row'
  682. },
  683. codeText: {
  684. color: textPrimary,
  685. fontSize: 16,
  686. paddingTop: 6,
  687. paddingLeft: 12,
  688. paddingRight: 12,
  689. paddingBottom: 6,
  690. minHeight: 40,
  691. marginLeft: 16,
  692. borderRadius: 6,
  693. textAlign: 'center',
  694. backgroundColor: colorLight
  695. },
  696. signButton: {
  697. marginTop: 24,
  698. marginBottom: 8,
  699. },
  700. uploadGroup: {
  701. flex: 2,
  702. alignItems: 'center',
  703. flexDirection: 'row',
  704. justifyContent: 'center'
  705. },
  706. uploadView: {
  707. flex: 1,
  708. alignItems: 'center'
  709. },
  710. uploadIcon: {
  711. width: $vw(28),
  712. height: $vw(28),
  713. borderRadius: 6
  714. },
  715. agreeView: {
  716. marginTop: 24,
  717. marginBottom: 16,
  718. flexDirection: 'row',
  719. alignItems: 'flex-start',
  720. },
  721. agreeTextRow: {
  722. flex: 1,
  723. paddingTop: 4,
  724. paddingLeft: 8,
  725. flexWrap: 'wrap',
  726. flexDirection: 'row'
  727. },
  728. agreeText: {
  729. color: textPrimary,
  730. fontSize: 14,
  731. paddingTop: 2,
  732. paddingBottom: 2
  733. },
  734. agreeLink: {
  735. ...ui.link,
  736. fontSize: 14,
  737. paddingTop: 2,
  738. paddingBottom: 2,
  739. textDecorationLine: 'underline'
  740. },
  741. sendBtn: {
  742. flex: 1.8,
  743. marginLeft: 6,
  744. marginRight: 0,
  745. borderRadius: 6
  746. },
  747. sendBtnView: {
  748. flex: 1,
  749. height: 40,
  750. paddingLeft: 4,
  751. paddingRight: 4,
  752. alignItems: 'center',
  753. justifyContent: 'center'
  754. },
  755. sendBtnText: {
  756. color: colorLight,
  757. fontSize: 13,
  758. fontWeight: 'bold'
  759. },
  760. });