Commit 7dde2753 by 王志慧

commit

1 parent b67085cd
......@@ -194,4 +194,4 @@ const getDirectionalGiftListApi = params => {
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 }
......@@ -161,7 +161,23 @@ export default {
// isValidate && this.$refs.editFormRef.$refs[this.editChildRef].validateField('couponList')
// },
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) {
this.$router.go(-1)
}
......
......@@ -283,8 +283,8 @@ export default {
}
},
//膜类待配置
handleConfig() {
this.$router.push(`/store/content?channelId=-1`)
handleConfig(val) {
this.$router.push(`/store/content?channelId=-1&topicId=${val.topicId}`)
},
handleClick() {
this.initParams()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!