App.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <script>
  2. // window.SITE_CONFIG = {};
  3. // window.SITE_CONFIG["dictList"] = JSON.parse(localStorage.getItem('dictList'))||[];
  4. // import Api from "./@/http/Api.js";
  5. export default {
  6. data() {
  7. return {
  8. // globalData: {},
  9. }
  10. },
  11. methods:{
  12. // getDictAll() {
  13. // Api.getDictList().then((res) => {
  14. // console.log(res.data)
  15. // window.SITE_CONFIG["dictList"] = res.data.data;
  16. // localStorage.setItem("dictList",JSON.stringify(res.data.data));
  17. // });
  18. // },
  19. },
  20. onLaunch: function() {
  21. // this.getDictAll();
  22. // 获取字典列表, 添加并全局变量保存
  23. },
  24. onShow: function() {
  25. },
  26. onHide: function() {
  27. console.log('App Hide')
  28. }
  29. }
  30. </script>
  31. <style lang="scss">
  32. /*每个页面公共css */
  33. @import "@/uni_modules/uview-ui/index.scss";
  34. *{box-sizing: border-box;}
  35. uni-page-body,html,body{
  36. height: 100%;
  37. width: 750rpx;
  38. background: #F6F6F6;
  39. }
  40. .u-button--primary{background-color: #5776E6;}
  41. .uni-input-placeholder{text-align: right;}
  42. .ml5{margin-left:10rpx;}
  43. .contain{
  44. height: 100%;
  45. padding-bottom: 120rpx;
  46. padding-top: 24rpx;
  47. overflow-y: auto;
  48. .main{
  49. padding: 0 32rpx;
  50. background-color: #fff;
  51. }
  52. .tijiao {
  53. position: fixed;
  54. width: 100%;
  55. bottom: 0;
  56. left: 0;
  57. background-color: #fff;
  58. padding: 16rpx 32rpx;
  59. box-sizing: border-box;
  60. box-shadow: 0 -6px 12px 0 rgba(153, 153, 153, 0.10);
  61. }
  62. .u-cell__value{
  63. color: #333!important;
  64. }
  65. }
  66. </style>