Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 669a0184
authored
Jul 16, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
c945cf21
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
49 additions
and
48 deletions
src/mixins/gift.js
src/mixins/marketing.js
src/store/modules/marketing.js
src/views/activityLink/components/Marketing.vue
src/views/activityLink/components/MarketingContent.vue
src/views/activityLink/components/MarketingGift.vue
src/views/activityLink/components/MarketingTask.vue
src/views/activityLink/components/Process.vue
src/views/activityLink/components/Scene.vue
src/views/activityLink/components/model/model_1/goods/index.vue
src/views/activityLink/components/model/model_2/goods/index.vue
src/views/activityLink/components/model/model_3/goods/index.vue
src/views/activityLink/components/model/model_4/goods/index.vue
src/mixins/gift.js
View file @
669a018
...
@@ -13,8 +13,8 @@ export default {
...
@@ -13,8 +13,8 @@ export default {
],
],
serviceTabList
:
[
serviceTabList
:
[
{
label
:
'门店服务'
,
type
:
7
},
{
label
:
'门店服务'
,
type
:
7
},
{
label
:
'代金券'
,
type
:
2
},
{
label
:
'代金券'
,
type
:
3
},
{
label
:
'折扣券'
,
type
:
3
},
{
label
:
'折扣券'
,
type
:
2
},
{
label
:
'兑换券'
,
type
:
4
}
{
label
:
'兑换券'
,
type
:
4
}
],
],
carTableParams
:
{
carTableParams
:
{
...
...
src/mixins/marketing.js
View file @
669a018
...
@@ -2,19 +2,14 @@
...
@@ -2,19 +2,14 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-07-10 10:53:53
* @Date: 2023-07-10 10:53:53
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
0 11:10:17
* @LastEditTime: 2023-07-1
6 10:12:40
* @FilePath: \scrm-micro-link\src\mixins\marketing.js
* @FilePath: \scrm-micro-link\src\mixins\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
process
:
{
0
:
false
,
1
:
false
,
2
:
false
}
routerInfo
:
this
.
$route
.
query
}
},
methods
:
{
setProcess
(
data
)
{
this
.
process
=
{
...
this
.
process
,
...
data
}
}
}
}
}
}
}
src/store/modules/marketing.js
View file @
669a018
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33
* @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
4 20:59:39
* @LastEditTime: 2023-07-1
6 10:17:32
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -18,8 +18,7 @@ export default {
...
@@ -18,8 +18,7 @@ export default {
GPTList
:
null
,
GPTList
:
null
,
packageList
:
{},
packageList
:
{},
process
:
{
0
:
false
,
1
:
false
,
2
:
false
},
process
:
{
0
:
false
,
1
:
false
,
2
:
false
},
activityInfo
:
null
,
activityInfo
:
{},
addOrEdit
:
null
,
merchantInfo
:
{},
merchantInfo
:
{},
step
:
1
step
:
1
},
},
...
@@ -33,9 +32,6 @@ export default {
...
@@ -33,9 +32,6 @@ export default {
state
.
activityInfo
=
Object
.
assign
({})
state
.
activityInfo
=
Object
.
assign
({})
}
}
},
},
SET_STATUS
(
state
,
data
)
{
state
.
addOrEdit
=
data
},
SET_STEP
(
state
,
data
)
{
SET_STEP
(
state
,
data
)
{
state
.
step
=
data
state
.
step
=
data
},
},
...
...
src/views/activityLink/components/Marketing.vue
View file @
669a018
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
<div
class=
"choseRow-item"
>
<div
class=
"choseRow-item"
>
<div
class=
"choseItem"
:class=
"
{ active: step == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">
{{
item
.
label
}}
</div>
<div
class=
"choseItem"
:class=
"
{ active: step == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">
{{
item
.
label
}}
</div>
</div>
</div>
<div
@
click=
"showCase"
class=
"show-case-btn"
v-if=
"addOrEdit == 'add'"
>
历史营销方案
</div>
<div
@
click=
"showCase"
class=
"show-case-btn"
v-if=
"
routerInfo.
addOrEdit == 'add'"
>
历史营销方案
</div>
</div>
</div>
<div
class=
"acitity-content"
>
<div
class=
"acitity-content"
>
<marketing-task
v-show=
"step == 1"
v-if=
"addOrEdit == 'add'"
></marketing-task>
<marketing-task
v-show=
"step == 1"
v-if=
"
routerInfo.
addOrEdit == 'add'"
></marketing-task>
<marketing-gift
v-show=
"step == 2"
></marketing-gift>
<marketing-gift
v-show=
"step == 2"
></marketing-gift>
<marketing-content
v-show=
"step == 3"
></marketing-content>
<marketing-content
v-show=
"step == 3"
></marketing-content>
</div>
</div>
...
@@ -38,8 +38,10 @@ import marketingTask from './MarketingTask'
...
@@ -38,8 +38,10 @@ import marketingTask from './MarketingTask'
import
marketingGift
from
'./MarketingGift'
import
marketingGift
from
'./MarketingGift'
import
marketingContent
from
'./MarketingContent'
import
marketingContent
from
'./MarketingContent'
import
{
mapActions
,
mapState
,
mapMutations
}
from
'vuex'
import
{
mapActions
,
mapState
,
mapMutations
}
from
'vuex'
import
marketing
from
'@/mixins/marketing'
import
PhoneView
from
'./PhoneView.vue'
import
PhoneView
from
'./PhoneView.vue'
export
default
{
export
default
{
mixins
:
[
marketing
],
components
:
{
components
:
{
marketingTask
,
marketingTask
,
marketingGift
,
marketingGift
,
...
@@ -48,7 +50,6 @@ export default {
...
@@ -48,7 +50,6 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
addOrEdit
:
this
.
$route
.
query
.
addOrEdit
,
dialogVisible
:
false
,
dialogVisible
:
false
,
activityInfo
:
{},
activityInfo
:
{},
routeInfo
:
{},
routeInfo
:
{},
...
@@ -126,7 +127,7 @@ export default {
...
@@ -126,7 +127,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
if
(
this
.
addOrEdit
==
'edit'
)
{
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
this
.
SET_STEP
(
2
)
this
.
SET_STEP
(
2
)
this
.
setProcess
({
0
:
true
})
this
.
setProcess
({
0
:
true
})
}
}
...
@@ -178,7 +179,7 @@ export default {
...
@@ -178,7 +179,7 @@ export default {
})
})
},
},
tabClick
(
index
)
{
tabClick
(
index
)
{
if
(
index
==
1
&&
(
this
.
addOrEdit
==
'edit'
||
this
.
subscribe
==
9
))
{
if
(
index
==
1
&&
(
this
.
routerInfo
.
addOrEdit
==
'edit'
||
this
.
subscribe
==
9
))
{
return
return
}
}
this
.
SET_STEP
(
index
)
this
.
SET_STEP
(
index
)
...
...
src/views/activityLink/components/MarketingContent.vue
View file @
669a018
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-1
4 21:14:33
* @LastEditTime: 2023-07-1
6 10:22:37
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -40,7 +40,9 @@ import selectInsure from './SelectInsure.vue'
...
@@ -40,7 +40,9 @@ import selectInsure from './SelectInsure.vue'
import
getUploadImgColor
from
'@/utils/color'
import
getUploadImgColor
from
'@/utils/color'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
RENEWAL
,
FESTIVAL
}
from
'@/common/constant'
import
{
RENEWAL
,
FESTIVAL
}
from
'@/common/constant'
import
marketing
from
'@/mixins/marketing'
export
default
{
export
default
{
mixins
:
[
marketing
],
components
:
{
components
:
{
selectInsure
selectInsure
},
},
...
@@ -213,12 +215,12 @@ export default {
...
@@ -213,12 +215,12 @@ export default {
deep
:
true
deep
:
true
},
},
subscribe
(
val
)
{
subscribe
(
val
)
{
if
(
val
==
5
&&
this
.
$route
.
query
.
addOrEdit
==
'add'
)
{
if
(
val
==
5
&&
this
.
routerInfo
.
addOrEdit
==
'add'
)
{
this
.
editFormData
[
0
].
isHide
=
false
this
.
editFormData
[
0
].
isHide
=
false
}
else
{
}
else
{
this
.
editFormData
[
0
].
isHide
=
true
this
.
editFormData
[
0
].
isHide
=
true
}
}
if
(
val
==
6
&&
this
.
$route
.
query
.
addOrEdit
==
'add'
)
{
if
(
val
==
6
&&
this
.
routerInfo
.
addOrEdit
==
'add'
)
{
this
.
editRule
.
detailImage
[
0
].
required
=
true
this
.
editRule
.
detailImage
[
0
].
required
=
true
}
else
{
}
else
{
this
.
editRule
.
detailImage
[
0
].
required
=
false
this
.
editRule
.
detailImage
[
0
].
required
=
false
...
@@ -226,7 +228,7 @@ export default {
...
@@ -226,7 +228,7 @@ export default {
},
},
merchantInfo
:
{
merchantInfo
:
{
handler
(
val
)
{
handler
(
val
)
{
if
(
this
.
$route
.
query
.
addOrEdit
==
'edit'
)
return
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
return
if
(
!
this
.
editForm
.
merchantname
)
{
if
(
!
this
.
editForm
.
merchantname
)
{
this
.
editForm
.
merchantname
=
val
.
merchantName
this
.
editForm
.
merchantname
=
val
.
merchantName
}
}
...
@@ -268,6 +270,7 @@ export default {
...
@@ -268,6 +270,7 @@ export default {
methods
:
{
methods
:
{
...
mapActions
(
'marketing'
,
[
'setProcess'
,
'getTemplateInfo'
]),
...
mapActions
(
'marketing'
,
[
'setProcess'
,
'getTemplateInfo'
]),
getInfo
(
info
)
{
getInfo
(
info
)
{
console
.
log
(
info
,
this
.
subscribe
,
999999999
)
if
(
Object
.
keys
(
info
||
{}).
length
==
0
)
{
if
(
Object
.
keys
(
info
||
{}).
length
==
0
)
{
this
.
editForm
=
{
this
.
editForm
=
{
marketingTitle
:
''
,
marketingTitle
:
''
,
...
@@ -279,13 +282,14 @@ export default {
...
@@ -279,13 +282,14 @@ export default {
merchantname
:
this
.
merchantInfo
.
merchantName
,
merchantname
:
this
.
merchantInfo
.
merchantName
,
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
merchantAddress
:
this
.
merchantInfo
.
merchantAddress
}
}
if
([
2
,
5
].
includes
(
+
this
.
subscribe
)
&&
this
.
$route
.
query
.
addOrEdit
==
'add'
)
{
const
subscribe
=
+
(
this
.
subscribe
||
this
.
routerInfo
.
subscribe
)
if
([
2
,
5
].
includes
(
subscribe
)
&&
this
.
routerInfo
.
addOrEdit
==
'add'
)
{
const
obj
=
{
const
obj
=
{
2
:
2
,
2
:
2
,
5
:
3
5
:
3
}
}
this
.
editForm
.
backgroundImage
=
this
.
editForm
.
backgroundImage
?
this
.
editForm
.
backgroundImage
:
`
${
this
.
staticImgUrl
}
model-main-
${
obj
[
this
.
subscribe
]}
.png`
this
.
editForm
.
backgroundImage
=
this
.
editForm
.
backgroundImage
?
this
.
editForm
.
backgroundImage
:
`
${
this
.
staticImgUrl
}
model-main-
${
obj
[
subscribe
]}
.png`
const
html
=
`<p><img src="
${
this
.
staticImgUrl
}
model-detail-
${
obj
[
this
.
subscribe
]}
.png" style="max-width:100%;" contenteditable="false"/></p>`
const
html
=
`<p><img src="
${
this
.
staticImgUrl
}
model-detail-
${
obj
[
subscribe
]}
.png" style="max-width:100%;" contenteditable="false"/></p>`
this
.
editForm
.
activityDetail
=
html
this
.
editForm
.
activityDetail
=
html
console
.
log
(
this
.
editForm
,
777
)
console
.
log
(
this
.
editForm
,
777
)
}
}
...
...
src/views/activityLink/components/MarketingGift.vue
View file @
669a018
...
@@ -518,8 +518,7 @@ export default {
...
@@ -518,8 +518,7 @@ export default {
this
.
selectedGoodsList
=
activityCoupon
.
filter
(
i
=>
i
.
discountType
==
8
)
this
.
selectedGoodsList
=
activityCoupon
.
filter
(
i
=>
i
.
discountType
==
8
)
this
.
selectedServiceList
=
activityCoupon
.
filter
(
i
=>
i
.
discountType
!=
8
)
this
.
selectedServiceList
=
activityCoupon
.
filter
(
i
=>
i
.
discountType
!=
8
)
}
}
console
.
log
(
this
.
selectedCarList
)
this
.
getList
()
// this.getList()
})
})
})
})
},
},
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
669a018
...
@@ -225,6 +225,7 @@ export default {
...
@@ -225,6 +225,7 @@ export default {
})
})
},
},
handleChange
(
item
)
{
handleChange
(
item
)
{
this
.
$refs
[
'form'
+
item
.
batchNo
][
0
].
clearSelection
()
if
(
item
.
assignType
==
1
)
{
if
(
item
.
assignType
==
1
)
{
const
staffPhone
=
item
.
lastFollowStaffList
.
map
(
item
=>
item
.
staffPhone
)
const
staffPhone
=
item
.
lastFollowStaffList
.
map
(
item
=>
item
.
staffPhone
)
item
.
tableData
.
forEach
(
i
=>
{
item
.
tableData
.
forEach
(
i
=>
{
...
...
src/views/activityLink/components/Process.vue
View file @
669a018
...
@@ -57,6 +57,7 @@ export default {
...
@@ -57,6 +57,7 @@ export default {
init
()
{
init
()
{
this
.
SET_INIT
(
true
)
this
.
SET_INIT
(
true
)
},
},
//执行营销方案
async
handleSave
()
{
async
handleSave
()
{
let
params
=
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
let
params
=
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
for
(
let
k
in
this
.
process
)
{
for
(
let
k
in
this
.
process
)
{
...
@@ -74,10 +75,10 @@ export default {
...
@@ -74,10 +75,10 @@ export default {
}
=
this
.
$refs
.
viewForm
}
=
this
.
$refs
.
viewForm
let
url
=
backgroundImage
let
url
=
backgroundImage
if
(
RENEWAL
.
includes
(
params
.
codeId
))
{
if
(
RENEWAL
.
includes
(
params
.
codeId
))
{
url
=
await
this
.
createMain
(
backgroundHeight
,
backgroundImage
,
draggableList
)
url
=
await
this
.
createMain
(
backgroundHeight
,
backgroundImage
,
draggableList
)
//合并主图、文字
}
}
if
(
FESTIVAL
.
includes
(
params
.
codeId
))
{
if
(
FESTIVAL
.
includes
(
params
.
codeId
))
{
url
=
await
this
.
createBig
(
this
.
$refs
.
viewForm
.
detail
,
this
.
logoInfo
,
JSON
.
parse
(
titleStyle
),
JSON
.
parse
(
subTitleStyle
))
url
=
await
this
.
createBig
(
this
.
$refs
.
viewForm
.
detail
,
this
.
logoInfo
,
JSON
.
parse
(
titleStyle
),
JSON
.
parse
(
subTitleStyle
))
//合并主图、背景图、logo、文字
}
}
let
origin
=
'createSuperMarketing'
let
origin
=
'createSuperMarketing'
if
(
params
.
id
)
{
if
(
params
.
id
)
{
...
@@ -86,6 +87,7 @@ export default {
...
@@ -86,6 +87,7 @@ export default {
params
=
{
...
params
,
...
this
.
addProperties
(
params
)
}
params
=
{
...
params
,
...
this
.
addProperties
(
params
)
}
params
=
this
.
deleteKeys
(
params
,
[
'activityActionReport'
,
'couponList'
,
'superMarketingCouponRelRequestList'
])
params
=
this
.
deleteKeys
(
params
,
[
'activityActionReport'
,
'couponList'
,
'superMarketingCouponRelRequestList'
])
}
}
if
(
params
.
codeId
)
delete
params
.
activityDetail
params
.
subscribe
=
this
.
subscribe
params
.
subscribe
=
this
.
subscribe
params
.
bigImage
=
url
params
.
bigImage
=
url
this
.
$apis
.
marketing
[
origin
](
params
)
this
.
$apis
.
marketing
[
origin
](
params
)
...
@@ -101,14 +103,16 @@ export default {
...
@@ -101,14 +103,16 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
//删除对象中的属性
deleteKeys
(
obj
,
keys
)
{
deleteKeys
(
obj
,
keys
)
{
const
filteredEntries
=
Object
.
entries
(
obj
).
filter
(([
key
])
=>
!
keys
.
includes
(
key
))
const
filteredEntries
=
Object
.
entries
(
obj
).
filter
(([
key
])
=>
!
keys
.
includes
(
key
))
return
Object
.
fromEntries
(
filteredEntries
)
return
Object
.
fromEntries
(
filteredEntries
)
},
},
//添加的属性
addProperties
(
obj
)
{
addProperties
(
obj
)
{
return
{
return
{
...
obj
,
...
obj
,
marketingType
:
5
,
marketingType
:
5
,
// 膨胀金
couponCreateRequests
:
obj
.
superMarketingCouponRelRequestList
couponCreateRequests
:
obj
.
superMarketingCouponRelRequestList
}
}
}
}
...
...
src/views/activityLink/components/Scene.vue
View file @
669a018
<
template
>
<
template
>
<div
class=
"scene-container"
>
<div
class=
"scene-container"
>
<el-button
:size=
"size"
type=
"success"
plain
@
click=
"handleAdd"
class=
"el-icon-plus"
v-if=
"addOrEdit == 'add'"
>
新建营销方案
</el-button>
<el-button
:size=
"size"
type=
"success"
plain
@
click=
"handleAdd"
class=
"el-icon-plus"
v-if=
"
routerInfo.
addOrEdit == 'add'"
>
新建营销方案
</el-button>
<div
class=
"choseRow"
>
<div
class=
"choseRow"
>
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == item.type }" v-for="(item, index) in tabList" :key="index" @click="tabClick(item.type)">
{{
item
.
label
}}
</div>
<div
class=
"choseItem"
:class=
"
{ active: currentIndex == item.type }" v-for="(item, index) in tabList" :key="index" @click="tabClick(item.type)">
{{
item
.
label
}}
</div>
</div>
</div>
...
@@ -50,10 +50,11 @@
...
@@ -50,10 +50,11 @@
<
script
>
<
script
>
import
{
mapActions
,
mapMutations
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapMutations
,
mapState
}
from
'vuex'
import
marketing
from
'@/mixins/marketing'
export
default
{
export
default
{
mixins
:
[
marketing
],
data
()
{
data
()
{
return
{
return
{
addOrEdit
:
this
.
$route
.
query
.
addOrEdit
,
qrCode
:
''
,
qrCode
:
''
,
tabList
:
[
tabList
:
[
{
label
:
'保险'
,
type
:
5
},
{
label
:
'保险'
,
type
:
5
},
...
@@ -95,14 +96,13 @@ export default {
...
@@ -95,14 +96,13 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
const
routeInfo
=
this
.
$route
.
query
this
.
calendarPage
()
this
.
calendarPage
()
this
.
EntWechatQrCode
()
this
.
EntWechatQrCode
()
if
(
route
Info
.
addOrEdit
==
'edit'
)
{
if
(
this
.
router
Info
.
addOrEdit
==
'edit'
)
{
this
.
getActivityInfo
(
route
Info
.
id
)
this
.
getActivityInfo
(
this
.
router
Info
.
id
)
this
.
sceneList
[
1
].
content
=
'编辑无法再次导入客群'
this
.
sceneList
[
1
].
content
=
'编辑无法再次导入客群'
}
else
{
}
else
{
this
.
setSubscribe
(
route
Info
.
subscribe
)
this
.
setSubscribe
(
this
.
router
Info
.
subscribe
)
this
.
tabList
.
splice
(
3
,
1
)
this
.
tabList
.
splice
(
3
,
1
)
}
}
},
},
...
@@ -131,15 +131,15 @@ export default {
...
@@ -131,15 +131,15 @@ export default {
this
.
setSubscribe
({
subscribe
:
6
,
keywords
:
this
.
selectItem
.
keywords
})
this
.
setSubscribe
({
subscribe
:
6
,
keywords
:
this
.
selectItem
.
keywords
})
},
},
handleStep
(
index
)
{
handleStep
(
index
)
{
if
(
this
.
addOrEdit
==
'edit'
&&
index
==
1
)
return
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
&&
index
==
1
)
return
if
([
1
,
2
,
3
].
includes
(
index
))
this
.
SET_STEP
(
index
)
if
([
1
,
2
,
3
].
includes
(
index
))
this
.
SET_STEP
(
index
)
},
},
handleAdd
()
{
handleAdd
()
{
this
.
SET_INIT
(
true
)
this
.
SET_INIT
(
true
)
},
},
tabClick
(
index
)
{
tabClick
(
index
)
{
console
.
log
(
this
.
addOrEdit
,
'
addOrEdit'
)
console
.
log
(
this
.
routerInfo
.
addOrEdit
,
'routerInfo.
addOrEdit'
)
if
(
this
.
addOrEdit
==
'edit'
)
return
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
return
this
.
currentIndex
=
index
this
.
currentIndex
=
index
if
(
index
!=
6
)
{
if
(
index
!=
6
)
{
this
.
setSubscribe
(
index
)
this
.
setSubscribe
(
index
)
...
...
src/views/activityLink/components/model/model_1/goods/index.vue
View file @
669a018
...
@@ -47,7 +47,7 @@ export default {
...
@@ -47,7 +47,7 @@ export default {
const
serviceList
=
n
.
selectedGoodsList
||
[]
const
serviceList
=
n
.
selectedGoodsList
||
[]
serviceList
.
length
>
0
&&
serviceList
.
length
>
0
&&
serviceList
.
forEach
(
item
=>
{
serviceList
.
forEach
(
item
=>
{
const
price
=
item
.
couponAnticipatedCost
||
item
.
denomination
const
price
=
item
.
couponAnticipatedCost
||
item
.
denomination
||
item
.
anticipatedCost
item
.
price
=
(
price
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
item
.
price
=
(
price
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
})
})
this
.
serviceList
=
serviceList
this
.
serviceList
=
serviceList
...
...
src/views/activityLink/components/model/model_2/goods/index.vue
View file @
669a018
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
const
serviceList
=
n
.
selectedGoodsList
||
[]
const
serviceList
=
n
.
selectedGoodsList
||
[]
serviceList
.
length
>
0
&&
serviceList
.
length
>
0
&&
serviceList
.
forEach
(
item
=>
{
serviceList
.
forEach
(
item
=>
{
const
price
=
item
.
couponAnticipatedCost
||
item
.
denomination
const
price
=
item
.
couponAnticipatedCost
||
item
.
denomination
||
item
.
anticipatedCost
item
.
price
=
(
price
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
item
.
price
=
(
price
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
})
})
this
.
serviceList
=
serviceList
this
.
serviceList
=
serviceList
...
...
src/views/activityLink/components/model/model_3/goods/index.vue
View file @
669a018
...
@@ -49,8 +49,9 @@ export default {
...
@@ -49,8 +49,9 @@ export default {
const
serviceList
=
n
.
selectedGoodsList
||
[]
const
serviceList
=
n
.
selectedGoodsList
||
[]
serviceList
.
length
>
0
&&
serviceList
.
length
>
0
&&
serviceList
.
forEach
(
item
=>
{
serviceList
.
forEach
(
item
=>
{
const
price
=
item
.
couponAnticipatedCost
||
item
.
denomination
const
price
=
item
.
couponAnticipatedCost
||
item
.
denomination
||
item
.
anticipatedCost
item
.
price
=
(
price
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
item
.
price
=
(
price
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
console
.
log
(
item
.
price
,
price
,
item
)
})
})
this
.
serviceList
=
serviceList
this
.
serviceList
=
serviceList
},
},
...
@@ -62,7 +63,7 @@ export default {
...
@@ -62,7 +63,7 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.wrap
{
.wrap
{
margin-bottom
:
70
px
;
margin-bottom
:
35
px
;
.container-panel
{
.container-panel
{
padding
:
4px
;
padding
:
4px
;
...
@@ -132,10 +133,10 @@ export default {
...
@@ -132,10 +133,10 @@ export default {
}
}
.service-desc
{
.service-desc
{
flex
:
1
;
.service-title
{
.service-title
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#111111
;
color
:
#111111
;
white-space
:
nowrap
;
}
}
.service-content
{
.service-content
{
...
@@ -147,7 +148,7 @@ export default {
...
@@ -147,7 +148,7 @@ export default {
.service-price
{
.service-price
{
margin-left
:
auto
;
margin-left
:
auto
;
width
:
8
0px
;
width
:
5
0px
;
text-align
:
center
;
text-align
:
center
;
font-size
:
15px
;
font-size
:
15px
;
color
:
#ff5c67
;
color
:
#ff5c67
;
...
...
src/views/activityLink/components/model/model_4/goods/index.vue
View file @
669a018
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
const
serviceList
=
n
.
selectedGoodsList
||
[]
const
serviceList
=
n
.
selectedGoodsList
||
[]
serviceList
.
length
>
0
&&
serviceList
.
length
>
0
&&
serviceList
.
forEach
(
item
=>
{
serviceList
.
forEach
(
item
=>
{
const
price
=
item
.
couponAnticipatedCost
||
item
.
denomination
const
price
=
item
.
couponAnticipatedCost
||
item
.
denomination
||
item
.
anticipatedCost
item
.
price
=
(
price
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
item
.
price
=
(
price
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
})
})
this
.
serviceList
=
serviceList
this
.
serviceList
=
serviceList
...
...
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