info.js 596 B

1234567891011121314151617181920212223242526272829303132333435
  1. import * as API from '@/apis/merchant.js'
  2. export default {
  3. data() {
  4. return {
  5. id:'',
  6. info:{}
  7. }
  8. },
  9. methods: {
  10. getSellDetail() {
  11. this.$refs.common.showLoading()
  12. API.sellDetail(this.id).then(response => {
  13. this.info = response.data;
  14. this.$refs.common.showLoading(false);
  15. }).catch(error => {
  16. this.$refs.common.showLoading(false, error);
  17. })
  18. },
  19. },
  20. onLoad(temp) {
  21. this.id = temp.id;
  22. if(process.car.SIMPLE_RUN){
  23. this.id="1908362f-9685-462c-93bb-200c4997641"
  24. }
  25. },
  26. onReady() {
  27. this.getSellDetail();
  28. }
  29. }