12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <script>
- export default {
- onLaunch: function () {
- console.warn(
- "当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!"
- );
- console.log("App Launch");
- },
- onShow: function () {
- console.log("App Show");
- },
- onHide: function () {
- console.log("App Hide");
- },
- };
- </script>
- <style lang="scss">
- /*每个页面公共css */
- @import "@/uni_modules/uni-scss/index.scss";
- /* #ifndef APP-NVUE */
- @import "@/static/customicons.css";
- // 设置整个项目的背景色
- @font-face {
- font-family: "dataMeter";
- src: url("static/fonts/dataMeter.ttf");
- font-weight: normal;
- font-style: normal;
- }
- .page {
- position: relative;
- // padding-bottom: 50px;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- background: url("./static/index/bg.png") no-repeat center;
- background-size: 100% 100%;
- .content {
- flex: 1 1 auto;
- margin: 0 30rpx;
- background: #fff;
- overflow-y: auto;
- /*
- * 移动端下当未设置高度时,flex:1 1 auto设置不生效,content不会有滚动条。
- * 导致uni-content出现滚动条,footer_text跟随页面滚动
- * 设置任意高度后content样式正常,显示滚动条,footer_text始终在底部。
- */
- height: 600rpx;
- }
- }
- * {
- box-sizing: border-box;
- }
- /* #endif */
- .example-info {
- font-size: 14px;
- color: #333;
- padding: 10px;
- }
- </style>
|