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
8a2bf981
Commit
8a2bf981
authored
Aug 05, 2021
by
your yuchenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:信息编辑监听回显
parent
bf47842e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
29 deletions
+19
-29
addProduc.vue
src/pages/Activity/releaseProduc/components/addProduc.vue
+1
-0
infoEditing.vue
src/pages/Activity/releaseProduc/components/infoEditing.vue
+17
-28
index.vue
src/pages/Activity/releaseProduc/index.vue
+1
-1
No files found.
src/pages/Activity/releaseProduc/components/addProduc.vue
View file @
8a2bf981
...
@@ -503,6 +503,7 @@ export default {
...
@@ -503,6 +503,7 @@ export default {
this
.
comTableData
=
this
.
addProduc
;
this
.
comTableData
=
this
.
addProduc
;
},
},
},
},
created
()
{
created
()
{
this
.
getBusinessListMet
();
this
.
getBusinessListMet
();
this
.
marketingInfoMet
();
this
.
marketingInfoMet
();
...
...
src/pages/Activity/releaseProduc/components/infoEditing.vue
View file @
8a2bf981
...
@@ -46,25 +46,24 @@
...
@@ -46,25 +46,24 @@
<
script
>
<
script
>
import
{
GOODS_URI
}
from
"../../../../../server/config"
;
import
{
GOODS_URI
}
from
"../../../../../server/config"
;
import
{
marketingInfo
}
from
"../../../../service/Activity/index"
;
export
default
{
export
default
{
//
props: {
props
:
{
//
editInfo: {
editInfo
:
{
//
type: Object,
type
:
Object
,
// required: () => {}
required
:
()
=>
{},
// }
},
//
},
},
data
()
{
data
()
{
return
{
return
{
infoEditForm
:
{
infoEditForm
:
{
title
:
""
,
// 标题
title
:
""
,
// 标题
desc
:
""
,
// 介绍
desc
:
""
,
// 介绍
picUploadList
:
[],
// 上传详情图片列表
picUploadList
:
[],
// 上传详情图片列表
picUrlList
:
[]
// 图片回显列表
picUrlList
:
[]
,
// 图片回显列表
},
},
isShowPopver
:
false
,
// 是否展示图片框
isShowPopver
:
false
,
// 是否展示图片框
uploadUrl
:
`
${
GOODS_URI
}
/ksy/ks3apiunencrypt/ks3api_upload`
// 金山云上传地址
uploadUrl
:
`
${
GOODS_URI
}
/ksy/ks3apiunencrypt/ks3api_upload`
,
// 金山云上传地址
};
};
},
},
methods
:
{
methods
:
{
...
@@ -87,29 +86,19 @@ export default {
...
@@ -87,29 +86,19 @@ export default {
}
}
}
}
},
},
// 获取营销活动详情
},
async
marketingInfoMet
()
{
watch
:
{
let
marketingId
=
this
.
$route
.
query
.
marketing_id
;
editInfo
:
function
(
newVal
)
{
if
(
marketingId
==
undefined
)
{
this
.
infoEditForm
.
title
=
newVal
.
marketing_name
;
return
;
this
.
infoEditForm
.
desc
=
newVal
.
pindan_desc
;
}
for
(
var
i
in
newVal
.
pindan_pic_url
)
{
let
params
=
{
marketing_id
:
marketingId
,
marketing_type
:
"4"
};
const
res
=
await
marketingInfo
(
params
);
this
.
infoEditForm
.
title
=
res
.
result
.
marketing_info
.
marketing_name
;
this
.
infoEditForm
.
desc
=
res
.
result
.
marketing_info
.
pindan_desc
;
for
(
var
i
in
res
.
result
.
marketing_info
.
pindan_pic_url
)
{
this
.
infoEditForm
.
picUrlList
.
push
({
this
.
infoEditForm
.
picUrlList
.
push
({
url
:
res
.
result
.
marketing_info
.
pindan_pic_url
[
i
]
url
:
newVal
.
pindan_pic_url
[
i
],
});
});
}
}
}
}
,
},
},
created
()
{
created
()
{},
this
.
marketingInfoMet
();
}
};
};
</
script
>
</
script
>
...
...
src/pages/Activity/releaseProduc/index.vue
View file @
8a2bf981
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
goodsSkuIDArr
:
[],
// 接收goods_sku_id
goodsSkuIDArr
:
[],
// 接收goods_sku_id
spellOrderSetArr
:[],
spellOrderSetArr
:[],
startDate
:
""
,
// 开始时间
startDate
:
""
,
// 开始时间
endDate
:
""
// 结束时间
endDate
:
""
,
// 结束时间
};
};
},
},
...
...
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