12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <script>
- export default {
- // 此处globalData为了演示其作用,不是uView框架的一部分
- globalData: {
- username: '白居易',
- base_url:'/api'
- },
- onLaunch() {
- // console.log(this.$store.state.vuex_user,'ppp')
- // let is_login=this.$store.state.vuex_user
- // if(!is_login){
- // console.log(this.$store.state.vuex_user,'ppp')
- // uni.reLaunch({
- // url:'/pages/login/index'
- // })
- // }else{
-
- // }
-
- // 1.1.0版本之前关于http拦截器代码,已平滑移动到/common/http.interceptor.js中
- // 注意,需要在/main.js中实例化Vue之后引入如下(详见文档说明):
- // import httpInterceptor from '@/common/http.interceptor.js'
- // Vue.use(httpInterceptor, app)
- // process.env.VUE_APP_PLATFORM 为通过js判断平台名称的方法,结果分别如下:
- /**
- * h5,app-plus(nvue下也为app-plus),mp-weixin,mp-alipay......
- */
- },
- }
- </script>
- <style lang="scss">
- @import "uview-ui/index.scss";
- @import "common/demo.scss";
- // page{
- // padding: 15px 0;
- // }
- .bg{
- background: url(./static/images/bg.png) no-repeat;
- background-color: #F9F9FB;
- background-position: center;
- background-position-y: 100px;
- background-position-x: 50px;
- height: 100vh;
- width: 100vh;
- overflow: hidden;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 0;
-
- }
- .position{
- position: relative;
- z-index: 1;
- }
- .empty{
- margin-top: 20%;
- text-align: center;
- image{
- display: inline-block;
- width: 30%;
- }
- .empty-text{
- margin-top: 20px;
- font-size: 14px;
- color: rgba(113, 113, 113, 0.43);
- }
- }
- </style>
|