Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 215181ca
authored
Aug 15, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'wuwx_dev_v2.8.0' into 'v2.8.0'
Wuwx dev v2.8.0 See merge request
!314
2 parents
cadd68cb
245eb274
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
8 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/preview.vue
src/views/customerTransform/index.vue
src/views/couponManage/editCashCoupon.vue
View file @
215181c
...
...
@@ -190,6 +190,7 @@ export default {
title
:
'创建'
,
editChildRef
:
'editChildRef'
,
loading
:
false
,
clickStatus
:
false
,
routeInfo
:
{
// 1-新增;2-编辑;3-查看
addOrEdit
:
1
,
...
...
@@ -807,6 +808,8 @@ export default {
method
=
'createCouponApi'
//后台创建优惠券
}
console
.
log
(
params
)
if
(
this
.
clickStatus
)
return
this
.
clickStatus
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
@@ -816,6 +819,9 @@ export default {
this
.
cancelJump
()
}
})
.
finally
(()
=>
{
this
.
clickStatus
=
false
})
}
})
},
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
215181c
...
...
@@ -168,6 +168,7 @@ export default {
format
:
'yyyy-MM-dd HH:mm:ss'
,
// 日期显示格式
showSubmit
:
true
,
userDisable
:
false
,
clickStatus
:
false
,
size
:
'small'
,
title
:
'创建'
,
titleObj
:
{
...
...
@@ -566,6 +567,8 @@ export default {
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
}
if
(
this
.
clickStatus
)
return
this
.
clickStatus
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
@@ -575,6 +578,9 @@ export default {
this
.
cancelJump
()
}
})
.
finally
(()
=>
{
this
.
clickStatus
=
false
})
}
})
},
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
215181c
...
...
@@ -127,6 +127,7 @@ export default {
editChildRef
:
'editChildRef'
,
loading
:
false
,
editStatus
:
false
,
clickStatus
:
false
,
// pickerOptions: {
// disabledDate(v) {//禁用当前之前的日期
// return v.getTime() < new Date().getTime() - 86400000;
...
...
@@ -457,6 +458,8 @@ export default {
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
}
if
(
this
.
clickStatus
)
return
this
.
clickStatus
=
true
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
...
...
@@ -466,6 +469,9 @@ export default {
this
.
cancelJump
()
}
})
.
finally
(()
=>
{
this
.
clickStatus
=
false
})
}
})
},
...
...
src/views/couponManage/editMemberService.vue
View file @
215181c
...
...
@@ -209,6 +209,7 @@ export default {
},
1000
)
}
return
{
clickStatus
:
false
,
isEdit
:
false
,
showSubmit
:
true
,
disabledDescription
:
false
,
...
...
@@ -402,6 +403,8 @@ export default {
},
submitForm
(
formName
)
{
if
(
this
.
clickStatus
)
return
this
.
clickStatus
=
true
this
.
$refs
[
formName
].
validate
((
valid
,
errorObj
)
=>
{
var
merchantval
=
true
var
merchantErrorObj
=
[]
...
...
@@ -510,6 +513,7 @@ export default {
})
.
finally
(()
=>
{
this
.
sloading
=
false
this
.
clickStatus
=
false
})
},
//更新服务
...
...
src/views/customerTransform/addCustomer.vue
View file @
215181c
...
...
@@ -389,7 +389,7 @@ export default {
previewForm
(
val
)
{
console
.
log
(
val
)
const
value
=
this
.
$common
.
utils
.
deepClone
(
val
)
if
(
!
value
[
0
].
attContent
)
value
.
splice
(
0
,
1
)
if
(
value
[
0
]
&&
!
value
[
0
].
attContent
)
value
.
splice
(
0
,
1
)
this
.
previewVal
=
value
},
handleCancel
()
{
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
215181c
...
...
@@ -225,7 +225,7 @@ export default {
mounted
()
{
this
.
getCustomerDetail
(
this
.
id
)
this
.
getStatistic
()
this
.
refreshData
(
)
this
.
time
=
dayjs
(
new
Date
().
getTime
()).
format
(
'YYYY-MM-DD HH:mm:ss'
)
// console.log(this.basicInfo.condition, '----')
},
computed
:
{
...
...
src/views/customerTransform/components/preview.vue
View file @
215181c
...
...
@@ -7,7 +7,7 @@
<template
v-if=
"item.attType == 1"
>
<div
class=
"preview-text text"
v-html=
"item.attContent"
></div>
</
template
>
<
template
v-else-if=
"item.attType == 7"
>
<
template
v-else-if=
"item.attType == 7
|| item.attType == 4
"
>
<div
class=
"preview-activity"
>
<div
class=
"activity-name"
>
{{
item
.
attContent
.
marketingName
}}
</div>
<img
v-if=
"item.attContent.marketingType != 5 && item.attContent.marketingType != 6 && item.attContent.marketingType != 7"
class=
"activity-logo"
src=
"@/assets/guestCustom/activity-logo.png"
alt
/>
...
...
@@ -83,7 +83,7 @@ export default {
})
item
.
attContent
=
htm
}
else
if
(
item
.
attType
!=
2
&&
item
.
attType
!=
3
)
{
console
.
log
(
item
.
attContent
,
JSON
.
parse
(
item
.
attContent
).
fileName
)
//
console.log(item.attContent, JSON.parse(item.attContent).fileName)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
}
})
...
...
@@ -115,7 +115,7 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scope
>
<
style
lang=
"scss"
scope
d
>
.img-bg
{
position
:
relative
;
width
:
290px
;
...
...
src/views/customerTransform/index.vue
View file @
215181c
...
...
@@ -329,12 +329,23 @@ export default {
if
(
pathArr
[
2
]
==
'addCustomerGroup'
||
pathArr
[
2
]
==
'detaiCustomeGroup'
)
{
vm
.
activeIndex
=
2
}
vm
.
refreshData
(
vm
.
activeIndex
)
if
(
vm
.
activeIndex
==
1
)
{
vm
.
time
=
dayjs
(
new
Date
().
getTime
()).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
})
},
mounted
()
{
// this.wxTips()
},
watch
:
{
activeIndex
(
newVal
,
oldVal
)
{
if
(
newVal
==
2
)
{
this
.
times
=
dayjs
(
new
Date
().
getTime
()).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
else
if
(
newVal
==
1
)
{
this
.
time
=
dayjs
(
new
Date
().
getTime
()).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
},
beforeDestroy
()
{
this
.
$message
.
closeAll
()
},
...
...
@@ -361,11 +372,9 @@ export default {
if
(
val
==
1
)
{
this
.
key
=
new
Date
()
if
(
this
.
$refs
.
customer
)
this
.
$refs
.
customer
.
refreshTable
()
this
.
refreshData
(
'1'
)
}
else
{
this
.
groupKey
=
new
Date
()
if
(
this
.
$refs
.
customerGroup
)
this
.
$refs
.
customerGroup
.
refreshTable
()
this
.
refreshData
(
'2'
)
}
})
},
...
...
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