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 d33a8862
authored
Dec 06, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增编辑的面包屑修改
1 parent
ebe32071
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
37 deletions
src/views/memberCenter/center.vue
src/views/memberCenter/order.vue
src/views/memberCenter/service.vue
src/views/memberCenter/setmeal.vue
src/views/memberCenter/center.vue
View file @
d33a886
...
@@ -65,12 +65,12 @@
...
@@ -65,12 +65,12 @@
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row>
<el-row>
<el-form-item
size=
"small"
label=
"会员类型"
>
<el-form-item
size=
"small"
label=
"会员类型"
>
<el-select
size=
"small"
v-model=
"searchForm.memberType"
placeholder=
"请选择"
>
<el-select
size=
"small"
v-model=
"searchForm.memberType"
placeholder=
"请选择"
>
<el-option
v-for=
"item in memberTypeLists"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
<el-option
v-for=
"item in memberTypeLists"
:key=
"item.dictValue"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"开通日期"
style=
"margin-left:-10px"
>
<el-form-item
size=
"small"
label=
"开通日期"
style=
"margin-left:
-10px"
>
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions || {}"
></el-date-picker>
<el-date-picker
:size=
"size"
v-model=
"searchForm.daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOptions || {}"
></el-date-picker>
</el-form-item>
</el-form-item>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<GLTable
ref=
"memberCenterRef"
v-if=
"isReload"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"memberCenterRef"
v-if=
"isReload"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"accountName"
slot-scope=
"scope"
>
<span
slot=
"accountName"
slot-scope=
"scope"
>
<div>
{{ scope.scope.accountName }}
</div>
<div>
{{ scope.scope.accountName }}
</div>
<div>
{{ scope.scope.mobile }}
</div>
<div>
{{ scope.scope.mobile }}
</div>
...
@@ -89,26 +89,26 @@
...
@@ -89,26 +89,26 @@
</div>
</div>
<glsx-dialog
title=
"权益详情"
width=
"712px"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<glsx-dialog
title=
"权益详情"
width=
"712px"
:noBtnOk=
"true"
:noCancel=
"true"
:noClose=
"false"
btnCancelLabel=
"关闭"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleClose"
>
<!-- <el-scrollbar> -->
<!-- <el-scrollbar> -->
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div
class=
"equity-name"
>
汽车权益
</div>
<div
class=
"equity-name"
>
汽车权益
</div>
<div
class=
"equity-panel"
>
<div
class=
"equity-panel"
>
<div
class=
"equity-item"
v-for=
"(item, index) in merchantData.carServiceList"
:key=
"index"
>
<div
class=
"equity-item"
v-for=
"(item, index) in merchantData.carServiceList"
:key=
"index"
>
<div
class=
"equity-item-icon"
><img
:src=
"item.equityIcon"
/></div>
<div
class=
"equity-item-icon"
><img
:src=
"item.equityIcon"
/></div>
<div
class=
"equity-item-name"
>
{{ item.equityName }}
</div>
<div
class=
"equity-item-name"
>
{{ item.equityName }}
</div>
<div
class=
"equity-item-desc"
>
{{ item.equityDesc }}
</div>
<div
class=
"equity-item-desc"
>
{{ item.equityDesc }}
</div>
</div>
</div>
</div>
<div
v-for=
"(item, index) in merchantData.goodsServiceList"
:key=
"index"
>
</div
>
<div
class=
"equity-name"
>
{{ item.goodsCategory }}
</div
>
<div
v-for=
"(item, index) in merchantData.goodsServiceList"
:key=
"index"
>
<div
class=
"equity-panel"
>
<div
class=
"equity-name"
>
{{ item.goodsCategory }}
</div
>
<div
class=
"equity-item"
v-for=
"(v, xindex) in item.equityGoodsGroupDescDtos"
:key=
"xindex
"
>
<div
class=
"equity-panel
"
>
<div
class=
"equity-item-icon"
><img
:src=
"v.equityIcon"
/></div
>
<div
class=
"equity-item"
v-for=
"(v, xindex) in item.equityGoodsGroupDescDtos"
:key=
"xindex"
>
<div
class=
"equity-item-name"
>
{{ v.equityName }}
</div>
<div
class=
"equity-item-icon"
><img
:src=
"v.equityIcon"
/>
</div>
<div
class=
"equity-item-desc"
>
{{ v.equityDesc
}}
</div>
<div
class=
"equity-item-name"
>
{{ v.equityName
}}
</div>
</div>
<
div
class=
"equity-item-desc"
>
{{ v.equityDesc }}
<
/div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- </el-scrollbar> -->
<!-- </el-scrollbar> -->
</glsx-dialog>
</glsx-dialog>
</div>
</div>
...
@@ -140,7 +140,7 @@ export default {
...
@@ -140,7 +140,7 @@ export default {
// }, 1000)
// }, 1000)
}
}
return
{
return
{
isReload
:
true
,
isReload
:
true
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
...
@@ -152,10 +152,10 @@ export default {
...
@@ -152,10 +152,10 @@ export default {
userInfo
:
''
,
userInfo
:
''
,
status
:
''
,
status
:
''
,
merchantName
:
''
,
merchantName
:
''
,
memberType
:
''
memberType
:
''
},
},
searchFormTable
:
{},
searchFormTable
:
{},
memberTypeLists
:[
memberTypeLists
:
[
{
{
dictValue
:
''
,
dictValue
:
''
,
dictLabel
:
'全部'
dictLabel
:
'全部'
...
@@ -240,7 +240,7 @@ export default {
...
@@ -240,7 +240,7 @@ export default {
price
:
''
,
price
:
''
,
marketPrice
:
''
,
marketPrice
:
''
,
linkUrl
:
''
,
linkUrl
:
''
,
tryAble
:
''
tryAble
:
''
},
},
copyRuleForm
:
{},
copyRuleForm
:
{},
rules
:
{
rules
:
{
...
@@ -263,7 +263,7 @@ export default {
...
@@ -263,7 +263,7 @@ export default {
created
()
{
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
}
}
this
.
getCardContentFun
()
this
.
getCardContentFun
()
},
},
...
@@ -301,13 +301,15 @@ export default {
...
@@ -301,13 +301,15 @@ export default {
},
},
getCardContentFun
()
{
getCardContentFun
()
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
getCardContent
({
merchantId
:
this
.
merchantId
}).
then
(
res
=>
{
this
.
ruleForm
.
equityId
=
res
[
0
].
id
if
(
!
(
res
&&
res
.
length
)){
return
}
this
.
ruleForm
.
equityId
=
res
[
0
].
id
this
.
ruleForm
.
cardName
=
res
[
0
].
cardClassName
this
.
ruleForm
.
cardName
=
res
[
0
].
cardClassName
this
.
ruleForm
.
price
=
res
[
0
].
price
this
.
ruleForm
.
price
=
res
[
0
].
price
this
.
ruleForm
.
marketPrice
=
res
[
0
].
marketPrice
this
.
ruleForm
.
marketPrice
=
res
[
0
].
marketPrice
this
.
ruleForm
.
linkUrl
=
res
[
0
].
url
this
.
ruleForm
.
linkUrl
=
res
[
0
].
url
this
.
ruleForm
.
tryAble
=
res
[
0
].
tryAble
this
.
ruleForm
.
tryAble
=
res
[
0
].
tryAble
})
})
},
},
openEditWrap
()
{
openEditWrap
()
{
...
@@ -330,7 +332,7 @@ export default {
...
@@ -330,7 +332,7 @@ export default {
params
.
cardClassName
=
this
.
ruleForm
.
cardName
params
.
cardClassName
=
this
.
ruleForm
.
cardName
params
.
price
=
this
.
ruleForm
.
price
params
.
price
=
this
.
ruleForm
.
price
params
.
marketPrice
=
this
.
ruleForm
.
marketPrice
params
.
marketPrice
=
this
.
ruleForm
.
marketPrice
params
.
tryAble
=
this
.
ruleForm
.
tryAble
params
.
tryAble
=
this
.
ruleForm
.
tryAble
updateCardContent
(
params
).
then
(
res
=>
{
updateCardContent
(
params
).
then
(
res
=>
{
if
(
!
res
)
{
if
(
!
res
)
{
return
return
...
...
src/views/memberCenter/order.vue
View file @
d33a886
...
@@ -241,6 +241,7 @@ export default {
...
@@ -241,6 +241,7 @@ export default {
display
:
flex
;
display
:
flex
;
height
:
34px
;
height
:
34px
;
.choseItem
{
.choseItem
{
cursor
:
pointer
;
width
:
120px
;
width
:
120px
;
height
:
34px
;
height
:
34px
;
line-height
:
34px
;
line-height
:
34px
;
...
...
src/views/memberCenter/service.vue
View file @
d33a886
...
@@ -171,7 +171,7 @@ export default {
...
@@ -171,7 +171,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
this
.
isReload
=
true
})
})
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
memberServiceRef
.
refreshTable
()
this
.
$refs
.
memberServiceRef
.
refreshTable
()
...
@@ -186,7 +186,10 @@ export default {
...
@@ -186,7 +186,10 @@ export default {
//创建服务
//创建服务
handleCreate
()
{
handleCreate
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/memberCenter/serviceAddUpdateLook'
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:{
$title
:
encodeURI
(
'创建服务'
)
}
})
})
},
},
//失效
//失效
...
@@ -227,7 +230,8 @@ export default {
...
@@ -227,7 +230,8 @@ export default {
path
:
'/memberCenter/serviceAddUpdateLook'
,
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:
{
query
:
{
couponId
:
row
.
id
,
couponId
:
row
.
id
,
title
:
'编辑'
title
:
'编辑'
,
$title
:
encodeURI
(
'编辑服务'
)
}
}
})
})
},
},
...
@@ -236,7 +240,8 @@ export default {
...
@@ -236,7 +240,8 @@ export default {
path
:
'/memberCenter/serviceAddUpdateLook'
,
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:
{
query
:
{
couponId
:
row
.
id
,
couponId
:
row
.
id
,
title
:
'查看'
title
:
'查看'
,
$title
:
encodeURI
(
'查看服务'
)
}
}
})
})
},
},
...
...
src/views/memberCenter/setmeal.vue
View file @
d33a886
...
@@ -120,7 +120,7 @@ export default {
...
@@ -120,7 +120,7 @@ export default {
this
.
getLoginCountFun
()
this
.
getLoginCountFun
()
},
},
methods
:
{
methods
:
{
getLoginCountFun
()
{
getLoginCountFun
()
{
//loginType:5是查会员套餐浏览次数
//loginType:5是查会员套餐浏览次数
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
getLoginCount
({
loginType
:
5
}).
then
(
res
=>
{
//获取是否第一次点击该页面
//获取是否第一次点击该页面
...
@@ -130,11 +130,11 @@ export default {
...
@@ -130,11 +130,11 @@ export default {
closePanel
()
{
closePanel
()
{
this
.
isFirstShow
=
false
this
.
isFirstShow
=
false
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
merchantId
:
44184606
merchantId
:
44184606
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
memberSetMealRef
.
refreshTable
()
this
.
$refs
.
memberSetMealRef
.
refreshTable
()
...
@@ -148,7 +148,9 @@ export default {
...
@@ -148,7 +148,9 @@ export default {
//创建套餐
//创建套餐
handleCreate
()
{
handleCreate
()
{
this
.
$router
.
push
(
'/memberCenter/setmealAddUpdate'
)
this
.
$router
.
push
({
path
:
'/memberCenter/setmealAddUpdate'
,
query
:{
$title
:
encodeURI
(
'创建套餐'
)
}})
},
},
handleClose
()
{
handleClose
()
{
this
.
isDialogVisible
=
!
this
.
isDialogVisible
this
.
isDialogVisible
=
!
this
.
isDialogVisible
...
@@ -192,7 +194,7 @@ export default {
...
@@ -192,7 +194,7 @@ export default {
})
})
},
},
handleEdit
(
row
)
{
handleEdit
(
row
)
{
this
.
$router
.
push
({
path
:
'/memberCenter/setmealAddUpdate'
,
query
:
{
id
:
row
.
id
}
})
this
.
$router
.
push
({
path
:
'/memberCenter/setmealAddUpdate'
,
query
:
{
id
:
row
.
id
,
$title
:
encodeURI
(
'编辑套餐'
)
}
})
},
},
// 查看示例效果
// 查看示例效果
handleLook
(
row
)
{},
handleLook
(
row
)
{},
...
...
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