supplier.vue 812 B

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