更新记录
1.0.0(2023-09-26)
初始版本
系统日程管理增删查
平台兼容性
App |
快应用 |
微信小程序 |
支付宝小程序 |
百度小程序 |
字节小程序 |
QQ小程序 |
Android:不确定,iOS:9,HarmonyNext:不确定 |
× |
× |
× |
× |
× |
× |
钉钉小程序 |
快手小程序 |
飞书小程序 |
京东小程序 |
× |
× |
× |
× |
H5-Safari |
Android Browser |
微信浏览器(Android) |
QQ浏览器(Android) |
Chrome |
IE |
Edge |
Firefox |
PC-Safari |
× |
× |
× |
× |
× |
× |
× |
× |
× |
调用例子 vue文件内容
注意相关权限请在宿主app中进行判断,插件将不再判断相关权限
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-btn-v uni-common-mt">
<button type="primary" @tap="testAddEvent">uts日历添加</button>
<button type="primary" @tap="testSearchEvent">uts日历查询</button>
<button type="primary" @tap="testDeleteEvent">uts日历删除</button>
</view>
</view>
</template>
<script>
import {
saveEventAsyn,
fetchEventAsyn,
deleteEventAsyn
} from "../../uni_modules/u7746-UTSEventStore";
import {
useCssModule
} from "vue";
export default {
data() {
return {
title: 'UTS示例'
}
},
methods: {
testAddEvent() {
let eventSaveRequest = {};
eventSaveRequest.title = '3'
eventSaveRequest.startDate = '2023-09-30 17:29:59'
eventSaveRequest.endDate = '2023-09-30 17:30:59'
eventSaveRequest.location = '5'
eventSaveRequest.notes = '4'
eventSaveRequest.addAlarmSet = -60
console.log(eventSaveRequest);
saveEventAsyn(eventSaveRequest, {
success: function(response) {
console.log(response)
}
})
},
testSearchEvent() {
fetchEventAsyn({
startDate: '2023-08-30 23:29:59',
endDate: '2023-10-01 17:29:59'
}, {
success: function(response) {
console.log(response);
}
})
},
testDeleteEvent() {
deleteEventAsyn({
calendarItemIdentifier: '454DB2A2-740A-434D-A613-0D4059EF5298'
}, {
success: function(response) {
console.log(response);
}
})
}
}
}
</script>
<style>
</style>