Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-discover
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7dde2753
authored
Jan 09, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
b67085cd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
src/api/modules/store.js
src/views/store/components/certificate.vue
src/views/store/edit.vue
src/api/modules/store.js
View file @
7dde275
...
@@ -194,4 +194,4 @@ const getDirectionalGiftListApi = params => {
...
@@ -194,4 +194,4 @@ const getDirectionalGiftListApi = params => {
sign
:
true
sign
:
true
})
})
}
}
export
default
{
getDirectionalGiftListApi
,
deleteChannel
,
updownshelvesChannel
,
topshelvesChannel
,
goodsActivity
,
crowdfundingActivity
,
bulgeActivity
,
getTencentcloudmedialist
,
addChannelTopic
,
getTopicDetail
,
getChannelTopicList
,
getMerchantListApi
,
openSubscribe
,
selStoreConfig
,
getMerchantShare
,
configMerchant
,
getconfigMerchant
}
export
default
{
configCoupons
,
getDirectionalGiftListApi
,
deleteChannel
,
updownshelvesChannel
,
topshelvesChannel
,
goodsActivity
,
crowdfundingActivity
,
bulgeActivity
,
getTencentcloudmedialist
,
addChannelTopic
,
getTopicDetail
,
getChannelTopicList
,
getMerchantListApi
,
openSubscribe
,
selStoreConfig
,
getMerchantShare
,
configMerchant
,
getconfigMerchant
}
src/views/store/components/certificate.vue
View file @
7dde275
...
@@ -161,7 +161,23 @@ export default {
...
@@ -161,7 +161,23 @@ export default {
// isValidate && this.$refs.editFormRef.$refs[this.editChildRef].validateField('couponList')
// isValidate && this.$refs.editFormRef.$refs[this.editChildRef].validateField('couponList')
// },
// },
handleSave
()
{
handleSave
()
{
this
.
$apis
.
store
.
configCoupons
({
openSubscribeList
:
this
.
openSubscribeList
}).
then
(
res
=>
{
if
(
this
.
tableData
.
length
==
0
)
{
this
.
$message
({
message
:
'请选择商户'
,
type
:
'error'
})
return
}
let
couponIds
=
[]
this
.
tableData
.
forEach
(
item
=>
{
couponIds
.
push
(
item
.
id
)
})
let
params
=
{
topicId
:
this
.
topicId
,
couponIds
}
console
.
log
(
this
.
tableData
)
this
.
$apis
.
store
.
configCoupons
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
}
}
...
...
src/views/store/edit.vue
View file @
7dde275
...
@@ -283,8 +283,8 @@ export default {
...
@@ -283,8 +283,8 @@ export default {
}
}
},
},
//膜类待配置
//膜类待配置
handleConfig
()
{
handleConfig
(
val
)
{
this
.
$router
.
push
(
`/store/content?channelId=-1`
)
this
.
$router
.
push
(
`/store/content?channelId=-1
&topicId=
${
val
.
topicId
}
`
)
},
},
handleClick
()
{
handleClick
()
{
this
.
initParams
()
this
.
initParams
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment