| | |
| | | <tools></tools> |
| | | <desktop></desktop> |
| | | <tools-entry ref="dock_model"></tools-entry> |
| | | <!-- <dock ref="dock_model"></dock> --> |
| | | <notice-tip ref="notice_tip_model"></notice-tip> |
| | | <notification-center></notification-center> |
| | | </div> |
| | |
| | | }); |
| | | } |
| | | |
| | | // setTimeout(function () { |
| | | // _that.$refs.dock_model.initDockItem(); |
| | | // }, 100); |
| | | // axios.get(process.env.VUE_APP_USER_DATA_URL).then(function (res) { |
| | | |
| | | // }); |
| | | |
| | | let msgResp = require("./mock/messages.json") |
| | | if (msgResp.success) { |
| | | msgResp.data.forEach(function (item) { |
| | | _that.addMessage(item); |
| | | }) |
| | | } |
| | | // axios.get(process.env.VUE_APP_MESSAGE_URL).then(function (res) { |
| | | |
| | | // }); |
| | | |
| | | let weather = require("./mock/weather.json") |
| | | if (weather.success) { |
| | | _that.addWeather(weather.data.data); |
| | | } |
| | | // axios.get(process.env.VUE_APP_WEATHER_URL).then(function (res) { |
| | | |
| | | // }); |
| | | |
| | | setTimeout(function () { |
| | | _that.addMessage({ |
| | | id: 'N1', |
| | | icon: 'images/frost.png', |
| | | tip: '分布式任务调度', |
| | | title: '默认账号', |
| | | body: '账号:frost 密码:frost', |
| | | time: new Date() |
| | | }, true); |
| | | }, 3000); |
| | | |
| | | setTimeout(function () { |
| | | _that.addMessage({ |
| | | id: 'N2', |
| | | icon: 'images/message.png', |
| | | icon: '/images/desktop/message.png', |
| | | tip: '消息', |
| | | title: '官方QQ', |
| | | body: '1106088328', |
| | | title: 'SmartAi', |
| | | body: 'v1.0.0', |
| | | time: new Date() |
| | | }, true); |
| | | }, 6000); |
| | | |
| | | console.log(this.$store.state.desktop) |
| | | }, 1000); |
| | | }, |
| | | methods: { |
| | | addMessage: function (message, ding) { |
| | |
| | | width: 100%; |
| | | height: 100%; |
| | | background-size: 100% 100%; |
| | | background-image: url("../../../assets/img/desktop/desktop.png"); |
| | | background-image: url("/images/desktop/background.png"); |
| | | background-attachment: fixed; |
| | | } |
| | | |