Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
2ae4ecb3
Commit
2ae4ecb3
authored
Aug 06, 2021
by
lvweichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 商品原价改为string
parent
e57c8e76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
index.vue
src/pages/Goods/Detail/index.vue
+10
-10
No files found.
src/pages/Goods/Detail/index.vue
View file @
2ae4ecb3
...
@@ -1176,13 +1176,13 @@ export default {
...
@@ -1176,13 +1176,13 @@ export default {
2
2
);
);
this
.
goodsObj
.
original_price
=
Number
(
parseOriginalPrice
);
this
.
goodsObj
.
original_price
=
Number
(
parseOriginalPrice
);
if
(
//
if (
typeof
this
.
goodsObj
.
original_price
===
"number"
&&
//
typeof this.goodsObj.original_price === "number" &&
isNaN
(
this
.
goodsObj
.
original_price
)
//
isNaN(this.goodsObj.original_price)
)
{
//
) {
this
.
goodsObj
.
original_price
=
""
;
//
this.goodsObj.original_price = "";
return
this
.
$message
.
error
(
"原价价格必为数字"
);
//
return this.$message.error("原价价格必为数字");
}
//
}
},
},
// 审核通过
// 审核通过
...
@@ -1285,9 +1285,9 @@ export default {
...
@@ -1285,9 +1285,9 @@ export default {
if
(
query
.
price
==
0
)
{
if
(
query
.
price
==
0
)
{
return
this
.
$message
.
error
(
"售价价格不得为0"
);
return
this
.
$message
.
error
(
"售价价格不得为0"
);
}
}
if
(
query
.
original_price
&&
typeof
query
.
original_price
!==
"number"
)
{
//
if (query.original_price && typeof query.original_price !== "number") {
return
this
.
$message
.
error
(
"原价价格必须为数字"
);
//
return this.$message.error("原价价格必须为数字");
}
//
}
if
(
typeof
query
.
price
!==
"number"
)
{
if
(
typeof
query
.
price
!==
"number"
)
{
return
this
.
$message
.
error
(
"售价价格必须为数字格式"
);
return
this
.
$message
.
error
(
"售价价格必须为数字格式"
);
}
}
...
...
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