Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
web
Commits
1de420ac
提交
1de420ac
authored
6月 12, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into feature/chuck
上级
35542bef
00a010f5
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
366 行增加
和
122 行删除
+366
-122
index.tsx
api/index.tsx
+47
-46
index.page.tsx
pages/certification/index.page.tsx
+1
-1
[id].page.tsx
pages/equipmentLeasing/detail/[id].page.tsx
+10
-7
index.tsx
...quipmentLeasing/detail/components/orderForGoods/index.tsx
+101
-22
styled.tsx
...uipmentLeasing/detail/components/orderForGoods/styled.tsx
+34
-3
styled.tsx
pages/equipmentLeasing/detail/styled.tsx
+2
-0
index.page.tsx
pages/equipmentLeasing/index.page.tsx
+11
-5
styled.tsx
pages/equipmentLeasing/styled.tsx
+11
-11
index.tsx
pages/flyingHandService/api/index.tsx
+1
-0
[id].page.tsx
pages/flyingHandService/detail/[id].page.tsx
+5
-0
index.page.tsx
pages/flyingHandService/index.page.tsx
+5
-1
[id].page.tsx
pages/jobServices/detail/[id].page.tsx
+5
-2
index.tsx
pages/mall/detail/components/orderForGoods/index.tsx
+99
-21
styled.tsx
pages/mall/detail/components/orderForGoods/styled.tsx
+34
-3
没有找到文件。
api/index.tsx
浏览文件 @
1de420ac
import
request
,
{
Response
}
from
"~/api/request"
;
import
config
from
"./config"
;
import
request
,
{
Response
}
from
'~/api/request'
import
config
from
'./config'
export
interface
RegionResp
{
childInfo
?:
RegionResp
[]
|
null
;
id
:
number
;
level
:
number
;
name
:
string
;
pid
:
number
;
childInfo
?:
RegionResp
[]
|
null
id
:
number
level
:
number
name
:
string
pid
:
number
}
export
interface
UserInfoResp
{
id
:
number
;
accountType
:
number
;
uid
:
string
;
phoneNum
:
string
;
userName
:
string
;
nickName
:
string
;
userImg
:
string
;
userSex
:
number
;
email
:
string
;
source
:
number
;
accountStatus
:
number
;
remark
:
string
;
portType
:
number
;
createTime
:
string
;
companyAuthStatus
:
number
;
token
:
string
;
id
:
number
accountType
:
number
uid
:
string
phoneNum
:
string
userName
:
string
nickName
:
string
userImg
:
string
userSex
:
number
email
:
string
source
:
number
accountStatus
:
number
remark
:
string
portType
:
number
createTime
:
string
companyAuthStatus
:
number
token
:
string
cooperationTagId
:
number
|
null
}
export
interface
TestAppletLoginResp
{
userAccountId
:
number
;
token
:
string
;
uid
:
string
;
phoneNum
?:
string
;
nickName
:
string
;
sessionKey
?:
any
;
userAccountId
:
number
token
:
string
uid
:
string
phoneNum
?:
string
nickName
:
string
sessionKey
?:
any
}
export
default
{
//获取区域数据
region
:
():
Promise
<
Response
<
Array
<
RegionResp
>>>
=>
{
return
request
(
"/pms/webDevice/getSecondDistrictInfo"
);
return
request
(
'/pms/webDevice/getSecondDistrictInfo'
)
},
//测试-小程序unionId登录-注册
testAppletLogin
:
():
Promise
<
Response
<
TestAppletLoginResp
>>
=>
{
let
params
=
new
URLSearchParams
()
;
params
.
append
(
"unionId"
,
"oQZEd5hy0Qrwaj10BGtP8xq8vH--s88888"
);
let
params
=
new
URLSearchParams
()
params
.
append
(
'unionId'
,
'oQZEd5hy0Qrwaj10BGtP8xq8vH--s88888'
)
return
request
(
"/userapp/auth/testAppletLogin"
,
"post"
,
'/userapp/auth/testAppletLogin'
,
'post'
,
{},
{
headers
:
{
"Content-Type"
:
"application/x-www-form-urlencoded"
,
'Content-Type'
:
'application/x-www-form-urlencoded'
,
},
body
:
params
,
}
)
;
)
},
//生成小程序码
getAppletQRCode
:
(
params
:
{
randomLoginCode
:
string
})
=>
{
return
request
(
"/userapp/wx/getAppletQRCode"
,
"get"
,
{
page
:
"page-identity/identity-empower/index"
,
scene
:
"randomLoginCode="
+
params
.
randomLoginCode
,
})
;
return
request
(
'/userapp/wx/getAppletQRCode'
,
'get'
,
{
page
:
'page-identity/identity-empower/index'
,
scene
:
'randomLoginCode='
+
params
.
randomLoginCode
,
})
},
//查询登录信息
getLoginInfo
:
(
params
:
{
randomLoginCode
:
string
})
=>
{
return
request
(
"/userapp/temp-auth/getLoginInfo"
,
"get"
,
params
,
{
hideError
:
true
//隐藏错误提示
})
;
return
request
(
'/userapp/temp-auth/getLoginInfo'
,
'get'
,
params
,
{
hideError
:
true
,
//隐藏错误提示
})
},
//获取用户基本信息
userInfo
:
():
Promise
<
Response
<
UserInfoResp
>>
=>
{
return
request
(
"/userapp/user-account/info"
,
"get"
);
return
request
(
'/userapp/user-account/info'
,
'get'
)
},
//图片上传地址
imgOss
:
()
=>
{
return
config
.
baseUrl
+
"/pms/upload/imgOss"
;
return
config
.
baseUrl
+
'/pms/upload/imgOss'
},
}
;
}
pages/certification/index.page.tsx
浏览文件 @
1de420ac
...
...
@@ -32,7 +32,7 @@ const beforeUpload = (file: RcFile) => {
//限制上传10M
const
isLt2M
=
file
.
size
/
1024
/
1024
<
10
;
if
(
!
isLt2M
)
{
message
.
error
(
"
Image must smaller than 2MB!
"
);
message
.
error
(
"
请上传10M以内的JPG、JPEG、BMP、GIF、PNG格式图片
"
);
}
return
isJpgOrPng
&&
isLt2M
;
};
...
...
pages/equipmentLeasing/detail/[id].page.tsx
浏览文件 @
1de420ac
...
...
@@ -231,10 +231,15 @@ export default function EquipmentLeasingDetail() {
)
:
(
<
div
className=
"function not"
></
div
>
)
}
<
div
className=
"menoy"
>
<
span
className=
"menoy-left"
>
{
`¥${detail?.price! | 0}`
}
</
span
>
<
span
className=
"menoy-right"
>
/天起
</
span
>
</
div
>
{
userInfo
?.
cooperationTagId
?
(
<
div
className=
"menoy"
>
<
span
className=
"menoy-left"
>
{
`¥${detail?.price! | 0}`
}
</
span
>
<
span
className=
"menoy-right"
>
/天起
</
span
>
</
div
>
)
:
(
<
div
className=
"menoy"
>
暂无报价
</
div
>
)
}
<
div
className=
"classification"
>
<
div
className=
"top"
>
<
div
className=
"left"
>
...
...
@@ -282,9 +287,7 @@ export default function EquipmentLeasingDetail() {
style=
{
{
textAlign
:
'center'
}
}
dangerouslySetInnerHTML=
{
{
__html
:
detail
?.
goodsDetail
.
content
}
}
></
div
>
)
:
(
<
div
style=
{
{
textAlign
:
'center'
}
}
></
div
>
)
}
)
:
null
}
{
/* 立即租赁 */
}
<
Modal
wrapClassName=
"application"
...
...
pages/equipmentLeasing/detail/components/orderForGoods/index.tsx
浏览文件 @
1de420ac
...
...
@@ -12,7 +12,6 @@ import {
}
from
'../../api'
import
{
UserContext
}
from
'~/lib/userProvider'
const
{
TextArea
}
=
Input
interface
PropsBox
{
setIsorderForGoods
:
(
boolean
:
boolean
)
=>
void
detailData
?:
GetWebDeviceDetailResult
|
null
...
...
@@ -142,44 +141,78 @@ export default function OrderForGoods(props: PropsBox) {
}
}
//扫码管理地址
const
[
isAddAddressOpen
,
setIsAddAddressOpen
]
=
useState
(
false
)
const
[
addressVisible
,
setAddressVisible
]
=
useState
(
false
)
return
(
<
OrderForGoodsBox
>
<
div
className=
"address"
>
<
div
className=
"top"
>
<
div
className=
"left"
>
确认收货地址
</
div
>
<
div
className=
"right"
>
<
Button
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
<
Button
onClick=
{
()
=>
setIsAddAddressOpen
(
true
)
}
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
管理收货地址
</
Button
>
</
div
>
</
div
>
<
div
className=
"bottom"
>
{
list
?.
map
((
item
,
index
)
=>
(
<
div
key=
{
item
.
id
}
className=
{
`item ${value === index ? 'active' : ''}`
}
onClick=
{
()
=>
onChangeValue
(
index
)
}
>
{
list
?.
length
?
(
list
?.
map
((
item
,
index
)
=>
(
<
div
key=
{
item
.
id
}
className=
{
`item ${value === index ? 'active' : ''}`
}
onClick=
{
()
=>
onChangeValue
(
index
)
}
>
<
div
className=
"left"
>
<
div
className=
"active"
>
<
div
className=
"icon"
></
div
>
<
div
className=
"label"
>
寄送至
</
div
>
</
div
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
value
}
>
<
Space
direction=
"vertical"
>
<
Radio
value=
{
index
}
>
{
item
.
takeAddress
}
</
Radio
>
</
Space
>
</
Radio
.
Group
>
</
div
>
{
value
===
index
?
(
<
div
className=
"right"
>
<
Button
onClick=
{
()
=>
setIsAddAddressOpen
(
true
)
}
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
修改地址
</
Button
>
</
div
>
)
:
null
}
</
div
>
))
)
:
(
<
div
className=
"item active"
>
<
div
className=
"left"
>
<
div
className=
"active"
>
<
div
className=
"icon"
></
div
>
<
div
className=
"label"
>
寄送至
</
div
>
<
div
className=
"label"
>
暂无地址,请打开手机端【云享飞】微信小程序,【我的】-【个人设置】-【地址管理】添加
</
div
>
</
div
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
value
}
>
<
Space
direction=
"vertical"
>
<
Radio
value=
{
index
}
>
{
item
.
takeAddress
}
</
Radio
>
</
Space
>
</
Radio
.
Group
>
</
div
>
{
value
===
index
?
(
<
div
className=
"right"
>
<
Button
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
修改地址
</
Button
>
</
div
>
)
:
null
}
<
div
className=
"right"
>
<
Button
onClick=
{
()
=>
setIsAddAddressOpen
(
true
)
}
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
添加地址
</
Button
>
</
div
>
</
div
>
)
)
}
)
}
</
div
>
</
div
>
<
div
className=
"info"
>
...
...
@@ -206,6 +239,7 @@ export default function OrderForGoods(props: PropsBox) {
<
div
className=
"body-item article"
style=
{
{
width
:
290
}
}
>
<
div
className=
"image"
>
<
Image
className=
"image-box"
preview=
{
{
visible
:
false
}
}
src=
{
(
wareSkuList
&&
wareSkuList
!
[
0
].
specImage
)
||
''
}
onClick=
{
()
=>
setVisible
(
true
)
}
...
...
@@ -332,6 +366,51 @@ export default function OrderForGoods(props: PropsBox) {
<
div
>
云享飞账号:
{
userInfo
?.
uid
}
</
div
>
<
div
>
付款方式: 可用(¥
{
paymentDetail
?.
balance
}
)
</
div
>
</
Modal
>
<
Modal
wrapClassName=
"addAddress"
open=
{
isAddAddressOpen
}
onCancel=
{
()
=>
setIsAddAddressOpen
(
false
)
}
getContainer=
{
false
}
maskClosable=
{
false
}
width=
{
420
}
footer=
{
false
}
>
<
div
className=
"title"
>
扫码管理地址
</
div
>
<
div
className=
"image"
>
<
Image
className=
"addressImg"
preview=
{
{
visible
:
false
}
}
src=
{
window
.
location
.
href
.
includes
(
'https://test.iuav.shop/'
)
?
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/image/app-iuav-trial.jpg'
:
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/image/app-iuav-formal.jpg'
||
''
}
onClick=
{
()
=>
setAddressVisible
(
true
)
}
/>
<
div
style=
{
{
display
:
'none'
}
}
>
<
Image
.
PreviewGroup
preview=
{
{
visible
:
addressVisible
,
onVisibleChange
:
(
vis
)
=>
setAddressVisible
(
vis
),
}
}
>
<
Image
src=
{
window
.
location
.
href
.
includes
(
'https://test.iuav.shop/'
)
?
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/image/app-iuav-trial.jpg'
:
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/image/app-iuav-formal.jpg'
||
''
}
/>
</
Image
.
PreviewGroup
>
</
div
>
</
div
>
<
div
className=
"content"
>
【打开微信扫一扫】-进入云享飞【我的】- 【个人设置】-【地址管理】
</
div
>
</
Modal
>
</
OrderForGoodsBox
>
)
}
pages/equipmentLeasing/detail/components/orderForGoods/styled.tsx
浏览文件 @
1de420ac
...
...
@@ -106,10 +106,11 @@ export const OrderForGoodsBox = styled.div`
display: flex;
justify-content: space-between;
.image {
width: 80px;
height: 80px;
background-color: pink;
margin-right: 10px;
.image-box {
width: 80px;
height: 80px;
}
}
.right {
.top {
...
...
@@ -309,4 +310,34 @@ export const OrderForGoodsBox = styled.div`
color: #ff552d;
}
}
.addAddress {
.title {
text-align: center;
height: 25px;
font-size: 20px;
font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
font-weight: bold;
color: #000000;
line-height: 25px;
}
.image {
display: flex;
justify-content: center;
align-items: center;
padding: 48px 0 32px;
.addressImg {
width: 150px;
height: 150px;
}
}
.content {
text-align: center;
width: 311px;
height: 38px;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #3e454d;
line-height: 19px;
}
}
`
pages/equipmentLeasing/detail/styled.tsx
浏览文件 @
1de420ac
...
...
@@ -35,6 +35,8 @@ export const Box = styled.div`
}
.menoy {
margin-top: 17px;
font-size: 32px;
color: #ef2e00;
&-left {
width: 79px;
height: 41px;
...
...
pages/equipmentLeasing/index.page.tsx
浏览文件 @
1de420ac
import
{
Pagination
}
from
'antd'
import
Image
from
'next/image'
import
{
useRouter
}
from
'next/router'
import
{
useEffect
,
useRef
,
useState
}
from
'react'
import
{
use
Context
,
use
Effect
,
useRef
,
useState
}
from
'react'
import
ContentBox
from
'~/components/contentBox'
import
Filter
,
{
AdapterResult
,
FilterResult
}
from
'~/components/filter'
import
Layout
from
'~/components/layout'
import
api
,
{
Advertisement
,
Device
}
from
'./api'
import
{
Box
}
from
'./styled'
import
{
UserContext
}
from
'~/lib/userProvider'
// 此函数在构建时被调用
export
async
function
getStaticProps
()
{
//获取筛选数据,进行静态渲染
...
...
@@ -18,6 +19,7 @@ export async function getStaticProps() {
type
Props
=
{}
export
default
function
EquipmentLeasing
(
props
:
Props
)
{
const
{
userInfo
}
=
useContext
(
UserContext
)
const
router
=
useRouter
()
const
[
productList
,
setProductList
]
=
useState
(
Array
<
{
element
:
JSX
.
Element
}
>
...
...
@@ -42,10 +44,14 @@ export default function EquipmentLeasing(props: Props) {
<
div
className=
"item-bottom-title"
title=
{
item
.
goodsName
}
>
{
item
.
goodsName
}
</
div
>
<
div
className=
"item-bottom-price"
>
<
span
className=
"money"
>
¥
{
item
.
price
}
</
span
>
<
span
className=
"unit"
>
/天起
</
span
>
</
div
>
{
userInfo
?.
cooperationTagId
?
(
<
div
className=
"item-bottom-price"
>
<
span
className=
"money"
>
¥
{
item
.
price
}
</
span
>
<
span
className=
"unit"
>
/天起
</
span
>
</
div
>
)
:
(
<
div
className=
"unit"
>
暂无报价
</
div
>
)
}
</
div
>
</
div
>
)
...
...
pages/equipmentLeasing/styled.tsx
浏览文件 @
1de420ac
import
styled
from
"styled-components"
;
import
styled
from
'styled-components'
export
default
function
Style
()
{
return
<></>
;
return
<></>
}
export
const
Box
=
styled
.
div
`
...
...
@@ -54,14 +54,14 @@ export const Box = styled.div`
color: #ff552d;
line-height: 22px;
}
.unit {
width: 58px;
height: 22
px;
font-size: 14
px;
font-family: MicrosoftYaHei
;
color: #ff552d
;
line-height: 22px
;
}
}
.unit {
width: 58
px;
height: 22
px;
font-size: 14px
;
font-family: MicrosoftYaHei
;
color: #ff552d
;
line-height: 22px;
}
}
}
...
...
@@ -76,4 +76,4 @@ export const Box = styled.div`
.pagination-page {
text-align: right;
}
`
;
`
pages/flyingHandService/api/index.tsx
浏览文件 @
1de420ac
...
...
@@ -16,6 +16,7 @@ export interface Flying {
free
:
0
|
1
curriculumDesc
:
string
videoUrl
:
string
surfaceUrl
:
string
}
export
interface
ListPageFlyingInfoResp
{
...
...
pages/flyingHandService/detail/[id].page.tsx
浏览文件 @
1de420ac
...
...
@@ -29,6 +29,11 @@ export default function FlyingDetail() {
<
div
className=
"content"
>
{
detail
?.
curriculumDesc
}
</
div
>
</
div
>
{
/* <div className="bottom">详情</div> */
}
{
detail
?.
detailContent
&&
(
<
div
dangerouslySetInnerHTML=
{
{
__html
:
detail
?.
detailContent
}
}
></
div
>
)
}
</
div
>
),
},
...
...
pages/flyingHandService/index.page.tsx
浏览文件 @
1de420ac
...
...
@@ -64,7 +64,11 @@ export default function FlyingHandService() {
>
<
div
className=
"item-top"
>
<
Image
src=
{
`${item.videoUrl}?x-oss-process=video/snapshot,t_1000,m_fast`
}
src=
{
item
.
videoUrl
?
`${item.videoUrl}?x-oss-process=video/snapshot,t_1000,m_fast`
:
item
.
surfaceUrl
}
alt=
"#"
fill
/>
...
...
pages/jobServices/detail/[id].page.tsx
浏览文件 @
1de420ac
...
...
@@ -46,7 +46,11 @@ export default function JobServicesDetail() {
src={detail?.teamPoster ? detail?.teamPoster : ''}
alt="error"
/> */
}
{
detail
?.
serviceIntroduction
}
{
detail
?.
serviceIntroduction
?
(
<
div
dangerouslySetInnerHTML=
{
{
__html
:
detail
?.
serviceIntroduction
}
}
></
div
>
)
:
null
}
</
div
>
),
},
...
...
@@ -254,7 +258,6 @@ export default function JobServicesDetail() {
<
RangePicker
style=
{
{
width
:
376
,
marginTop
:
10
}
}
disabledDate=
{
disabledDate
}
showTime
/>
</
Form
.
Item
>
<
Form
.
Item
...
...
pages/mall/detail/components/orderForGoods/index.tsx
浏览文件 @
1de420ac
...
...
@@ -86,44 +86,77 @@ export default function OrderForGoods(props: PropsBox) {
//图片预览
const
[
visible
,
setVisible
]
=
useState
(
false
)
//扫码管理地址
const
[
isAddAddressOpen
,
setIsAddAddressOpen
]
=
useState
(
false
)
const
[
addressVisible
,
setAddressVisible
]
=
useState
(
false
)
return
(
<
OrderForGoodsBox
>
<
div
className=
"address"
>
<
div
className=
"top"
>
<
div
className=
"left"
>
确认收货地址
</
div
>
<
div
className=
"right"
>
<
Button
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
<
Button
onClick=
{
()
=>
setIsAddAddressOpen
(
true
)
}
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
管理收货地址
</
Button
>
</
div
>
</
div
>
<
div
className=
"bottom"
>
{
list
?.
map
((
item
,
index
)
=>
(
<
div
key=
{
item
.
id
}
className=
{
`item ${value === item.id ? 'active' : ''}`
}
onClick=
{
()
=>
onChangeValue
(
item
.
id
)
}
>
{
list
?.
length
?
(
list
?.
map
((
item
,
index
)
=>
(
<
div
key=
{
item
.
id
}
className=
{
`item ${value === item.id ? 'active' : ''}`
}
onClick=
{
()
=>
onChangeValue
(
item
.
id
)
}
>
<
div
className=
"left"
>
<
div
className=
"active"
>
<
div
className=
"icon"
></
div
>
<
div
className=
"label"
>
寄送至
</
div
>
</
div
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
value
}
>
<
Space
direction=
"vertical"
>
<
Radio
value=
{
item
.
id
}
>
{
item
.
takeAddress
}
</
Radio
>
</
Space
>
</
Radio
.
Group
>
</
div
>
{
value
===
item
.
id
?
(
<
div
className=
"right"
>
<
Button
onClick=
{
()
=>
setIsAddAddressOpen
(
true
)
}
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
修改地址
</
Button
>
</
div
>
)
:
null
}
</
div
>
))
)
:
(
<
div
className=
"item active"
>
<
div
className=
"left"
>
<
div
className=
"active"
>
<
div
className=
"icon"
></
div
>
<
div
className=
"label"
>
寄送至
</
div
>
<
div
className=
"label"
>
暂无地址,请打开手机端【云享飞】微信小程序,【我的】-【个人设置】-【地址管理】添加
</
div
>
</
div
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
value
}
>
<
Space
direction=
"vertical"
>
<
Radio
value=
{
item
.
id
}
>
{
item
.
takeAddress
}
</
Radio
>
</
Space
>
</
Radio
.
Group
>
</
div
>
{
value
===
item
.
id
?
(
<
div
className=
"right"
>
<
Button
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
修改地址
</
Button
>
</
div
>
)
:
null
}
<
div
className=
"right"
>
<
Button
onClick=
{
()
=>
setIsAddAddressOpen
(
true
)
}
type=
"link"
style=
{
{
color
:
'#007aff'
}
}
>
添加地址
</
Button
>
</
div
>
</
div
>
)
)
}
)
}
</
div
>
</
div
>
<
div
className=
"info"
>
...
...
@@ -148,6 +181,7 @@ export default function OrderForGoods(props: PropsBox) {
<
div
className=
"body-item article"
style=
{
{
width
:
290
}
}
>
<
div
className=
"image"
>
<
Image
className=
"image-box"
preview=
{
{
visible
:
false
}
}
src=
{
item
.
prodSkuSpecImage
||
''
}
onClick=
{
()
=>
setVisible
(
true
)
}
...
...
@@ -233,6 +267,50 @@ export default function OrderForGoods(props: PropsBox) {
</
div
>
</
div
>
</
div
>
<
Modal
wrapClassName=
"addAddress"
open=
{
isAddAddressOpen
}
onCancel=
{
()
=>
setIsAddAddressOpen
(
false
)
}
getContainer=
{
false
}
maskClosable=
{
false
}
width=
{
420
}
footer=
{
false
}
>
<
div
className=
"title"
>
扫码管理地址
</
div
>
<
div
className=
"image"
>
<
Image
className=
"addressImg"
preview=
{
{
visible
:
false
}
}
src=
{
window
.
location
.
href
.
includes
(
'https://test.iuav.shop/'
)
?
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/image/app-iuav-trial.jpg'
:
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/image/app-iuav-formal.jpg'
||
''
}
onClick=
{
()
=>
setAddressVisible
(
true
)
}
/>
<
div
style=
{
{
display
:
'none'
}
}
>
<
Image
.
PreviewGroup
preview=
{
{
visible
:
addressVisible
,
onVisibleChange
:
(
vis
)
=>
setAddressVisible
(
vis
),
}
}
>
<
Image
src=
{
window
.
location
.
href
.
includes
(
'https://test.iuav.shop/'
)
?
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/image/app-iuav-trial.jpg'
:
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/image/app-iuav-formal.jpg'
||
''
}
/>
</
Image
.
PreviewGroup
>
</
div
>
</
div
>
<
div
className=
"content"
>
【打开微信扫一扫】-进入云享飞【我的】- 【个人设置】-【地址管理】
</
div
>
</
Modal
>
</
OrderForGoodsBox
>
)
}
pages/mall/detail/components/orderForGoods/styled.tsx
浏览文件 @
1de420ac
...
...
@@ -106,10 +106,11 @@ export const OrderForGoodsBox = styled.div`
display: flex;
justify-content: space-between;
.image {
width: 80px;
height: 80px;
background-color: pink;
margin-right: 10px;
.image-box {
width: 80px;
height: 80px;
}
}
.right {
.top {
...
...
@@ -272,4 +273,34 @@ export const OrderForGoodsBox = styled.div`
color: #ff552d;
}
}
.addAddress {
.title {
text-align: center;
height: 25px;
font-size: 20px;
font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
font-weight: bold;
color: #000000;
line-height: 25px;
}
.image {
display: flex;
justify-content: center;
align-items: center;
padding: 48px 0 32px;
.addressImg {
width: 150px;
height: 150px;
}
}
.content {
text-align: center;
width: 311px;
height: 38px;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #3e454d;
line-height: 19px;
}
}
`
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论