1
@ -1,25 +0,0 @@
|
|||||||
/* 非空验证 */
|
|
||||||
const vefEmpty = (key,msg) => {
|
|
||||||
if (key === '' || key === undefined || key === null) {
|
|
||||||
uni.showToast({
|
|
||||||
title: msg,
|
|
||||||
duration: 2000,
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
return false
|
|
||||||
} else {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const addZero = (num) => {
|
|
||||||
if (num < 10) {
|
|
||||||
num = `0${num}`;
|
|
||||||
}
|
|
||||||
return num;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default {
|
|
||||||
vefEmpty,
|
|
||||||
addZero
|
|
||||||
}
|
|
@ -1,12 +1,16 @@
|
|||||||
const env = 'prod';
|
const env = 'dev';
|
||||||
const configs = {
|
const configs = {
|
||||||
|
LocalTest: {
|
||||||
|
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
||||||
|
h5Url:'http://192.168.88.53:8080/#/'
|
||||||
|
},
|
||||||
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.50:8080/#/'
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
|
||||||
h5Url:'http://172.16.100.93:8041/#/'
|
h5Url:'http://114.218.158.24:8042/#/'
|
||||||
},
|
},
|
||||||
prod: {
|
prod: {
|
||||||
apiBaseUrl: 'https://oa-a.szjixun.cn/api',
|
apiBaseUrl: 'https://oa-a.szjixun.cn/api',
|
||||||
|
1
files/readme.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name" : "oa考勤系统",
|
"name" : "OA系统",
|
||||||
"appid" : "__UNI__70C49A3",
|
"appid" : "__UNI__4796942",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.1.5",
|
"versionName" : "2.0.1",
|
||||||
"versionCode" : 115,
|
"versionCode" : 201,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
@ -19,7 +19,8 @@
|
|||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules" : {
|
"modules" : {
|
||||||
"Camera" : {},
|
"Camera" : {},
|
||||||
"Geolocation" : {}
|
"Geolocation" : {},
|
||||||
|
"Push" : {}
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute" : {
|
"distribute" : {
|
||||||
@ -76,6 +77,15 @@
|
|||||||
"appid" : "",
|
"appid" : "",
|
||||||
"UniversalLinks" : ""
|
"UniversalLinks" : ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"push" : {
|
||||||
|
"unipush" : {
|
||||||
|
"version" : "2",
|
||||||
|
"offline" : true,
|
||||||
|
"hms" : {},
|
||||||
|
"oppo" : {},
|
||||||
|
"vivo" : {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
@ -111,7 +121,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"splashscreen" : {
|
"splashscreen" : {
|
||||||
"useOriginalMsgbox" : true
|
"useOriginalMsgbox" : true,
|
||||||
|
"androidStyle" : "default",
|
||||||
|
"android" : {
|
||||||
|
"hdpi" : "static/image/sy.png",
|
||||||
|
"xhdpi" : "static/image/sy.png",
|
||||||
|
"xxhdpi" : "static/image/sy.png"
|
||||||
|
},
|
||||||
|
"iosStyle" : "storyboard",
|
||||||
|
"ios" : {
|
||||||
|
"storyboard" : "files/CustomStoryboard.zip"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import config from "../../config";
|
import config from "../../config";
|
||||||
import { onShow, onHide } from "@dcloudio/uni-app";
|
import { onShow, onHide } from "@dcloudio/uni-app";
|
||||||
/* import {sendWebWiew,receiveWebView} from "@/utils/communicate"; */
|
|
||||||
/* import location from "../../utils/location"; */
|
/* import location from "../../utils/location"; */
|
||||||
/* import {
|
/* import {
|
||||||
registerRequestPermissionTipsListener,
|
registerRequestPermissionTipsListener,
|
||||||
@ -59,20 +58,24 @@ const networkStatusChange=(res)=>{
|
|||||||
const webViewObj=ref(null)
|
const webViewObj=ref(null)
|
||||||
onShow(()=>{
|
onShow(()=>{
|
||||||
uni.onNetworkStatusChange(networkStatusChange);
|
uni.onNetworkStatusChange(networkStatusChange);
|
||||||
|
plus.push.getClientInfoAsync((info) => {
|
||||||
|
console.log('获取CID',info.clientid)
|
||||||
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
onHide(()=>{
|
onHide(()=>{
|
||||||
uni.offNetworkStatusChange(networkStatusChange)
|
uni.offNetworkStatusChange(networkStatusChange)
|
||||||
})
|
})
|
||||||
const webLoad=(e)=>{
|
const webLoad=(e)=>{
|
||||||
|
|
||||||
const h5SendString=e.detail.data?.[0]?.action
|
const h5SendString=e.detail.data?.[0]?.action
|
||||||
switch (h5SendString) {
|
switch (h5SendString) {
|
||||||
//webview初始化加载完成
|
//webview初始化加载完成
|
||||||
case 'load-complete':{
|
case 'load-complete':{
|
||||||
|
|
||||||
const {statusBarHeight} = uni.getSystemInfoSync()
|
const {statusBarHeight} = uni.getSystemInfoSync()
|
||||||
const currentWebview = getCurrentPages().pop().$getAppWebview()
|
const currentWebview = getCurrentPages().pop().$getAppWebview()
|
||||||
webViewObj.value=currentWebview.children()[0]
|
webViewObj.value=currentWebview.children()[0]
|
||||||
/* webViewObj.value.evalJS(`window.onReceive(${jsonString})`) */
|
|
||||||
webViewObj.value.setStyle({
|
webViewObj.value.setStyle({
|
||||||
top: statusBarHeight,
|
top: statusBarHeight,
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
uni.addInterceptor({
|
|
||||||
returnValue (res) {
|
|
||||||
if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
res.then((res) => res[0] ? reject(res[0]) : resolve(res[1]));
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
|
@ -1,24 +0,0 @@
|
|||||||
// 简单的使用示例
|
|
||||||
'use strict';
|
|
||||||
const uniPush = uniCloud.getPushManager({appId:"__UNI__4796942"}) //注意这里需要传入你的应用appId
|
|
||||||
exports.main = async (event, context) => {
|
|
||||||
return await uniPush.sendMessage({
|
|
||||||
"push_clientid": "7d4aa359cc4dbab39f4e5fcbc7106b31", //填写上一步在uni-app客户端获取到的客户端推送标识push_clientid
|
|
||||||
"force_notification":true, //填写true,客户端就会对在线消息自动创建“通知栏消息”。
|
|
||||||
"title": "通知栏显示的标题",
|
|
||||||
"content": "通知栏显示的内容",
|
|
||||||
"payload": {
|
|
||||||
"text":"体验一下uni-push2.0"
|
|
||||||
},
|
|
||||||
"options":{
|
|
||||||
"HW": {
|
|
||||||
// 值为int 类型。1 表示华为测试消息,华为每个应用每日可发送该测试消息500条。此 target_user_type 参数请勿发布至线上。
|
|
||||||
"/message/android/target_user_type":1
|
|
||||||
} ,
|
|
||||||
"VV": {
|
|
||||||
//值为int 类型。0 表示正式推送;1 表示测试推送,不填默认为0。此 pushMode 参数请勿发布至线上。
|
|
||||||
"/pushMode":1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "uni-cloud-push",
|
|
||||||
"dependencies": {},
|
|
||||||
"extensions": {
|
|
||||||
"uni-cloud-jql": {},
|
|
||||||
"uni-cloud-push": {}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
// 本文件用于,使用JQL语法操作项目关联的uniCloud空间的数据库,方便开发调试和远程数据库管理
|
|
||||||
// 编写clientDB的js API(也支持常规js语法,比如var),可以对云数据库进行增删改查操作。不支持uniCloud-db组件写法
|
|
||||||
// 可以全部运行,也可以选中部分代码运行。点击工具栏上的运行按钮或者按下【F5】键运行代码
|
|
||||||
// 如果文档中存在多条JQL语句,只有最后一条语句生效
|
|
||||||
// 如果混写了普通js,最后一条语句需是数据库操作语句
|
|
||||||
// 此处代码运行不受DB Schema的权限控制,移植代码到实际业务中注意在schema中配好permission
|
|
||||||
// 不支持clientDB的action
|
|
||||||
// 数据库查询有最大返回条数限制,详见:https://uniapp.dcloud.net.cn/uniCloud/cf-database.html#limit
|
|
||||||
// 详细JQL语法,请参考:https://uniapp.dcloud.net.cn/uniCloud/jql.html
|
|
||||||
|
|
||||||
// 下面示例查询uni-id-users表的所有数据
|
|
||||||
db.collection('uni-id-users').get();
|
|
20
unpackage/cache/appleConfig.ini
vendored
@ -2,10 +2,10 @@
|
|||||||
appleAppid=com.fonchain.attendance
|
appleAppid=com.fonchain.attendance
|
||||||
|
|
||||||
[appstore]
|
[appstore]
|
||||||
appstore=abc81314b1cb2f4f095fbca455487458
|
appstore=70695af7d1a0be20d1ba633bf98ec76e
|
||||||
|
|
||||||
[iosStyle]
|
[iosStyle]
|
||||||
iosStyle=
|
iosStyle=storyboard
|
||||||
|
|
||||||
[universalLinks]
|
[universalLinks]
|
||||||
universalLinks=
|
universalLinks=
|
||||||
@ -20,11 +20,11 @@ universalLinks_weibo=
|
|||||||
spaceid_weibo=
|
spaceid_weibo=
|
||||||
|
|
||||||
[iphone]
|
[iphone]
|
||||||
app%402x=e31f03f5b61f733fde613928d833f792
|
app%402x=efbc54bca681a68f352e357693dd0adc
|
||||||
app%403x=01152a0d424507499d4795a356238bbf
|
app%403x=07cc7fe6568729d8260f2ea5400cdb1c
|
||||||
notification%402x=e490d08ae23a63d00242987afaa0a5c6
|
notification%402x=6dab6ded0ca82920d3ae1cf618bc07ca
|
||||||
notification%403x=a17bd2a164932fa951b325bc6cc338ee
|
notification%403x=8b4f295e9144a8e30070a2b64c5593bb
|
||||||
settings%402x=09b612b761a570fc9165d9cb3d3fdc85
|
settings%402x=4291cf8010e170f83b69d002111be23b
|
||||||
settings%403x=5e112954602bfd705d66fb8565541ee5
|
settings%403x=94c1b4514f88af3d1cc1f496471c16b3
|
||||||
spotlight%402x=67cca23a2591dc1fd39ae11e1c2a0b81
|
spotlight%402x=7862b7a531181221e609694960355fd3
|
||||||
spotlight%403x=e31f03f5b61f733fde613928d833f792
|
spotlight%403x=efbc54bca681a68f352e357693dd0adc
|
||||||
|
4
unpackage/cache/certdataios
vendored
@ -1,3 +1,3 @@
|
|||||||
iosProfile=D:/WebstormProjects/oa-app/common/updown/oa_dis_20231130.mobileprovision
|
iosProfile=D:/WebstormProjects/oa-base/files/ios/oa_dev_20240104.mobileprovision
|
||||||
ioscertFile=D:/WebstormProjects/oa-app/common/updown/20230714_dis.p12
|
ioscertFile=D:/WebstormProjects/oa-base/files/ios/20230714_dev.p12
|
||||||
ioscertPassword=uecGPNMV8s+KLcdEgW/MRg==
|
ioscertPassword=uecGPNMV8s+KLcdEgW/MRg==
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +1 @@
|
|||||||
{"dir":"/Users/seaman/srv/bdserver.dcloud.net.cn/service/storage/app/package/IOS/queue/5e3149e0-2222-11ef-99a5-7f806ab2dc79/wgtRoot/__UNI__4796942/"}
|
{"dir":"/Users/seaman/srv/bdserver.dcloud.net.cn/service/storage/app/package/IOS/queue/b87978d0-38da-11ef-862d-698846b5d25e/wgtRoot/__UNI__4796942/"}
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 5.1 KiB |
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
;(function(){
|
;(function(){
|
||||||
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
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 __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"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));
|
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"uni-app","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.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.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()})}});
|
__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()})}});
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
;(function(){
|
;(function(){
|
||||||
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
||||||
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"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 __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"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,"navigationBar":{"titleText":"uni-app","style":"custom","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
|
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"uni-app","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.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.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()})}});
|
||||||
|
2
unpackage/dist/build/app-plus/app-service.js
vendored
30
unpackage/dist/build/app-plus/manifest.json
vendored
@ -4,11 +4,11 @@
|
|||||||
"iPhone",
|
"iPhone",
|
||||||
"iPad"
|
"iPad"
|
||||||
],
|
],
|
||||||
"id": "__UNI__70C49A3",
|
"id": "__UNI__4796942",
|
||||||
"name": "oa考勤系统",
|
"name": "OA系统",
|
||||||
"version": {
|
"version": {
|
||||||
"name": "1.1.5",
|
"name": "2.0.1",
|
||||||
"code": 115
|
"code": 201
|
||||||
},
|
},
|
||||||
"description": "",
|
"description": "",
|
||||||
"developer": {
|
"developer": {
|
||||||
@ -19,6 +19,7 @@
|
|||||||
"permissions": {
|
"permissions": {
|
||||||
"Camera": {},
|
"Camera": {},
|
||||||
"Geolocation": {},
|
"Geolocation": {},
|
||||||
|
"Push": {},
|
||||||
"UniNView": {
|
"UniNView": {
|
||||||
"description": "UniNView原生渲染"
|
"description": "UniNView原生渲染"
|
||||||
}
|
}
|
||||||
@ -77,7 +78,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"splashscreen": {
|
"splashscreen": {
|
||||||
"useOriginalMsgbox": true
|
"useOriginalMsgbox": true,
|
||||||
|
"androidStyle": "default",
|
||||||
|
"android": {
|
||||||
|
"hdpi": "static/image/sy.png",
|
||||||
|
"xhdpi": "static/image/sy.png",
|
||||||
|
"xxhdpi": "static/image/sy.png"
|
||||||
|
},
|
||||||
|
"iosStyle": "storyboard",
|
||||||
|
"ios": {
|
||||||
|
"storyboard": "files/CustomStoryboard.zip"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"google": {
|
"google": {
|
||||||
"permissions": [
|
"permissions": [
|
||||||
@ -139,6 +150,15 @@
|
|||||||
"UniversalLinks": ""
|
"UniversalLinks": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"push": {
|
||||||
|
"unipush": {
|
||||||
|
"version": "2",
|
||||||
|
"offline": true,
|
||||||
|
"hms": {},
|
||||||
|
"oppo": {},
|
||||||
|
"vivo": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
"audio": {
|
"audio": {
|
||||||
"mp3": {
|
"mp3": {
|
||||||
"description": "Android平台录音支持MP3格式文件"
|
"description": "Android平台录音支持MP3格式文件"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
;(function(){
|
;(function(){
|
||||||
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[];
|
||||||
const __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"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 __uniConfig = {"pages":[],"globalStyle":{"backgroundColor":"#F8F8F8","navigationBar":{"backgroundColor":"#F8F8F8","titleText":"uni-app","type":"default","titleColor":"#000000"},"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,"navigationBar":{"titleText":"uni-app","style":"custom","type":"default"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute));
|
const __uniRoutes = [{"path":"pages/index/index","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"titleText":"uni-app","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.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.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()})}});
|
||||||
|
80
unpackage/dist/dev/app-plus/app-service.js
vendored
@ -31,22 +31,6 @@ if (uni.restoreGlobal) {
|
|||||||
}
|
}
|
||||||
(function(vue) {
|
(function(vue) {
|
||||||
"use strict";
|
"use strict";
|
||||||
const env = "prod";
|
|
||||||
const configs = {
|
|
||||||
dev: {
|
|
||||||
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
||||||
h5Url: "http://192.168.88.37:8080/#/"
|
|
||||||
},
|
|
||||||
test: {
|
|
||||||
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
|
||||||
h5Url: "http://172.16.100.93:8041/#/"
|
|
||||||
},
|
|
||||||
prod: {
|
|
||||||
apiBaseUrl: "https://oa-a.szjixun.cn/api",
|
|
||||||
h5Url: "https://oa-a.szjixun.cn/#/"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const config = configs[env];
|
|
||||||
const ON_SHOW = "onShow";
|
const ON_SHOW = "onShow";
|
||||||
const ON_HIDE = "onHide";
|
const ON_HIDE = "onHide";
|
||||||
function formatAppLog(type, filename, ...args) {
|
function formatAppLog(type, filename, ...args) {
|
||||||
@ -61,6 +45,26 @@ if (uni.restoreGlobal) {
|
|||||||
};
|
};
|
||||||
const onShow = /* @__PURE__ */ createHook(ON_SHOW);
|
const onShow = /* @__PURE__ */ createHook(ON_SHOW);
|
||||||
const onHide = /* @__PURE__ */ createHook(ON_HIDE);
|
const onHide = /* @__PURE__ */ createHook(ON_HIDE);
|
||||||
|
const env = "dev";
|
||||||
|
const configs = {
|
||||||
|
LocalTest: {
|
||||||
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
||||||
|
h5Url: "http://192.168.88.53:8080/#/"
|
||||||
|
},
|
||||||
|
dev: {
|
||||||
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
||||||
|
h5Url: "http://192.168.88.50:8080/#/"
|
||||||
|
},
|
||||||
|
test: {
|
||||||
|
apiBaseUrl: "https://warehouse.szjixun.cn/oa_backend",
|
||||||
|
h5Url: "http://114.218.158.24:8042/#/"
|
||||||
|
},
|
||||||
|
prod: {
|
||||||
|
apiBaseUrl: "https://oa-a.szjixun.cn/api",
|
||||||
|
h5Url: "https://oa-a.szjixun.cn/#/"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const config = configs[env];
|
||||||
const _export_sfc = (sfc, props) => {
|
const _export_sfc = (sfc, props) => {
|
||||||
const target = sfc.__vccOpts || sfc;
|
const target = sfc.__vccOpts || sfc;
|
||||||
for (const [key, val] of props) {
|
for (const [key, val] of props) {
|
||||||
@ -86,6 +90,9 @@ if (uni.restoreGlobal) {
|
|||||||
const webViewObj = vue.ref(null);
|
const webViewObj = vue.ref(null);
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
uni.onNetworkStatusChange(networkStatusChange);
|
uni.onNetworkStatusChange(networkStatusChange);
|
||||||
|
plus.push.getClientInfoAsync((info) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.vue:62", "获取CID", info.clientid);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
onHide(() => {
|
onHide(() => {
|
||||||
uni.offNetworkStatusChange(networkStatusChange);
|
uni.offNetworkStatusChange(networkStatusChange);
|
||||||
@ -118,6 +125,43 @@ if (uni.restoreGlobal) {
|
|||||||
};
|
};
|
||||||
const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/WebstormProjects/oa-base/pages/index/index.vue"]]);
|
const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/WebstormProjects/oa-base/pages/index/index.vue"]]);
|
||||||
__definePage("pages/index/index", PagesIndexIndex);
|
__definePage("pages/index/index", PagesIndexIndex);
|
||||||
|
function initPushNotification() {
|
||||||
|
if (typeof plus !== "undefined" && plus.push) {
|
||||||
|
plus.globalEvent.addEventListener("newPath", ({ path }) => {
|
||||||
|
if (!path) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const pages2 = getCurrentPages();
|
||||||
|
const currentPage = pages2[pages2.length - 1];
|
||||||
|
if (currentPage && currentPage.$page && currentPage.$page.fullPath === path) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
uni.navigateTo({
|
||||||
|
url: path,
|
||||||
|
fail(res) {
|
||||||
|
if (res.errMsg.indexOf("tabbar") > -1) {
|
||||||
|
uni.switchTab({
|
||||||
|
url: path,
|
||||||
|
fail(res2) {
|
||||||
|
console.error(res2.errMsg);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
console.error(res.errMsg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
uni.invokePushCallback({
|
||||||
|
type: "enabled",
|
||||||
|
offline: true
|
||||||
|
});
|
||||||
|
Promise.resolve().then(() => {
|
||||||
|
initPushNotification();
|
||||||
|
plus.push.setAutoNotification && plus.push.setAutoNotification(false);
|
||||||
|
});
|
||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
},
|
},
|
||||||
@ -439,10 +483,10 @@ if (uni.restoreGlobal) {
|
|||||||
function I(e2) {
|
function I(e2) {
|
||||||
return e2 && "string" == typeof e2 ? JSON.parse(e2) : e2;
|
return e2 && "string" == typeof e2 ? JSON.parse(e2) : e2;
|
||||||
}
|
}
|
||||||
const S = true, b = "app", A = I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default), P = b, T = I('{\n "address": [\n "127.0.0.1",\n "192.168.56.1",\n "192.168.88.37"\n ],\n "debugPort": 9000,\n "initialLaunchType": "local",\n "servePort": 7000,\n "skipFiles": [\n "<node_internals>/**",\n "C:/Users/37363/Downloads/HBuilderX.4.08.2024040127/HBuilderX/plugins/unicloud/**/*.js"\n ]\n}\n'), C = I('[{"provider":"aliyun","spaceName":"oabase","spaceId":"mp-edf38b0d-bc9a-4e81-9a15-f55995ccca70","clientSecret":"ty1X79FB2pMuAQUzaQBKXA==","endpoint":"https://api.next.bspapp.com"}]') || [];
|
const S = true, b = "app", A = I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default), P = b, T = I('{\n "address": [\n "127.0.0.1",\n "192.168.56.1",\n "192.168.88.50"\n ],\n "debugPort": 9000,\n "initialLaunchType": "local",\n "servePort": 7000,\n "skipFiles": [\n "<node_internals>/**",\n "C:/Users/37363/Downloads/HBuilderX.4.08.2024040127/HBuilderX/plugins/unicloud/**/*.js"\n ]\n}\n'), C = I('[{"provider":"alipay","spaceName":"oaapp","spaceId":"env-00jxgxphla18","spaceAppId":"2021004145628977","accessKey":"ZALus7EgJXdovISb","secretKey":"7qzvVrPN0mAxfcLr"}]') || [];
|
||||||
let O = "";
|
let O = "";
|
||||||
try {
|
try {
|
||||||
O = "__UNI__70C49A3";
|
O = "__UNI__4796942";
|
||||||
} catch (e2) {
|
} catch (e2) {
|
||||||
}
|
}
|
||||||
let E = {};
|
let E = {};
|
||||||
|
30
unpackage/dist/dev/app-plus/manifest.json
vendored
@ -4,11 +4,11 @@
|
|||||||
"iPhone",
|
"iPhone",
|
||||||
"iPad"
|
"iPad"
|
||||||
],
|
],
|
||||||
"id": "__UNI__70C49A3",
|
"id": "__UNI__4796942",
|
||||||
"name": "oa考勤系统",
|
"name": "OA系统",
|
||||||
"version": {
|
"version": {
|
||||||
"name": "1.1.5",
|
"name": "2.0.1",
|
||||||
"code": 115
|
"code": 201
|
||||||
},
|
},
|
||||||
"description": "",
|
"description": "",
|
||||||
"developer": {
|
"developer": {
|
||||||
@ -19,6 +19,7 @@
|
|||||||
"permissions": {
|
"permissions": {
|
||||||
"Camera": {},
|
"Camera": {},
|
||||||
"Geolocation": {},
|
"Geolocation": {},
|
||||||
|
"Push": {},
|
||||||
"UniNView": {
|
"UniNView": {
|
||||||
"description": "UniNView原生渲染"
|
"description": "UniNView原生渲染"
|
||||||
}
|
}
|
||||||
@ -77,7 +78,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"splashscreen": {
|
"splashscreen": {
|
||||||
"useOriginalMsgbox": true
|
"useOriginalMsgbox": true,
|
||||||
|
"androidStyle": "default",
|
||||||
|
"android": {
|
||||||
|
"hdpi": "static/image/sy.png",
|
||||||
|
"xhdpi": "static/image/sy.png",
|
||||||
|
"xxhdpi": "static/image/sy.png"
|
||||||
|
},
|
||||||
|
"iosStyle": "storyboard",
|
||||||
|
"ios": {
|
||||||
|
"storyboard": "files/CustomStoryboard.zip"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"google": {
|
"google": {
|
||||||
"permissions": [
|
"permissions": [
|
||||||
@ -139,6 +150,15 @@
|
|||||||
"UniversalLinks": ""
|
"UniversalLinks": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"push": {
|
||||||
|
"unipush": {
|
||||||
|
"version": "2",
|
||||||
|
"offline": true,
|
||||||
|
"hms": {},
|
||||||
|
"oppo": {},
|
||||||
|
"vivo": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
"audio": {
|
"audio": {
|
||||||
"mp3": {
|
"mp3": {
|
||||||
"description": "Android平台录音支持MP3格式文件"
|
"description": "Android平台录音支持MP3格式文件"
|
||||||
|
@ -1,175 +0,0 @@
|
|||||||
! function (e, n) {
|
|
||||||
"object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (e = e || self).webUni = n()
|
|
||||||
}(this, (function () {
|
|
||||||
"use strict";
|
|
||||||
try {
|
|
||||||
var e = {};
|
|
||||||
Object.defineProperty(e, "passive", {
|
|
||||||
get: function () {
|
|
||||||
!0
|
|
||||||
}
|
|
||||||
}), window.addEventListener("test-passive", null, e)
|
|
||||||
} catch (e) { }
|
|
||||||
var n = Object.prototype.hasOwnProperty;
|
|
||||||
|
|
||||||
function t (e, t) {
|
|
||||||
return n.call(e, t)
|
|
||||||
}
|
|
||||||
var i = [],
|
|
||||||
a = function (e, n) {
|
|
||||||
var t = {
|
|
||||||
options: {
|
|
||||||
timestamp: +new Date
|
|
||||||
},
|
|
||||||
name: e,
|
|
||||||
arg: n
|
|
||||||
};
|
|
||||||
if (window.__dcloud_weex_postMessage || window.__dcloud_weex_) {
|
|
||||||
if ("postMessage" === e) {
|
|
||||||
var a = {
|
|
||||||
data: [n]
|
|
||||||
};
|
|
||||||
return window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessage(a) : window.__dcloud_weex_.postMessage(JSON.stringify(a))
|
|
||||||
}
|
|
||||||
var o = {
|
|
||||||
type: "WEB_INVOKE_APPSERVICE",
|
|
||||||
args: {
|
|
||||||
data: t,
|
|
||||||
webviewIds: i
|
|
||||||
}
|
|
||||||
};
|
|
||||||
window.__dcloud_weex_postMessage ? window.__dcloud_weex_postMessageToService(o) : window.__dcloud_weex_.postMessageToService(JSON.stringify(o))
|
|
||||||
}
|
|
||||||
if (!window.plus) return window.parent.postMessage({
|
|
||||||
type: "WEB_INVOKE_APPSERVICE",
|
|
||||||
data: t,
|
|
||||||
pageId: ""
|
|
||||||
}, "*");
|
|
||||||
if (0 === i.length) {
|
|
||||||
var r = plus.webview.currentWebview();
|
|
||||||
if (!r) throw new Error("plus.webview.currentWebview() is undefined");
|
|
||||||
var d = r.parent(),
|
|
||||||
s = "";
|
|
||||||
s = d ? d.id : r.id, i.push(s)
|
|
||||||
}
|
|
||||||
if (plus.webview.getWebviewById("__uniapp__service")) plus.webview.postMessageToUniNView({
|
|
||||||
type: "WEB_INVOKE_APPSERVICE",
|
|
||||||
args: {
|
|
||||||
data: t,
|
|
||||||
webviewIds: i
|
|
||||||
}
|
|
||||||
}, "__uniapp__service");
|
|
||||||
else {
|
|
||||||
var w = JSON.stringify(t);
|
|
||||||
plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler("'.concat("WEB_INVOKE_APPSERVICE", '",').concat(w, ",").concat(JSON.stringify(i), ");"))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
o = {
|
|
||||||
navigateTo: function () {
|
|
||||||
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
||||||
n = e.url;
|
|
||||||
a("navigateTo", {
|
|
||||||
url: encodeURI(n)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
navigateBack: function () {
|
|
||||||
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
||||||
n = e.delta;
|
|
||||||
a("navigateBack", {
|
|
||||||
delta: parseInt(n) || 1
|
|
||||||
})
|
|
||||||
},
|
|
||||||
switchTab: function () {
|
|
||||||
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
||||||
n = e.url;
|
|
||||||
a("switchTab", {
|
|
||||||
url: encodeURI(n)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
reLaunch: function () {
|
|
||||||
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
||||||
n = e.url;
|
|
||||||
a("reLaunch", {
|
|
||||||
url: encodeURI(n)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
redirectTo: function () {
|
|
||||||
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
||||||
n = e.url;
|
|
||||||
a("redirectTo", {
|
|
||||||
url: encodeURI(n)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
getEnv: function (e) {
|
|
||||||
window.plus ? e({
|
|
||||||
plus: !0
|
|
||||||
}) : e({
|
|
||||||
h5: !0
|
|
||||||
})
|
|
||||||
},
|
|
||||||
postMessage: function () {
|
|
||||||
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
|
||||||
a("postMessage", e.data || {})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
r = /uni-app/i.test(navigator.userAgent),
|
|
||||||
d = /Html5Plus/i.test(navigator.userAgent),
|
|
||||||
s = /complete|loaded|interactive/;
|
|
||||||
var w = window.my && navigator.userAgent.indexOf("AlipayClient") > -1;
|
|
||||||
var u = window.swan && window.swan.webView && /swan/i.test(navigator.userAgent);
|
|
||||||
var c = window.qq && window.qq.miniProgram && /QQ/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);
|
|
||||||
var g = window.tt && window.tt.miniProgram && /toutiaomicroapp/i.test(navigator.userAgent);
|
|
||||||
var v = window.wx && window.wx.miniProgram && /micromessenger/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent);
|
|
||||||
var p = window.qa && /quickapp/i.test(navigator.userAgent);
|
|
||||||
for (var l, _ = function () {
|
|
||||||
window.UniAppJSBridge = !0, document.dispatchEvent(new CustomEvent("UniAppJSBridgeReady", {
|
|
||||||
bubbles: !0,
|
|
||||||
cancelable: !0
|
|
||||||
}))
|
|
||||||
}, f = [function (e) {
|
|
||||||
if (r || d) return window.__dcloud_weex_postMessage || window.__dcloud_weex_ ? document.addEventListener("DOMContentLoaded", e) : window.plus && s.test(document.readyState) ? setTimeout(e, 0) : document.addEventListener("plusready", e), o
|
|
||||||
}, function (e) {
|
|
||||||
if (v) return window.WeixinJSBridge && window.WeixinJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("WeixinJSBridgeReady", e), window.wx.miniProgram
|
|
||||||
}, function (e) {
|
|
||||||
if (c) return window.QQJSBridge && window.QQJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("QQJSBridgeReady", e), window.qq.miniProgram
|
|
||||||
}, function (e) {
|
|
||||||
if (w) {
|
|
||||||
document.addEventListener("DOMContentLoaded", e);
|
|
||||||
var n = window.my;
|
|
||||||
return {
|
|
||||||
navigateTo: n.navigateTo,
|
|
||||||
navigateBack: n.navigateBack,
|
|
||||||
switchTab: n.switchTab,
|
|
||||||
reLaunch: n.reLaunch,
|
|
||||||
redirectTo: n.redirectTo,
|
|
||||||
postMessage: n.postMessage,
|
|
||||||
getEnv: n.getEnv
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, function (e) {
|
|
||||||
if (u) return document.addEventListener("DOMContentLoaded", e), window.swan.webView
|
|
||||||
}, function (e) {
|
|
||||||
if (g) return document.addEventListener("DOMContentLoaded", e), window.tt.miniProgram
|
|
||||||
}, function (e) {
|
|
||||||
if (p) {
|
|
||||||
window.QaJSBridge && window.QaJSBridge.invoke ? setTimeout(e, 0) : document.addEventListener("QaJSBridgeReady", e);
|
|
||||||
var n = window.qa;
|
|
||||||
return {
|
|
||||||
navigateTo: n.navigateTo,
|
|
||||||
navigateBack: n.navigateBack,
|
|
||||||
switchTab: n.switchTab,
|
|
||||||
reLaunch: n.reLaunch,
|
|
||||||
redirectTo: n.redirectTo,
|
|
||||||
postMessage: n.postMessage,
|
|
||||||
getEnv: n.getEnv
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, function (e) {
|
|
||||||
return document.addEventListener("DOMContentLoaded", e), o
|
|
||||||
}], m = 0; m < f.length && !(l = f[m](_)); m++);
|
|
||||||
l || (l = {});
|
|
||||||
var E = "undefined" != typeof webUni ? webUni : {};
|
|
||||||
if (!E.navigateTo)
|
|
||||||
for (var b in l) t(l, b) && (E[b] = l[b]);
|
|
||||||
return E.webView = l, E
|
|
||||||
}));
|
|