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
145071dc
authored
Aug 16, 2025
by
孙美琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格的单位为分,展示的时候需要/100
parent
feb6faee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/views/computingResource/resourceList.vue
+5
-5
No files found.
src/views/computingResource/resourceList.vue
View file @
145071dc
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<el-table-column
prop=
"name"
label=
"型号"
width=
"190px"
sortable
/>
<el-table-column
prop=
"name"
label=
"型号"
width=
"190px"
sortable
/>
<!--
<el-table-column
v-for=
"item in productType"
prop=
"cpu"
label=
"CPU"
sortable
/>
-->
<!--
<el-table-column
v-for=
"item in productType"
prop=
"cpu"
label=
"CPU"
sortable
/>
-->
<el-table-column
<el-table-column
v-for=
"(item, index) in tableData[0]
.properties.length!==0?tableData[0].properties.slice(0,6):tableData[0]
.properties"
v-for=
"(item, index) in tableData[0]
?.properties.length!==0?tableData[0]?.properties.slice(0,6):tableData[0]?
.properties"
:key=
"index"
:key=
"index"
:label=
"item.propertyName"
:label=
"item.propertyName"
sortable
sortable
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<div
class=
"bottom-info"
>
<div
class=
"bottom-info"
>
<el-row>
<el-row>
<el-col
:span=
"24"
<el-col
:span=
"24"
v-for=
"(i,x) in item
.properties.length!==0?item
.properties.slice(0,4):item.properties"
v-for=
"(i,x) in item
?.properties.length!==0 ? item?
.properties.slice(0,4):item.properties"
:key=
"x"
>
:key=
"x"
>
<div
class=
"parameter-item"
>
<div
class=
"parameter-item"
>
<div
class=
"label"
>
{{ i.propertyName }}
</div>
<div
class=
"label"
>
{{ i.propertyName }}
</div>
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-divider></el-divider>
<el-divider></el-divider>
<div
class=
"flex-justify-end price"
>
¥{{ item.price }}/{{ 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>-->
<!--<div class="flex-justify-end month-expenses">约¥15/月</div>-->
<el-divider></el-divider>
<el-divider></el-divider>
<div
class=
"footer-action flex"
>
<div
class=
"footer-action flex"
>
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
<div
class=
"flex-align-center"
>
<div
class=
"flex-align-center"
>
<div
class=
"mr20"
>
<div
class=
"mr20"
>
<div
class=
"price"
>
¥
{{
orderPrice
}}
</div>
<div
class=
"price"
>
¥
{{
orderPrice
/
100
}}
</div>
</div>
</div>
<el-button
type=
"primary"
@
click=
"create"
>
{{
selectedType
===
1
?
'加入购物车'
:
'立即购买'
}}
<el-button
type=
"primary"
@
click=
"create"
>
{{
selectedType
===
1
?
'加入购物车'
:
'立即购买'
}}
</el-button>
</el-button>
...
@@ -325,8 +325,8 @@ function create() {
...
@@ -325,8 +325,8 @@ function create() {
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
'提示'
,
'订单已创建,请前往控制台-我的订单查看'
,
'订单已创建,请前往控制台-我的订单查看'
,
'提示'
,
{
{
confirmButtonText
:
'确认'
,
confirmButtonText
:
'确认'
,
showCancelButton
:
false
,
showCancelButton
:
false
,
...
...
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