|
|
- <script>
- export default {
- globalData: {
-
- },
- onLaunach: function() {
-
- },
- onShow: function() {
-
- },
- methods: {
- updater(){
- const updateManager = wx.getUpdateManager()
- updateManager.onCheckForUpdate(function (res) {
- console.log(res.hasUpdate)
- })
- updateManager.onUpdateReady(function () {
- wx.showModal({
- title: '更新提示',
- content: '新版本已经准备好,是否重启应用?',
- success(res) {
- if (res.confirm) {
- updateManager.applyUpdate()
- }
- }
- })
- })
- updateManager.onUpdateFailed(function () {
- // 新版本下载失败
- })
- }
- }
- };
- </script>
- <style>
- @import "./app.css";
- /* 隐藏头部 */
- /* uni-page-head {
- display: none;
- }
- /* 轮播图指示点 */
- /* uni-swiper .uni-swiper-dots-horizontal {
- bottom: 20px !important;
- }
- page{
- height: 100%;
- } */
-
- @import '/common/css/base.scss';
- page {
- background-color: #f5f5f5;
- }
- .example-info {
- font-size: 14px;
- color: #333;
- padding: 10px;
- }
- </style>
|