info.js 516 B

123456789101112131415161718192021222324252627282930313233
  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. },
  23. onReady() {
  24. this.getSellDetail();
  25. }
  26. }