index.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!-- 气瓶管理 -->
  2. <template>
  3. <view id="gasCylinderManagement">
  4. <view class="content-box">
  5. <view class="button-box" @click="goPage(1)">
  6. <img :src="imagesUrl('supplierCylinderManagement/iconPark-warehousing 1@2x.png')">
  7. <view style="color:#FF6B00;">气瓶入库</view>
  8. </view>
  9. <view class="button-box" @click="goPage(2)">
  10. <img :src="imagesUrl('supplierCylinderManagement/iconPark-outbound@2x.png')">
  11. <view style="color:#0075FF;">气瓶出库</view>
  12. </view>
  13. </view>
  14. <view class="bottom-button-p" @click="goPage(3)">历史记录</view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. }
  22. },
  23. onLoad(option) {
  24. },
  25. onShow() {
  26. },
  27. methods: {
  28. goPage(type) {
  29. if (type == 1) {
  30. //气瓶入库
  31. uni.navigateTo({
  32. url: "/pages_supplierCylinderManagement/views/gasCylinderManagement/inbound",
  33. });
  34. } else if (type == 2) {
  35. //气瓶出库
  36. uni.navigateTo({
  37. url: "/pages_supplierCylinderManagement/views/gasCylinderManagement/outbound",
  38. });
  39. } else if (type == 3) {
  40. //历史记录
  41. uni.navigateTo({
  42. url: "/pages_supplierCylinderManagement/views/gasCylinderManagement/historyRecord",
  43. });
  44. }
  45. },
  46. }
  47. }
  48. </script>
  49. <style lang="stylus" scoped>
  50. #gasCylinderManagement {
  51. height: 100%;
  52. width: 100%;
  53. display flex;
  54. flex-direction column;
  55. overflow: hidden;
  56. .content-box {
  57. flex: 1;
  58. display flex;
  59. flex-direction column;
  60. overflow-y: scroll;
  61. .button-box{
  62. background-color: #fff;
  63. border-radius:8rpx;
  64. overflow: hidden;
  65. margin:20rpx 30rpx;
  66. img{
  67. width:120rpx;
  68. height:120rpx;
  69. display: block;
  70. margin:70rpx auto 0;
  71. }
  72. view{
  73. text-align: center;
  74. font-size:32rpx;
  75. line-height:100rpx;
  76. margin-bottom:40rpx;
  77. }
  78. }
  79. }
  80. .bottom-button-p{
  81. font-size:30rpx;
  82. text-align: center;
  83. width:130rpx;
  84. line-height:60rpx;
  85. margin:0 auto;
  86. margin-bottom:100rpx;
  87. border-bottom:1rpx solid #dedede;
  88. color:#666;
  89. }
  90. }
  91. </style>