Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM4-13
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
YM4-13
Commits
6ea77866
Commit
6ea77866
authored
Nov 09, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide html until data loaded
parent
5712500b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
custom-hot-zone.component.ts
...common/custom-hot-zone-ym413/custom-hot-zone.component.ts
+1
-1
form.component.html
src/app/form/form.component.html
+1
-1
form.component.ts
src/app/form/form.component.ts
+5
-3
defaultData_ym413.js
src/assets/default/formData/defaultData_ym413.js
+3
-3
No files found.
src/app/common/custom-hot-zone-ym413/custom-hot-zone.component.ts
View file @
6ea77866
...
...
@@ -665,7 +665,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
}
getURL
(
url
:
string
)
{
if
(
!
url
&&
url
.
indexOf
(
"
http
"
)
==-
1
&&
url
.
indexOf
(
"
/
"
)
==-
1
){
if
(
url
&&
url
.
indexOf
(
"
http
"
)
==-
1
&&
url
.
indexOf
(
"
/
"
)
==-
1
){
return
this
.
assetsRoot
.
replace
(
/_PH_IMAGE_NAME_/g
,
url
)
}
else
{
return
url
...
...
src/app/form/form.component.html
View file @
6ea77866
<div
class=
"model-content"
>
<div
*
ngIf=
"dataLoaded"
class=
"model-content"
>
<div
class=
"card-config"
>
<div
class=
"card-item"
>
<div
class=
"card-item-content"
>
...
...
src/app/form/form.component.ts
View file @
6ea77866
...
...
@@ -40,6 +40,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
bgImages
:
Object
=
{
leftTop
:
""
,
middleTop
:
""
,
rightTop
:
""
,
leftMiddle
:
""
,
rightMiddle
:
""
,
leftBottom
:
""
,
middleBottom
:
""
,
rightBottom
:
""
};
KEY
=
'
DataKey_YM4-13
'
;
dataLoaded
=
false
;
set
item
(
item
)
{
this
.
_item
=
item
;
}
...
...
@@ -50,9 +51,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
@
Output
()
update
=
new
EventEmitter
();
@
ViewChild
(
'
hotZooLeftEL
'
,
{
static
:
tru
e
})
hotZooLeftEL
;
@
ViewChild
(
'
hotZooMiddleEL
'
,
{
static
:
tru
e
})
hotZooMiddleEL
;
@
ViewChild
(
'
hotZooRightEL
'
,
{
static
:
tru
e
})
hotZooRightEL
;
@
ViewChild
(
'
hotZooLeftEL
'
,
{
static
:
fals
e
})
hotZooLeftEL
;
@
ViewChild
(
'
hotZooMiddleEL
'
,
{
static
:
fals
e
})
hotZooMiddleEL
;
@
ViewChild
(
'
hotZooRightEL
'
,
{
static
:
fals
e
})
hotZooRightEL
;
constructor
(
private
appRef
:
ApplicationRef
)
{
...
...
@@ -74,6 +75,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
this
.
init
();
this
.
refresh
();
this
.
dataLoaded
=
true
;
},
this
.
KEY
);
}
...
...
src/assets/default/formData/defaultData_ym413.js
View file @
6ea77866
...
...
@@ -12,7 +12,7 @@ export const defaultData = {
hotZoneItemArrLeft
:
[],
questionsLeft
:
[],
bgItemLeft
:
{
url
:
"
defalut_bg
"
,
url
:
"
bg_330_168
"
,
rect
:
{
x
:
0
,
y
:
0
,
...
...
@@ -26,7 +26,7 @@ export const defaultData = {
hotZoneItemArrMiddle
:
[],
questionsMiddle
:
[],
bgItemMiddle
:
{
url
:
"
defalut_bg
"
,
url
:
"
bg_330_168
"
,
rect
:
{
x
:
0
,
y
:
0
,
...
...
@@ -40,7 +40,7 @@ export const defaultData = {
hotZoneItemArrRight
:
[],
questionsRight
:
[],
bgItemRight
:
{
url
:
"
defalut_bg
"
,
url
:
"
bg_330_168
"
,
rect
:
{
x
:
0
,
y
:
0
,
...
...
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