Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4a38cc9e
authored
Aug 28, 2025
by
孙美琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情添加购买协议复选框
parent
ed929c27
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
6 deletions
+36
-6
src/views/computingResource/resourceList.vue
+36
-6
No files found.
src/views/computingResource/resourceList.vue
View file @
4a38cc9e
...
...
@@ -105,7 +105,10 @@
</el-col>
</el-row>
<el-divider></el-divider>
<div
class=
"flex-justify-end price"
>
¥{{ item.price ? item.price / 100 : '-' }}/{{ item.feeInfo }}
</div>
<div
class=
"flex-justify-end price"
>
¥{{ item.price ? item.price / 100 : '-' }}/{{
item.feeInfo
}}
</div>
<!--<div class="flex-justify-end month-expenses">约¥15/月</div>-->
<el-divider></el-divider>
<div
class=
"footer-action flex"
>
...
...
@@ -130,7 +133,7 @@
</el-tabs>
</div>
<el-drawer
v-model=
"showDrawer"
class=
"drawer"
direction=
"rtl"
:size=
"694"
title=
"
资源申请
详情"
>
<el-drawer
v-model=
"showDrawer"
class=
"drawer"
direction=
"rtl"
:size=
"694"
title=
"
订单
详情"
>
<
template
#
default
>
<div
class=
"info-block"
>
<div
class=
"info-item flex-align-center flex-space-between"
>
...
...
@@ -161,17 +164,25 @@
</div>
</div>
</div>
</
template
>
<
template
#
footer
>
<div
class=
"checkbox-info"
>
<el-checkbox
v-model=
"checkbox"
:value=
"true"
size=
"large"
>
<template
#
default
>
我已阅读和理解上述
</
template
>
</el-checkbox>
<span
class=
"link"
@
click=
"handleCheckProtocol"
>
《购买协议》
</span>
</div>
<el-divider
style=
"margin: 0 !important;"
/>
<div
class=
"drawer-footer flex-space-between flex-align-center"
>
<div>
应付配置费用
</div>
<div
class=
"flex-align-center"
>
<div
class=
"mr20"
>
<div
class=
"price"
>
¥
{{
orderPrice
/
100
}}
</div>
<div
class=
"price"
>
¥{{ orderPrice
/
100 }}
</div>
</div>
<el-button
type=
"primary"
@
click=
"create"
>
{{
selectedType
===
1
?
'加入购物车'
:
'立即购买'
}}
<el-button
type=
"primary"
@
click=
"create"
:disabled=
"!checkbox"
>
{{ selectedType === 1 ? '加入购物车' : '立即购买' }}
</el-button>
</div>
</div>
...
...
@@ -228,6 +239,7 @@ const pageSize = ref(10)
const
productTypes
=
ref
([])
const
tableData
=
ref
([])
const
interval
=
ref
(
undefined
)
const
checkbox
=
ref
(
false
)
const
qrCode
=
ref
({
url
:
''
,
...
...
@@ -255,6 +267,10 @@ watch(() => route.query.type, (value, oldValue) => {
}
})
function
handleCheckProtocol
()
{
console
.
log
(
'点击'
)
}
function
tabChange
()
{
pageNum
.
value
=
1
getList
()
...
...
@@ -376,7 +392,8 @@ const createQueryInterval = (id) => {
showCancelButton
:
false
,
type
:
'success'
}
).
then
(()
=>
{})
).
then
(()
=>
{
})
}
// 已取消
if
(
res
.
data
.
status
===
PayOrderStatusEnum
.
CLOSED
.
status
)
{
...
...
@@ -733,4 +750,17 @@ const clearQueryInterval = () => {
border-radius
:
2px
2px
2px
2px
;
}
}
.checkbox-info
{
display
:
flex
;
align-items
:
center
;
background
:
#ffffff
;
padding-left
:
48px
;
padding-bottom
:
10px
;
.link
{
color
:
#409eff
;
cursor
:
pointer
;
}
}
</
style
>
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