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 fb90c542
authored
Nov 29, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
8ba8d6f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
src/views/memberCenter/center.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/memberCenter/center.vue
View file @
fb90c54
...
@@ -237,7 +237,7 @@ export default {
...
@@ -237,7 +237,7 @@ export default {
//权益 - 弹窗
//权益 - 弹窗
isDialogVisible
:
false
,
isDialogVisible
:
false
,
merchantData
:
{},
merchantData
:
{},
merchantId
:
44184606
//记得改
merchantId
:
0
//记得改 44184606
}
}
},
},
created
()
{
created
()
{
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
fb90c54
...
@@ -203,7 +203,7 @@ export default {
...
@@ -203,7 +203,7 @@ export default {
}
}
}
}
})
})
console
.
log
(
'编辑内容'
,
this
.
choseItemList
,
this
.
totalPrice
)
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
...
@@ -225,7 +225,7 @@ export default {
...
@@ -225,7 +225,7 @@ export default {
serviceQuantity
:
0
serviceQuantity
:
0
}
}
})
})
console
.
log
(
this
.
allItemList
,
'服务套餐'
)
if
(
this
.
id
)
{
if
(
this
.
id
)
{
this
.
getServiceInfo
()
//获取编辑详情
this
.
getServiceInfo
()
//获取编辑详情
}
}
...
@@ -242,12 +242,12 @@ export default {
...
@@ -242,12 +242,12 @@ export default {
closeChoseItemFun
(
item
,
index
)
{
closeChoseItemFun
(
item
,
index
)
{
this
.
totalPrice
=
this
.
totalPrice
-
item
.
vipPrice
*
item
.
serviceQuantity
this
.
totalPrice
=
this
.
totalPrice
-
item
.
vipPrice
*
item
.
serviceQuantity
// item.serviceQuantity = 0
// item.serviceQuantity = 0
this
.
allItemList
.
forEach
(
ele
=>
{
//
this.allItemList.forEach(ele => {
if
(
ele
.
id
==
item
.
serviceId
)
{
//
if (ele.id == item.serviceId) {
ele
.
serviceQuantity
=
0
//
ele.serviceQuantity = 0
}
//
}
})
//
})
this
.
selectNumFun
()
//
this.selectNumFun()
this
.
choseItemList
.
splice
(
index
,
1
)
this
.
choseItemList
.
splice
(
index
,
1
)
},
},
selectNumFun
()
{
selectNumFun
()
{
...
@@ -402,6 +402,7 @@ export default {
...
@@ -402,6 +402,7 @@ export default {
serviceId
:
ele
.
id
serviceId
:
ele
.
id
}
}
})
})
console
.
log
(
'确定之后choseItemList'
,
this
.
choseItemList
)
this
.
setmealDialogVisible
=
false
this
.
setmealDialogVisible
=
false
},
},
handleClose
()
{
handleClose
()
{
...
@@ -415,7 +416,7 @@ export default {
...
@@ -415,7 +416,7 @@ export default {
// //第二个参数这里是对象,不是number(n)
// //第二个参数这里是对象,不是number(n)
// return preValue + choseItem.vipPrice * choseItem.serviceQuantity
// return preValue + choseItem.vipPrice * choseItem.serviceQuantity
// }, 0)
// }, 0)
this
.
getSetmealServiceFun
()
//
this.getSetmealServiceFun()
},
},
handleTipClose
()
{
handleTipClose
()
{
this
.
isTipDialogVisible
=
false
this
.
isTipDialogVisible
=
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