Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-pc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
嘉柏润官网
front-pc
Commits
13ecbfaa
Commit
13ecbfaa
authored
May 15, 2025
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[更新代码]1.0
parent
2f7f1e56
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
17 deletions
+84
-17
src/utils/http.ts
+1
-1
src/views/JewelryDetail/JewelryDetail.module.scss
+80
-13
src/views/JewelryDetail/JewelryDetail.tsx
+3
-3
No files found.
src/utils/http.ts
View file @
13ecbfaa
...
@@ -9,7 +9,7 @@ declare module 'axios' {
...
@@ -9,7 +9,7 @@ declare module 'axios' {
export
function
create
(
config
?:
AxiosRequestConfig
):
AxiosInstance
export
function
create
(
config
?:
AxiosRequestConfig
):
AxiosInstance
}
}
let
baseURL
=
process
.
env
.
NODE_ENV
===
'development'
?
'/api'
:
'http
://web-api.chris-
dai.com/api'
let
baseURL
=
process
.
env
.
NODE_ENV
===
'development'
?
'/api'
:
'http
s://christine
dai.com/api'
const
instance
=
axios
.
create
({
const
instance
=
axios
.
create
({
baseURL
,
baseURL
,
...
...
src/views/JewelryDetail/JewelryDetail.module.scss
View file @
13ecbfaa
...
@@ -129,6 +129,9 @@
...
@@ -129,6 +129,9 @@
margin-bottom
:
7%
;
margin-bottom
:
7%
;
font-weight
:
500
;
font-weight
:
500
;
margin-top
:
0
.5rem
;
margin-top
:
0
.5rem
;
word-wrap
:
break-word
;
/* 允许在单词内换行 */
overflow-wrap
:
break-word
;
/* 同上,现代浏览器推荐使用这个属性别名 */
white-space
:
normal
;
/* 允许自动换行 */
}
}
.detail-box
{
.detail-box
{
...
@@ -165,14 +168,14 @@
...
@@ -165,14 +168,14 @@
}
}
}
}
.title
:before
{
.title
:before
{
width
:
.92rem
;
//
width: .92rem;
height
:
.04rem
;
//
height: .04rem;
content
:
''
;
//
content: '';
background
:
#856B44
;
//
background: #856B44;
position
:
absolute
;
//
position: absolute;
font-weight
:
bold
;
//
font-weight: bold;
left
:
0
;
//
left: 0;
bottom
:
0
;
//
bottom: 0;
}
}
.des
{
.des
{
font-size
:
.22rem
;
font-size
:
.22rem
;
...
@@ -180,6 +183,9 @@
...
@@ -180,6 +183,9 @@
color
:
#666666
;
color
:
#666666
;
font-style
:
normal
;
font-style
:
normal
;
font-family
:
"宋体"
,
'宋体-简'
,
"常规体"
;
font-family
:
"宋体"
,
'宋体-简'
,
"常规体"
;
word-wrap
:
break-word
;
/* 允许在单词内换行 */
overflow-wrap
:
break-word
;
/* 同上,现代浏览器推荐使用这个属性别名 */
white-space
:
normal
;
/* 允许自动换行 */
}
}
.detail-demo1
{
.detail-demo1
{
...
@@ -272,6 +278,39 @@
...
@@ -272,6 +278,39 @@
}
}
}
}
.detail-demo30
{
margin
:
3%
0
;
display
:
flex
;
justify-content
:
space-between
;
flex-direction
:
column
;
align-items
:
center
;
box-sizing
:
border-box
;
.demo30-txtBox
{
word-wrap
:
break-word
;
text-align
:
center
;
width
:
81%
;
}
.title
:before
{
left
:
50%
;
margin-left
:
-.46rem
;
}
.demo30-top
{
width
:
51%
;
text-align
:
right
;
img
{
border
:
0
;
max-width
:
100%
;
vertical-align
:
middle
;
}
}
.des
{
text-align
:
center
;
word-wrap
:
break-word
;
/* 允许在单词内换行 */
overflow-wrap
:
break-word
;
/* 同上,现代浏览器推荐使用这个属性别名 */
white-space
:
normal
;
/* 允许自动换行 */
}
}
.detail-demo5
{
.detail-demo5
{
margin
:
3%
0
;
margin
:
3%
0
;
display
:
flex
;
display
:
flex
;
...
@@ -299,6 +338,9 @@
...
@@ -299,6 +338,9 @@
}
}
.des
{
.des
{
text-align
:
center
;
text-align
:
center
;
word-wrap
:
break-word
;
/* 允许在单词内换行 */
overflow-wrap
:
break-word
;
/* 同上,现代浏览器推荐使用这个属性别名 */
white-space
:
normal
;
/* 允许自动换行 */
}
}
}
}
.detail-demo7
{
.detail-demo7
{
...
@@ -368,10 +410,14 @@
...
@@ -368,10 +410,14 @@
align-items
:
center
;
align-items
:
center
;
}
}
.detail-brief
{
.detail-brief
{
font-family
:
Baskerville
;
font-size
:
.20rem
!
important
;
font-size
:
.20rem
!
important
;
line-height
:
.38rem
!
important
;
line-height
:
.38rem
!
important
;
color
:
#000
;
color
:
#000
;
margin-bottom
:
7%
;
margin-bottom
:
7%
;
word-wrap
:
break-word
;
/* 允许在单词内换行 */
overflow-wrap
:
break-word
;
/* 同上,现代浏览器推荐使用这个属性别名 */
white-space
:
normal
;
/* 允许自动换行 */
}
}
.detail-demo1
{
.detail-demo1
{
display
:
flex
;
display
:
flex
;
...
@@ -380,15 +426,15 @@
...
@@ -380,15 +426,15 @@
padding
:
3%
0
;
padding
:
3%
0
;
.demo1-txtBox
{
.demo1-txtBox
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
//
text-align: center;
}
}
.demo1-imgBox
{
.demo1-imgBox
{
width
:
100%
;
width
:
100%
;
}
}
.title
:before
{
//
.title:before {
left
:
50%
;
//
left: 50%;
margin-left
:
-.46rem
;
//
margin-left: -.46rem;
}
//
}
}
}
.detail-demo3
{
.detail-demo3
{
display
:
flex
;
display
:
flex
;
...
@@ -452,6 +498,27 @@
...
@@ -452,6 +498,27 @@
margin
:
5%
0
;
margin
:
5%
0
;
}
}
}
}
.detail-demo30
{
display
:
flex
;
flex-direction
:
column
;
padding
:
3%
0
;
.demo30-left
{
width
:
100%
;
}
.demo30-right
{
width
:
100%
;
margin
:
5%
0
;
}
.demo30-top
{
width
:
100%
;
text-align
:
right
;
img
{
border
:
0
;
max-width
:
100%
;
vertical-align
:
middle
;
}
}
}
.Default
{
.Default
{
min-height
:
calc
(
100vh
-
7
.6rem
);
min-height
:
calc
(
100vh
-
7
.6rem
);
...
...
src/views/JewelryDetail/JewelryDetail.tsx
View file @
13ecbfaa
...
@@ -90,11 +90,11 @@ export default function JewelryDetail() {
...
@@ -90,11 +90,11 @@ export default function JewelryDetail() {
}
}
const
DetailDemo3
=
(
obj
:
TempItem
)
=>
{
const
DetailDemo3
=
(
obj
:
TempItem
)
=>
{
return
(
return
(
<
div
className=
{
styles
[
'detail-demo
5
'
]
}
>
<
div
className=
{
styles
[
'detail-demo
30
'
]
}
>
<
div
className=
{
styles
[
'demo
5
-top'
]
}
>
<
div
className=
{
styles
[
'demo
30
-top'
]
}
>
<
img
src=
{
obj
.
image
[
0
]
}
alt=
""
/>
<
img
src=
{
obj
.
image
[
0
]
}
alt=
""
/>
</
div
>
</
div
>
<
div
className=
{
styles
[
'demo
5
-txtBox'
]
}
>
<
div
className=
{
styles
[
'demo
30
-txtBox'
]
}
>
<
div
className=
{
styles
[
'title'
]
}
dangerouslySetInnerHTML=
{
{
__html
:
obj
.
title
}
}
></
div
>
<
div
className=
{
styles
[
'title'
]
}
dangerouslySetInnerHTML=
{
{
__html
:
obj
.
title
}
}
></
div
>
<
div
className=
{
styles
[
'des'
]
}
dangerouslySetInnerHTML=
{
{
__html
:
obj
.
content
}
}
>
<
div
className=
{
styles
[
'des'
]
}
dangerouslySetInnerHTML=
{
{
__html
:
obj
.
content
}
}
>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment