From 68194e2298d4e052d71db5692f2a014996d9f94e Mon Sep 17 00:00:00 2001 From: yezian Date: Mon, 29 Jan 2024 01:53:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E6=96=87=E6=A1=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E3=80=81=E4=BB=B7=E6=A0=BC=E5=A4=96=E9=9C=B2=EF=BC=9B?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=9B=BE=E7=89=87=E4=B8=8A=E9=94=81=EF=BC=9B?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=A8=E6=80=81=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/images/lock@2x.png | Bin 0 -> 2977 bytes assets/images/lock@3x.png | Bin 0 -> 4540 bytes components/Post/index.jsx | 138 +++++++++++++++++++++------ screeens/Posts/FeedPosts/index.jsx | 27 +++--- screeens/Posts/FollowPosts/index.jsx | 29 +++--- 5 files changed, 141 insertions(+), 53 deletions(-) create mode 100644 assets/images/lock@2x.png create mode 100644 assets/images/lock@3x.png diff --git a/assets/images/lock@2x.png b/assets/images/lock@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..76aae6ebffe49297992f9671f27e461a80727e1a GIT binary patch literal 2977 zcmV;S3tsezP)X_M^WLVsri?o{DhFsqN~D> zmZ(2Sww9mYX?OChv$d3-x{#NsU23F5PRpdN`KqzcthV>8v*fe5+_t;thmON_fcK%P z!J4JmmYu4GkJXi(-JYYKRbug=s)9^ck3~|Weu(6Bg2kh)+Gcd#o22=wvZh^Uq=1UE zl%A)2hTVyjqDE5Meulc3qOXXNf$m^ z<}*+KU~~UvckMV-`dDrMVs-vsa^W&fupv3=HBq`FJd++S;4w_zF-zn!PU|;Pjvy`e zPG$5)UhzLz<26v(E=i6eFZO46&niQk9x>D`Mx`G$^55z6ke7&ObHye=>NZl_FG~Mt zdgnG#ryw?+9x~-URnjX(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zn=Up>%>gLQ)XG?P8rD+U@HaFcs2!^vrgqZa(da-60 z;?~xRB52gc)&=UNd%yqrpX2G!EbyFqI$zkvVGkd^zw`H;^FQtoqD;NYO}}R&(MoD^M=$jkQT52B1_b5zZN$ z1|kZD;!?32p@N1;Si7r zf^ft+{sq|8A?ZMYqM`-`cq$!Scq`>vppN-58AcBGR09VGkz!LX)<2#wlH7+k>$l#!qz zn$k}$=-qf!gn~8zm0W;s3N#o}*_YM@z?;SE^I=;7UrTRs0J`xVzpKNL8Vmj2?{@Ke zdpceS6gUPuAciOsncln4$P1Y9{g42c)(#2~*hoILNzhYGcGCK*7kZC9mkU7R95!F$ z4Addhklz!kaMs~RXEm^1&_j)j0HNWvA$DLR4MI@MvFVT%X*cfPOlaDb!GhUh@l?QO z)}WgL(POaP4n30}5566K`|jyL>->beGhp!$&!yx@S%R@fh?oRbMC>}9NMV|t3#Y^C zc&8aShlAK#kRxReQVpRX+RQis6`j$VV4b*J7L&v8*ZQ>pQX}OYtZXX$5G@hB1LkI= zZ46LEgLuD)}44(JGf#;Ppr4MS4Mz35`;7u86?cqL4sepuMKQx@d|Uxj-J86Sev{L?iM;b zddc-$kVt^=u}FXakr+M3>U+ekCwE*akGDwkdU$u2OkVswBNs$l&79~-U^00000NkvXXu0mjfA-d1l literal 0 HcmV?d00001 diff --git a/assets/images/lock@3x.png b/assets/images/lock@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..53b851e6cce16bafc921f245f2a818436feb484c GIT binary patch literal 4540 zcmV;t5ku~YP)BGqQv%2Vpj+;nU)wH_a%FLu#Ww)1|;eUtRoTI{` zsmh|P_0raXPg(e(sljAy`Kz*?c7NTKoaxBS%A%*OiIlsWq~)ZmzF=sbaeSRD z@yyblZF#nmo%gD-oq>w-sj%0#zVp`E@uaQCZ+6myjQXXn@5s;Op{LiCoyU5Gt7~|* zmZ0CEsLrvuwwIr|o1?OVi`ImVNZi1AT6vQH`pym&M8B>BRrWNFxoFlo*pu?Av&cWHTzm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z)7EH@mwcB81)WvL^@w~>wFnC5g{%~cMyQiYKR())R{*K>s2{XQ zg)o2yEOhkEMx(=s1sZJxs?QvIRTIoBFdsio8)XkwC)cR4yu5aI{NjmBpze>i>++oi zX0sT2bI@27!U&28jRJaMB^i7sm5!>}vdK_juCf9e#ON7AX`{`k6o*pu#F~uad(co9 z%(GS%5NN)fP&8_+t!-+|6negaRBE+aS&tr>38;ob%Q5=)Orh?}4Gop~PBGNW6bd9= zqqVi2SfZIh&oq$P8~zQn{7<2ny}>COJ)^sxXG*rG9p%Q_KO24BwoL{Dg?iaS)hQ@x zv^cXykF0T@>j~Y-uF;8rLYms}jo9!*M>5`?_%%wQUUtxWKV9#r27426$_B+oDu&u2 zCByICiIZk-@Ni0@6Bsrsf!YzgV{UHkRqA_IL$)R--ZJUUW;vik(WrRz{KY3+D`^V# zBK6(6jRnd(_4LghuH!O=N*aX|L8*z~e#>|J&Qs?vP)4`G486}oHJapQ$CBKVr1S}< zpMHHlt4lh;#FY{;^b|X&O9VBN>!T!u>UciKo!0r7Tb~A8d^m`!Pa^0}rch5hXc4Hm z8anLhFXQ)p99~mbiSzm@I13TE8|5!MV)TTG=yFT!_R=R=QAwNb7q52KRc_mqXT|b_ zvO;F4hOSZGsYAF0(2;11il%<+M%|t*L9#qiXGO*43S1xkcTk-WvH*$>ydT}_MtsN4 zKRjGnxhDmpO51Mg~WH4BgnhucRy(n-b$g;quyKH!W3!& zRlJW%oZ@>5l29!-{`Anr%%FkZpePeMj+k`P>C-hThR$OIT@VhqEF{U%n+Q~Jg7&)r z3TBTr>h<1iSa9_d1~U0q!tJ{G){@88Q&uY15|R zhb@r7{rk=&K4ZpApFVqBzyIKODk)K-M2Qk5N|Y#3qC|-jB}$YiQKCeN5+zEMC{d#1 auk#ZC8I{E8b - - {formatTimestamp(data?.ct)} - {blur ? ( ({ url: item.urls[0] })); + + if (blur) { + return ( + + {media.length > 1 ? ( + media.map((item, index) => ( + + navigation.navigate("WebWithoutHeader", { + uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip", + }) + } + style={{ + aspectRatio: 1, + ...tailwind("basis-1/3 p-0.5 relative"), + }} + > + + + + + + )) + ) : ( + + navigation.navigate("WebWithoutHeader", { + uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip", + }) + } + style={{ + width: 200, + height: 250, + ...tailwind("relative"), + }} + > + + + + + + )} + + ); + } + if (images.length === 0) return null; + return ( {media.length > 1 ? ( @@ -252,22 +320,14 @@ function ImageDisplay({ blur, media }) { - navigation.navigate("WebWithoutHeader", { - uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip", - }) - : () => { - setIsModalVisible(true); - setImageIndex(index); - } - } + onPress={() => { + setIsModalVisible(true); + setImageIndex(index); + }} style={{ aspectRatio: 1, ...tailwind("basis-1/3 p-0.5") }} > - navigation.navigate("WebWithoutHeader", { - uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip", - }) - : () => { - setIsModalVisible(true); - setImageIndex(0); - } - } + onPress={() => { + setIsModalVisible(true); + setImageIndex(0); + }} style={{ width: media[0].w < media[0].h ? (media[0].w / media[0].h) * 200 : 250, @@ -299,7 +352,6 @@ function ImageDisplay({ blur, media }) { > + + + + + + ); + } + return ( item.id} /> {blur && ( - + navigation.navigate("WebWithoutHeader", { + uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip", + }) + } style={tailwind( "flex flex-row items-center justify-between h-12 bg-[#301024] px-4" )} @@ -140,16 +146,15 @@ export default function FeedPosts({ blur }) { - - 开通会员订阅动态 + + 开通会员订阅全部 - - navigation.navigate("WebWithoutHeader", { - uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip", - }) - } + ¥99/永久 - - + + )} ); diff --git a/screeens/Posts/FollowPosts/index.jsx b/screeens/Posts/FollowPosts/index.jsx index 49df22b..e01e1e2 100644 --- a/screeens/Posts/FollowPosts/index.jsx +++ b/screeens/Posts/FollowPosts/index.jsx @@ -166,7 +166,13 @@ export default function FollowPosts({ blur }) { keyExtractor={(item) => item.id} /> {blur && ( - + navigation.navigate("WebWithoutHeader", { + uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip", + }) + } style={tailwind( "flex flex-row items-center justify-between h-12 bg-[#301024] px-4" )} @@ -175,25 +181,24 @@ export default function FollowPosts({ blur }) { - - 开通会员订阅动态 + + 开通会员订阅全部 - - navigation.navigate("WebWithoutHeader", { - uri: process.env.EXPO_PUBLIC_WEB_URL + "/vip", - }) - } + - 点我看看 + ¥99/永久 - - + + )} );