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 6c74ca6c
authored
Nov 25, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
会员中心修改
1 parent
fbf2af39
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
src/views/memberCenter/serviceAddUpdateLook.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
6c74ca6
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<el-button
type=
"primary"
@
click=
"goBack"
size=
"small"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"goBack"
size=
"small"
>
取消
</el-button>
</div>
</div>
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<glsx-dialog
title=
""
width=
"547px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<glsx-dialog
title=
""
:hasScroll=
"false"
width=
"547px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
当前有内容信息未保存,是否继续取消
当前有内容信息未保存,是否继续取消
</div>
</div>
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
6c74ca6
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
size=
"small"
>
创建
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
size=
"small"
>
创建
</el-button>
<el-button
type=
"primary"
@
click=
"goBack"
size=
"small"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"goBack"
size=
"small"
>
取消
</el-button>
</div>
</div>
<!-- :modalAppendToBody="false" -->
<glsx-dialog
title=
"套餐服务"
class=
"setmealServiceDialog"
width=
"1142px"
:noCancel=
"true"
:noClose=
"false"
btnSize=
"small"
:isVisible=
"setmealDialogVisible"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<glsx-dialog
title=
"套餐服务"
class=
"setmealServiceDialog"
width=
"1142px"
:noCancel=
"true"
:noClose=
"false"
btnSize=
"small"
:isVisible=
"setmealDialogVisible"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<div
class=
"content-body"
>
<div
class=
"content-body"
>
<div
class=
"subTitle"
>
<div
class=
"subTitle"
>
...
@@ -95,7 +96,7 @@
...
@@ -95,7 +96,7 @@
</div>
</div>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
<glsx-dialog
title=
""
class=
"tipDialog"
width=
"547px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isTipDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleTipClose"
@
confirmDialog=
"handleTipConfirm"
>
<glsx-dialog
title=
""
:hasScroll=
"false"
class=
"tipDialog"
width=
"547px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isTipDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleTipClose"
@
confirmDialog=
"handleTipConfirm"
>
<div
class=
"content-body"
>
当前有内容信息未保存,是否继续返回
</div>
<div
class=
"content-body"
>
当前有内容信息未保存,是否继续返回
</div>
</glsx-dialog>
</glsx-dialog>
</div>
</div>
...
@@ -144,10 +145,13 @@ export default {
...
@@ -144,10 +145,13 @@ export default {
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
}
}
this
.
getSetmealServiceFun
()
if
(
this
.
id
)
{
// if (this.id) {
this
.
getServiceInfo
()
//获取编辑详情
this
.
getSetmealServiceFun
()
//获取服务套餐,执行完了之后去获取编辑详情
}
// }else{
// this.getSetmealServiceFun()
// }
},
},
watch
:
{
watch
:
{
// allItemList: {
// allItemList: {
...
@@ -190,6 +194,15 @@ export default {
...
@@ -190,6 +194,15 @@ export default {
this
.
ruleForm
=
res
.
data
this
.
ruleForm
=
res
.
data
this
.
choseItemList
=
res
.
data
.
list
||
[]
this
.
choseItemList
=
res
.
data
.
list
||
[]
this
.
totalPrice
=
res
.
data
.
referencePrice
this
.
totalPrice
=
res
.
data
.
referencePrice
this
.
choseItemList
.
forEach
(
item
=>
{
for
(
let
i
=
0
;
i
<
this
.
allItemList
.
length
;
i
++
)
{
if
(
item
.
serviceId
==
this
.
allItemList
[
i
].
id
)
{
item
.
vipPrice
=
this
.
allItemList
[
i
].
vipPrice
}
}
})
this
.
copyTotalPrice
=
this
.
totalPrice
this
.
copyTotalPrice
=
this
.
totalPrice
this
.
copyRuleForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ruleForm
))
//深拷贝一份数据
this
.
copyRuleForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
ruleForm
))
//深拷贝一份数据
this
.
copyChoseItemList
=
this
.
choseItemList
this
.
copyChoseItemList
=
this
.
choseItemList
...
@@ -211,6 +224,10 @@ export default {
...
@@ -211,6 +224,10 @@ export default {
serviceQuantity
:
0
serviceQuantity
:
0
}
}
})
})
if
(
this
.
id
)
{
this
.
getServiceInfo
()
//获取编辑详情
}
})
})
},
},
//选中该条服务套餐
//选中该条服务套餐
...
@@ -384,6 +401,7 @@ export default {
...
@@ -384,6 +401,7 @@ export default {
serviceId
:
ele
.
id
serviceId
:
ele
.
id
}
}
})
})
console
.
log
(
'确定之后choseItemList'
,
this
.
choseItemList
)
this
.
setmealDialogVisible
=
false
this
.
setmealDialogVisible
=
false
},
},
handleClose
()
{
handleClose
()
{
...
...
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