supplier.vue 737 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="container all-type-list-wrapper">
  3. <supplier-details :shopUserId="shopUserId" v-if="isLoading"></supplier-details>
  4. </view>
  5. </template>
  6. <script>
  7. import supplierDetails from "@/components/cm-module/supplier/supplierDetails.vue" //供应商详情
  8. export default{
  9. components:{
  10. supplierDetails
  11. },
  12. data(){
  13. return{
  14. shopUserId:0,
  15. shopInfo:{},
  16. isLoading:false
  17. }
  18. },
  19. onLoad(option) {
  20. console.log(option.shopUserId)
  21. this.shopUserId = option.shopUserId
  22. this.isLoading = true
  23. },
  24. methods:{
  25. },
  26. onShow() {
  27. }
  28. }
  29. </script>
  30. <style lang="scss">
  31. page {
  32. background: $sub-bg-color;
  33. .all-type-list-wrapper {
  34. display: flex;
  35. flex-direction: column;
  36. }
  37. }
  38. </style>