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 c1990310
authored
Jul 20, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
894951e7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
17 deletions
src/mixins/draw.js
src/views/activityLink/components/PhoneView.vue
src/views/activityLink/components/Process.vue
src/mixins/draw.js
View file @
c199031
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-19 13:46:20
* @Date: 2023-05-19 13:46:20
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-20 1
0:46:23
* @LastEditTime: 2023-07-20 1
6:55:50
* @FilePath: \scrm-micro-home\src\mixins\gpt.js
* @FilePath: \scrm-micro-home\src\mixins\gpt.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
*/
*/
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
const
style2
=
draggableList
[
1
]
const
style2
=
draggableList
[
1
]
const
drawfun
=
new
Drawing
(
document
.
getElementById
(
'canvasId'
),
{
const
drawfun
=
new
Drawing
(
document
.
getElementById
(
'canvasId'
),
{
width
:
WIDTH
,
width
:
WIDTH
,
height
:
info
.
backgroundHeight
+
info
.
detailHeight
height
:
info
.
backgroundHeight
})
})
const
imageList
=
[
const
imageList
=
[
{
{
...
@@ -120,15 +120,6 @@ export default {
...
@@ -120,15 +120,6 @@ export default {
height
:
info
.
backgroundHeight
height
:
info
.
backgroundHeight
}
}
]
]
if
(
info
.
detailImage
)
{
imageList
.
push
({
url
:
info
.
detailImage
,
x
:
0
,
y
:
info
.
backgroundHeight
,
width
:
WIDTH
,
height
:
info
.
detailHeight
})
}
if
(
info
.
merchantLogo
)
{
if
(
info
.
merchantLogo
)
{
imageList
.
push
({
...
info
.
logoInfo
,
url
:
info
.
merchantLogo
})
imageList
.
push
({
...
info
.
logoInfo
,
url
:
info
.
merchantLogo
})
}
}
...
...
src/views/activityLink/components/PhoneView.vue
View file @
c199031
...
@@ -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 16:
42:00
* @LastEditTime: 2023-07-20 16:
56:29
* @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
-->
-->
...
@@ -315,7 +315,6 @@ export default {
...
@@ -315,7 +315,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
backgroundHeight
:
0
,
backgroundHeight
:
0
,
detailHeight
:
0
,
logoHeight
:
0
,
logoHeight
:
0
,
currentIndex
:
0
,
currentIndex
:
0
,
isFestival
:
false
,
isFestival
:
false
,
...
@@ -424,7 +423,6 @@ export default {
...
@@ -424,7 +423,6 @@ export default {
},
},
process
:
{
process
:
{
handler
(
val
)
{
handler
(
val
)
{
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
this
.
validActivity
(
detail
)
this
.
validActivity
(
detail
)
...
@@ -460,7 +458,6 @@ export default {
...
@@ -460,7 +458,6 @@ export default {
this
.
modelNum
=
this
.
detail
.
codeId
this
.
modelNum
=
this
.
detail
.
codeId
this
.
isRenewal
=
true
this
.
isRenewal
=
true
this
.
backgroundHeight
=
await
this
.
getImgH
(
this
.
detail
.
backgroundImage
||
this
.
detail
.
mainImage
)
this
.
backgroundHeight
=
await
this
.
getImgH
(
this
.
detail
.
backgroundImage
||
this
.
detail
.
mainImage
)
if
(
this
.
detail
.
detailImage
)
this
.
detailHeight
=
await
this
.
getImgH
(
this
.
detail
.
detailImage
)
const
style1
=
JSON
.
parse
(
this
.
detail
.
titleStyle
)
const
style1
=
JSON
.
parse
(
this
.
detail
.
titleStyle
)
const
style2
=
JSON
.
parse
(
this
.
detail
.
subTitleStyle
)
const
style2
=
JSON
.
parse
(
this
.
detail
.
subTitleStyle
)
const
styles
=
[
style1
,
style2
]
const
styles
=
[
style1
,
style2
]
...
...
src/views/activityLink/components/Process.vue
View file @
c199031
...
@@ -135,14 +135,13 @@ export default {
...
@@ -135,14 +135,13 @@ export default {
this
.
loading
=
true
this
.
loading
=
true
const
{
const
{
backgroundHeight
,
backgroundHeight
,
detailHeight
,
logoInfo
,
logoInfo
,
detail
:
{
backgroundImage
,
detailImage
,
merchantLogo
,
titleStyle
,
subTitleStyle
},
detail
:
{
backgroundImage
,
detailImage
,
merchantLogo
,
titleStyle
,
subTitleStyle
},
draggableList
draggableList
}
=
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
,
detailHeight
,
logoInfo
,
backgroundImage
,
detailImage
,
merchantLogo
},
draggableList
)
//合并主图、文字
url
=
await
this
.
createMain
({
backgroundHeight
,
logoInfo
,
backgroundImage
,
detailImage
,
merchantLogo
},
draggableList
)
//合并主图、文字
const
style1
=
draggableList
[
0
]
const
style1
=
draggableList
[
0
]
const
style2
=
draggableList
[
1
]
const
style2
=
draggableList
[
1
]
const
titleStyle
=
JSON
.
parse
(
params
.
titleStyle
)
const
titleStyle
=
JSON
.
parse
(
params
.
titleStyle
)
...
...
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