Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
app_whsx
Overview
Overview
Details
Activity
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
王君
app_whsx
Commits
6d296437
Commit
6d296437
authored
Aug 24, 2021
by
王君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update files
parent
19712671
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
141 additions
and
40 deletions
+141
-40
home.html
html/home.html
+5
-4
home_frame.html
html/home_frame.html
+40
-10
index.html
html/index.html
+0
-0
index_1.html
html/index_1.html
+0
-0
more_main.html
html/more_main.html
+0
-1
work_report_main.html
html/my/work_report_main.html
+2
-2
privacy_policy.html
html/privacy_policy.html
+82
-21
index.html
index.html
+12
-2
No files found.
html/home.html
View file @
6d296437
...
...
@@ -206,7 +206,7 @@
this.isMoreCache = true;
}
}*/
if
(
this
.
isMoreCache
){
if
(
app
.
isMoreCache
){
//moreList = this.setModelLocalIcon(moreList);
$api
.
setStorage
(
'morelists'
,
moreList
);
}
...
...
@@ -276,11 +276,12 @@
this
.
$nextTick
(
function
()
{
/* 设置顶部安全区域,解决状态栏沉浸式 和 刘海屏问题 */
});
this
.
init
();
this
.
setTopModels
();
this
.
setHomeModels
();
}
});
app
.
init
();
app
.
setTopModels
();
app
.
setHomeModels
();
}
</script>
</body>
...
...
html/home_frame.html
View file @
6d296437
...
...
@@ -196,6 +196,7 @@
</head>
<body>
<div
id=
"app_frame"
v-cloak
>
<div
v-if=
"show_page"
>
<div
class=
"block"
>
<!--顶部模块-->
<div
class=
"topModels"
>
...
...
@@ -320,6 +321,7 @@
</div>
</div>
</div>
</div>
<script
src=
"../script/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../script/vue.min.js"
></script>
<script
type=
"text/javascript"
src=
"../script/vant.min.js"
></script>
...
...
@@ -339,7 +341,25 @@
party_show
:
false
,
article_list
:[],
preview_list
:[],
token
:
$api
.
getStorage
(
'token'
)
token
:
$api
.
getStorage
(
'token'
),
show_page
:
false
,
},
watch
:{
top_models
:
function
(
newQuestion
,
oldQuestion
)
{
if
(
newQuestion
){
this
.
showPage
();
}
},
home_models
:
function
(
newQuestion
,
oldQuestion
)
{
if
(
newQuestion
){
this
.
showPage
();
}
},
article_list
:
function
(
newQuestion
,
oldQuestion
)
{
if
(
newQuestion
){
this
.
showPage
();
}
}
},
computed
:
{
/*topModels: function () {
...
...
@@ -415,7 +435,12 @@
this
.
getPartyList
();
this
.
getArticleList
();
this
.
getNewsList
();
},
showPage
:
function
(){
if
(
this
.
top_models
.
length
>
0
&&
this
.
home_models
.
length
>
0
&&
this
.
article_list
.
length
>
0
){
api
.
refreshHeaderLoadDone
();
Vue
.
set
(
appFrame
,
"show_page"
,
true
);
}
},
setTopModels
:
function
(){
get_data
(
'/api/Column/getHeaderColumn2'
,
'post'
,
{
'type'
:
'display'
},
function
(
ret
)
{
...
...
@@ -477,8 +502,16 @@
})
}
},
created
:
function
(){
api
.
setRefreshHeaderInfo
({
bgColor
:
'#3D7BFC'
,
textColor
:
'#fff'
,
},
function
(
ret
,
err
){
appFrame
.
init
();
});
api
.
refreshHeaderLoading
();
},
mounted
:
function
(){
$
(
"#div_all"
).
append
(
"<div class='msg-new'></div>"
);
this
.
init
();
//监听 加red_datas
api
.
addEventListener
({
...
...
@@ -521,21 +554,18 @@
//更新红点数据
initHomeFrameMsgCache
();
}
});
//更新红点数据
initHomeFrameMsgCache
();
this
.
$nextTick
(
function
()
{
});
});
//appFrame.top_models = $api.getStorage("topModelCache");
//console.log(appFrame.top_models);
}
});
api
.
setRefreshHeaderInfo
({
bgColor
:
'#3D7BFC'
,
textColor
:
'#fff'
,
},
function
(
ret
,
err
){
appFrame
.
init
();
});
api
.
refreshHeaderLoading
();
}
</script>
</body>
...
...
html/index.html
View file @
6d296437
This diff is collapsed.
Click to expand it.
html/index_1.html
deleted
100644 → 0
View file @
19712671
This diff is collapsed.
Click to expand it.
html/more_main.html
View file @
6d296437
...
...
@@ -117,7 +117,6 @@
},
toDirect
:
function
(
param
,
l
){
console
.
log
(
param
);
console
.
log
(
l
);
openmodulelink
(
param
,
l
);
},
});
...
...
html/my/work_report_main.html
View file @
6d296437
...
...
@@ -415,9 +415,9 @@
up_loading
(
ret
.
path
)
})
}
if
(
index
==
3
)
{
/*
if(index == 3) {
post_video()
}
}
*/
});
}
//准备上传图片
...
...
html/privacy_policy.html
View file @
6d296437
...
...
@@ -11,6 +11,10 @@
body
{
padding
:
0px
;
margin
:
0px
;
background-color
:
#fff
;
}
[
v-cloak
]
{
display
:
none
;
}
#privacy_policy
{
/*padding: 1em;*/
...
...
@@ -20,6 +24,10 @@
overflow-y
:
auto
;
padding-left
:
1em
;
padding-right
:
1em
;
background
:
#fff
;
}
.content_text
{
padding-bottom
:
6em
;
}
#header
{
background-color
:
#3D60F6
;
...
...
@@ -27,7 +35,11 @@
}
.buttons
{
padding
:
1em
;
padding-bottom
:
2em
;
padding-bottom
:
1em
;
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
background
:
#fff
;
}
.btnitem
{
text-align
:
center
;
...
...
@@ -39,7 +51,7 @@
.btnitem
.btn1
{
color
:
#fff
;
background-image
:
linear-gradient
(
to
right
,
#4AA6FF
,
#3764FF
);
padding
:
0.2em
2.3em
;
padding
:
0.2em
10%
;
border-radius
:
100px
;
font-size
:
14px
;
}
...
...
@@ -53,28 +65,49 @@
.loading
{
margin-top
:
50%
;
}
.header_img
{
width
:
100%
;
height
:
4em
;
}
.title
{
text-align
:
center
;
color
:
#262626
;
background
:
#fff
;
font-size
:
16px
;
padding-top
:
1em
;
padding-bottom
:
1em
;
}
#header_div
{
display
:
flex
;
top
:
0
;
}
</style>
</head>
<body>
<div
id=
"privacy_policy"
>
<van-loading
v-if=
"isLoading"
size=
"24px"
vertical
class=
"loading"
>
加载中...
</van-loading>
<div
v-if=
"!isLoading"
>
<van-sticky
:offset-top=
"0"
>
<div
id=
"privacy_policy"
v-cloak
>
<van-sticky
offset-top=
"0"
id=
"header_div"
>
<header
id=
"header"
></header>
<van-nav-bar
:title=
"title"
/>
</van-sticky>
<van-row>
<van-col
span=
"24"
v-html=
"content"
class=
"content"
>
<van-row
class=
"header_img"
>
<van-col
span=
"24"
>
<van-image
fit=
"contain"
src=
"../image/privacy_policy_header_img.png"
loading-icon=
"../image/default.png"
/>
</van-col>
</van-row>
</van-sticky>
<van-loading
v-if=
"isLoading"
size=
"24px"
vertical
class=
"loading"
>
加载中...
</van-loading>
<van-sticky
:offset-top=
"0"
>
<div
class=
"title"
id=
"title"
>
隐私协议
</div>
</van-sticky>
<div
class=
"content"
id=
"content"
>
<div
v-if=
"!isLoading"
>
<div
v-html=
"content"
class=
"content_text"
></div>
</div>
</div>
<div
id=
"buttons"
class=
"buttons"
>
<div
class=
"btnitem btnitem1"
>
<a
href=
"javascript:goto()
;"
class=
"btn btn1"
@
click=
"agree"
>
同意并继续
</a>
<a
href=
"javascript:
;"
class=
"btn btn1"
@
click=
"agree"
>
同意并继续
</a>
</div>
<div
class=
"btnitem"
>
<a
href=
"javascript:goto();"
class=
"btn btn2"
@
click=
"disagree"
>
退出应用
</a>
</div>
<a
href=
"javascript:;"
class=
"btn btn2"
@
click=
"disagree"
>
退出应用
</a>
</div>
</div>
</div>
...
...
@@ -98,33 +131,61 @@
isLoading
:
true
,
headerHeight
:
0
},
watch
:{
isLoading
:
function
(
newQuestion
,
oldQuestion
)
{
if
(
!
newQuestion
){
var
body_h
=
api
.
frameHeight
;
var
header_h
=
$
(
'#header_div'
).
height
();
var
buttons_h
=
$
(
'#buttons'
).
height
();
var
title_h
=
$
(
'#title'
).
height
();
var
contentHeight
=
body_h
-
header_h
-
buttons_h
-
title_h
-
api
.
safeArea
.
bottom
;
console
.
log
(
body_h
,
header_h
,
buttons_h
,
title_h
,
api
.
safeArea
.
bottom
,
contentHeight
);
$
(
'#content'
).
height
(
contentHeight
);
}
}
},
methods
:{
init
(){
//var header = document.querySelector('#header');
//$api.fixStatusBar(header);
//var headerPos = $api.offset(header);
//Vue.set(app,'headerHeight',headerPos.h);
/*var body_h = $api.offset($api.dom('body')).h;
var header = $api.byId('header_div');
var headerPos = $api.offset(header);
console.log(JSON.stringify(headerPos));
var buttons = $api.byId('buttons');
var buttonsPos = $api.offset(buttons);
console.log(JSON.stringify(buttonsPos));
var contentHeight =body_h-headerPos.h-buttonsPos.h;
var content = $api.byId('content');
$api.css(content,'height:'+contentHeight+'px');*/
},
back
(){
window
.
history
.
back
();
},
setContent
(){
var
url
=
window
.
config
.
dev_path
+
"
/
api/page/detail?id=16"
;
$
.
post
(
url
,{},
function
(
ret
){
var
url
=
window
.
config
.
dev_path
+
"api/page/detail?id=16"
;
$
api
.
post
(
url
,{},
function
(
ret
){
if
(
1
==
ret
.
status
){
Vue
.
set
(
app
,
'content'
,
ret
.
data
.
content
);
Vue
.
set
(
app
,
'title'
,
ret
.
data
.
title
);
Vue
.
set
(
app
,
'isLoading'
,
false
);
}
},
'json'
);
/*$.post(url,{},function(ret){
alert(JSON.stringify(ret));
if(1==ret.status){
Vue.set(app,'content',ret.data.content);
Vue.set(app,'title',ret.data.title);
Vue.set(app,'isLoading',false);
}
},'json');*/
},
agree
(){
//open_home();
if
(
!
this
.
isLoading
){
$api
.
setStorage
(
'first_run'
,
500
);
api
.
openFrame
({
name
:
'index'
,
url
:
'./index.html'
,
});
}
},
disagree
(){
api
.
closeWidget
();
...
...
index.html
View file @
6d296437
...
...
@@ -55,7 +55,17 @@
<script
type=
"text/javascript"
src=
"./script/api.js"
></script>
<script
type=
"text/javascript"
>
apiready
=
function
(){
console
.
log
(
'as'
);
$api
.
setStorage
(
'first_run'
,
1
);
var
first_run
=
$api
.
getStorage
(
'first_run'
);
if
(
first_run
!=
500
){
api
.
openFrame
({
name
:
'privacy_policy'
,
url
:
'./html/privacy_policy.html'
,
bounces
:
false
,
reload
:
true
,
vScrollBarEnabled
:
false
,
});
}
else
{
api
.
setStatusBarStyle
({
style
:
'light'
,
});
...
...
@@ -74,7 +84,7 @@
h
:
'auto'
}
});
console
.
log
(
'dd'
);
}
};
</script>
</html>
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