Skip to content

Commit 17a30bb

Browse files
committed
页面更新
1 parent 9d85b35 commit 17a30bb

File tree

11 files changed

+370
-24
lines changed

11 files changed

+370
-24
lines changed

manifest.json

+227
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
{
2+
"@platforms" : [ "android", "iPhone", "iPad" ],
3+
"id" : "H5EB054BA", /*应用的标识*/
4+
"name" : "employee-care", /*应用名称,程序桌面图标名称*/
5+
"version" : {
6+
"name" : "1.0", /*应用版本名称*/
7+
"code" : "100"
8+
},
9+
"description" : "", /*应用描述信息*/
10+
"icons" : {
11+
"72" : "icon.png"
12+
},
13+
"launch_path" : "index.html", /*应用的入口页面,默认为根目录下的index.html;支持网络地址,必须以http://或https://开头*/
14+
"developer" : {
15+
"name" : "", /*开发者名称*/
16+
"email" : "", /*开发者邮箱地址*/
17+
"url" : "" /*开发者个人主页地址*/
18+
},
19+
"permissions" : {
20+
"Accelerometer" : {
21+
"description" : "访问加速度感应器"
22+
},
23+
"Audio" : {
24+
"description" : "访问麦克风"
25+
},
26+
"Cache" : {
27+
"description" : "管理应用缓存"
28+
},
29+
"Camera" : {
30+
"description" : "访问摄像头"
31+
},
32+
"Console" : {
33+
"description" : "跟踪调试输出日志"
34+
},
35+
"Device" : {
36+
"description" : "访问设备信息"
37+
},
38+
"Downloader" : {
39+
"description" : "文件下载管理"
40+
},
41+
"Events" : {
42+
"description" : "应用扩展事件"
43+
},
44+
"File" : {
45+
"description" : "访问本地文件系统"
46+
},
47+
"Gallery" : {
48+
"description" : "访问系统相册"
49+
},
50+
"Geolocation" : {
51+
"description" : "访问位置信息"
52+
},
53+
"Invocation" : {
54+
"description" : "使用Native.js能力"
55+
},
56+
"Orientation" : {
57+
"description" : "访问方向感应器"
58+
},
59+
"Proximity" : {
60+
"description" : "访问距离感应器"
61+
},
62+
"Storage" : {
63+
"description" : "管理应用本地数据"
64+
},
65+
"Uploader" : {
66+
"description" : "管理文件上传任务"
67+
},
68+
"Runtime" : {
69+
"description" : "访问运行期环境"
70+
},
71+
"XMLHttpRequest" : {
72+
"description" : "跨域网络访问"
73+
},
74+
"Zip" : {
75+
"description" : "文件压缩与解压缩"
76+
},
77+
"Barcode" : {
78+
"description" : "管理二维码扫描插件"
79+
},
80+
"Webview" : {
81+
"description" : "窗口管理"
82+
},
83+
"NativeUI" : {
84+
"description" : "原生UI控件"
85+
},
86+
"Navigator" : {
87+
"description" : "浏览器信息"
88+
},
89+
"NativeObj" : {
90+
"description" : "原生对象"
91+
},
92+
"Maps" : {}
93+
},
94+
"plus" : {
95+
"splashscreen" : {
96+
"autoclose" : true, /*是否自动关闭程序启动界面,true表示应用加载应用入口页面后自动关闭;false则需调plus.navigator.closeSplashscreen()关闭*/
97+
"waiting" : true /*是否在程序启动界面显示等待雪花,true表示显示,false表示不显示。*/
98+
},
99+
"statusbar" : {
100+
"immersed" : "supportedDevice", // 沉浸式状态栏
101+
"background" : "#2AC7B8"
102+
},
103+
"popGesture" : "none", /*设置应用默认侧滑返回关闭Webview窗口,"none"为无侧滑返回功能,"hide"为侧滑隐藏Webview窗口。参考http://ask.dcloud.net.cn/article/102*/
104+
"runmode" : "normal", /*应用的首次启动运行模式,可取liberate或normal,liberate模式在第一次启动时将解压应用资源(Android平台File API才可正常访问_www目录)*/
105+
"signature" : "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==", /*可选,保留给应用签名,暂不使用*/
106+
"distribute" : {
107+
"apple" : {
108+
"appid" : "", /*iOS应用标识,苹果开发网站申请的appid,如io.dcloud.HelloH5*/
109+
"mobileprovision" : "", /*iOS应用打包配置文件*/
110+
"password" : "", /*iOS应用打包个人证书导入密码*/
111+
"p12" : "", /*iOS应用打包个人证书,打包配置文件关联的个人证书*/
112+
"devices" : "universal", /*iOS应用支持的设备类型,可取值iphone/ipad/universal*/
113+
"frameworks" : [] /*调用Native.js调用原生Objective-c API需要引用的FrameWork,如需调用GameCenter,则添加"GameKit.framework"*/
114+
},
115+
"google" : {
116+
"packagename" : "", /*Android应用包名,如io.dcloud.HelloH5*/
117+
"keystore" : "", /*Android应用打包使用的密钥库文件*/
118+
"password" : "", /*Android应用打包使用密钥库中证书的密码*/
119+
"aliasname" : "", /*Android应用打包使用密钥库中证书的别名*/
120+
"permissions" : [
121+
"<uses-feature android:name=\"android.hardware.camera\"/>",
122+
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
123+
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
124+
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
125+
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
126+
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
127+
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
128+
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
129+
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
130+
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
131+
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
132+
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
133+
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
134+
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
135+
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
136+
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
137+
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
138+
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
139+
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
140+
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
141+
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
142+
],
143+
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
144+
},
145+
/*使用Native.js调用原生安卓API需要使用到的系统权限*/
146+
"orientation" : [ "portrait-primary" ], /*应用支持的方向,portrait-primary:竖屏正方向;portrait-secondary:竖屏反方向;landscape-primary:横屏正方向;landscape-secondary:横屏反方向*/
147+
"icons" : {
148+
"ios" : {
149+
"prerendered" : true, /*应用图标是否已经高亮处理,在iOS6及以下设备上有效*/
150+
"auto" : "", /*应用图标,分辨率:512x512,用于自动生成各种尺寸程序图标*/
151+
"iphone" : {
152+
"normal" : "", /*iPhone3/3GS程序图标,分辨率:57x57*/
153+
"retina" : "", /*iPhone4程序图标,分辨率:114x114*/
154+
"retina7" : "", /*iPhone4S/5/6程序图标,分辨率:120x120*/
155+
"retina8" : "", /*iPhone6 Plus程序图标,分辨率:180x180*/
156+
"spotlight-normal" : "", /*iPhone3/3GS Spotlight搜索程序图标,分辨率:29x29*/
157+
"spotlight-retina" : "", /*iPhone4 Spotlight搜索程序图标,分辨率:58x58*/
158+
"spotlight-retina7" : "", /*iPhone4S/5/6 Spotlight搜索程序图标,分辨率:80x80*/
159+
"settings-normal" : "", /*iPhone4设置页面程序图标,分辨率:29x29*/
160+
"settings-retina" : "", /*iPhone4S/5/6设置页面程序图标,分辨率:58x58*/
161+
"settings-retina8" : "" /*iPhone6Plus设置页面程序图标,分辨率:87x87*/
162+
},
163+
"ipad" : {
164+
"normal" : "", /*iPad普通屏幕程序图标,分辨率:72x72*/
165+
"retina" : "", /*iPad高分屏程序图标,分辨率:144x144*/
166+
"normal7" : "", /*iPad iOS7程序图标,分辨率:76x76*/
167+
"retina7" : "", /*iPad iOS7高分屏程序图标,分辨率:152x152*/
168+
"spotlight-normal" : "", /*iPad Spotlight搜索程序图标,分辨率:50x50*/
169+
"spotlight-retina" : "", /*iPad高分屏Spotlight搜索程序图标,分辨率:100x100*/
170+
"spotlight-normal7" : "", /*iPad iOS7 Spotlight搜索程序图标,分辨率:40x40*/
171+
"spotlight-retina7" : "", /*iPad iOS7高分屏Spotlight搜索程序图标,分辨率:80x80*/
172+
"settings-normal" : "", /*iPad设置页面程序图标,分辨率:29x29*/
173+
"settings-retina" : "" /*iPad高分屏设置页面程序图标,分辨率:58x58*/
174+
}
175+
},
176+
"android" : {
177+
"mdpi" : "", /*普通屏程序图标,分辨率:48x48*/
178+
"ldpi" : "", /*大屏程序图标,分辨率:48x48*/
179+
"hdpi" : "D:/工作/员工关怀app/logo/编组 [email protected]", /*高分屏程序图标,分辨率:72x72*/
180+
"xhdpi" : "D:/工作/员工关怀app/logo/编组 [email protected]", /*720P高分屏程序图标,分辨率:96x96*/
181+
"xxhdpi" : "D:/工作/员工关怀app/logo/编组 [email protected]", /*1080P 高分屏程序图标,分辨率:144x144*/
182+
"xxxhdpi" : "D:/工作/员工关怀app/logo/编组 [email protected]"
183+
}
184+
},
185+
"splashscreen" : {
186+
"ios" : {
187+
"iphone" : {
188+
"default" : "", /*iPhone3启动图片选,分辨率:320x480*/
189+
"retina35" : "", /*3.5英寸设备(iPhone4)启动图片,分辨率:640x960*/
190+
"retina40" : "", /*4.0 英寸设备(iPhone5/iPhone5s)启动图片,分辨率:640x1136*/
191+
"retina47" : "", /*4.7 英寸设备(iPhone6)启动图片,分辨率:750x1334*/
192+
"retina55" : "", /*5.5 英寸设备(iPhone6 Plus)启动图片,分辨率:1242x2208*/
193+
"retina55l" : "" /*5.5 英寸设备(iPhone6 Plus)横屏启动图片,分辨率:2208x1242*/
194+
},
195+
"ipad" : {
196+
"portrait" : "", /*iPad竖屏启动图片,分辨率:768x1004*/
197+
"portrait-retina" : "", /*iPad高分屏竖屏图片,分辨率:1536x2008*/
198+
"landscape" : "", /*iPad横屏启动图片,分辨率:1024x748*/
199+
"landscape-retina" : "", /*iPad高分屏横屏启动图片,分辨率:2048x1496*/
200+
"portrait7" : "", /*iPad iOS7竖屏启动图片,分辨率:768x1024*/
201+
"portrait-retina7" : "", /*iPad iOS7高分屏竖屏图片,分辨率:1536x2048*/
202+
"landscape7" : "", /*iPad iOS7横屏启动图片,分辨率:1024x768*/
203+
"landscape-retina7" : "" /*iPad iOS7高分屏横屏启动图片,分辨率:2048x1536*/
204+
}
205+
},
206+
"android" : {
207+
"mdpi" : "", /*普通屏启动图片,分辨率:240x282*/
208+
"ldpi" : "", /*大屏启动图片,分辨率:320x442*/
209+
"hdpi" : "", /*高分屏启动图片,分辨率:480x762*/
210+
"xhdpi" : "", /*720P高分屏启动图片,分辨率:720x1242*/
211+
"xxhdpi" : "" /*1080P高分屏启动图片,分辨率:1080x1882*/
212+
},
213+
"androidStyle" : "default"
214+
},
215+
"plugins" : {
216+
"speech" : {
217+
"ifly" : {}
218+
},
219+
"ad" : {},
220+
"geolocation" : {},
221+
"maps" : {}
222+
}
223+
}
224+
},
225+
"screenOrientation" : [ "portrait-primary" ],
226+
"fullscreen" : false
227+
}

public/index.html

+42-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
88
<title>员工关怀</title>
99
<script src="//g.alicdn.com/fdilab/lib3rd/viewport-units-buggyfill/0.6.2/??viewport-units-buggyfill.hacks.min.js,viewport-units-buggyfill.min.js"></script>
10-
<script src="https://webapi.amap.com/maps?v=1.4.14&key=ec0f8fe9bdd332f3811aecab234d3912&plugin=AMap.Geocoder,AMap.MarkerClusterer,AMap.Geolocation"></script>
10+
<script src="https://webapi.amap.com/maps?v=1.4.15&key=ec0f8fe9bdd332f3811aecab234d3912&plugin=AMap.Geocoder,AMap.MarkerClusterer,AMap.Geolocation"></script>
1111
</head>
1212
<body>
1313
<noscript>
@@ -21,5 +21,46 @@
2121
window.onload = function () {
2222
window.viewportUnitsBuggyfill.init({ hacks: window.viewportUnitsBuggyfillHacks });
2323
}
24+
25+
//解决app返回键直接退出应用而不是返回上一步问题
26+
document.addEventListener('plusready', function() {
27+
if(!plus){
28+
return
29+
}
30+
let webview = plus.webview.currentWebview();
31+
let first = null;
32+
plus.key.addEventListener('backbutton', function() {
33+
webview.canBack(function(e) {
34+
if (e.canBack) {
35+
webview.back();
36+
} else {
37+
//webview.close(); //hide,quit
38+
//plus.runtime.quit();
39+
//首页返回键处理
40+
//处理逻辑:1秒内,连续两次按返回键,则退出应用;
41+
//首次按键,提示‘再按一次退出应用’
42+
if (!first) {
43+
first = new Date().getTime();
44+
// toast('双击返回键退出应用'); //调用自己写的吐丝提示 函数
45+
console.log('再按一次退出应用');
46+
plus.nativeUI.toast("双击退出", {
47+
duration: 'short'
48+
}); //通过H5+ API调用Android 上的toast 提示框
49+
setTimeout(function() {
50+
first = null;
51+
}, 1000);
52+
} else {
53+
if (new Date().getTime() - first < 1400) {
54+
plus.runtime.quit();
55+
}
56+
}
57+
}
58+
})
59+
}, false);
60+
/*沉浸式延伸的问题:状态栏的高度被忽略*/
61+
// plus.webview.currentWebview().setStyle({
62+
// statusbar:{background:'#ff0000'},top:0,bottom: 0
63+
// });
64+
});
2465
</script>
2566
</html>

src/assets/images/user_photo.png

15.3 KB
Loading

src/assets/login_bg.png

327 KB
Loading

src/components/pageList/index.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export default {
2828
params: { type: Object },
2929
pageSize: { type: Number },
3030
finishedText: { type: String, default: "没有更多了" },
31-
errorText: { type: String, default: "加载失败,请重试!" }
31+
errorText: { type: String, default: "加载失败,请重试!" },
32+
dataFilter: { type: Function }
3233
},
3334
data() {
3435
return {
@@ -61,6 +62,9 @@ export default {
6162
if (res) {
6263
let list = res.data || (Array.isArray(res) ? res : []);
6364
this.list = [...this.list, ...list];
65+
if (this.dataFilter && typeof this.dataFilter === "function") {
66+
this.list = this.dataFilter(this.list);
67+
}
6468
this.page.currentPage = res.page;
6569
this.page.totalCount = res.totalCount;
6670
this.page.pageSize = res.pageSize;
@@ -73,6 +77,7 @@ export default {
7377
} else {
7478
this.finished = true;
7579
}
80+
7681
})
7782
.catch(() => {
7883
this.finished = true;

src/store/mutations.js

-2
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ const mutations = {
5757
state.userInfo = {};
5858
},
5959
SET_EVENT_TYPE: (state, eventType) => {
60-
console.log("set_event_type",eventType)
6160
state.eventType = eventType;
6261
},
6362
SET_POSITION: (state, position) => {
6463
state.position = position;
6564
},
6665
SET_NOTICE_TYPE: (state, noticeType) => {
67-
console.log("set_notice_type",noticeType)
6866
state.noticeType = noticeType;
6967
}
7068
};

0 commit comments

Comments
 (0)