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
1ee812e0
Commit
1ee812e0
authored
Aug 05, 2021
by
your yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:图片回显问题处理
parent
25f5dce8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
10 deletions
+19
-10
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+9
-4
infoEditing.vue
src/pages/Activity/releaseProduc/components/infoEditing.vue
+6
-3
index.vue
src/pages/Activity/releaseProduc/index.vue
+4
-3
No files found.
src/pages/Activity/releaseProduc/components/addProduc.vue
View file @
1ee812e0
...
@@ -353,7 +353,11 @@ export default {
...
@@ -353,7 +353,11 @@ export default {
const
res
=
await
markGoodsInfo
(
params
);
const
res
=
await
markGoodsInfo
(
params
);
this
.
commodityForm
=
res
.
result
.
goods_info
;
this
.
commodityForm
=
res
.
result
.
goods_info
;
this
.
commodityForm
.
business1
=
res
.
result
.
goods_info
.
ota_id
;
this
.
commodityForm
.
business1
=
res
.
result
.
goods_info
.
ota_id
;
this
.
commodityForm
.
picUrlList
=
res
.
result
.
goods_info
.
desc_pic_url_list
;
for
(
var
i
in
res
.
result
.
goods_info
.
desc_pic_url_list
)
{
this
.
commodityForm
.
picUrlList
.
push
({
url
:
res
.
result
.
goods_info
.
desc_pic_url_list
[
i
],
});
}
},
},
// 编辑商品详情
// 编辑商品详情
...
@@ -365,7 +369,7 @@ export default {
...
@@ -365,7 +369,7 @@ export default {
inventory_add
:
this
.
commodityForm
.
inventory_total
,
inventory_add
:
this
.
commodityForm
.
inventory_total
,
original_price
:
this
.
commodityForm
.
original_price
,
original_price
:
this
.
commodityForm
.
original_price
,
price
:
this
.
commodityForm
.
price
,
price
:
this
.
commodityForm
.
price
,
marketing_name
:
this
.
editInfo
.
title
,
marketing_name
:
this
.
editInfo
.
title
,
marketing_type
:
"4"
,
marketing_type
:
"4"
,
ota_id
:
this
.
commodityForm
.
business1
,
ota_id
:
this
.
commodityForm
.
business1
,
op_cur_user
:
store
.
state
.
userInfo
.
email
,
op_cur_user
:
store
.
state
.
userInfo
.
email
,
...
@@ -407,7 +411,7 @@ export default {
...
@@ -407,7 +411,7 @@ export default {
// 添加商品
// 添加商品
async
addGoodsMet
()
{
async
addGoodsMet
()
{
const
res
=
await
addGoods
({
const
res
=
await
addGoods
({
marketing_name
:
this
.
editInfo
.
title
,
marketing_name
:
this
.
editInfo
.
title
,
goods_name
:
this
.
commodityForm
.
goods_name
,
goods_name
:
this
.
commodityForm
.
goods_name
,
desc_pic_url
:
this
.
picUploadList
.
join
(
","
),
desc_pic_url
:
this
.
picUploadList
.
join
(
","
),
desc
:
""
,
desc
:
""
,
...
@@ -423,7 +427,8 @@ export default {
...
@@ -423,7 +427,8 @@ export default {
message
:
"添加商品成功"
,
message
:
"添加商品成功"
,
type
:
"success"
,
type
:
"success"
,
});
});
this
.
comTableData
=
[
res
.
result
.
goods_info
,
...
this
.
multipleSelection
];
// [res.result.goods_info, ...this.multipleSelection];
this
.
comTableData
.
push
(
res
.
result
.
goods_info
);
this
.
addCommodityPopup
=
false
;
this
.
addCommodityPopup
=
false
;
}
else
{
}
else
{
ElMessage
.
error
(
res
.
reason
);
ElMessage
.
error
(
res
.
reason
);
...
...
src/pages/Activity/releaseProduc/components/infoEditing.vue
View file @
1ee812e0
...
@@ -48,16 +48,17 @@
...
@@ -48,16 +48,17 @@
import
{
GOODS_URI
}
from
"../../../../../server/config"
;
import
{
GOODS_URI
}
from
"../../../../../server/config"
;
import
{
marketingInfo
}
from
"../../../../service/Activity/index"
;
import
{
marketingInfo
}
from
"../../../../service/Activity/index"
;
export
default
{
export
default
{
props
:
[
"editInfo"
],
data
()
{
data
()
{
return
{
return
{
infoEditForm
:
{
infoEditForm
:
{
title
:
""
,
// 标题
title
:
""
,
// 标题
desc
:
""
,
// 介绍
desc
:
""
,
// 介绍
picUploadList
:
[],
// 上传详情图片列表
picUploadList
:
[],
// 上传详情图片列表
picUrlList
:
[],
// 图片回显列表
},
},
isShowPopver
:
false
,
// 是否展示图片框
isShowPopver
:
false
,
// 是否展示图片框
picUrlList
:
[],
// 图片回显列表
uploadUrl
:
`
${
GOODS_URI
}
/ksy/ks3apiunencrypt/ks3api_upload`
,
// 金山云上传地址
uploadUrl
:
`
${
GOODS_URI
}
/ksy/ks3apiunencrypt/ks3api_upload`
,
// 金山云上传地址
};
};
},
},
...
@@ -70,7 +71,6 @@ export default {
...
@@ -70,7 +71,6 @@ export default {
// 图片上传成功时
// 图片上传成功时
handleDetailSuccess
(
res
)
{
handleDetailSuccess
(
res
)
{
console
.
log
(
res
);
this
.
infoEditForm
.
picUploadList
.
push
(
res
.
result
.
image_id
);
this
.
infoEditForm
.
picUploadList
.
push
(
res
.
result
.
image_id
);
},
},
...
@@ -95,11 +95,14 @@ export default {
...
@@ -95,11 +95,14 @@ export default {
const
res
=
await
marketingInfo
(
params
);
const
res
=
await
marketingInfo
(
params
);
this
.
infoEditForm
.
title
=
res
.
result
.
marketing_info
.
marketing_name
;
this
.
infoEditForm
.
title
=
res
.
result
.
marketing_info
.
marketing_name
;
this
.
infoEditForm
.
desc
=
res
.
result
.
marketing_info
.
pindan_desc
;
this
.
infoEditForm
.
desc
=
res
.
result
.
marketing_info
.
pindan_desc
;
this
.
infoEditForm
.
picUploadList
=
res
.
result
.
marketing_info
.
pindan_pic_url
;
for
(
var
i
in
res
.
result
.
marketing_info
.
pindan_pic_url
){
this
.
infoEditForm
.
picUrlList
.
push
({
url
:
res
.
result
.
marketing_info
.
pindan_pic_url
[
i
]})
}
},
},
},
},
created
()
{
created
()
{
this
.
marketingInfoMet
();
this
.
marketingInfoMet
();
console
.
log
(
this
.
editInfo
);
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/Activity/releaseProduc/index.vue
View file @
1ee812e0
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<el-step
title=
"拼单设置"
></el-step>
<el-step
title=
"拼单设置"
></el-step>
</el-steps>
</el-steps>
<div
class=
"content"
>
<div
class=
"content"
>
<infoEditing
ref=
"infoEdit"
v-if=
"active === 1"
/>
<infoEditing
ref=
"infoEdit"
v-if=
"active === 1"
:editInfo=
"infoEditArr"
/>
<addProduc
<addProduc
ref=
"addProduc"
ref=
"addProduc"
v-else-if=
"active === 2"
v-else-if=
"active === 2"
...
@@ -105,6 +105,7 @@ export default {
...
@@ -105,6 +105,7 @@ export default {
// marketing_type: "4",
// marketing_type: "4",
// };
// };
// const res = await marketingInfo(params);
// const res = await marketingInfo(params);
// console.log(res);
// this.infoEditArr = res.result.marketing_info;
// this.infoEditArr = res.result.marketing_info;
// },
// },
...
...
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