index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='扫码' :showback="false" bgColor='transparent'></cus-header>
  4. <image class="topbg" :src="imgBase+'/img_code_bg.png'" mode="widthFix"></image>
  5. <view class="content" :style="{'height':'calc(100vh - '+(mt+84)+'px)'}">
  6. <view class="box">
  7. <view class="title">请选择您的操作</view>
  8. <view class="tip">产品入库or 出库</view>
  9. <view class="cards">
  10. <view class="card" @tap="toTurn('/pagesStorage/inStorage/add')">
  11. <view class="left">
  12. <image :src="imgBase+'/img_code_rk.png'"></image>
  13. <view class="info">
  14. <view class="ititle">扫码入库</view>
  15. <view class="itip">新增入库,扫描产品二维码入库</view>
  16. </view>
  17. </view>
  18. <view class="right">
  19. <image :src="imgBase+'/img_arrow_right.png'"></image>
  20. </view>
  21. </view>
  22. <view class="card" @tap="toTurn('/pagesStorage/outStorage/add')">
  23. <view class="left">
  24. <image :src="imgBase+'/img_code_ck.png'"></image>
  25. <view class="info">
  26. <view class="ititle">扫码出库</view>
  27. <view class="itip">新增出库,扫描产品二维码出库</view>
  28. </view>
  29. </view>
  30. <view class="right">
  31. <image :src="imgBase+'/img_arrow_right.png'"></image>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <Tabbar :tabbarIndex="1"></Tabbar>
  38. </view>
  39. </template>
  40. <script>
  41. import Tabbar from '@/components/CusTabbar/index.vue'
  42. export default {
  43. components:{
  44. Tabbar
  45. },
  46. data(){
  47. return {
  48. imgBase:this.$imgBase
  49. }
  50. },
  51. methods:{
  52. toTurn(url){
  53. uni.navigateTo({ url })
  54. }
  55. }
  56. }
  57. </script>
  58. <style scoped lang="less">
  59. .tabPage{
  60. width: 100%;
  61. padding: 0 24rpx 168rpx;
  62. box-sizing: border-box;
  63. background: #E8F6FC;
  64. .topbg{
  65. width: 100%;
  66. position: fixed;
  67. top: 0;
  68. left: 0;
  69. z-index: 0;
  70. }
  71. .content{
  72. width: 100%;
  73. padding: 0 50rpx;
  74. box-sizing: border-box;
  75. position: relative;
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. .box{
  80. width: 100%;
  81. .title{
  82. font-family: PingFang-SC, PingFang-SC;
  83. font-weight: bold;
  84. font-size: 48rpx;
  85. color: #1D2129;
  86. line-height: 48rpx;
  87. }
  88. .tip{
  89. font-family: PingFangSC, PingFang SC;
  90. font-weight: 400;
  91. font-size: 30rpx;
  92. color: #86909C;
  93. line-height: 30rpx;
  94. margin-top: 30rpx;
  95. }
  96. .cards{
  97. margin-top: 60rpx;
  98. .card{
  99. width: 100%;
  100. padding: 60rpx 36rpx;
  101. background: #FFFFFF;
  102. box-sizing: border-box;
  103. border-radius: 32rpx;
  104. display: flex;
  105. align-items: center;
  106. justify-content: space-between;
  107. margin-top: 40rpx;
  108. .left{
  109. display: flex;
  110. align-items: center;
  111. &>image{
  112. width: 80rpx;
  113. height: 80rpx;
  114. }
  115. .info{
  116. padding-left: 36rpx;
  117. .ititle{
  118. font-family: PingFang-SC, PingFang-SC;
  119. font-weight: bold;
  120. font-size: 36rpx;
  121. color: #1D2129;
  122. line-height: 50rpx;
  123. }
  124. .itip{
  125. font-family: PingFangSC, PingFang SC;
  126. font-weight: 400;
  127. font-size: 26rpx;
  128. color: #86909C;
  129. line-height: 36rpx;
  130. margin-top: 18rpx;
  131. }
  132. }
  133. }
  134. .right{
  135. image{
  136. width: 36rpx;
  137. height: 36rpx;
  138. }
  139. }
  140. }
  141. }
  142. }
  143. }
  144. }
  145. </style>