feat: 更新
This commit is contained in:
parent
9b0223171a
commit
971b1359f8
@ -26,8 +26,14 @@ export const BizCardTpl_01 = memo(({ userInfo }: BizCardProps) => {
|
|||||||
|
|
||||||
export const BizCardTpl02 = memo(() => {
|
export const BizCardTpl02 = memo(() => {
|
||||||
return (
|
return (
|
||||||
<View className="bg-amber-100 p-3 h-30 rounded-sm shadow-amber-200">
|
<View className="bg-white p-3 h-30 rounded-sm shadow-md">
|
||||||
<View className="flex"></View>
|
<View className="flex">
|
||||||
|
<View className="flex-1">
|
||||||
|
<View className="text-lg font-bold">王长森</View>
|
||||||
|
<View className="text-sm text-gray-500">高级产品经理</View>
|
||||||
|
</View>
|
||||||
|
<View className="h-15 w-20 bg-black"></View>
|
||||||
|
</View>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,7 +10,7 @@ export const ImageTpl = memo(({ src, size }: Props) => {
|
|||||||
console.log(size);
|
console.log(size);
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
<Image src={src} mode="widthFix" />
|
<Image className="w-full" src={src} mode="widthFix" />
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -37,3 +37,14 @@ export const usePageContent = () => {
|
|||||||
|
|
||||||
return { pageLoading, pageContent, refresherConfig, loadPageContent };
|
return { pageLoading, pageContent, refresherConfig, loadPageContent };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// 页面分享 promise
|
||||||
|
export const useShareAppMessage = () => {
|
||||||
|
const onShareAppMessage = async () => {
|
||||||
|
return {
|
||||||
|
title: "分享标题",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Taro.useShareAppMessage(onShareAppMessage);
|
||||||
|
}
|
||||||
@ -10,6 +10,10 @@ const BizCardTpl02 = React.lazy(() =>
|
|||||||
})),
|
})),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const ImageTpl = React.lazy(() => import("@/components/business").then((module) => ({
|
||||||
|
default: module.ImageTpl,
|
||||||
|
})));
|
||||||
|
|
||||||
export default function Index() {
|
export default function Index() {
|
||||||
const { pageLoading, pageContent, refresherConfig, loadPageContent } = usePageContent();
|
const { pageLoading, pageContent, refresherConfig, loadPageContent } = usePageContent();
|
||||||
|
|
||||||
@ -27,6 +31,7 @@ export default function Index() {
|
|||||||
>
|
>
|
||||||
<View className="space-y-4 p-3">
|
<View className="space-y-4 p-3">
|
||||||
<BizCardTpl02 />
|
<BizCardTpl02 />
|
||||||
|
<ImageTpl size="medium" src=""></ImageTpl>
|
||||||
</View>
|
</View>
|
||||||
</Layout.Container>
|
</Layout.Container>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user