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 f417462a
authored
Jan 09, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
d091455b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
4 deletions
src/api/modules/store.js
src/views/store/components/certificate.vue
src/views/store/components/selectGiftDialog.vue
src/views/store/edit.vue
src/api/modules/store.js
View file @
f417462
...
...
@@ -202,7 +202,8 @@ const getCouponconfig = params => {
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getCouponconfig
,
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 @
f417462
...
...
@@ -19,7 +19,11 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"couponAnticipatedCost"
label=
"预估成本/元"
></el-table-column>
<el-table-column
prop=
"effectiveType"
label=
"有效期"
width=
"100"
></el-table-column>
<el-table-column
prop=
"effectiveType"
label=
"有效期"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<span>
{{
toLabelText
(
scope
.
row
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"residueAmount"
label=
"剩余库存"
width=
"100"
></el-table-column>
</el-table>
</div>
...
...
@@ -106,7 +110,27 @@ export default {
// components: {
// relateStoreDialog
// },
created
()
{
this
.
getCouponconfig
()
},
methods
:
{
toLabelText
(
row
)
{
switch
(
row
.
effectiveType
)
{
case
3
:
return
'永久有效'
case
2
:
return
row
.
effectiveStartTime
?
row
.
effectiveStartTime
.
split
(
' '
)[
0
]
+
'-'
+
row
.
effectiveEndTime
.
split
(
' '
)[
0
]
:
''
case
1
:
return
row
.
effectiveDays
+
'天'
}
},
getCouponconfig
()
{
this
.
$apis
.
store
.
getCouponconfig
({
topicId
:
this
.
topicId
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
tableData
=
res
.
data
.
coupons
}
})
},
handleAdd
()
{
// console.log(this.couponObj, '')
this
.
selectedGiftList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
couponObj
))
...
...
src/views/store/components/selectGiftDialog.vue
View file @
f417462
...
...
@@ -361,7 +361,10 @@ export default {
couponName
:
item
.
couponName
,
couponAmount
:
isSelected
?
list
.
find
(
k
=>
k
.
id
==
item
.
id
).
couponAmount
:
'1'
,
couponAnticipatedCost
:
item
.
couponAnticipatedCost
,
effectiveType
:
this
.
toLabelText
(
item
),
effectiveType
:
item
.
effectiveType
,
effectiveStartTime
:
item
.
effectiveStartTime
,
effectiveEndTime
:
item
.
effectiveEndTime
,
effectiveDays
:
item
.
effectiveDays
,
residueAmount
:
item
.
residueAmount
,
status
:
'2'
})
...
...
src/views/store/edit.vue
View file @
f417462
...
...
@@ -25,7 +25,7 @@
<el-switch
v-model=
"scope.scope.isOpen"
@
change=
"updateState(scope.scope)"
></el-switch>
</
template
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.contentType == 1"
@
click=
"handleConfig(scope.scope)"
>
待配置
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.contentType == 1"
@
click=
"handleConfig(scope.scope)"
>
{{scope.scope.status==0?'待配置':'编辑'}}
</el-button>
<
template
v-else
>
<el-button
type=
"text"
v-if=
"scope.scope.status == 1"
@
click=
"handleTop(scope.scope)"
>
置顶
</el-button>
<el-button
type=
"text"
@
click=
"handleAddContent(scope.scope)"
>
编辑
</el-button>
...
...
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