Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
web-ci-test
Commits
14244f6d
提交
14244f6d
authored
6月 12, 2023
作者:
曹云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
改-设备租赁,产品商城-详情-提交订单-添加判断
上级
e820e7cc
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
5 行删除
+13
-5
index.tsx
...quipmentLeasing/detail/components/orderForGoods/index.tsx
+8
-2
index.tsx
pages/mall/detail/components/intentionModal/index.tsx
+1
-1
index.tsx
pages/mall/detail/components/orderForGoods/index.tsx
+4
-2
没有找到文件。
pages/equipmentLeasing/detail/components/orderForGoods/index.tsx
浏览文件 @
14244f6d
...
@@ -43,7 +43,13 @@ export default function OrderForGoods(props: PropsBox) {
...
@@ -43,7 +43,13 @@ export default function OrderForGoods(props: PropsBox) {
setValue
(
index
)
setValue
(
index
)
}
}
const
detailSumbit
=
()
=>
{
const
detailSumbit
=
()
=>
{
if
(
detailData
&&
shopDetail
&&
list
&&
wareSkuList
)
{
if
(
!
list
?.
length
)
return
message
.
warning
(
'暂无地址信息,请前往云享飞添加地址'
)
console
.
log
(
value
!==
0
)
if
(
list
?.
length
&&
!
value
&&
value
!==
0
)
return
message
.
warning
(
'请选择地址'
)
if
(
detailData
&&
shopDetail
&&
list
?.
length
&&
wareSkuList
)
{
const
pushList
=
{
const
pushList
=
{
actualPay
:
actualPay
:
discount
?.
specPrice
[
0
]?.
price
!
*
shopDetail
?.
num
!
*
days
!
||
0
,
discount
?.
specPrice
[
0
]?.
price
!
*
shopDetail
?.
num
!
*
days
!
||
0
,
...
@@ -52,7 +58,7 @@ export default function OrderForGoods(props: PropsBox) {
...
@@ -52,7 +58,7 @@ export default function OrderForGoods(props: PropsBox) {
'YYYY-MM-DD'
'YYYY-MM-DD'
),
),
orderReceipt
:
{
orderReceipt
:
{
detailAddress
:
list
[
value
]
?
.
takeAddress
,
detailAddress
:
list
[
value
].
takeAddress
,
receiptMethod
:
0
,
receiptMethod
:
0
,
region
:
list
[
value
].
takeRegion
,
region
:
list
[
value
].
takeRegion
,
takeName
:
list
[
value
].
takeName
,
takeName
:
list
[
value
].
takeName
,
...
...
pages/mall/detail/components/intentionModal/index.tsx
浏览文件 @
14244f6d
...
@@ -95,7 +95,7 @@ export default function IntentionModal(props: Props) {
...
@@ -95,7 +95,7 @@ export default function IntentionModal(props: Props) {
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
==
'200'
)
{
if
(
res
.
code
==
'200'
)
{
message
.
success
(
'提交意向成功'
)
//
message.success('提交意向成功')
//重置为未选中
//重置为未选中
let
temp
=
{
let
temp
=
{
...
...
pages/mall/detail/components/orderForGoods/index.tsx
浏览文件 @
14244f6d
...
@@ -43,8 +43,10 @@ export default function OrderForGoods(props: PropsBox) {
...
@@ -43,8 +43,10 @@ export default function OrderForGoods(props: PropsBox) {
setValue
(
index
)
setValue
(
index
)
}
}
const
detailSumbit
=
()
=>
{
const
detailSumbit
=
()
=>
{
if
(
!
list
?.
length
&&
!
value
)
return
message
.
warning
(
'暂无地址信息'
)
if
(
!
list
?.
length
)
if
(
list
?.
length
&&
!
value
)
return
message
.
warning
(
'请选择地址'
)
return
message
.
warning
(
'暂无地址信息,请前往云享飞添加地址'
)
if
(
list
?.
length
&&
!
value
&&
value
!==
0
)
return
message
.
warning
(
'请选择地址'
)
if
(
detailData
&&
list
&&
mallDetail
)
{
if
(
detailData
&&
list
&&
mallDetail
)
{
const
pushList
=
{
const
pushList
=
{
buyNum
:
mallDetail
.
buyNum
,
buyNum
:
mallDetail
.
buyNum
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论