detail.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. var isPC = ($(window).width()>768);
  2. jqMultipleShow("click", ".navList", ".tab", ".con");
  3. var seeDetail = new Vue({
  4. el:'#seeDetail',
  5. data:{
  6. shopID:'',
  7. userInfo:{},
  8. order:{},
  9. orderList:[],
  10. payShopRecord:[]
  11. },
  12. methods:{
  13. seeshopDetails:function () {
  14. var _this=this;
  15. SupplierApi.shopOrderDetails({shopOrderId:_this.shopID},function (res) {//列表初始化
  16. if(res.code==0){
  17. _this.order = res.data.shopOrder
  18. _this.userInfo = res.data.shopOrder.userInfo;
  19. _this.orderList =res.data.shopOrder.orderProductList;
  20. _this.payShopRecord = res.data.payShopRecord;
  21. // if(res.data.payShopRecord==''){
  22. // _this.payflag = false;
  23. // _this.payShopRecord = [];
  24. // }else {
  25. // _this.payflag = true;
  26. // _this.payShopRecord = res.data.payShopRecord;
  27. // }
  28. }
  29. })
  30. },
  31. },
  32. mounted:function () {
  33. var _self = this;
  34. _self.shopID=CAIMEI.getUrlParam('shopOrderID');
  35. _self.seeshopDetails();
  36. if(isPC){
  37. _self.open=true;
  38. }
  39. },
  40. })