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
cc12a54b
Commit
cc12a54b
authored
Aug 11, 2021
by
v-yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:商品图片编辑保存修改
parent
171cc6b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+8
-7
No files found.
src/pages/Activity/releaseProduc/components/addProduc.vue
View file @
cc12a54b
...
@@ -406,11 +406,18 @@ export default {
...
@@ -406,11 +406,18 @@ export default {
}
}
},
},
getUrlParms
(
path
,
name
)
{
var
reg
=
new
RegExp
(
"(^|
\\
?|&)"
+
name
+
"=([^&]*)(
\\
s|&|$)"
,
"i"
);
if
(
reg
.
test
(
path
))
return
unescape
(
RegExp
.
$2
.
replace
(
/
\+
/g
,
" "
));
return
""
;
},
// 编辑商品详情
// 编辑商品详情
async
editGoodsMet
(
goodsSkuID
)
{
async
editGoodsMet
(
goodsSkuID
)
{
let
pic
=
this
.
picUrlList
[
0
].
url
;
const
res
=
await
editGoods
({
const
res
=
await
editGoods
({
goods_name
:
this
.
commodityForm
.
goods_name
,
goods_name
:
this
.
commodityForm
.
goods_name
,
desc_pic_url
:
this
.
picUploadList
.
join
(
",
"
),
desc_pic_url
:
this
.
getUrlParms
(
pic
,
"url
"
),
desc
:
""
,
desc
:
""
,
inventory_add
:
this
.
commodityForm
.
inventory_total
,
inventory_add
:
this
.
commodityForm
.
inventory_total
,
original_price
:
this
.
commodityForm
.
original_price
,
original_price
:
this
.
commodityForm
.
original_price
,
...
@@ -439,12 +446,6 @@ export default {
...
@@ -439,12 +446,6 @@ export default {
}
}
}
}
// for (var j in this.comLibTableData) {
// if (this.comLibTableData[j].goods_sku_id == goodsSkuID) {
// this.comTableData.push(this.comLibTableData[j]);
// }
// }
this
.
addCommodityPopup
=
false
;
this
.
addCommodityPopup
=
false
;
}
else
{
}
else
{
ElMessage
.
error
(
res
.
reason
);
ElMessage
.
error
(
res
.
reason
);
...
...
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