Przeglądaj źródła

fix: 增加谷歌商店模板

ansoni 3 miesięcy temu
rodzic
commit
5d2f79af06

+ 1 - 1
.idea/bookmarks.json

@@ -2,7 +2,7 @@
   "site_front": [
     {
       "fileDescriptor": "$/src/app/[locale]/(doings)/store/page.tsx",
-      "linenumber": 630,
+      "linenumber": 634,
       "name": "\u003cImage src\u003d{\"/store/ios.png\"} alt\u003d{\"\"} width\u003d{3\u003d00} height\u003d{200} /\u003e",
       "bookmarkType": "DEFAULT"
     }

+ 0 - 13
.idea/workspace.xml

@@ -5,22 +5,9 @@
   </component>
   <component name="ChangeListManager">
     <list default="true" id="cefcab87-0337-4425-a7d4-cfe46845b330" name="Changes" comment="">
-      <change afterPath="$PROJECT_DIR$/public/store/app.svg" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/public/store/book.svg" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/public/store/child.svg" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/public/store/game.svg" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/public/store/google-play.png" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/public/store/ios.png" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/public/store/whtch.svg" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/src/app/[locale]/(doings)/store/style.module.scss" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/bookmarks.json" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/bookmarks.json" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/next.svg" beforeDir="false" afterPath="$PROJECT_DIR$/public/next.svg" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/src/app/[locale]/(doings)/store/page.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[locale]/(doings)/store/page.tsx" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/styles/iconfont/iconfont.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/styles/iconfont/iconfont.css" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/styles/iconfont/iconfont.ttf" beforeDir="false" afterPath="$PROJECT_DIR$/src/styles/iconfont/iconfont.ttf" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/styles/iconfont/iconfont.woff" beforeDir="false" afterPath="$PROJECT_DIR$/src/styles/iconfont/iconfont.woff" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/styles/iconfont/iconfont.woff2" beforeDir="false" afterPath="$PROJECT_DIR$/src/styles/iconfont/iconfont.woff2" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />

+ 7 - 3
src/app/[locale]/(doings)/store/page.tsx

@@ -318,7 +318,7 @@ const CardView: FC<{ details: StoreDetailsType | null; onPress: () => void }> =
 
                 <Change />
 
-                <Other />
+                <Other onPress={onPress} />
 
                 <Divider
                     style={{
@@ -467,7 +467,7 @@ const Change = () => {
     );
 };
 
-const Other = () => {
+const Other: FC<{ onPress: () => void }> = ({ onPress }) => {
     const array = [
         {
             url: "https://play-lh.googleusercontent.com/yZ_nzWpg_cj6GYJv15YdsfWBKS6JzXGt69R8fCCj3AsapCSs5MGdr6haxPCk-Ae91g=s64-rw",
@@ -515,7 +515,11 @@ const Other = () => {
             <div className={"grid grid-cols-2 gap-[20px]"}>
                 {array.map((item, i) => {
                     return (
-                        <div key={i} className={"flex cursor-pointer gap-[10px] overflow-hidden"}>
+                        <div
+                            key={i}
+                            className={"flex cursor-pointer gap-[10px] overflow-hidden"}
+                            onClick={onPress}
+                        >
                             <img src={item.url} className={"h-[56px] w-[56px] rounded-[10px]"} />
                             <div>
                                 <p className={"whitespace-nowrap text-[14px]"}>{item.name}</p>