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 894951e7
authored
Jul 20, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
a637768c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
9 deletions
src/store/modules/marketing.js
src/views/activityLink/components/PhoneView.vue
src/store/modules/marketing.js
View file @
894951e
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
* @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-20 1
0:07:34
* @LastEditTime: 2023-07-20 1
5:58:33
* @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
*/
*/
import
apis
from
'@/api'
import
apis
from
'@/api'
const
subscribeData
=
{
5
:
'
保险
'
,
2
:
'定保'
,
9
:
'售后众筹'
}
const
subscribeData
=
{
5
:
'
续保
'
,
2
:
'定保'
,
9
:
'售后众筹'
}
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
...
...
src/views/activityLink/components/PhoneView.vue
View file @
894951e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-20 1
1:46:14
* @LastEditTime: 2023-07-20 1
6:42:00
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.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
-->
-->
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
<vue-draggable-resizable
<vue-draggable-resizable
:customId=
"item.customId"
:customId=
"item.customId"
:key=
"item.customId"
:key=
"item.customId"
:resizable=
"false"
v-if=
"item.type == 'text'"
v-if=
"item.type == 'text'"
:w=
"item.width"
:w=
"item.width"
:h=
"item.height"
:h=
"item.height"
...
@@ -426,11 +427,7 @@ export default {
...
@@ -426,11 +427,7 @@ export default {
this
.
detailHeight
=
0
this
.
detailHeight
=
0
const
detail
=
{
...
this
.
detail
,
...
val
[
2
]
}
const
detail
=
{
...
this
.
detail
,
...
val
[
2
]
}
detail
.
activityPrice
=
val
[
1
].
activityPrice
detail
.
activityPrice
=
val
[
1
].
activityPrice
if
(
this
.
routerInfo
.
addOrEdit
==
'edit'
)
{
this
.
showActivity
(
detail
)
}
else
{
this
.
validActivity
(
detail
)
this
.
validActivity
(
detail
)
}
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
...
@@ -453,6 +450,7 @@ export default {
...
@@ -453,6 +450,7 @@ export default {
},
},
validActivity
(
detail
)
{
validActivity
(
detail
)
{
this
.
detail
=
detail
this
.
detail
=
detail
console
.
log
(
this
.
detail
,
99
)
this
.
detailCoupon
=
this
.
$common
.
utils
.
deepClone
(
this
.
packageList
)
this
.
detailCoupon
=
this
.
$common
.
utils
.
deepClone
(
this
.
packageList
)
this
.
$nextTick
(
async
()
=>
{
this
.
$nextTick
(
async
()
=>
{
this
.
isFestival
=
false
this
.
isFestival
=
false
...
@@ -472,8 +470,26 @@ export default {
...
@@ -472,8 +470,26 @@ export default {
style
.
size
=
parseInt
(
style
.
size
*
RATIO
)
style
.
size
=
parseInt
(
style
.
size
*
RATIO
)
style
.
width
=
parseInt
(
style
.
width
*
RATIO
)
style
.
width
=
parseInt
(
style
.
width
*
RATIO
)
}
}
Object
.
assign
(
this
.
draggableList
[
0
],
{
content
:
this
.
detail
.
marketingTitle
,
...
style1
,
color
:
style1
.
style
.
color
,
font
:
style1
.
font
,
height
:
'auto'
})
Object
.
assign
(
this
.
draggableList
[
0
],
{
content
:
this
.
detail
.
marketingTitle
,
...
style1
,
width
:
this
.
detail
.
marketingTitle
.
length
*
(
style1
.
size
+
0.5
),
color
:
style1
.
style
.
color
,
font
:
style1
.
font
,
height
:
'auto'
})
Object
.
assign
(
this
.
draggableList
[
1
],
{
content
:
this
.
detail
.
marketingSubtitle
,
...
style2
,
color
:
style2
.
style
.
color
,
font
:
style2
.
font
,
height
:
'auto'
})
Object
.
assign
(
this
.
draggableList
[
1
],
{
content
:
this
.
detail
.
marketingSubtitle
,
...
style2
,
width
:
this
.
detail
.
marketingSubtitle
.
length
*
(
style2
.
size
+
0.5
),
color
:
style2
.
style
.
color
,
font
:
style2
.
font
,
height
:
'auto'
})
setTimeout
(()
=>
{
const
textDom
=
document
.
querySelectorAll
(
'.img_cl'
)
textDom
.
forEach
(
item
=>
{
let
fontSize
=
this
.
getPropSize
(
item
,
'font-size'
)
let
height
=
this
.
getPropSize
(
item
,
'height'
)
let
content
=
item
.
textContent
.
trim
()
let
len
=
parseInt
(
content
.
length
)
if
(
height
>
fontSize
+
5
)
{
fontSize
-=
len
}
if
(
content
==
this
.
detail
.
marketingTitle
)
{
Object
.
assign
(
this
.
draggableList
[
0
],
{
size
:
fontSize
,
height
:
'auto'
,
width
:
content
.
length
*
(
fontSize
+
0.5
)
})
}
if
(
content
==
this
.
detail
.
marketingSubtitle
)
{
Object
.
assign
(
this
.
draggableList
[
1
],
{
size
:
fontSize
,
height
:
'auto'
,
width
:
content
.
length
*
(
fontSize
+
0.5
)
})
}
})
},
300
)
}
}
if
(
FESTIVAL
.
includes
(
this
.
detail
.
codeId
))
{
if
(
FESTIVAL
.
includes
(
this
.
detail
.
codeId
))
{
const
style1
=
JSON
.
parse
(
this
.
detail
.
titleStyle
)
const
style1
=
JSON
.
parse
(
this
.
detail
.
titleStyle
)
...
@@ -514,6 +530,9 @@ export default {
...
@@ -514,6 +530,9 @@ export default {
if
(
this
.
detail
.
merchantLogo
)
this
.
logoInfo
=
await
this
.
getImgWH
(
this
.
detail
.
merchantLogo
)
if
(
this
.
detail
.
merchantLogo
)
this
.
logoInfo
=
await
this
.
getImgWH
(
this
.
detail
.
merchantLogo
)
})
})
},
},
getPropSize
(
dom
,
prop
)
{
return
+
window
.
getComputedStyle
(
dom
)[
prop
].
match
(
/
\d
+/
)[
0
]
},
formatPrice
(
val
)
{
formatPrice
(
val
)
{
return
(
val
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
return
(
val
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
},
},
...
...
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