supplychainon.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <view class="supplychainon-wrapper">
  3. <headerCom headerTitle="供应链列表" @headerJump="headerJump"></headerCom>
  4. <view class="headers-box">
  5. <searchVue
  6. placeholder="请输入商品名称"
  7. @search="onHandleSearch"
  8. ></searchVue>
  9. <tablist
  10. class="mt"
  11. :category="category"
  12. :curruntActive="curruntActive"
  13. ></tablist>
  14. </view>
  15. <view class="content-wrapper">
  16. <ProductCard class="mrb" />
  17. <ProductCard class="mrb" />
  18. <ProductCard class="mrb" />
  19. <ProductCard class="mrb" />
  20. <ProductCard class="mrb" />
  21. <ProductCard class="mrb" />
  22. <view
  23. class=""
  24. style="margin: 60rpx 0 30rpx 0; color: #999999; font-size: 26rpx"
  25. >
  26. —— 已经到最底部了哦 ——
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import headerCom from "../../shop/components/headers/headers.vue";
  33. import searchVue from "./search/search.vue";
  34. import tablist from "./tablist.vue";
  35. import ProductCard from "./ProductCard.vue";
  36. export default {
  37. components: {
  38. headerCom,
  39. searchVue,
  40. tablist,
  41. ProductCard,
  42. },
  43. data() {
  44. return {
  45. productData: {},
  46. curruntActive: 0,
  47. category: [
  48. {
  49. type: 1,
  50. name: "出售中商品",
  51. count: 0,
  52. },
  53. {
  54. type: 2,
  55. name: "仓库中商品",
  56. count: 0,
  57. },
  58. ],
  59. };
  60. },
  61. onLoad(options) {
  62. this.curruntActive = options.indexs || "0";
  63. },
  64. methods: {
  65. headerJump() {
  66. uni.switchTab({ url: "/shop/productManagementModule/index" });
  67. },
  68. onHandleSearch(val) {
  69. console.log(val);
  70. },
  71. },
  72. };
  73. </script>
  74. <style>
  75. page {
  76. background-color: #f7f8fc;
  77. height: 100%;
  78. }
  79. </style>
  80. <style lang="scss" scoped>
  81. .supplychainon-wrapper {
  82. .headers-box {
  83. position: fixed;
  84. top: 88rpx;
  85. left: 0;
  86. width: 100%;
  87. z-index: 33;
  88. }
  89. .content-wrapper {
  90. width: 100%;
  91. height: 100%;
  92. display: flex;
  93. flex-direction: column;
  94. align-items: center;
  95. margin: 340rpx 0rpx 0rpx;
  96. padding-bottom: 60rpx;
  97. }
  98. }
  99. .mt {
  100. margin-top: 0rpx;
  101. }
  102. .mrb {
  103. margin-bottom: 26rpx;
  104. }
  105. </style>