Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 88320304
authored
Nov 18, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加会员中心提示面板出现的接口
1 parent
d1674966
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
8 deletions
src/api/modules/service.js
src/views/memberCenter/service.vue
src/views/memberCenter/setmeal.vue
src/api/modules/service.js
View file @
8832030
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
// const defaultPath = 'scrm.api.live.'
// const defaultPath = 'scrm.api.live.'
//计算提示面板出现的次数,第一次显示,之后不显示
const
getLoginCount
=
params
=>
{
params
.
method
=
'org.ore.api.common.findLoginCount'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getServiceListApi
=
params
=>
{
const
getServiceListApi
=
params
=>
{
params
.
method
=
`scrm.api.coupon.list.merchant`
params
.
method
=
`scrm.api.coupon.list.merchant`
...
@@ -71,4 +81,4 @@ const updateService = params => {
...
@@ -71,4 +81,4 @@ const updateService = params => {
})
})
}
}
export
{
getServiceListApi
,
effectiveService
,
deleteService
,
createService
,
detailService
,
updateService
}
\ No newline at end of file
\ No newline at end of file
export
{
getServiceListApi
,
effectiveService
,
deleteService
,
createService
,
detailService
,
updateService
,
getLoginCount
}
\ No newline at end of file
\ No newline at end of file
src/views/memberCenter/service.vue
View file @
8832030
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<!-- //提示面板组件 -->
<!-- //提示面板组件 -->
<tip-panel
panelWidth=
"616px"
panelMinHeight=
"60px"
:panelContent=
"panelContent"
v-if=
"isFirstShow"
@
closePanel=
"closePanel"
></tip-panel>
<tip-panel
panelWidth=
"616px"
panelMinHeight=
"60px"
:panelContent=
"panelContent"
v-if=
"isFirstShow"
@
closePanel=
"closePanel"
></tip-panel>
<div
class=
"live-room container"
>
<div
class=
"live-room container"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"100px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width:
100%"
:model=
"searchForm"
label-width=
"100px"
label-position=
"right"
>
<el-row>
<el-row>
<el-form-item
size=
"small"
>
<el-form-item
size=
"small"
>
<el-button
:size=
"size"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreate"
>
创建服务
</el-button>
<el-button
:size=
"size"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreate"
>
创建服务
</el-button>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float:right"
>
<el-form-item
size=
"small"
style=
"float:
right"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getServiceListApi
,
effectiveService
,
deleteService
}
from
'@/api/modules/service'
import
{
getServiceListApi
,
effectiveService
,
deleteService
,
getLoginCount
}
from
'@/api/modules/service'
import
{
serviceStatusList
}
from
'@/common/constant'
import
{
serviceStatusList
}
from
'@/common/constant'
import
tipPanel
from
'@/components/tipPanel/index.vue'
import
tipPanel
from
'@/components/tipPanel/index.vue'
export
default
{
export
default
{
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isFirstShow
:
tru
e
,
isFirstShow
:
fals
e
,
panelContent
:
'会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。'
,
panelContent
:
'会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。'
,
size
:
'small'
,
size
:
'small'
,
getListApi
:
getServiceListApi
,
getListApi
:
getServiceListApi
,
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
95
width
:
95
}
}
]
]
},
},
...
@@ -125,8 +125,16 @@ export default {
...
@@ -125,8 +125,16 @@ export default {
//运行在qiankun容器中
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
}
}
this
.
getLoginCountFun
()
},
},
methods
:
{
methods
:
{
getLoginCountFun
()
{
//loginType:4是查会员服务浏览次数
getLoginCount
({
loginType
:
4
}).
then
(
res
=>
{
//获取是否第一次点击该页面
this
.
isFirstShow
=
res
})
},
closePanel
()
{
closePanel
()
{
this
.
isFirstShow
=
false
this
.
isFirstShow
=
false
},
},
...
...
src/views/memberCenter/setmeal.vue
View file @
8832030
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
import
{
getSetMealListApi
,
deleteSetMeal
,
upDownPackage
}
from
'@/api/modules/setmeal'
import
{
getSetMealListApi
,
deleteSetMeal
,
upDownPackage
}
from
'@/api/modules/setmeal'
import
{
getLoginCount
}
from
'@/api/modules/service'
import
{
stateList
}
from
'@/common/constant'
import
{
stateList
}
from
'@/common/constant'
import
tipPanel
from
'@/components/tipPanel/index.vue'
import
tipPanel
from
'@/components/tipPanel/index.vue'
export
default
{
export
default
{
...
@@ -62,7 +63,7 @@ export default {
...
@@ -62,7 +63,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isFirstShow
:
tru
e
,
isFirstShow
:
fals
e
,
panelContent
:
'会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。'
,
panelContent
:
'会员套餐:将已经创建好的会员服务打包成一个套餐售卖给客户。'
,
size
:
'small'
,
size
:
'small'
,
getListApi
:
getSetMealListApi
,
getListApi
:
getSetMealListApi
,
...
@@ -117,7 +118,17 @@ export default {
...
@@ -117,7 +118,17 @@ export default {
isDialogVisible
:
false
isDialogVisible
:
false
}
}
},
},
created
()
{
this
.
getLoginCountFun
()
},
methods
:
{
methods
:
{
getLoginCountFun
()
{
//loginType:5是查会员套餐浏览次数
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
//获取是否第一次点击该页面
this
.
isFirstShow
=
res
})
},
closePanel
()
{
closePanel
()
{
this
.
isFirstShow
=
false
this
.
isFirstShow
=
false
},
},
...
...
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