Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
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
hooloo
web
soss
Commits
5ff539a5
Commit
5ff539a5
authored
Feb 28, 2023
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改店铺商品信息特惠bug
parent
68779bae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/views/shop/shop/components/preferential.vue
+6
-4
No files found.
src/views/shop/shop/components/preferential.vue
View file @
5ff539a5
...
...
@@ -98,7 +98,7 @@ export default {
if
(
length
>=
3
){
this
.
$message
.
error
(
'标签个数最多添加三个!'
);
}
else
{
this
.
tagValues
=
this
.
tagValues
+
inputValues
;
this
.
tagValues
=
this
.
tagValues
+
inputValues
;
if
((
this
.
goodsTagValue
.
length
+
this
.
tagValues
.
length
)
>
13
){
this
.
$message
.
error
(
'标签总字符数量最大13!'
);
this
.
tagValues
=
this
.
tagValues
.
replace
(
inputValues
,
""
);
...
...
@@ -143,7 +143,7 @@ export default {
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
//
this.reset();
},
// 表单重置
reset
()
{
...
...
@@ -151,7 +151,7 @@ export default {
this
.
resetForm
(
"form"
);
},
openModal
(
data
)
{
console
.
log
(
"data"
,
data
);
console
.
log
(
"data"
,
data
);
this
.
goodsTagValue
=
""
;
this
.
form
.
goodsName
=
data
.
name
this
.
form
.
shopId
=
this
.
shopId
...
...
@@ -160,13 +160,15 @@ export default {
this
.
form
.
discount
=
data
.
discount
this
.
form
.
type
=
2
;
this
.
recommendTagList
=
[];
this
.
tagValues
=
""
;
this
.
form
.
recommendPrice
=
null
;
this
.
goodsTagList
=
data
.
goodsTagList
;
if
(
this
.
goodsTagList
.
length
>
0
){
for
(
let
i
=
0
;
i
<
this
.
goodsTagList
.
length
;
i
++
){
this
.
goodsTagValue
=
this
.
goodsTagValue
+
this
.
goodsTagList
[
i
];
}
}
this
.
open
=
true
this
.
open
=
true
}
}
...
...
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