Leon 1 vuosi sitten
vanhempi
commit
dd1001f2de

+ 1 - 1
android_time/app/build.gradle

@@ -144,7 +144,7 @@ aaptOptions.useNewCruncher = false
         applicationId app_id
         minSdkVersion rootProject.ext.minSdkVersion
         targetSdkVersion rootProject.ext.targetSdkVersion
-        versionCode 1
+        versionCode 2
         versionName "1.0.0"
         buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
 //        manifestPlaceholders = [

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 1 - 1
android_time/app/src/main/assets/index.android.bundle


+ 1 - 0
android_time/app/src/main/res/values/styles.xml

@@ -4,6 +4,7 @@
     <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
         <!-- Customize your theme here. -->
         <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
+        <item name="android:windowIsTranslucent">true</item>
     </style>
 
 </resources>

BIN
ios/assets/src/assets/images/center.png


BIN
ios/assets/src/assets/images/current_location.png


BIN
ios/assets/src/assets/images/dot_arrow_white.png


BIN
ios/assets/src/assets/index_time/arrow.png


BIN
ios/assets/src/assets/index_time/arrow_right.png


BIN
ios/assets/src/assets/index_time/btn_bg.png


BIN
ios/assets/src/assets/index_time/check.png


BIN
ios/assets/src/assets/index_time/moon.png


BIN
ios/assets/src/assets/index_time/more.png


BIN
ios/assets/src/assets/index_time/pin.png


BIN
ios/assets/src/assets/index_time/sun.png


+ 2 - 2
ios/hola.xcodeproj/project.pbxproj

@@ -580,7 +580,7 @@
 				CODE_SIGN_ENTITLEMENTS = hola/hola.entitlements;
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 130;
+				CURRENT_PROJECT_VERSION = 131;
 				DEVELOPMENT_TEAM = GPMXAZ9G5N;
 				ENABLE_BITCODE = NO;
 				INFOPLIST_FILE = hola/Info.plist;
@@ -613,7 +613,7 @@
 				CODE_SIGN_ENTITLEMENTS = hola/hola.entitlements;
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 130;
+				CURRENT_PROJECT_VERSION = 131;
 				DEVELOPMENT_TEAM = GPMXAZ9G5N;
 				INFOPLIST_FILE = hola/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = (

+ 1 - 1
ios/hola/Info.plist

@@ -32,7 +32,7 @@
 		</dict>
 	</array>
 	<key>CFBundleVersion</key>
-	<string>130</string>
+	<string>131</string>
 	<key>ITSAppUsesNonExemptEncryption</key>
 	<false/>
 	<key>LSApplicationCategoryType</key>

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 1 - 1
ios/main.jsbundle


+ 4 - 0
src/app/time_of_day/my_places.tsx

@@ -38,6 +38,10 @@ export default function MyPlacesPage() {
                 }
             }
             array.push(temp)
+            Taro.setStorage({
+                key:'locations',
+                data:JSON.stringify(array)
+            })
             let reversedArray = [...array].reverse()
             setList(reversedArray)
         }

+ 2 - 1
src/pages/account/Profile.tsx

@@ -180,7 +180,8 @@ export default function Page() {
             return 'Unlimited premium access to Pro features forever.'
         }
         if (accessObj.access.member.type == 'AUTO_RENEW') {
-            return 'Premium access to Pro features during membership.'
+            return `Your membership will automatically renew on ${member_expire()}.`
+            // return 'Premium access to Pro features during membership.'
         }
         return t('page.more.member_desc', { time: member_expire() })
     }

+ 1 - 1
src/pages/rn/RNMain.tsx

@@ -80,7 +80,7 @@ export default function RNMain() {
   const ProfilePage = () => <Profile />
   // const FoodPage = ()=><Food/>
 
-  if (kIsAndroid || kIsIOS) {
+  if (kIsAndroid) {
     // return <IndexTimePage />
     return <NavigationContainer theme={{
       dark: true,

+ 24 - 0
src/pages/store/product_list.scss

@@ -63,4 +63,28 @@
     font-size: 28px;
     color: #fff;
     margin-top: 10px;
+}
+
+.seg_bg{
+    display: flex;
+    flex-direction: row;
+    align-items: center;
+    margin-left: 46px;
+    margin-top: 20px;
+    margin-bottom: 40px;
+}
+
+.seg_sel{
+    margin-right: 40px;
+    font-size: 48px;
+    color: #fff;
+    font-weight: bold;
+}
+
+.seg_nor{
+    margin-right: 40px;
+    font-size: 40px;
+    color: #fff;
+    opacity: 0.4;
+    font-weight: bold;
 }

+ 37 - 4
src/pages/store/product_list.tsx

@@ -1,6 +1,6 @@
 
 import { kIsAndroid, kIsIOS } from "@/utils/tools";
-import { View, Text, Image } from "@tarojs/components";
+import { View, Text, Image, ScrollView } from "@tarojs/components";
 import { useEffect, useState } from "react";
 import { useDispatch, useSelector } from "react-redux";
 import './product_list.scss'
@@ -11,6 +11,7 @@ import { useTranslation } from "react-i18next";
 import { AtActivityIndicator } from "taro-ui";
 import NoData from "@/components/view/NoData";
 import { setAccessData } from "@/store/access";
+import Segment from "@/components/navigation/Segment";
 
 let useNavigation, TouchableOpacity, Purchases;
 if (process.env.TARO_ENV == 'rn') {
@@ -21,6 +22,8 @@ if (process.env.TARO_ENV == 'rn') {
 export default function ProductList() {
     const dispatch = useDispatch();
     const [packages, setPackages] = useState([]);
+    const [packages2, setPackages2] = useState<any>([]);
+    const [segmentIndex, setSegmentIndex] = useState(0);
     const user = useSelector((state: any) => state.user);
     // - State for displaying an overlay view
     const [isPurchasing, setIsPurchasing] = useState(false);
@@ -82,6 +85,7 @@ export default function ProductList() {
     function getSku() {
         setIsLoading(true)
         Promise.all([Purchases.getOfferings(), products({ store: kIsIOS ? 'app_store' : 'play_store' })]).then(list => {
+            console.log('product list', list[0], list[1])
 
             var offerings = list[0]
             var skus: any = (list[1] as any).data
@@ -95,8 +99,19 @@ export default function ProductList() {
                         }
                     });
                 });
+                var list0:any = []
+                var list1:any = []
+                array.forEach(element => {
+                    if (element.product.productCategory == 'NON_SUBSCRIPTION'){
+                        list0.push(element)
+                    }
+                    else {
+                        list1.push(element)
+                    }
+                });
 
-                setPackages(array)
+                setPackages(list0)
+                setPackages2(list1)
 
             }
             setShowErrorPage(false)
@@ -186,9 +201,26 @@ export default function ProductList() {
         </View>
 
     return <View style={{ flex: 1, position: 'relative' }}>
-        <View style={{ height: 40 }} />
+        <View className='seg_bg'>
+            <Text className={segmentIndex==0?'seg_sel':'seg_nor'} onClick={() => setSegmentIndex(0)}>Non-renew</Text>
+            <Text className={segmentIndex==1?'seg_sel':'seg_nor'} onClick={() => setSegmentIndex(1)}>Auto-renew</Text>
+        </View>
+        <ScrollView style={{flex:1}}>
+        {
+            segmentIndex==0 && packages.map((item, index) => {
+                return <View className="product_item" key={index} onClick={() => process.env.TARO_ENV == 'weapp' ? createOrder(item) : pay(item)}>
+                    <Text className="product_title" style={{ color: ColorType.fast }}>{process.env.TARO_ENV == 'weapp' ? (item as any).display_name : (item as any).product.title}</Text>
+                    <Text style={{ color: '#fff', fontSize: 16, marginTop: 5, marginBottom: 5 }}>{process.env.TARO_ENV == 'weapp' ? (item as any).description : (item as any).product.description}</Text>
+                    <View style={{ flexDirection: 'row', display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
+                        <Text className="product_price">{process.env.TARO_ENV == 'weapp' ? '¥' + (item as any).price : (item as any).product.priceString}</Text>
+                        <Image style={{ width: 24, height: 24 }} src={require('@/assets/images/arrow3.png')} />
+                    </View>
+
+                </View>
+            })
+        }
         {
-            packages.map((item, index) => {
+            segmentIndex==1 && packages2.map((item, index) => {
                 return <View className="product_item" key={index} onClick={() => process.env.TARO_ENV == 'weapp' ? createOrder(item) : pay(item)}>
                     <Text className="product_title" style={{ color: ColorType.fast }}>{process.env.TARO_ENV == 'weapp' ? (item as any).display_name : (item as any).product.title}</Text>
                     <Text style={{ color: '#fff', fontSize: 16, marginTop: 5, marginBottom: 5 }}>{process.env.TARO_ENV == 'weapp' ? (item as any).description : (item as any).product.description}</Text>
@@ -200,6 +232,7 @@ export default function ProductList() {
                 </View>
             })
         }
+        </ScrollView>
         {/* <FlatList
             data={packages}
             renderItem={({ item }) => <View className="product_item" onClick={() => pay(item)}>

+ 1 - 6
yarn.lock

@@ -14812,16 +14812,11 @@ moment-timezone@^0.5.34, moment-timezone@^0.5.45:
   dependencies:
     moment "^2.29.4"
 
-moment@^2.29.4:
+moment@^2.29.4, moment@^2.30.1:
   version "2.30.1"
   resolved "https://registry.yarnpkg.com/moment/-/moment-2.30.1.tgz#f8c91c07b7a786e30c59926df530b4eac96974ae"
   integrity sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==
 
-moment@^2.30.1:
-  version "2.30.1"
-  resolved "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz#f8c91c07b7a786e30c59926df530b4eac96974ae"
-  integrity sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==
-
 ms@2.0.0:
   version "2.0.0"
   resolved "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä