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 4167f960
authored
Dec 13, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
148a0472
5136fdb3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
20 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/seckillActivity/editActivity.vue
src/views/couponManage/editCashCoupon.vue
View file @
4167f96
...
@@ -436,7 +436,6 @@ export default {
...
@@ -436,7 +436,6 @@ export default {
getInfo
()
{
getInfo
()
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
.
useChannel
=
this
.
editForm
.
useChannel
+
''
this
.
editForm
.
useChannel
=
this
.
editForm
.
useChannel
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
...
@@ -558,7 +557,6 @@ export default {
...
@@ -558,7 +557,6 @@ export default {
return
return
}
}
var
params
=
this
.
getCouponInfoParams
()
var
params
=
this
.
getCouponInfoParams
()
console
.
log
(
params
)
if
(
this
.
apear
==
'couponAdd'
&&
params
.
useChannel
==
1
&&
!
params
.
goodsIdList
.
length
)
{
if
(
this
.
apear
==
'couponAdd'
&&
params
.
useChannel
==
1
&&
!
params
.
goodsIdList
.
length
)
{
this
.
$message
({
this
.
$message
({
message
:
'未选择商品'
,
message
:
'未选择商品'
,
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
4167f96
...
@@ -205,7 +205,6 @@ export default {
...
@@ -205,7 +205,6 @@ export default {
getInfo
()
{
getInfo
()
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
...
@@ -278,7 +277,6 @@ export default {
...
@@ -278,7 +277,6 @@ export default {
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
var
params
=
this
.
getCouponInfoParams
()
var
params
=
this
.
getCouponInfoParams
()
console
.
log
(
params
)
let
method
=
''
let
method
=
''
if
(
params
.
couponId
)
{
if
(
params
.
couponId
)
{
method
=
'updateCouponApi'
//后台修改优惠券
method
=
'updateCouponApi'
//后台修改优惠券
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
4167f96
...
@@ -184,7 +184,6 @@ export default {
...
@@ -184,7 +184,6 @@ export default {
getInfo
()
{
getInfo
()
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
...
@@ -257,7 +256,6 @@ export default {
...
@@ -257,7 +256,6 @@ export default {
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
var
params
=
this
.
getCouponInfoParams
()
var
params
=
this
.
getCouponInfoParams
()
console
.
log
(
params
)
let
method
=
''
let
method
=
''
if
(
params
.
couponId
)
{
if
(
params
.
couponId
)
{
method
=
'updateCouponApi'
//后台修改优惠券
method
=
'updateCouponApi'
//后台修改优惠券
...
...
src/views/couponManage/editMemberService.vue
View file @
4167f96
...
@@ -235,7 +235,6 @@ export default {
...
@@ -235,7 +235,6 @@ export default {
getInfo
()
{
getInfo
()
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
useType
=
this
.
editForm
.
useType
+
''
this
.
editForm
.
useType
=
this
.
editForm
.
useType
+
''
...
@@ -338,7 +337,6 @@ export default {
...
@@ -338,7 +337,6 @@ export default {
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
var
params
=
this
.
getCouponInfoParams
()
var
params
=
this
.
getCouponInfoParams
()
console
.
log
(
params
)
let
method
=
''
let
method
=
''
if
(
params
.
couponId
)
{
if
(
params
.
couponId
)
{
method
=
'updateCouponApi'
//后台修改优惠券
method
=
'updateCouponApi'
//后台修改优惠券
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
4167f96
...
@@ -150,12 +150,8 @@ export default {
...
@@ -150,12 +150,8 @@ export default {
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
this
.
merchantName
=
this
.
$globalState
.
session
.
merchantName
}
}
// if (this.id) {
this
.
getSetmealServiceFun
()
//获取服务套餐,执行完了之后去获取编辑详情
// }else{
this
.
getSetmealServiceFun
()
//获取服务套餐,执行完了之后去获取编辑详情
// this.getSetmealServiceFun()
// }
},
},
watch
:
{
watch
:
{
// allItemList: {
// allItemList: {
...
@@ -243,7 +239,7 @@ export default {
...
@@ -243,7 +239,7 @@ export default {
},
},
//删除该条服务套餐(让item.serviceQuantity==0)
//删除该条服务套餐(让item.serviceQuantity==0)
closeChoseItemFun
(
item
,
index
)
{
closeChoseItemFun
(
item
,
index
)
{
this
.
totalPrice
=
this
.
totalPrice
-
item
.
vipPrice
*
item
.
serviceQuantity
this
.
totalPrice
=
(
this
.
totalPrice
*
100
-
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
// item.serviceQuantity = 0
// item.serviceQuantity = 0
// this.allItemList.forEach(ele => {
// this.allItemList.forEach(ele => {
// if (ele.id == item.serviceId) {
// if (ele.id == item.serviceId) {
...
@@ -259,7 +255,7 @@ export default {
...
@@ -259,7 +255,7 @@ export default {
this
.
allItemList
.
forEach
(
item
=>
{
this
.
allItemList
.
forEach
(
item
=>
{
if
(
item
.
serviceQuantity
)
{
if
(
item
.
serviceQuantity
)
{
this
.
selectNum
++
this
.
selectNum
++
this
.
totalPrice
+=
item
.
vipPrice
*
item
.
serviceQuantity
this
.
totalPrice
=
(
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
}
}
})
})
},
},
...
@@ -307,7 +303,6 @@ export default {
...
@@ -307,7 +303,6 @@ export default {
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
// this.$router.go(-1)
this
.
$router
.
push
(
"/memberCenter/setmeal"
)
this
.
$router
.
push
(
"/memberCenter/setmeal"
)
}
}
})
})
...
@@ -351,7 +346,9 @@ export default {
...
@@ -351,7 +346,9 @@ export default {
},
},
goBack
()
{
goBack
()
{
// this.$router.go(-1)
if
(
JSON
.
stringify
(
this
.
ruleForm
)
==
JSON
.
stringify
(
this
.
copyRuleForm
)
&&
this
.
choseItemList
.
length
==
this
.
copyChoseItemList
.
length
&&
this
.
totalPrice
==
this
.
copyTotalPrice
)
{
if
(
JSON
.
stringify
(
this
.
ruleForm
)
==
JSON
.
stringify
(
this
.
copyRuleForm
)
&&
this
.
choseItemList
.
length
==
this
.
copyChoseItemList
.
length
&&
this
.
totalPrice
==
this
.
copyTotalPrice
)
{
// this.$router.go(-1)
this
.
$router
.
push
(
"/memberCenter/setmeal"
)
this
.
$router
.
push
(
"/memberCenter/setmeal"
)
}
else
{
}
else
{
this
.
isTipDialogVisible
=
true
this
.
isTipDialogVisible
=
true
...
@@ -409,7 +406,7 @@ export default {
...
@@ -409,7 +406,7 @@ export default {
this
.
setmealDialogVisible
=
false
this
.
setmealDialogVisible
=
false
this
.
totalPrice
=
0
this
.
totalPrice
=
0
this
.
choseItemList
.
forEach
(
item
=>
{
this
.
choseItemList
.
forEach
(
item
=>
{
this
.
totalPrice
+=
item
.
vipPrice
*
item
.
serviceQuantity
this
.
totalPrice
=
(
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
})
})
// this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) {
// this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) {
...
...
src/views/seckillActivity/editActivity.vue
View file @
4167f96
...
@@ -177,7 +177,6 @@ export default {
...
@@ -177,7 +177,6 @@ export default {
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
common
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
// console.log(res)
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
editForm
[
targetItem
.
name
]
=
res
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
targetItem
.
name
)
})
})
...
@@ -316,7 +315,6 @@ export default {
...
@@ -316,7 +315,6 @@ export default {
// this.mainImgUrl = this.editForm.goodsDetailImageList[0].content
// this.mainImgUrl = this.editForm.goodsDetailImageList[0].content
// this.moveNum = this.editForm.goodsDetailImageList.length > 4 ? this.editForm.goodsDetailImageList.length - 4 : 0
// this.moveNum = this.editForm.goodsDetailImageList.length > 4 ? this.editForm.goodsDetailImageList.length - 4 : 0
this
.
selectedProInfo
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
selectedProInfo
=
this
.
$common
.
utils
.
deepClone
(
res
)
console
.
log
(
this
.
selectedProInfo
)
if
(
this
.
selectedProInfo
.
specificationDetailList
.
length
)
{
if
(
this
.
selectedProInfo
.
specificationDetailList
.
length
)
{
this
.
editFormData
[
5
].
isHide
=
false
this
.
editFormData
[
5
].
isHide
=
false
// this.specificationDetailList = this.$common.utils.deepClone(res.specificationList)
// this.specificationDetailList = this.$common.utils.deepClone(res.specificationList)
...
@@ -529,7 +527,6 @@ export default {
...
@@ -529,7 +527,6 @@ export default {
return
false
return
false
}
}
var
params
=
this
.
getCouponInfoParams
()
var
params
=
this
.
getCouponInfoParams
()
console
.
log
(
params
)
this
.
$apis
.
seckillActivity
.
addOrUpdateActivityApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
seckillActivity
.
addOrUpdateActivityApi
(
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
...
...
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