Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
3987af43
Commit
3987af43
authored
Jun 04, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/pptist
parents
6e9720ea
deba0371
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
text.ts
src/utils/psdParser/text.ts
+5
-2
index.vue
src/views/Editor/Thumbnails/index.vue
+6
-3
Index.vue
src/views/Market/Index.vue
+2
-2
No files found.
src/utils/psdParser/text.ts
View file @
3987af43
...
@@ -70,9 +70,12 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
...
@@ -70,9 +70,12 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
if
(
objectEFFFects
&&
objectEFFFects
.
data
?.
FrFX
?.
enab
){
if
(
objectEFFFects
&&
objectEFFFects
.
data
?.
FrFX
?.
enab
){
stroke
=
getStrokeHandler
(
objectEFFFects
)
stroke
=
getStrokeHandler
(
objectEFFFects
)
}
}
let
content
=
`<p><span style="
${
style
}
">
${
HtmlUtil
.
htmlEncodeByRegExp
(
value
)}
</span></p>`
const
valuesStr
=
value
.
split
(
'
\
r'
)
let
content
=
''
valuesStr
.
forEach
((
x
:
any
)
=>
{
content
+=
`<p><span style="
${
style
}
">
${
HtmlUtil
.
htmlEncodeByRegExp
(
x
)}
</span></p>`
})
const
isVertical
=
item
.
layer
.
adjustments
.
typeTool
.
obj
.
textData
.
Ornt
.
value
!=
'Hrzn'
const
isVertical
=
item
.
layer
.
adjustments
.
typeTool
.
obj
.
textData
.
Ornt
.
value
!=
'Hrzn'
if
(
isVertical
)
{
if
(
isVertical
)
{
let
checkWord
=
value
[
0
]
+
value
[
value
.
length
-
1
]
let
checkWord
=
value
[
0
]
+
value
[
value
.
length
-
1
]
...
...
src/views/Editor/Thumbnails/index.vue
View file @
3987af43
...
@@ -466,7 +466,8 @@ const GetTripTemplate = async () =>{
...
@@ -466,7 +466,8 @@ const GetTripTemplate = async () =>{
}
else
if
(
SlidesData
.
length
>
0
){
}
else
if
(
SlidesData
.
length
>
0
){
SlidesData
.
forEach
((
x
:
any
)
=>
{
SlidesData
.
forEach
((
x
:
any
)
=>
{
x
.
elements
.
forEach
((
y
:
any
)
=>
{
x
.
elements
.
forEach
((
y
:
any
)
=>
{
if
(
y
.
contentStr
&&
y
.
content
.
includes
(
y
.
contentStr
)){
if
(
y
.
content
&&
y
.
defaultFontName
&&
y
.
defaultFontName
.
includes
(
','
))
y
.
defaultFontName
=
y
.
defaultFontName
.
split
(
','
)[
0
]
if
(
y
.
contentStr
&&
y
.
content
&&
y
.
content
.
includes
(
y
.
contentStr
)){
let
temp
=
HtmlUtil
.
htmlEncodeByRegExp
(
y
.
contentStr
)
let
temp
=
HtmlUtil
.
htmlEncodeByRegExp
(
y
.
contentStr
)
if
(
temp
!=
y
.
contentStr
)
{
if
(
temp
!=
y
.
contentStr
)
{
y
.
content
=
y
.
content
.
replace
(
y
.
contentStr
,
temp
)
y
.
content
=
y
.
content
.
replace
(
y
.
contentStr
,
temp
)
...
@@ -707,10 +708,12 @@ const sellGetTripTemplate = async () =>{
...
@@ -707,10 +708,12 @@ const sellGetTripTemplate = async () =>{
if
(
SalesBack
.
value
==
0
)
slidesStore
.
setTitle
(
dataRes
.
data
.
data
.
Title
)
if
(
SalesBack
.
value
==
0
)
slidesStore
.
setTitle
(
dataRes
.
data
.
data
.
Title
)
if
(
SalesBack
.
value
==
0
&&
searchData
.
value
.
sellId
){
if
(
SalesBack
.
value
==
0
&&
searchData
.
value
.
sellId
){
let
SlidesData
=
JSON
.
parse
(
dataObj
.
TempData
)
let
SlidesData
=
JSON
.
parse
(
dataObj
.
TempData
)
let
newSlides
=
[]
let
newSlides
=
[]
await
SlidesData
.
forEach
((
x
,
i
)
=>
{
SlidesData
.
forEach
((
x
,
i
)
=>
{
x
.
elements
.
forEach
((
y
:
any
)
=>
{
x
.
elements
.
forEach
((
y
:
any
)
=>
{
if
(
y
.
contentStr
&&
y
.
content
.
includes
(
y
.
contentStr
)){
if
(
y
.
content
&&
y
.
defaultFontName
&&
y
.
defaultFontName
.
includes
(
','
))
y
.
defaultFontName
=
y
.
defaultFontName
.
split
(
','
)[
0
]
if
(
y
.
contentStr
&&
y
.
content
&&
y
.
content
.
includes
(
y
.
contentStr
)){
let
temp
=
HtmlUtil
.
htmlEncodeByRegExp
(
y
.
contentStr
)
let
temp
=
HtmlUtil
.
htmlEncodeByRegExp
(
y
.
contentStr
)
if
(
temp
!=
y
.
contentStr
)
{
if
(
temp
!=
y
.
contentStr
)
{
y
.
content
=
y
.
content
.
replace
(
y
.
contentStr
,
temp
)
y
.
content
=
y
.
content
.
replace
(
y
.
contentStr
,
temp
)
...
...
src/views/Market/Index.vue
View file @
3987af43
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"relative"
style=
"padding: 22px 17px; max-width:1440px; margin:0 auto;z-index: 2;"
>
<div
class=
"relative"
style=
"padding: 22px 17px; max-width:1440px; margin:0 auto;z-index: 2;"
>
<div
:class=
"[datas.scrollTop>200?'MarketHeader':'']"
>
<div
:class=
"[datas.scrollTop>200?'MarketHeader':'']"
>
<div
class=
"row items-center"
>
<div
class=
"row items-center"
>
<img
class=
"q-pr-36
"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pptTD.png"
style=
"height: 28px;
"
/>
<img
class=
"q-pr-36
cusor-pointer"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pptTD.png"
style=
"height: 28px;"
@
click=
"forwordHandler('/space')
"
/>
<div
class=
"row grow Market-select reactive"
>
<div
class=
"row grow Market-select reactive"
>
<el-input
v-model=
"queryObj.Title"
placeholder=
"请输入关键字"
class=
"input-with-select q-pr-33"
>
<el-input
v-model=
"queryObj.Title"
placeholder=
"请输入关键字"
class=
"input-with-select q-pr-33"
>
<template
#
append
>
<template
#
append
>
...
@@ -329,7 +329,7 @@ const SwitchingVersion = (row: Object) =>{
...
@@ -329,7 +329,7 @@ const SwitchingVersion = (row: Object) =>{
const
BeFondOf
=
(
row
:
Object
)
=>
{
const
BeFondOf
=
(
row
:
Object
)
=>
{
row
.
checked
=
!
row
.
checked
row
.
checked
=
!
row
.
checked
}
}
const
forwordHandler
=
(
path
:
string
)
=>
router
.
push
({
path
})
// 删除模版
// 删除模版
const
deleteTemplate
=
(
item
:
any
)
=>
{
const
deleteTemplate
=
(
item
:
any
)
=>
{
ElMessageBox
.
confirm
(
ElMessageBox
.
confirm
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment