123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <script>
- export default {
- onLaunch: function() {
- console.log('App Launch');
- let 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() {
- wx.showToast({
- title: '更新失败',
- icon: 'none'
- })
- })
- uni.onTabBarMidButtonTap(() => {
- uni.navigateTo({
- url: '/pages/health-encyclopedia/health-encyclopedia',
- })
- })
- },
- onShow: function() {
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style lang="scss">
- @import "uview-ui/index.scss";
-
- /*每个页面公共css */
- page {
- background-color: #F2F2F2;
- }
- button::after {
- border: none;
- }
- button {
- margin: 0;
- padding: 0;
- background: none;
- }
- ::-webkit-scrollbar {
- display: none;
- }
- /* 解决H5 的问题 */
- uni-scroll-view .uni-scroll-view::-webkit-scrollbar {
- /* 隐藏滚动条,仍然可以滚动 */
- display: none
- }
-
- </style>
|