Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-promise
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1660098a
authored
Mar 12, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
027218c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
Application/Home/View/default/Index_index.tpl
+2
-1
Application/Home/View/default/layout.tpl
+3
-3
Public/static/css/index.css
+4
-2
Public/static/js/common.js
+9
-1
No files found.
Application/Home/View/default/Index_index.tpl
View file @
1660098a
...
@@ -18,5 +18,5 @@
...
@@ -18,5 +18,5 @@
{:/block}
{:/block}
//js 文件导入
//js 文件导入
{:block name="js"}
{:block name="js"}
<script
src=
"__CDN__/js/common.js?v=
1.9
"
></script>
<script
src=
"__CDN__/js/common.js?v=
2.0
"
></script>
{:/block}
{:/block}
\ No newline at end of file
Application/Home/View/default/layout.tpl
View file @
1660098a
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
{:/if}
{:/if}
{:block name='css'}{:/block}
{:block name='css'}{:/block}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__CDN__/css/notify.css?version=1.0.0"
media=
"all"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__CDN__/css/notify.css?version=1.0.0"
media=
"all"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__CDN__/css/index.css?v=1.
2
"
media=
"all"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__CDN__/css/index.css?v=1.
3
"
media=
"all"
/>
</head>
</head>
...
@@ -102,9 +102,9 @@
...
@@ -102,9 +102,9 @@
window
.
num
=
'{:$num}'
;
window
.
num
=
'{:$num}'
;
var
link
=
location
.
origin
;
var
link
=
location
.
origin
;
var
friend_title
=
'责任使命,
我愿许下承诺
'
;
var
friend_title
=
'责任使命,
为爱守护,我已与'
+
window
.
num
+
'人共同许下承诺!
'
;
var
friend_desc
=
'因为深知保单背后承载的重量,作为保障的“守护着”,我们全力以赴!'
;
var
friend_desc
=
'因为深知保单背后承载的重量,作为保障的“守护着”,我们全力以赴!'
;
var
timeline_desc
=
'责任使命,
我愿许下承诺
'
;
var
timeline_desc
=
'责任使命,
为爱守护,我已与'
+
window
.
num
+
'人共同许下承诺!
'
;
window
.
wxFriendData
=
{
window
.
wxFriendData
=
{
'link'
:
link
,
'link'
:
link
,
'imgUrl'
:
link
+
'/Public/static/image2/share.png'
,
'imgUrl'
:
link
+
'/Public/static/image2/share.png'
,
...
...
Public/static/css/index.css
View file @
1660098a
...
@@ -90,6 +90,7 @@ body {
...
@@ -90,6 +90,7 @@ body {
input
::-webkit-input-placeholder
{
input
::-webkit-input-placeholder
{
/* placeholder颜色 */
/* placeholder颜色 */
color
:
#c7c7c7
;
color
:
#c7c7c7
;
font-weight
:
bolder
;
}
}
.loading-page
.loading-text
{
.loading-page
.loading-text
{
...
@@ -115,9 +116,10 @@ input::-webkit-input-placeholder {
...
@@ -115,9 +116,10 @@ input::-webkit-input-placeholder {
input
[
name
=
name
],
input
[
name
=
name
],
input
[
name
=
business
]
{
input
[
name
=
business
]
{
font-size
:
2
0px
;
font-size
:
3
0px
;
color
:
#333
;
color
:
#333
;
line-height
:
32px
;
line-height
:
38px
;
font-weight
:
bolder
;
text-align
:
center
;
text-align
:
center
;
padding
:
0
10px
;
padding
:
0
10px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
...
Public/static/js/common.js
View file @
1660098a
...
@@ -263,7 +263,15 @@ function createPoster(name, business) {
...
@@ -263,7 +263,15 @@ function createPoster(name, business) {
});
});
let
oldPosterIndex
=
nowPosterIndex
;
let
oldPosterIndex
=
nowPosterIndex
;
nowPosterIndex
=
RandomNumBoth
(
1
,
3
,
oldPosterIndex
);
if
(
oldPosterIndex
==
''
)
{
nowPosterIndex
=
RandomNumBoth
(
1
,
3
,
oldPosterIndex
);
}
else
{
nowPosterIndex
=
nowPosterIndex
+
1
;
if
(
nowPosterIndex
>
3
)
{
nowPosterIndex
=
1
;
}
}
console
.
log
(
'nowPosterIndex:'
,
nowPosterIndex
);
console
.
log
(
'nowPosterIndex:'
,
nowPosterIndex
);
$
(
'.poster-canvas canvas'
).
remove
();
$
(
'.poster-canvas canvas'
).
remove
();
...
...
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