2 Commits

Author SHA1 Message Date
4578ca0cb1 Merge branch 'feat/liujie' 2025-12-29 11:41:00 +08:00
d5662e5810 feat: 样式调整 2025-12-29 11:40:52 +08:00
3 changed files with 65 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ async function convert_to_jpg_and_compress(
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
Taro.canvasToTempFilePath({ Taro.canvasToTempFilePath({
canvas: canvas as unknown as Taro.Canvas, canvas: canvas as unknown as Taro.Canvas,
fileType: "jpg", fileType: "png",
quality: 0.7, quality: 0.7,
success: (res) => resolve(res.tempFilePath), success: (res) => resolve(res.tempFilePath),
fail: reject, fail: reject,

View File

@@ -146,8 +146,22 @@
.introContainer { .introContainer {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-size: cover;
background-repeat: no-repeat;
position: relative;
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%), background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%),
#fafafa; #fafafa;
z-index: -1;
pointer-events: none;
}
.result { .result {
.avatarWrap { .avatarWrap {
@@ -235,6 +249,8 @@
height: 52px; height: 52px;
border-radius: 16px; border-radius: 16px;
border: 1px solid rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.06);
background: #fff;
box-shadow: 0 8px 64px 0 rgba(0, 0, 0, 0.1);
overflow: hidden; overflow: hidden;
position: relative; position: relative;
@@ -258,6 +274,16 @@
font-style: normal; font-style: normal;
font-weight: 600; font-weight: 600;
line-height: normal; line-height: normal;
&.primary {
color: #fff;
background: #000;
.arrowImage {
width: 20px;
height: 20px;
}
}
} }
} }
@@ -363,8 +389,23 @@
.testContainer { .testContainer {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
position: relative;
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%), background: radial-gradient(227.15% 100% at 50% 0%, #bfffef 0%, #fff 36.58%),
#fafafa; #fafafa;
z-index: -1;
pointer-events: none;
}
.bar { .bar {
margin: 12px 20px 36px; margin: 12px 20px 36px;

View File

@@ -223,7 +223,12 @@ function Intro() {
} }
return ( return (
<View className={styles.introContainer}> <View
className={styles.introContainer}
style={{
backgroundImage: `url(${OSS_BASE_URL}/images/215f1ce1-be52-4a92-8250-5a4a69e7f2b3.png)`,
}}
>
<CommonGuideBar /> <CommonGuideBar />
{ntrpData?.has_test_record ? ( {ntrpData?.has_test_record ? (
<View className={styles.result}> <View className={styles.result}>
@@ -271,7 +276,7 @@ function Intro() {
</View> </View>
</View> </View>
<View className={styles.actions}> <View className={styles.actions}>
<View className={styles.buttonWrap}> <View className={classnames(styles.buttonWrap, styles.customBtn)}>
<Button <Button
className={classnames(styles.button, styles.primary)} className={classnames(styles.button, styles.primary)}
type="primary" type="primary"
@@ -280,6 +285,12 @@ function Intro() {
<Text></Text> <Text></Text>
<Image className={styles.arrowImage} src={ArrowRight} /> <Image className={styles.arrowImage} src={ArrowRight} />
</Button> </Button>
<View
className={classnames(styles.customBtnCover, styles.primary)}
>
<Text></Text>
<Image className={styles.arrowImage} src={ArrowRight} />
</View>
</View> </View>
<View className={classnames(styles.buttonWrap, styles.customBtn)}> <View className={classnames(styles.buttonWrap, styles.customBtn)}>
<Button <Button
@@ -414,7 +425,12 @@ function Test() {
return ""; return "";
} }
return ( return (
<View className={styles.testContainer}> <View
className={styles.testContainer}
style={{
backgroundImage: `url(${OSS_BASE_URL}/images/215f1ce1-be52-4a92-8250-5a4a69e7f2b3.png)`,
}}
>
<CommonGuideBar confirm title={`${index + 1} / ${questions.length}`} /> <CommonGuideBar confirm title={`${index + 1} / ${questions.length}`} />
<View className={styles.bar}> <View className={styles.bar}>
<View <View