vbea hace 2 años
padre
commit
db070e389e

+ 1 - 1
Strides-APP/app/pages/Router.js

@@ -9,7 +9,7 @@ import { createStackNavigator, TransitionPresets } from '@react-navigation/stack
 import { enableScreens } from 'react-native-screens';
 import { BackButton, Styles } from '../components/Toolbar';
 import app from '../../app.json';
-import About from './about/About';
+import About from './about/AboutV2';
 import Launcher from './Launch';
 import Login from './sign/Login';
 import Regist from './sign/RegisterV2';

+ 106 - 0
Strides-APP/app/pages/about/AboutV2.js

@@ -0,0 +1,106 @@
+/**
+ * 关于页面 - 外部链接
+ * @邠心vbe on 2021/4/7
+ */
+import React from 'react';
+import { View, Text, Image, StyleSheet, Linking } from 'react-native';
+import app from '../../../app.json';
+import TextView from '../../components/TextView';
+import { PageList } from '../Router';
+
+const author = 2023;
+
+const policyList = [{
+  name: "Terms of Use",
+  url: "https://chargeco.global/terms-of-use"
+}, {
+  name: "Privacy Policy",
+  url: "https://stridesmobility.sg/chargeco-privacy-policy"
+}, {
+  name: "Refund Policy",
+  url: "https://chargeco.global/refund-policy"
+}]
+
+export default About = () => {
+  return (
+    <View style={styles.container}>
+      <Image
+        style={styles.logo}
+        resizeMode='contain'
+        source={require('../../images/about-logo.png')}/>
+      {/* <Text style={styles.appName}>{app.displayName}</Text> */}
+      <Text style={styles.versionName}>{app.versionName}</Text>
+      <Text style={ui.flex1}></Text>
+      <View style={styles.linkView}>
+        { policyList.map((item, index) => 
+          (
+            <TextView
+              key={index}
+              style={styles.linkText}
+              onPress={() => Linking.openURL(item.url)}>
+              {item.name}
+            </TextView>
+          )
+        )}
+      </View>
+      {/*app.versionName + ' Build ' + app.versionCode + */}
+      <Text style={styles.copyright}>{'Copyright ' + getYearRange() + ' ' + app.company}</Text>
+    </View>
+  );
+}
+
+const getYearRange = () => {
+  const y = new Date().getFullYear();
+  var r = '©' + author;
+  if (y > author) {
+    r += '-' + y
+  }
+  return r;
+}
+
+const styles = StyleSheet.create({
+  container: {
+    flex: 1,
+    alignItems: 'center',
+    backgroundColor: colorLight
+  },
+  logo: {
+    width: 215,
+    height: 70,
+    marginTop: $vw(25),
+    marginBottom: 12
+  },
+  appName: {
+    color: '#000',
+    fontSize: 20,
+    paddingTop: 5,
+    textAlign: 'center'
+  },
+  versionName: {
+    color: '#999',
+    fontSize: 11,
+    paddingTop: 4,
+    textAlign: 'center',
+  },
+  copyright: {
+    color: '#aaa',
+    fontSize: 10,
+    lineHeight: 14,
+    marginBottom: 16,
+    textAlign: 'center'
+  },
+  linkView: {
+    width: $vw(90),
+    alignItems: 'center',
+    flexDirection: 'row',
+    justifyContent: 'space-around'
+  },
+  linkText: {
+    ...ui.link,
+    fontSize: 11,
+    padding: 2,
+    marginLeft: 4,
+    marginRight: 4
+  }
+})
+ 

+ 4 - 4
Strides-APP/app/pages/alert/Notification.js

@@ -18,13 +18,13 @@ export default class Notification extends Component {
       refreshing: false
     };
     this.pageAdapter = [{
-      title: $t('notification.tabAlerts'),
-      name: "Alerts",
-      component: Alerts
-    }, {
       title: $t('notification.tabPromotions'),
       name: "Promotions",
       component: Promotions
+    }, {
+      title: $t('notification.tabAlerts'),
+      name: "Alerts",
+      component: Alerts
     }]
     this.tabBarStyle = {
       tabBarStyle: styles.tabStyle,