Compare commits

..

21 Commits
newo ... master

Author SHA1 Message Date
6227aaf931 修改版本号 2025-03-31 16:43:54 +08:00
ddfedd2058 更换云空间后,修改推送配置 2025-03-29 17:19:12 +08:00
934fe8de1f 修改ios版本号与打包配置 2025-03-24 15:18:44 +08:00
61459264ef 修改版本号与打包配置 2025-03-24 09:44:44 +08:00
59982f4f46 新增手动创建通知栏消息 2025-03-17 14:23:11 +08:00
scout
687371b1e6 fixbug 2024-12-31 09:17:33 +08:00
scout
f7b500f715 更换隐私协议 2024-12-30 16:17:42 +08:00
scout
a9d3014b28 feat(push): 添加魅族推送配置项 2024-12-24 10:40:17 +08:00
ed3ebf0b85 Merge branch 'master' of http://172.16.100.91:3000/xingyy/oa-base 2024-12-17 14:06:44 +08:00
a2b3ef0cf8 fix 2024-12-17 14:06:42 +08:00
scout
d6fb4b5688 add ver 2024-12-12 15:55:06 +08:00
scout
7bc12f11a0 add条件判断 2024-12-12 15:25:32 +08:00
67e81c1a80 Merge branch 'master' of http://172.16.100.91:3000/xingyy/oa-base 2024-12-12 10:21:09 +08:00
c0b331bfb5 启动页 更新 2024-12-12 10:21:07 +08:00
scout
acace8dc21 changemain 2024-12-12 09:31:54 +08:00
scout
446498b893 推送,分享 2024-12-11 15:31:56 +08:00
022aaa9109 Merge branch 'master' of http://172.16.100.91:3000/xingyy/oa-base 2024-12-04 16:36:57 +08:00
92d8327930 fix 2024-12-04 16:36:50 +08:00
scout
c2168272de addfile 2024-12-04 16:35:02 +08:00
scout
6d913b9288 addshare 2024-12-04 16:33:24 +08:00
scout
951aabfe55 addnetconfirm 2024-10-28 15:31:46 +08:00
46 changed files with 564 additions and 298 deletions

View File

@ -13,7 +13,7 @@
"h5" : {
"launchtype" : "local"
},
"provider" : "alipay",
"provider" : "aliyun",
"type" : "uniCloud"
},
{

104
App.vue
View File

@ -1,40 +1,80 @@
<script>
export default {
methods:{
networkStatusChange(res){
if(res.isConnected){
uni.redirectTo({
url:'/pages/index/index'
})
}else{
uni.redirectTo({
url:'/pages/networko/index'
})
}
}
},
onLaunch: function() {
},
onShow: function() {
uni.getNetworkType({
success:(res)=> {
if(res.networkType==='none') {
uni.redirectTo({
url: '/pages/networko/index'
})
}
}
})
uni.onNetworkStatusChange(this.networkStatusChange);
},
onHide: function() {
uni.offNetworkStatusChange(this.networkStatusChange)
export default {
data() {
return {
//
lastNetworkStatus: null
}
},
methods: {
// APP
isFirstOpen() {
let isFirstOpen = uni.getStorageSync('isFirstOpen')
if (!isFirstOpen) {
uni.setStorageSync('isFirstOpen', true)
return true
}
return false
},
networkStatusChange(res) {
console.log(res)
if (res.isConnected) {
//
if (this.isFirstOpen()) {
uni.redirectTo({
url: '/pages/index/index'
})
}
//
if (this.lastNetworkStatus === false) {
uni.showModal({
title: "提示",
content: "当前设备网络发生更改,是否刷新页面?",
showCancel: true,
success: function (res) {
if (res.confirm || res.cancel) {
uni.redirectTo({
url: '/pages/index/index'
})
}
},
});
}
} else {
uni.redirectTo({
url: '/pages/networko/index'
})
}
this.lastNetworkStatus = res.isConnected
}
},
onLaunch: function () {
console.log('onLaunch')
},
onShow: function () {
uni.onNetworkStatusChange(this.networkStatusChange);
uni.getNetworkType({
success: (res) => {
if (res.networkType === 'none') {
uni.redirectTo({
url: '/pages/networko/index'
})
}
}
})
},
onHide: function () {
uni.offNetworkStatusChange(this.networkStatusChange)
}
}
</script>
<style>
/*每个页面公共css */
/*每个页面公共css */
</style>

View File

@ -1,13 +1,13 @@
{
"version" : "1",
"prompt" : "template",
"title" : "服务协议和隐私政策",
"message" : "   请你务必审慎阅读、充分理解“平台服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的<span style=\"font-weight: bold\">设备标识</span>、<span>操作日志</span> 等信息用于分析、优化应用性能。我们需要访问你的<span style=\"font-weight: bold\">相册/或相机(摄像头)权限</span>,<span style=\"font-weight: bold\">位置权限</span>,<span style=\"font-weight: bold\">通知权限</span>用于应用内功能的基本使用<br/>  你可阅读<a href=\"https://oa-a.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"title" : "温馨提示",
"message" : "   感谢您对oa考勤系统的信赖!在使用前请务必阅读并同意<a href=\"https://oa-a.szjixun.cn/#/pages/setting/severInfo\">《用户服务协议》</a>和<a href=\"https://oa-a.szjixun.cn/#/pages/setting/privateInfo\">《隐私政策》</a>,我们将按照协议和政策内容为您提供服务。<br/>oa考勤系统系统的基本功能为打卡、审批等考勤管理及协同办公服务。基于您的授权及服务之必要基本功能的必要个人信息包括移动电话号码、账号信息等。您同意<a href=\"https://oa-a.szjixun.cn/#/pages/setting/privateInfo\">《隐私政策》</a>仅代表同意oa考勤系统在您使用基本功能时处理相关必要信息。附加功能如需处理个人信息将单独征求您的同意。",
"buttonAccept" : "同意并接受",
"buttonRefuse" : "不同意",
"second" : {
"title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"https://oa-a.szjixun.cn/#/pages/login/serveInfo\">《用户服务协议》</a>和<a href=\"https://oa-a.szjixun.cn/#/pages/login/privateInfo\">《隐私政策》</a>,否则将退出应用。",
"title" : "  您需要同意本隐私政策才能继续使用oa考勤系统",
"message" : "  若您不同意本<a href=\"https://oa-a.szjixun.cn/#/pages/setting/privateInfo\">《隐私政策》</a>,很遗憾我们将无法为您提供服务",
"buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用"
},

View File

@ -1,19 +0,0 @@
<script setup>
</script>
<template>
<div class="tab">
<slot></slot>
</div>
</template>
<style scoped lang="scss">
.tab {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
</style>

View File

@ -1,79 +0,0 @@
<script setup>
import { theme } from '@/config/theme'
import tabbarItem from './components/tabbar-item/index.vue'
const emit = defineEmits(['update:active'])
const props=defineProps({
active:{
type:Number,
default:0
},
list:{
type:Array,
default:()=>[]
}
})
const clickItem = (item) => {
emit('update:active',item.value)
}
</script>
<template>
<div class="tabbar-container">
<div class="tabbar">
<tabbar-item v-for="item in list" :key="item.url" @click="clickItem(item)">
<div class="tab-content">
<img :src="item.value === active ? item.selectedIconPath : item.iconPath" :style="{width:item.iconWidth?item.iconWidth:'34rpx',height:item.iconHeight?item.iconHeight:'40rpx'}" class="tab-icon">
<div class="tab-text" :style="{ color: active === item.value ? theme.colors.primary : '#666666' }">
{{ item.text }}
</div>
</div>
</tabbar-item>
</div>
<!--底部安全区-->
<div class="content-placeholder"></div>
</div>
</template>
<style scoped lang="scss">
.tabbar-container {
flex-shrink: 0;
width: 100%;
background-color: #ffffff;
overflow: hidden;
.tabbar {
display: flex;
padding-top: 20rpx;
height: 104rpx;
.tab {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
.tab-content {
display: flex;
flex-direction: column;
align-items: center;
.tab-icon {
width: 40rpx;
height: 40rpx;
}
.tab-text {
margin-top: 10rpx;
font-size: 20rpx;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
.content-placeholder {
height: 58rpx;
}
}
</style>

View File

@ -1,20 +1,20 @@
const env = 'LocalTest';
const env = 'prod';
const configs = {
LocalTest: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
h5Url:'http://192.168.88.30:2367/#/'
},
LocalTest: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
h5Url: 'http://192.168.88.61:2367/#/'
},
dev: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
h5Url:'http://192.168.88.47:2367/#/'
h5Url: 'http://192.168.88.47:2367/#/'
},
test: {
apiBaseUrl: 'https://warehouse.szjixun.cn/oa_backend',
h5Url:'http://114.218.158.24:8042/#/'
h5Url: 'http://114.218.158.24:8042/#/'
},
prod: {
apiBaseUrl: 'https://oa-a.szjixun.cn/api',
h5Url:'https://oa-a.szjixun.cn/#/'
h5Url: 'https://oa-a.szjixun.cn/#/'
},
};
const config = configs[env];

View File

@ -1,58 +0,0 @@
// 图片资源导入
import clockInIcon from '@/static/image/tabbar/wz@3x1.png' // 打卡图标
import clockInSelectedIcon from '@/static/image/tabbar/zu3499@3x.png' // 打卡选中图标
import attendanceIcon from '@/static/image/tabbar/attendance2.png' // 考勤图标
import attendanceSelectedIcon from '@/static/image/tabbar/kaoqin.png' // 考勤选中图标
import myIcon from '@/static/image/tabbar/my1.png' // 我的图标
import mySelectedIcon from '@/static/image/tabbar/my2.png' // 我的选中图标
import applyIcon from '@/static/image/apply/zu3809@3x.png' // 申请图标
import applySelectedIcon from '@/static/image/apply/zu3808@3x.png' // 申请选中图标
import spIcon from '@/static/image/apply/sp.png' // 审批图标
import spSelectedIcon from '@/static/image/apply/zu3812@3x.png' // 审批选中图标
// Tabbar 配置
export const tabbar = [
{
text: "打卡",
iconPath: clockInIcon,
selectedIconPath: clockInSelectedIcon,
value: 0,
iconWidth: '33.32rpx',
iconHeight: '40rpx',
url: '/pages/clockIn/index'
},
{
text: "考勤",
iconPath: attendanceIcon,
selectedIconPath: attendanceSelectedIcon,
value: 1,
url: '/pages/attendance/index'
},
{
text: "我的",
iconPath: myIcon,
selectedIconPath: mySelectedIcon,
value: 3,
url: '/pages/mine/index'
}
]
// 审批页面 Tabbar 配置
export const approveTabbar = [
{
text: "申请",
iconPath: applyIcon,
selectedIconPath: applySelectedIcon,
value: 0,
iconWidth: '33.32rpx',
iconHeight: '40rpx'
},
{
text: "审批中心",
iconPath: spIcon,
selectedIconPath: spSelectedIcon,
value: 1,
iconWidth: '37rpx',
iconHeight: '40rpx'
}
]

View File

@ -1,12 +0,0 @@
export const theme = {
colors: {
primary: '#46299D',
secondary: '#35495e',
accent: '#ff4081',
error: '#f44336',
warning: '#ff9800',
info: '#2196f3',
success: '#4caf50'
}
};

Binary file not shown.

View File

@ -33,12 +33,12 @@
<rect key="frame" x="150.66666666666666" y="391.66666666666669" width="112.66666666666666" height="112.66666666666669"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="hello uniapp" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QBH-Ne-rcx">
<!-- <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="hello uniapp" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QBH-Ne-rcx">
<rect key="frame" x="168" y="835" width="78.333333333333314" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</label> -->
</subviews>
<viewLayoutGuide key="safeArea" id="IW3-oA-Ytg"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 732 KiB

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 732 KiB

After

Width:  |  Height:  |  Size: 226 KiB

BIN
files/pushicon/18.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
files/pushicon/24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
files/pushicon/36.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
files/pushicon/48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
files/pushicon/72.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -2,8 +2,8 @@
"name" : "oa考勤系统",
"appid" : "__UNI__4796942",
"description" : "",
"versionName" : "2.1.6",
"versionCode" : 216,
"versionName" : "2.3.2",
"versionCode" : 232,
"transformPx" : false,
/* 5+App */
"app-plus" : {
@ -26,7 +26,8 @@
"Maps" : {},
"LivePusher" : {},
"Push" : {},
"Barcode" : {}
"Barcode" : {},
"Share" : {}
},
/* */
"distribute" : {
@ -74,14 +75,28 @@
"ad" : {},
"share" : {
"weixin" : {
"appid" : "",
"UniversalLinks" : ""
"appid" : "wx3a0f78634d074b23",
"UniversalLinks" : "https://warehouse.szjixun.cn/oa_backend/static/aretree/"
}
},
"push" : {
"unipush" : {
"offline" : true,
"version" : "2"
"oppo" : {},
"vivo" : {},
"mi" : {},
"honor" : {},
"version" : "2",
"icons" : {
"small" : {
"ldpi" : "unpackage/pushicon/18.png",
"mdpi" : "unpackage/pushicon/24.png",
"hdpi" : "unpackage/pushicon/36.png",
"xhdpi" : "unpackage/pushicon/48.png",
"xxhdpi" : "unpackage/pushicon/72.png"
}
},
"meizu" : {}
}
},
"maps" : {}
@ -120,13 +135,13 @@
},
"splashscreen" : {
"useOriginalMsgbox" : true,
"androidStyle" : "common",
"androidStyle" : "default",
"android" : {
"hdpi" : "static/image/sy.png",
"xhdpi" : "static/image/sy.png",
"xxhdpi" : "static/image/sy.png"
"hdpi" : "static/image/drawable-hdpi/sy.9.png",
"xhdpi" : "static/image/drawable-xhdpi/sy.9.png",
"xxhdpi" : "static/image/drawable-xxhdpi/sy.9.png"
},
"iosStyle" : "common",
"iosStyle" : "storyboard",
"ios" : {
"storyboard" : "files/CustomStoryboard.zip"
}

View File

@ -1,101 +1,173 @@
<template>
<!-- <web-view class="webview" @message="webLoad" style="flex: 1;" :src="config.h5Url"></web-view> -->
<view style="position: absolute;bottom: 0;">124124</view>
<web-view class="webview" @message="webLoad" style="flex: 1;" :src="config.h5Url"></web-view>
</template>
<script setup>
import { ref } from 'vue'
import {onExit } from "@dcloudio/uni-app";
import { ref, onMounted } from 'vue'
import { onExit, onShow } from "@dcloudio/uni-app";
import config from "../../config"
const wv = plus.webview.create(config.h5Url,"custom-webview")
const currentPages=getCurrentPages()
const currentWebview = currentPages[currentPages.length-1].$getAppWebview()
currentWebview.append(wv)
const {statusBarHeight} = uni.getSystemInfoSync()
wv.setStyle({
top: statusBarHeight,
bottom: 20,
onShow(() => {
// const { statusBarHeight } = uni.getSystemInfoSync()
// const wv1 = plus.webview.getWebviewById("custom-webview");
// let wv = null;
// if (wv1) {
// wv = wv1;
// } else {
// wv = plus.webview.create(config.h5Url, "custom-webview", {
// top: statusBarHeight,
// bottom: 0,
// });
// }
// var pages = getCurrentPages();
// var page = pages[pages.length - 1];
// var currentWebview = page.$getAppWebview();
})
import { Communication } from '../../utils/communication.js';
const commun=new Communication()
const commun = new Communication()
const shareH5 = () => {
uni.share({
provider: 'weixin',
scene: "WXSceneSession",
type: 0,// 5
imageUrl: 'https://th.bing.com/th?id=ORMS.41c34644e7e67f95a14620e77064b5d9&pid=Wdp&w=268&h=140&qlt=90&c=1&rs=1&dpr=1&p=0', //
title: '分享的标题',
href: 'https://www.baidu.com/',
success: function (res) {
console.log("success:" + JSON.stringify(res));
},
fail: function (err) {
console.log("fail:" + JSON.stringify(err));
}
});
}
//#ifdef APP-ANDROID
import {
registerRequestPermissionTipsListener,
unregisterRequestPermissionTipsListener,
setRequestPermissionTips
} from "@/uni_modules/uni-registerRequestPermissionTips"
// import {
// registerRequestPermissionTipsListener,
// unregisterRequestPermissionTipsListener,
// setRequestPermissionTips
// } from "@/uni_modules/uni-registerRequestPermissionTips"
const PermissionTips = {
"android.permission.READ_PHONE_STATE": "<h4 style=\"font-size:40px;\">正在读取网络状态权限</h4><font color=#cccccc>通讯录权限不会获取任何信息,请注意通讯录权限不会获取任何信息,请注意通讯录权限不会获取任何信息,请注意</font>",
"android.permission.CAMERA": "<h4 style=\"font-size:40px;\">正在访问相机权限</h4><font color=#cccccc>需要扫描二维码或拍照,是否允许打开相机?</font>",
"android.permission.WRITE_EXTERNAL_STORAGE": "<h4 style=\"font-size:40px;\">正在读取相册权限</h4><font color=#cccccc>我们需要获取访问您设备相册的权限,以便您能够选择并上传图片或视频到我们的应用中。</font>",
"android.permission.ACCESS_FINE_LOCATION": "<h4 style=\"font-size:40px;\">正在访问位置权限</h4><font color=#cccccc>需要获取您的位置信息,以便您能够进行考勤打卡。</font>",
"android.permission.ACCESS_COARSE_LOCATION": "<h4 style=\"font-size:40px;\">正在访问位置权限</h4><font color=#cccccc>需要获取您的位置信息,以便您能够进行考勤打卡。</font>"
}
onExit(() => {
unregisterRequestPermissionTipsListener()
})
// const PermissionTips = {
// "android.permission.READ_PHONE_STATE": "<h4 style=\"font-size:40px;\"></h4><font color=#cccccc></font>",
// "android.permission.CAMERA": "<h4 style=\"font-size:40px;\">访</h4><font color=#cccccc></font>",
// "android.permission.WRITE_EXTERNAL_STORAGE": "<h4 style=\"font-size:40px;\"></h4><font color=#cccccc>访便</font>"
// }
// onExit(()=>{
// unregisterRequestPermissionTipsListener()
// })
const brand = uni.getSystemInfoSync().deviceBrand
setRequestPermissionTips(PermissionTips)
registerRequestPermissionTipsListener({
onRequest: (e) => {
console.log('onRequest', e)
},
onConfirm: (e) => {
// commun.sendToH5('permission-application', { action: 'open-permission', data: e });
},
onComplete: (e) => {
commun.sendToH5('permission-application', { action: 'close-permission', data: e });
// const brand = uni.getSystemInfoSync().deviceBrand
// setRequestPermissionTips(PermissionTips)
// registerRequestPermissionTipsListener({
// onRequest: (e) => {
// console.log('onRequest',e)
// },
// onConfirm: (e) => {
// commun.sendToH5('permission-application',{action:'open-permission',data:e});
// },
// onComplete: (e) => {
// commun.sendToH5('permission-application',{action:'close-permission',data:e});
// //
// if (brand.toLowerCase() === "huawei") {
// const tips = {}
// let hasDeniedPermission = false
// for (let k in PermissionTips) {
// if (e[k] !== "denied") {
// tips[k] = PermissionTips[k]
// } else {
// hasDeniedPermission = true
// }
// }
// setRequestPermissionTips(tips) //
// if (hasDeniedPermission)
// uni.showModal({
// content: ""
// })
// }
// }
// })
//
if (brand.toLowerCase() === "huawei") {
const tips = {}
let hasDeniedPermission = false
for (let k in PermissionTips) {
if (e[k] !== "denied") {
tips[k] = PermissionTips[k]
} else {
hasDeniedPermission = true
}
}
setRequestPermissionTips(tips) //
if (hasDeniedPermission)
uni.showModal({
content: "权限已经被拒绝,请前往设置中开启"
})
}
}
})
//#endif
const webLoad = (e) => {
const message = e.detail.data?.[0] || '';
commun.handleMessage(message);
};
function initializeWebView() {
const currentWebview = getCurrentPages().pop().$getAppWebview()
commun.setWebView(currentWebview.children()[0])
}
//load-complete
commun.registerHandler('load-complete',()=>{
commun.registerHandler('load-complete', () => {
initializeWebView()
const {statusBarHeight} = uni.getSystemInfoSync()
const { statusBarHeight } = uni.getSystemInfoSync()
commun.webViewObj.setStyle({
top: statusBarHeight,
bottom: 0,
})
})
commun.registerHandler('getLocation',(data)=>{
commun.registerHandler('getLocation', (data) => {
uni.getLocation({
type:'gcj02',
geocode:true,
isHighAccuracy:true,
type: 'gcj02',
geocode: true,
isHighAccuracy: true,
...data,
success: (res) => {
console.log('getLocation',res)
commun.sendToH5('getLocation',res);
console.log('getLocation', res)
commun.sendToH5('getLocation', res);
},
})
})
const webLoad = (e) => {
const message = e.detail.data?.[0] || '';
commun.handleMessage(message);
};
commun.registerHandler('goCard', async (data) => {
await getCard(data.phone)
})
commun.registerHandler('createPushMessage', async (data) => {
uni.createPushMessage(JSON.parse(decodeURIComponent(data)))
})
//
async function getCard(phone) {
uni.request({
url: 'https://blockchain.szjixun.cn/api/e_card/info-phone',
method: 'POST',
data: {
phone: phone
},
success: (res) => {
const resData = res.data.data
uni.share({
provider: 'weixin',
scene: "WXSceneSession",
type: 5,// 5
imageUrl: 'https://e-cdn.fontree.cn/fonchain-main/prod/image/139/avatar/ababc42c-7654-47f8-b22b-29dc589c71f0.png', //
title: `${resData.name}的电子名片`,
miniProgram: {
id: "gh_97094c34debd",
path: `/pages/mine/index?uid=${resData.uid}&userType=${resData.userType}`,
type: 0,
webUrl: `/pages/mine/index?uid=${resData.uid}&userType=${resData.userType}`,
},
success: function (res) {
console.log("success:" + JSON.stringify(res));
},
fail: function (err) {
console.log("fail:" + JSON.stringify(err));
}
});
},
fail: (err) => {
console.log('getCard', err)
}
})
}
</script>
<style>
</style>
<style></style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 732 KiB

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1,14 @@
[
{
"IndexName": "index_device_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "device_id",
"Direction": "1"
}
],
"MgoIsUnique": true
}
}
]

View File

@ -0,0 +1,142 @@
{
"bsonType": "object",
"required": [],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"appid": {
"bsonType": "string",
"description": "DCloud appid"
},
"device_id": {
"bsonType": "string",
"description": "设备唯一标识"
},
"vendor": {
"bsonType": "string",
"description": "设备厂商"
},
"push_clientid": {
"bsonType": "string",
"description": "推送设备客户端标识"
},
"imei": {
"bsonType": "string",
"description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)"
},
"oaid": {
"bsonType": "string",
"description": "移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)"
},
"idfa": {
"bsonType": "string",
"description": "iOS平台配置应用使用广告标识(IDFA)"
},
"imsi": {
"bsonType": "string",
"description": "国际移动用户识别码(International Mobile Subscriber Identification Number)"
},
"model": {
"bsonType": "string",
"description": "设备型号"
},
"platform": {
"bsonType": "string",
"description": "平台类型"
},
"uni_platform": {
"bsonType": "string",
"description": "uni-app 运行平台,与条件编译平台相同。"
},
"os_name": {
"bsonType": "string",
"description": "ios|android|windows|mac|linux "
},
"os_version": {
"bsonType": "string",
"description": "操作系统版本号 "
},
"os_language": {
"bsonType": "string",
"description": "操作系统语言 "
},
"os_theme": {
"bsonType": "string",
"description": "操作系统主题 light|dark"
},
"pixel_ratio": {
"bsonType": "string",
"description": "设备像素比 "
},
"network_model": {
"bsonType": "string",
"description": "设备网络型号wifi/3G/4G/"
},
"window_width": {
"bsonType": "string",
"description": "设备窗口宽度 "
},
"window_height": {
"bsonType": "string",
"description": "设备窗口高度"
},
"screen_width": {
"bsonType": "string",
"description": "设备屏幕宽度"
},
"screen_height": {
"bsonType": "string",
"description": "设备屏幕高度"
},
"rom_name": {
"bsonType": "string",
"description": "rom 名称"
},
"rom_version": {
"bsonType": "string",
"description": "rom 版本"
},
"location_latitude": {
"bsonType": "double",
"description": "纬度"
},
"location_longitude": {
"bsonType": "double",
"description": "经度"
},
"location_country": {
"bsonType": "string",
"description": "国家"
},
"location_province": {
"bsonType": "string",
"description": "省份"
},
"location_city": {
"bsonType": "string",
"description": "城市"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
},
"last_update_date": {
"bsonType": "timestamp",
"description": "最后一次修改时间",
"forceDefaultValue": {
"$env": "now"
}
}
},
"version": "0.0.1"
}

View File

@ -0,0 +1,26 @@
{
"bsonType": "object",
"required": [
"value",
"expired"
],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"value": {
"description": "值"
},
"expired": {
"description": "过期时间",
"bsonType": "timestamp"
}
},
"version": "0.0.1"
}

View File

@ -0,0 +1,38 @@
[
{
"IndexName": "device_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "device_id",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "oaid",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "oaid",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "imei",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "imei",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]

View File

@ -0,0 +1,87 @@
{
"bsonType": "object",
"required": [
"user_id"
],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户id参考uni-id-users表"
},
"ua": {
"bsonType": "string",
"description": "userAgent"
},
"uuid": {
"bsonType": "string",
"description": "设备唯一标识(需要加密存储)"
},
"os_name": {
"bsonType": "string",
"description": "ios|android|windows|mac|linux "
},
"os_version": {
"bsonType": "string",
"description": "操作系统版本号 "
},
"os_language": {
"bsonType": "string",
"description": "操作系统语言 "
},
"os_theme": {
"bsonType": "string",
"description": "操作系统主题 light|dark"
},
"vendor": {
"bsonType": "string",
"description": "设备厂商"
},
"push_clientid": {
"bsonType": "string",
"description": "推送设备客户端标识"
},
"device_id": {
"bsonType": "string",
"description": "设备id"
},
"imei": {
"bsonType": "string",
"description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)"
},
"oaid": {
"bsonType": "string",
"description": "移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)"
},
"idfa": {
"bsonType": "string",
"description": "iOS平台配置应用使用广告标识(IDFA)"
},
"model": {
"bsonType": "string",
"description": "设备型号"
},
"platform": {
"bsonType": "string",
"description": "平台类型"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
},
"last_active_date": {
"bsonType": "timestamp",
"description": "最后登录时间"
},
"last_active_ip": {
"bsonType": "string",
"description": "最后登录IP"
}
},
"version": "0.0.1"
}