index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <view class="homePage-container">
  3. <!-- 数字货架 -->
  4. <div class="panel-box">
  5. <div class="panel-title"><div class="texts">数字货架</div></div>
  6. <div class="panel-body"><iconItemsList :list="storageRacksNavList"></iconItemsList></div>
  7. </div>
  8. <!-- 调回管理 -->
  9. <div class="graid-box">
  10. <div class="graid-box-1">
  11. <div class="title">调回管理</div>
  12. <div>商品调回记录查询</div>
  13. </div>
  14. <div class="graid-box-1">
  15. <div class="title">补打贴签</div>
  16. <div>遗漏标签快捷处理</div>
  17. </div>
  18. </div>
  19. </view>
  20. </template>
  21. <script>
  22. import iconItemsList from '@/components/icon-items-list/icon-items-list.vue';
  23. export default {
  24. components: {
  25. iconItemsList,
  26. },
  27. data() {
  28. return {
  29. // 数字货架
  30. storageRacksNavList: [],
  31. theme: ''
  32. }
  33. },
  34. onLoad() {
  35. // 设置底部tabbar 样式
  36. const theme = getApp().globalData.theme
  37. this.theme = theme
  38. uni.setTabBarItem({
  39. "index": 0,
  40. "iconPath": "static/"+theme+"/tabbar/home.png",
  41. "selectedIconPath": "static/"+theme+"/tabbar/home-active.png",
  42. })
  43. uni.setTabBarItem({
  44. "index": 1,
  45. "iconPath": "static/"+theme+"/tabbar/user.png",
  46. "selectedIconPath": "static/"+theme+"/tabbar/user-active.png",
  47. })
  48. uni.setTabBarStyle({
  49. color: this.$config("topBarTitleColors"),
  50. selectedColor: this.$config("primaryColor"),
  51. borderStyle: 'white',
  52. complete: function(res){
  53. console.log(res)
  54. }
  55. })
  56. // 数组货架导航按钮
  57. this.storageRacksNavList = [
  58. {
  59. id: 'scanVin',
  60. icon: `/static/${this.theme}/navIcon/home_icon_confirm@3x.png`,
  61. name: '待确认',
  62. url: function() {
  63. _this._pickPhoto('carVinNumber')
  64. },
  65. target: 'fun',
  66. auth: true
  67. },
  68. {
  69. id: 'scanGoods',
  70. icon: `/static/${this.theme}/navIcon/home_icon_out@3x.png`,
  71. name: '待出库',
  72. url: '/pages/digitalShelf/orderList',
  73. target: 'page',
  74. auth: true
  75. },
  76. {
  77. id: 'bhrk',
  78. icon: `/static/${this.theme}/navIcon/home_icon_warehousing@3x.png`,
  79. name: '待入库',
  80. url: '/pages/digitalShelf/stockPut',
  81. target: 'page',
  82. auth: true
  83. },
  84. {
  85. id: 'jsgl',
  86. icon: `/static/${this.theme}/navIcon/home_icon_entire@3x.png`,
  87. name: '全部',
  88. url: '/pages/digitalShelf/settlementManage/settlementManage',
  89. target: 'page',
  90. auth: true
  91. }
  92. ];
  93. },
  94. onShow() {
  95. },
  96. methods:{
  97. }
  98. }
  99. </script>
  100. <style lang="scss">
  101. .homePage-container {
  102. width: 100%;
  103. padding: 30rpx;
  104. .graid-box{
  105. display: flex;
  106. align-items: center;
  107. .graid-box-1{
  108. background-color: #ffffff;
  109. border-radius: 30upx;
  110. box-shadow: 3upx 2upx 6upx #eee;
  111. padding: 30rpx;
  112. width: 50%;
  113. font-size: 28rpx;
  114. color: #424D5E;
  115. .title{
  116. font-size: 45rpx;
  117. color: #191919;
  118. font-weight: bold;
  119. }
  120. }
  121. > div{
  122. &:first-child{
  123. margin-right: 15rpx;
  124. }
  125. &:last-child{
  126. margin-left: 15rpx;
  127. }
  128. }
  129. }
  130. .panel-box {
  131. background-color: #ffffff;
  132. border-radius: 30upx;
  133. padding: 10upx 20upx;
  134. box-shadow: 3upx 2upx 6upx #eee;
  135. margin-bottom: 30upx;
  136. .panel-title {
  137. display: flex;
  138. align-items: center;
  139. padding: 20upx 12upx;
  140. .texts {
  141. font-size: 32upx;
  142. flex-grow: 1;
  143. }
  144. .btns {
  145. font-size: 28upx;
  146. color: #999;
  147. display: flex;
  148. align-items: center;
  149. }
  150. }
  151. .panel-body {
  152. padding: 0 10upx;
  153. .nodata {
  154. text-align: center;
  155. font-size: 24upx;
  156. width: 100%;
  157. color: #999999;
  158. padding: 30upx 0;
  159. }
  160. }
  161. }
  162. }
  163. </style>