1234567891011121314151617181920212223242526 |
- <script>
- import dutyApi from '@/api/duty.js'
- import {selectGroupUser} from '@/api/system.js'
- export default {
- onLaunch: function() {
- },
- onShow: function() {
- if(uni.getStorageSync('dutys')) return
- dutyApi.getByList().then((res)=>{
- uni.setStorageSync("dutys",res.data)
- })
- selectGroupUser().then((res)=>{
- uni.setStorageSync("groupUser",res.data)
- })
- }
- }
- </script>
- <style>
- /*每个页面公共css */
- page{
- background-color: #f5f5f5;
- }
- </style>
|