@ -1,40 +1,16 @@
|
|||||||
<script setup>
|
<script>
|
||||||
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
|
export default {
|
||||||
/* import location from "./utils/location"; */
|
onLaunch: function() {
|
||||||
onLaunch(() => {
|
},
|
||||||
/* location.startLocationService((res)=>{
|
onShow: function() {
|
||||||
console.log(JSON.stringify(res),'JSON.stringify(res)');
|
console.log('App Show')
|
||||||
uni.showToast({
|
},
|
||||||
duration:1000,
|
onHide: function() {
|
||||||
icon:'none',
|
console.log('App Hide')
|
||||||
title:JSON.stringify(res)
|
}
|
||||||
})
|
}
|
||||||
},()=>{
|
|
||||||
|
|
||||||
}) */
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
onShow(() => {
|
|
||||||
|
|
||||||
})
|
|
||||||
onHide(() => {
|
|
||||||
/* plus.geolocation.clearWatch(LocationId) */
|
|
||||||
console.log("App Hide")
|
|
||||||
})
|
|
||||||
/* uni.getPushClientId({
|
|
||||||
success: (res) => {
|
|
||||||
let push_clientid = res.cid
|
|
||||||
console.log('客户端推送标识cid:',push_clientid)
|
|
||||||
},
|
|
||||||
fail(err) {
|
|
||||||
console.log(err)
|
|
||||||
}
|
|
||||||
}) */
|
|
||||||
uni.onPushMessage((res)=>{
|
|
||||||
console.log(JSON.stringify(res),);
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
/*每个页面公共css */
|
||||||
</style>
|
</style>
|
||||||
|
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"version" : "1",
|
||||||
|
"prompt" : "template",
|
||||||
|
"title" : "服务协议和隐私政策",
|
||||||
|
"message" : " 请你务必审慎阅读、充分理解“平台服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=\"https://oa.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
|
||||||
|
"buttonAccept" : "同意并接受",
|
||||||
|
"buttonRefuse" : "不同意",
|
||||||
|
"second" : {
|
||||||
|
"title" : "确认提示",
|
||||||
|
"message" : " 进入应用前,你需先同意<a href=\"https://oa.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>,否则将退出应用。",
|
||||||
|
"buttonAccept" : "同意并继续",
|
||||||
|
"buttonRefuse" : "退出应用"
|
||||||
|
},
|
||||||
|
"disagreeMode" : {
|
||||||
|
"support" : false,
|
||||||
|
"loadNativePlugins" : false,
|
||||||
|
"visitorEntry" : false,
|
||||||
|
"showAlways" : false
|
||||||
|
},
|
||||||
|
"styles" : {
|
||||||
|
"backgroundColor" : "#ffffff",
|
||||||
|
"borderRadius" : "5px",
|
||||||
|
"title" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonAccept" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonRefuse" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonVisitor" : {
|
||||||
|
"color" : "#009"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,17 +1,18 @@
|
|||||||
const env = 'prod';
|
const env = 'prod';
|
||||||
const configs = {
|
const configs = {
|
||||||
dev: {
|
dev: {
|
||||||
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
||||||
h5Url: 'http://192.168.88.37:8080/#/'
|
h5Url:'http://192.168.88.37:8080/#/'
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
||||||
h5Url: 'http://114.218.158.24:8042/#/'
|
h5Url:'http://172.16.100.93:8041/#/'
|
||||||
},
|
},
|
||||||
prod: {
|
prod: {
|
||||||
apiBaseUrl: 'https://oa-a.szjixun.cn',
|
apiBaseUrl: 'https://oa-a.szjixun.cn/api',
|
||||||
h5Url: 'https://oa-a.szjixun.cn/#/'
|
h5Url:'https://oa-a.szjixun.cn/#/'
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
const config = configs[env];
|
const config = configs[env];
|
||||||
export default config;
|
export default config;
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"name": "uni-cloud-push",
|
||||||
|
"dependencies": {},
|
||||||
|
"extensions": {
|
||||||
|
"uni-cloud-jql": {},
|
||||||
|
"uni-cloud-push": {}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,81 @@
|
|||||||
|
{
|
||||||
|
"id": "uni-config-center",
|
||||||
|
"displayName": "uni-config-center",
|
||||||
|
"version": "0.0.3",
|
||||||
|
"description": "uniCloud 配置中心",
|
||||||
|
"keywords": [
|
||||||
|
"配置",
|
||||||
|
"配置中心"
|
||||||
|
],
|
||||||
|
"repository": "",
|
||||||
|
"engines": {
|
||||||
|
"HBuilderX": "^3.1.0"
|
||||||
|
},
|
||||||
|
"dcloudext": {
|
||||||
|
"sale": {
|
||||||
|
"regular": {
|
||||||
|
"price": "0.00"
|
||||||
|
},
|
||||||
|
"sourcecode": {
|
||||||
|
"price": "0.00"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"qq": ""
|
||||||
|
},
|
||||||
|
"declaration": {
|
||||||
|
"ads": "无",
|
||||||
|
"data": "无",
|
||||||
|
"permissions": "无"
|
||||||
|
},
|
||||||
|
"npmurl": "",
|
||||||
|
"type": "unicloud-template-function"
|
||||||
|
},
|
||||||
|
"directories": {
|
||||||
|
"example": "../../../scripts/dist"
|
||||||
|
},
|
||||||
|
"uni_modules": {
|
||||||
|
"dependencies": [],
|
||||||
|
"encrypt": [],
|
||||||
|
"platforms": {
|
||||||
|
"cloud": {
|
||||||
|
"tcb": "y",
|
||||||
|
"aliyun": "y"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"App": {
|
||||||
|
"app-vue": "u",
|
||||||
|
"app-nvue": "u"
|
||||||
|
},
|
||||||
|
"H5-mobile": {
|
||||||
|
"Safari": "u",
|
||||||
|
"Android Browser": "u",
|
||||||
|
"微信浏览器(Android)": "u",
|
||||||
|
"QQ浏览器(Android)": "u"
|
||||||
|
},
|
||||||
|
"H5-pc": {
|
||||||
|
"Chrome": "u",
|
||||||
|
"IE": "u",
|
||||||
|
"Edge": "u",
|
||||||
|
"Firefox": "u",
|
||||||
|
"Safari": "u"
|
||||||
|
},
|
||||||
|
"小程序": {
|
||||||
|
"微信": "u",
|
||||||
|
"阿里": "u",
|
||||||
|
"百度": "u",
|
||||||
|
"字节跳动": "u",
|
||||||
|
"QQ": "u"
|
||||||
|
},
|
||||||
|
"快应用": {
|
||||||
|
"华为": "u",
|
||||||
|
"联盟": "u"
|
||||||
|
},
|
||||||
|
"Vue": {
|
||||||
|
"vue2": "y",
|
||||||
|
"vue3": "u"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "uni-config-center",
|
||||||
|
"version": "0.0.3",
|
||||||
|
"description": "配置中心",
|
||||||
|
"main": "index.js",
|
||||||
|
"keywords": [],
|
||||||
|
"author": "DCloud",
|
||||||
|
"license": "Apache-2.0"
|
||||||
|
}
|
@ -0,0 +1,85 @@
|
|||||||
|
{
|
||||||
|
"id": "uni-id-common",
|
||||||
|
"displayName": "uni-id-common",
|
||||||
|
"version": "1.0.17",
|
||||||
|
"description": "包含uni-id token生成、校验、刷新功能的云函数公共模块",
|
||||||
|
"keywords": [
|
||||||
|
"uni-id-common",
|
||||||
|
"uniCloud",
|
||||||
|
"token",
|
||||||
|
"权限"
|
||||||
|
],
|
||||||
|
"repository": "https://gitcode.net/dcloud/uni-id-common",
|
||||||
|
"engines": {
|
||||||
|
"HBuilderX": "^3.1.0"
|
||||||
|
},
|
||||||
|
"dcloudext": {
|
||||||
|
"sale": {
|
||||||
|
"regular": {
|
||||||
|
"price": "0.00"
|
||||||
|
},
|
||||||
|
"sourcecode": {
|
||||||
|
"price": "0.00"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"qq": ""
|
||||||
|
},
|
||||||
|
"declaration": {
|
||||||
|
"ads": "无",
|
||||||
|
"data": "无",
|
||||||
|
"permissions": "无"
|
||||||
|
},
|
||||||
|
"npmurl": "",
|
||||||
|
"type": "unicloud-template-function"
|
||||||
|
},
|
||||||
|
"uni_modules": {
|
||||||
|
"dependencies": ["uni-config-center"],
|
||||||
|
"encrypt": [],
|
||||||
|
"platforms": {
|
||||||
|
"cloud": {
|
||||||
|
"tcb": "y",
|
||||||
|
"aliyun": "y",
|
||||||
|
"alipay": "n"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"Vue": {
|
||||||
|
"vue2": "u",
|
||||||
|
"vue3": "u"
|
||||||
|
},
|
||||||
|
"App": {
|
||||||
|
"app-vue": "u",
|
||||||
|
"app-nvue": "u"
|
||||||
|
},
|
||||||
|
"H5-mobile": {
|
||||||
|
"Safari": "u",
|
||||||
|
"Android Browser": "u",
|
||||||
|
"微信浏览器(Android)": "u",
|
||||||
|
"QQ浏览器(Android)": "u"
|
||||||
|
},
|
||||||
|
"H5-pc": {
|
||||||
|
"Chrome": "u",
|
||||||
|
"IE": "u",
|
||||||
|
"Edge": "u",
|
||||||
|
"Firefox": "u",
|
||||||
|
"Safari": "u"
|
||||||
|
},
|
||||||
|
"小程序": {
|
||||||
|
"微信": "u",
|
||||||
|
"阿里": "u",
|
||||||
|
"百度": "u",
|
||||||
|
"字节跳动": "u",
|
||||||
|
"QQ": "u",
|
||||||
|
"钉钉": "u",
|
||||||
|
"快手": "u",
|
||||||
|
"飞书": "u",
|
||||||
|
"京东": "u"
|
||||||
|
},
|
||||||
|
"快应用": {
|
||||||
|
"华为": "u",
|
||||||
|
"联盟": "u"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
# uni-id-common
|
||||||
|
|
||||||
|
文档请参考:[uni-id-common](https://uniapp.dcloud.net.cn/uniCloud/uni-id-common.html)
|
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"name": "uni-id-common",
|
||||||
|
"version": "1.0.17",
|
||||||
|
"description": "uni-id token生成、校验、刷新",
|
||||||
|
"main": "index.js",
|
||||||
|
"homepage": "https://uniapp.dcloud.io/uniCloud/uni-id-common.html",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://gitee.com/dcloud/uni-id-common.git"
|
||||||
|
},
|
||||||
|
"author": "DCloud",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"uni-config-center": "file:../../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="io.dcloud.uts.permissionrequest">
|
||||||
|
</manifest>
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"minSdkVersion": "21"
|
||||||
|
}
|
@ -0,0 +1,115 @@
|
|||||||
|
import { UnregisterRequestPermissionTipsListener, RegisterRequestPermissionTipsListener, RequestPermissionTipsListener, SetRequestPermissionTips } from "../interface";
|
||||||
|
import RelativeLayout from 'android.widget.RelativeLayout';
|
||||||
|
import LinearLayout from 'android.widget.LinearLayout';
|
||||||
|
import Color from 'android.graphics.Color';
|
||||||
|
import TextView from 'android.widget.TextView';
|
||||||
|
import ViewGroup from 'android.view.ViewGroup';
|
||||||
|
import Activity from 'android.app.Activity';
|
||||||
|
import HashMap from 'java.util.HashMap';
|
||||||
|
import AnimationUtils from 'android.view.animation.AnimationUtils';
|
||||||
|
import R from 'io.dcloud.uts.permissionrequest.R'
|
||||||
|
import Html from 'android.text.Html';
|
||||||
|
import View from 'android.view.View';
|
||||||
|
|
||||||
|
let PermissionTipsView : View | null = null
|
||||||
|
let permissionTips : HashMap<String, String> = new HashMap<String, String>()
|
||||||
|
var permissionListener : RequestPermissionListener | null = null
|
||||||
|
var listener : RequestPermissionTipsListener | null = null
|
||||||
|
export const unregisterRequestPermissionTipsListener : UnregisterRequestPermissionTipsListener = (l : RequestPermissionTipsListener | null) => {
|
||||||
|
listener = null;
|
||||||
|
if (permissionListener != null) {
|
||||||
|
permissionListener!.stop()
|
||||||
|
permissionListener = null
|
||||||
|
}
|
||||||
|
if (PermissionTipsView != null) {
|
||||||
|
if (PermissionTipsView!.getParent() != null) {
|
||||||
|
PermissionTipsView!.setAnimation(null);
|
||||||
|
((PermissionTipsView!.getParent()) as ViewGroup).removeView(PermissionTipsView)
|
||||||
|
}
|
||||||
|
PermissionTipsView = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const registerRequestPermissionTipsListener : RegisterRequestPermissionTipsListener = (l : RequestPermissionTipsListener | null) => {
|
||||||
|
listener = l
|
||||||
|
if (permissionListener == null) {
|
||||||
|
permissionListener = uni.createRequestPermissionListener()
|
||||||
|
permissionListener!.onRequest((permissions : Array<string>) => {
|
||||||
|
if (listener != null)
|
||||||
|
listener!.onRequest?.invoke(permissions)
|
||||||
|
})
|
||||||
|
permissionListener!.onConfirm((permissions : Array<string>) => {
|
||||||
|
let activity = UTSAndroid.getUniActivity()!
|
||||||
|
if (PermissionTipsView != null && PermissionTipsView!.getParent() != null) {
|
||||||
|
PermissionTipsView!.setAnimation(null);
|
||||||
|
((PermissionTipsView!.getParent()) as ViewGroup).removeView(PermissionTipsView)
|
||||||
|
}
|
||||||
|
if (permissions.length > 0) {
|
||||||
|
PermissionTipsView = createPermissionWindow(activity, permissions);
|
||||||
|
if (PermissionTipsView != null) {
|
||||||
|
(activity.findViewById(android.R.id.content) as ViewGroup).addView(PermissionTipsView!)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (listener != null)
|
||||||
|
listener!.onConfirm?.invoke(permissions)
|
||||||
|
|
||||||
|
})
|
||||||
|
permissionListener!.onComplete((permissions : Array<string>) => {
|
||||||
|
// clearTimeout(timeoutRequestId)
|
||||||
|
let activity = UTSAndroid.getUniActivity()!
|
||||||
|
if (PermissionTipsView != null) {
|
||||||
|
PermissionTipsView!.setAnimation(AnimationUtils.loadAnimation(activity, R.anim.popupwindow_exit));
|
||||||
|
((PermissionTipsView!.getParent()) as ViewGroup).removeView(PermissionTipsView!)
|
||||||
|
PermissionTipsView = null
|
||||||
|
}
|
||||||
|
if (listener != null) {
|
||||||
|
var permissionStatus = {}
|
||||||
|
for (var p in permissions) {
|
||||||
|
permissionStatus[p] = UTSAndroid.checkSystemPermissionGranted(UTSAndroid.getUniActivity()!, [p]) ? "grant" : "denied"
|
||||||
|
}
|
||||||
|
listener!.onComplete?.invoke(permissionStatus)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const setRequestPermissionTips : SetRequestPermissionTips = (tips : UTSJSONObject) => {
|
||||||
|
permissionTips.clear()
|
||||||
|
for (var k in tips) {
|
||||||
|
permissionTips.put(k, tips[k] != null ? tips[k].toString() : "")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function createPermissionWindow(activity : Activity, permissions : Array<string>) : ViewGroup | null {
|
||||||
|
let rootView = new RelativeLayout(activity);
|
||||||
|
rootView.setBackgroundColor(Color.TRANSPARENT);
|
||||||
|
let backgroundView = new LinearLayout(activity);
|
||||||
|
backgroundView.setPadding(30, 0, 30, 30);
|
||||||
|
backgroundView.setOrientation(1)
|
||||||
|
backgroundView.setBackgroundResource(R.drawable.dcloud_permission_background);
|
||||||
|
let permissionTipsList : Array<string> = new Array<string>()
|
||||||
|
for (var p in permissions) {
|
||||||
|
if (permissionTips.containsKey(p) && permissionTipsList.indexOf(permissionTips.get(p)) == -1) {
|
||||||
|
permissionTipsList.push(permissionTips.get(p)!)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (var p in permissionTipsList) {
|
||||||
|
let text = new TextView(activity);
|
||||||
|
text.setText(Html.fromHtml(p, Html.FROM_HTML_SEPARATOR_LINE_BREAK_HEADING))
|
||||||
|
text.setPadding(0, 30, 0, 0)
|
||||||
|
text.setTextSize((5 * UTSAndroid.getScale()).toFloat())
|
||||||
|
text.setTextColor(Color.BLACK)
|
||||||
|
backgroundView.addView(text)
|
||||||
|
}
|
||||||
|
if (backgroundView.getChildCount() == 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
let rll = new RelativeLayout.LayoutParams(-1, -2)
|
||||||
|
rll.topMargin = (UTSAndroid.getStatusBarHeight() * UTSAndroid.getScale()).toInt();
|
||||||
|
rll.leftMargin = 30;
|
||||||
|
rll.rightMargin = 30;
|
||||||
|
rll.bottomMargin = 30;
|
||||||
|
rootView.addView(backgroundView, rll)
|
||||||
|
rootView.setAnimation(AnimationUtils.loadAnimation(activity, R.anim.popupwindow_enter));
|
||||||
|
return rootView;
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="200"
|
||||||
|
android:fromYDelta="-100%"
|
||||||
|
android:toYDelta="0" >
|
||||||
|
</translate>
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<translate xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:duration="200"
|
||||||
|
android:fromYDelta="0"
|
||||||
|
android:toYDelta="-100%" />
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
|
<corners android:radius="8dp" />
|
||||||
|
<!-- <stroke android:color="@color/black" android:width="2dp"/>-->
|
||||||
|
<solid android:color="#ffffff"/>
|
||||||
|
</shape>
|
@ -0,0 +1,19 @@
|
|||||||
|
export type RequestPermissionTipsListener = {
|
||||||
|
onRequest ?: ((permissions : Array<string>) => void) | null,
|
||||||
|
onConfirm ?: ((permission : Array<string>) => void) | null,
|
||||||
|
onComplete ?: ((permissions : UTSJSONObject) => void) | null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export type RegisterRequestPermissionTipsListener = (listener : RequestPermissionTipsListener | null) => void
|
||||||
|
export type UnregisterRequestPermissionTipsListener = (listener : RequestPermissionTipsListener | null) => void
|
||||||
|
export type SetRequestPermissionTips = (tips : UTSJSONObject) => void
|
||||||
|
|
||||||
|
export interface Uni {
|
||||||
|
|
||||||
|
registerRequestPermissionTipsListener : RegisterRequestPermissionTipsListener,
|
||||||
|
|
||||||
|
unregisterRequestPermissionTipsListener : UnregisterRequestPermissionTipsListener
|
||||||
|
|
||||||
|
setRequestPermissionTips : SetRequestPermissionTips
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
[appleAppid]
|
||||||
|
appleAppid=com.fonchain.attendance
|
||||||
|
|
||||||
|
[appstore]
|
||||||
|
appstore=abc81314b1cb2f4f095fbca455487458
|
||||||
|
|
||||||
|
[iosStyle]
|
||||||
|
iosStyle=
|
||||||
|
|
||||||
|
[universalLinks]
|
||||||
|
universalLinks=
|
||||||
|
spaceid=
|
||||||
|
|
||||||
|
[universalLinks_qq]
|
||||||
|
universalLinks_qq=
|
||||||
|
spaceid_qq=
|
||||||
|
|
||||||
|
[universalLinks_weibo]
|
||||||
|
universalLinks_weibo=
|
||||||
|
spaceid_weibo=
|
||||||
|
|
||||||
|
[iphone]
|
||||||
|
app%402x=e31f03f5b61f733fde613928d833f792
|
||||||
|
app%403x=01152a0d424507499d4795a356238bbf
|
||||||
|
notification%402x=e490d08ae23a63d00242987afaa0a5c6
|
||||||
|
notification%403x=a17bd2a164932fa951b325bc6cc338ee
|
||||||
|
settings%402x=09b612b761a570fc9165d9cb3d3fdc85
|
||||||
|
settings%403x=5e112954602bfd705d66fb8565541ee5
|
||||||
|
spotlight%402x=67cca23a2591dc1fd39ae11e1c2a0b81
|
||||||
|
spotlight%403x=e31f03f5b61f733fde613928d833f792
|
@ -0,0 +1,3 @@
|
|||||||
|
iosProfile=D:/WebstormProjects/oa-app/common/updown/oa_dis_20231130.mobileprovision
|
||||||
|
ioscertFile=D:/WebstormProjects/oa-app/common/updown/20230714_dis.p12
|
||||||
|
ioscertPassword=uecGPNMV8s+KLcdEgW/MRg==
|
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"version": "1",
|
||||||
|
"env": {
|
||||||
|
"compilerVersion": "4.15.2024050802"
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"utssdk/app-android/index.uts": {
|
||||||
|
"md5": "e8f2ac1b4ac0e64a05b903015cf803be"
|
||||||
|
},
|
||||||
|
"utssdk/interface.uts": {
|
||||||
|
"md5": "9ea37d02881a45c98410e9e913811526"
|
||||||
|
},
|
||||||
|
"package.json": {
|
||||||
|
"md5": "46557c5b31ca9d13fda95139225a60c8"
|
||||||
|
},
|
||||||
|
"utssdk/app-android/AndroidManifest.xml": {
|
||||||
|
"md5": "cf857a1b6e0cbb80c543ae9a8faf2d40"
|
||||||
|
},
|
||||||
|
"utssdk/app-android/config.json": {
|
||||||
|
"md5": "643b2980a54aaca20ecd07d593fb4099"
|
||||||
|
},
|
||||||
|
"utssdk/app-android/res/anim/popupwindow_enter.xml": {
|
||||||
|
"md5": "f198c859de0d759ada725448d27ad2d5"
|
||||||
|
},
|
||||||
|
"utssdk/app-android/res/anim/popupwindow_exit.xml": {
|
||||||
|
"md5": "d10997057313c1750142f37f2016301b"
|
||||||
|
},
|
||||||
|
"utssdk/app-android/res/drawable/dcloud_permission_background.xml": {
|
||||||
|
"md5": "2c0da97c93a16d13d99686918165f390"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
{"dir":"/Users/seaman/srv/bdserver.dcloud.net.cn/service/storage/app/package/IOS/queue/5e3149e0-2222-11ef-99a5-7f806ab2dc79/wgtRoot/__UNI__4796942/"}
|
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 9.7 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 2.0 KiB |
@ -0,0 +1,23 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>View</title>
|
||||||
|
<link rel="stylesheet" href="app.css" />
|
||||||
|
<script>var __uniConfig = {"globalStyle":{},"darkmode":false}</script>
|
||||||
|
<script>
|
||||||
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||||
|
CSS.supports('top: constant(a)'))
|
||||||
|
document.write(
|
||||||
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script src="uni-app-view.umd.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"version" : "1",
|
||||||
|
"prompt" : "template",
|
||||||
|
"title" : "服务协议和隐私政策",
|
||||||
|
"message" : " 请你务必审慎阅读、充分理解“平台服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=\"https://oa.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
|
||||||
|
"buttonAccept" : "同意并接受",
|
||||||
|
"buttonRefuse" : "不同意",
|
||||||
|
"second" : {
|
||||||
|
"title" : "确认提示",
|
||||||
|
"message" : " 进入应用前,你需先同意<a href=\"https://oa.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>,否则将退出应用。",
|
||||||
|
"buttonAccept" : "同意并继续",
|
||||||
|
"buttonRefuse" : "退出应用"
|
||||||
|
},
|
||||||
|
"disagreeMode" : {
|
||||||
|
"support" : false,
|
||||||
|
"loadNativePlugins" : false,
|
||||||
|
"visitorEntry" : false,
|
||||||
|
"showAlways" : false
|
||||||
|
},
|
||||||
|
"styles" : {
|
||||||
|
"backgroundColor" : "#ffffff",
|
||||||
|
"borderRadius" : "5px",
|
||||||
|
"title" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonAccept" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonRefuse" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonVisitor" : {
|
||||||
|
"color" : "#009"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
;(function(){
|
||||||
|
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
||||||
|
const __uniConfig = {"pages":[],"globalStyle":{"navigationBar":{},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"oa考勤系统","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.15","entryPagePath":"pages/index/index","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"locales":{},"darkmode":false,"themeConfig":{}};
|
||||||
|
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"titleNView":false,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
|
||||||
|
__uniConfig.styles=[];//styles
|
||||||
|
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||||
|
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||||
|
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:16})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:u,window:u,document:u,frames:u,self:u,location:u,navigator:u,localStorage:u,history:u,Caches:u,screen:u,alert:u,confirm:u,prompt:u,fetch:u,XMLHttpRequest:u,WebSocket:u,webkit:u,print:u}}}});
|
||||||
|
})();
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
(function(){})();
|
@ -1,2 +1,5 @@
|
|||||||
|
Promise.resolve("./pages/index/index.js").then((res) => {
|
||||||
|
res.length;
|
||||||
|
});
|
||||||
Promise.resolve("./app.css.js").then(() => {
|
Promise.resolve("./app.css.js").then(() => {
|
||||||
});
|
});
|
||||||
|
@ -0,0 +1,102 @@
|
|||||||
|
import { ref, openBlock, createElementBlock, createElementVNode, normalizeStyle, unref } from "vue";
|
||||||
|
function formatAppLog(type, filename, ...args) {
|
||||||
|
if (uni.__log__) {
|
||||||
|
uni.__log__(type, filename, ...args);
|
||||||
|
} else {
|
||||||
|
console[type].apply(console, [...args, filename]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const env = "dev";
|
||||||
|
const configs = {
|
||||||
|
dev: {
|
||||||
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
||||||
|
h5Url: "http://192.168.88.35:8080/"
|
||||||
|
},
|
||||||
|
test: {
|
||||||
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
||||||
|
h5Url: "http://172.16.100.93:8041/#/"
|
||||||
|
},
|
||||||
|
prod: {
|
||||||
|
apiBaseUrl: "https://oa.szjixun.cn/api",
|
||||||
|
h5Url: "https://oa.szjixun.cn/#/"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const config = configs[env];
|
||||||
|
const sendWebWiew = (refValue, paramValue, callName = "onReceive") => {
|
||||||
|
if (!refValue) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:3", "evalJs: The reference to the webview is not provided or is null.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (typeof refValue.evalJs !== "function") {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:8", "evalJs: The evalJs method is not available on the provided reference.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const jsonString = JSON.stringify(paramValue);
|
||||||
|
const jsCode = `window.${callName}(${jsonString})`;
|
||||||
|
refValue.evalJs(jsCode);
|
||||||
|
} catch (error) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:18", "evalJs: An error occurred while trying to stringify the parameter value or while invoking evalJs.", error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const receiveWebView = (e) => {
|
||||||
|
return e.detail.data[0];
|
||||||
|
};
|
||||||
|
const _style_0 = { "content": { "": { "display": "flex", "flex": 1 } } };
|
||||||
|
const _export_sfc = (sfc, props) => {
|
||||||
|
const target = sfc.__vccOpts || sfc;
|
||||||
|
for (const [key, val] of props) {
|
||||||
|
target[key] = val;
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
const _sfc_main = {
|
||||||
|
__name: "index",
|
||||||
|
setup(__props) {
|
||||||
|
const webViewRef = ref(null);
|
||||||
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
const webLoad = (e) => {
|
||||||
|
const m = receiveWebView(e);
|
||||||
|
switch (m.action) {
|
||||||
|
case "load-complete": {
|
||||||
|
const systemInfo2 = uni.getSystemInfoSync();
|
||||||
|
uni.getLocation({
|
||||||
|
type: "gcj02",
|
||||||
|
geocode: false,
|
||||||
|
isHighAccuracy: false,
|
||||||
|
success: async (res) => {
|
||||||
|
sendWebWiew(webViewRef.value, { ...res, systemInfo: systemInfo2 });
|
||||||
|
},
|
||||||
|
fail: (e2) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:38", e2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return openBlock(), createElementBlock("scroll-view", {
|
||||||
|
scrollY: true,
|
||||||
|
showScrollbar: true,
|
||||||
|
enableBackToTop: true,
|
||||||
|
bubble: "true",
|
||||||
|
style: { flexDirection: "column" }
|
||||||
|
}, [
|
||||||
|
createElementVNode("div", { class: "content" }, [
|
||||||
|
createElementVNode("u-web-view", {
|
||||||
|
class: "webview",
|
||||||
|
"on:onPostMessage": webLoad,
|
||||||
|
style: normalizeStyle({ height: `${unref(systemInfo).windowHeight}px`, width: `${unref(systemInfo).windowWidth}` }),
|
||||||
|
ref_key: "webViewRef",
|
||||||
|
ref: webViewRef,
|
||||||
|
src: unref(config).h5Url
|
||||||
|
}, null, 44, ["src"])
|
||||||
|
])
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["styles", [_style_0]]]);
|
||||||
|
export {
|
||||||
|
index as default
|
||||||
|
};
|
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"version" : "1",
|
||||||
|
"prompt" : "template",
|
||||||
|
"title" : "服务协议和隐私政策",
|
||||||
|
"message" : " 请你务必审慎阅读、充分理解“平台服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=\"https://oa.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
|
||||||
|
"buttonAccept" : "同意并接受",
|
||||||
|
"buttonRefuse" : "不同意",
|
||||||
|
"second" : {
|
||||||
|
"title" : "确认提示",
|
||||||
|
"message" : " 进入应用前,你需先同意<a href=\"https://oa.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>,否则将退出应用。",
|
||||||
|
"buttonAccept" : "同意并继续",
|
||||||
|
"buttonRefuse" : "退出应用"
|
||||||
|
},
|
||||||
|
"disagreeMode" : {
|
||||||
|
"support" : false,
|
||||||
|
"loadNativePlugins" : false,
|
||||||
|
"visitorEntry" : false,
|
||||||
|
"showAlways" : false
|
||||||
|
},
|
||||||
|
"styles" : {
|
||||||
|
"backgroundColor" : "#ffffff",
|
||||||
|
"borderRadius" : "5px",
|
||||||
|
"title" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonAccept" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonRefuse" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonVisitor" : {
|
||||||
|
"color" : "#009"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
"use weex:vue";
|
||||||
|
|
||||||
|
if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
|
||||||
|
Promise.prototype.finally = function(callback) {
|
||||||
|
const promise = this.constructor
|
||||||
|
return this.then(
|
||||||
|
value => promise.resolve(callback()).then(() => value),
|
||||||
|
reason => promise.resolve(callback()).then(() => {
|
||||||
|
throw reason
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
|
const global = uni.requireGlobal()
|
||||||
|
ArrayBuffer = global.ArrayBuffer
|
||||||
|
Int8Array = global.Int8Array
|
||||||
|
Uint8Array = global.Uint8Array
|
||||||
|
Uint8ClampedArray = global.Uint8ClampedArray
|
||||||
|
Int16Array = global.Int16Array
|
||||||
|
Uint16Array = global.Uint16Array
|
||||||
|
Int32Array = global.Int32Array
|
||||||
|
Uint32Array = global.Uint32Array
|
||||||
|
Float32Array = global.Float32Array
|
||||||
|
Float64Array = global.Float64Array
|
||||||
|
BigInt64Array = global.BigInt64Array
|
||||||
|
BigUint64Array = global.BigUint64Array
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
(()=>{var S=Object.create;var _=Object.defineProperty,j=Object.defineProperties,J=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols,U=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var h=(t,e,o)=>e in t?_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,g=(t,e)=>{for(var o in e||(e={}))y.call(e,o)&&h(t,o,e[o]);if(w)for(var o of w(e))A.call(e,o)&&h(t,o,e[o]);return t},v=(t,e)=>j(t,k(e));var B=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var $=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of I(e))!y.call(t,s)&&s!==o&&_(t,s,{get:()=>e[s],enumerable:!(n=J(e,s))||n.enumerable});return t};var z=(t,e,o)=>(o=t!=null?S(U(t)):{},$(e||!t||!t.__esModule?_(o,"default",{value:t,enumerable:!0}):o,t));var m=(t,e,o)=>new Promise((n,s)=>{var u=c=>{try{i(o.next(c))}catch(d){s(d)}},p=c=>{try{i(o.throw(c))}catch(d){s(d)}},i=c=>c.done?n(c.value):Promise.resolve(c.value).then(u,p);i((o=o.apply(t,e)).next())});var b=B((D,x)=>{x.exports=Vue});var r=z(b());function a(t,e,...o){uni.__log__?uni.__log__(t,e,...o):console[t].apply(console,[...o,e])}var T="dev",V={dev:{apiBaseUrl:"https://warehouse.szjixun.cn/oa_backend",h5Url:"http://192.168.88.35:8080/"},test:{apiBaseUrl:"https://warehouse.szjixun.cn/oa_backend",h5Url:"http://172.16.100.93:8041/#/"},prod:{apiBaseUrl:"https://oa.szjixun.cn/api",h5Url:"https://oa.szjixun.cn/#/"}},W=V[T],C=(t,e,o="onReceive")=>{if(!t){a("error","at utils/communicate/index.js:3","evalJs: The reference to the webview is not provided or is null.");return}if(typeof t.evalJs!="function"){a("error","at utils/communicate/index.js:8","evalJs: The evalJs method is not available on the provided reference.");return}try{let n=JSON.stringify(e),s=`window.${o}(${n})`;t.evalJs(s)}catch(n){a("error","at utils/communicate/index.js:18","evalJs: An error occurred while trying to stringify the parameter value or while invoking evalJs.",n)}},L=t=>t.detail.data[0],N={content:{"":{display:"flex",flex:1}}},O=(t,e)=>{let o=t.__vccOpts||t;for(let[n,s]of e)o[n]=s;return o},P={__name:"index",setup(t){let e=(0,r.ref)(null),o=uni.getSystemInfoSync(),n=s=>{switch(L(s).action){case"load-complete":{let p=uni.getSystemInfoSync();uni.getLocation({type:"gcj02",geocode:!1,isHighAccuracy:!1,success:i=>m(this,null,function*(){C(e.value,v(g({},i),{systemInfo:p}))}),fail:i=>{a("log","at pages/index/index.nvue:38",i)}})}}};return(s,u)=>((0,r.openBlock)(),(0,r.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,r.createElementVNode)("div",{class:"content"},[(0,r.createElementVNode)("u-web-view",{class:"webview","on:onPostMessage":n,style:(0,r.normalizeStyle)({height:`${(0,r.unref)(o).windowHeight}px`,width:`${(0,r.unref)(o).windowWidth}`}),ref_key:"webViewRef",ref:e,src:(0,r.unref)(W).h5Url},null,44,["src"])])]))}},l=O(P,[["styles",[N]]]);var f=plus.webview.currentWebview();if(f){let t=parseInt(f.id),e="pages/index/index",o={};try{o=JSON.parse(f.__query__)}catch(s){}l.mpType="page";let n=Vue.createPageApp(l,{$store:getApp({allowDefault:!0}).$store,__pageId:t,__pagePath:e,__pageQuery:o});n.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...l.styles||[]])),n.mount("#root")}})();
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"hash": "fd84dcc1",
|
||||||
|
"configHash": "8979c8e1",
|
||||||
|
"lockfileHash": "e3b0c442",
|
||||||
|
"browserHash": "4c910bc0",
|
||||||
|
"optimized": {},
|
||||||
|
"chunks": {}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
@ -1,2 +1,5 @@
|
|||||||
|
Promise.resolve("./pages/index/index.js").then((res) => {
|
||||||
|
res.length;
|
||||||
|
});
|
||||||
Promise.resolve("./app.css.js").then(() => {
|
Promise.resolve("./app.css.js").then(() => {
|
||||||
});
|
});
|
||||||
|
@ -0,0 +1,102 @@
|
|||||||
|
import { ref, openBlock, createElementBlock, createElementVNode, normalizeStyle, unref } from "vue";
|
||||||
|
function formatAppLog(type, filename, ...args) {
|
||||||
|
if (uni.__log__) {
|
||||||
|
uni.__log__(type, filename, ...args);
|
||||||
|
} else {
|
||||||
|
console[type].apply(console, [...args, filename]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const env = "dev";
|
||||||
|
const configs = {
|
||||||
|
dev: {
|
||||||
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
||||||
|
h5Url: "http://192.168.88.35:8080/"
|
||||||
|
},
|
||||||
|
test: {
|
||||||
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
||||||
|
h5Url: "http://172.16.100.93:8041/#/"
|
||||||
|
},
|
||||||
|
prod: {
|
||||||
|
apiBaseUrl: "https://oa.szjixun.cn/api",
|
||||||
|
h5Url: "https://oa.szjixun.cn/#/"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const config = configs[env];
|
||||||
|
const sendWebWiew = (refValue, paramValue, callName = "onReceive") => {
|
||||||
|
if (!refValue) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:3", "evalJs: The reference to the webview is not provided or is null.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (typeof refValue.evalJs !== "function") {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:8", "evalJs: The evalJs method is not available on the provided reference.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const jsonString = JSON.stringify(paramValue);
|
||||||
|
const jsCode = `window.${callName}(${jsonString})`;
|
||||||
|
refValue.evalJs(jsCode);
|
||||||
|
} catch (error) {
|
||||||
|
formatAppLog("error", "at utils/communicate/index.js:18", "evalJs: An error occurred while trying to stringify the parameter value or while invoking evalJs.", error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const receiveWebView = (e) => {
|
||||||
|
return e.detail.data[0];
|
||||||
|
};
|
||||||
|
const _style_0 = { "content": { "": { "display": "flex", "flex": 1 } } };
|
||||||
|
const _export_sfc = (sfc, props) => {
|
||||||
|
const target = sfc.__vccOpts || sfc;
|
||||||
|
for (const [key, val] of props) {
|
||||||
|
target[key] = val;
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
const _sfc_main = {
|
||||||
|
__name: "index",
|
||||||
|
setup(__props) {
|
||||||
|
const webViewRef = ref(null);
|
||||||
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
const webLoad = (e) => {
|
||||||
|
const m = receiveWebView(e);
|
||||||
|
switch (m.action) {
|
||||||
|
case "load-complete": {
|
||||||
|
const systemInfo2 = uni.getSystemInfoSync();
|
||||||
|
uni.getLocation({
|
||||||
|
type: "gcj02",
|
||||||
|
geocode: false,
|
||||||
|
isHighAccuracy: false,
|
||||||
|
success: async (res) => {
|
||||||
|
sendWebWiew(webViewRef.value, { ...res, systemInfo: systemInfo2 });
|
||||||
|
},
|
||||||
|
fail: (e2) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:38", e2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return (_ctx, _cache) => {
|
||||||
|
return openBlock(), createElementBlock("scroll-view", {
|
||||||
|
scrollY: true,
|
||||||
|
showScrollbar: true,
|
||||||
|
enableBackToTop: true,
|
||||||
|
bubble: "true",
|
||||||
|
style: { flexDirection: "column" }
|
||||||
|
}, [
|
||||||
|
createElementVNode("div", { class: "content" }, [
|
||||||
|
createElementVNode("u-web-view", {
|
||||||
|
class: "webview",
|
||||||
|
"on:onPostMessage": webLoad,
|
||||||
|
style: normalizeStyle({ height: `${unref(systemInfo).windowHeight}px`, width: `${unref(systemInfo).windowWidth}` }),
|
||||||
|
ref_key: "webViewRef",
|
||||||
|
ref: webViewRef,
|
||||||
|
src: unref(config).h5Url
|
||||||
|
}, null, 44, ["src"])
|
||||||
|
])
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["styles", [_style_0]], ["__file", "D:/WebstormProjects/oa-base/pages/index/index.nvue"]]);
|
||||||
|
export {
|
||||||
|
index as default
|
||||||
|
};
|
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"version" : "1",
|
||||||
|
"prompt" : "template",
|
||||||
|
"title" : "服务协议和隐私政策",
|
||||||
|
"message" : " 请你务必审慎阅读、充分理解“平台服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=\"https://oa.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
|
||||||
|
"buttonAccept" : "同意并接受",
|
||||||
|
"buttonRefuse" : "不同意",
|
||||||
|
"second" : {
|
||||||
|
"title" : "确认提示",
|
||||||
|
"message" : " 进入应用前,你需先同意<a href=\"https://oa.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>,否则将退出应用。",
|
||||||
|
"buttonAccept" : "同意并继续",
|
||||||
|
"buttonRefuse" : "退出应用"
|
||||||
|
},
|
||||||
|
"disagreeMode" : {
|
||||||
|
"support" : false,
|
||||||
|
"loadNativePlugins" : false,
|
||||||
|
"visitorEntry" : false,
|
||||||
|
"showAlways" : false
|
||||||
|
},
|
||||||
|
"styles" : {
|
||||||
|
"backgroundColor" : "#ffffff",
|
||||||
|
"borderRadius" : "5px",
|
||||||
|
"title" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonAccept" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonRefuse" : {
|
||||||
|
"color" : "#000"
|
||||||
|
},
|
||||||
|
"buttonVisitor" : {
|
||||||
|
"color" : "#009"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|