You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xxdj1/unpackage/dist/build/h5/static/js/user-pages-collect.f9753a39.js

1 line
24 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-collect"],{"0415":function(t,e,i){"use strict";i.r(e);var a=i("24f1"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"07e2":function(t,e,i){var a=i("481c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("2fb11ecc",a,!0,{sourceMap:!1,shadowMode:!1})},"24f1":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af"),i("d81d"),i("14d9"),i("caad"),i("c740"),i("2532"),i("a434");var n=a(i("ade3")),s=a(i("c7eb")),c=a(i("1da1")),o=a(i("5530")),r=i("26cb"),l={components:{},data:function(){return{options:{},imgType:{1:"top",2:"hot",3:"new"},param:{page:1,ser_id:0,coach_name:""},list:{data:[]},loading:!0,showInd:-1,showType:"",lockTap:!1,serviceList:[],commentList:[]}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location},carList:function(t){return t.order.carList}}),onLoad:function(){this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,o.default)((0,o.default)((0,o.default)({},(0,r.mapActions)(["getCarList"])),(0,r.mapMutations)(["updateUserItem"])),{},(0,n.default)({goShop:function(t){console.log(t,"hhhh"),this.$util.goUrl({url:"/user/pages/myGroup/myGroup?isGroup=false&company_id="+t.company_id})},initIndex:function(){var t=arguments,e=this;return(0,c.default)((0,s.default)().mark((function i(){var a;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:return i.next=7,e.getList();case 7:e.$util.setNavigationBarColor({bg:e.primaryColor});case 8:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},toSearch:function(t){this.param.page=1,this.param.coach_name=t,this.getList()},getList:function(){var t=this;return(0,c.default)((0,s.default)().mark((function e(){var i,a,n,c,o,r,l,u,d,p,f,v,g,h,m,w,x,b,_,C,y,k,A,I;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.location,i.lat){e.next=22;break}if(!t.$jweixin.isWechat()){e.next=21;break}return t.$util.showLoading(),e.next=6,t.$jweixin.wxReady2();case 6:return e.next=8,t.$jweixin.getWxLocation();case 8:if(a=e.sent,n=a.latitude,c=void 0===n?0:n,o=a.longitude,r=void 0===o?0:o,i={lng:r,lat:c,address:"定位失败",province:"",city:"",district:""},!c||!r){e.next=21;break}return l="".concat(c,",").concat(r),e.next=18,t.$api.base.getMapInfo({location:l});case 18:u=e.sent,d=JSON.parse(u),p=d.status,f=d.result,0==p&&(v=f.address,g=f.address_component,h=g.province,m=g.city,w=g.district,i={lng:r,lat:c,address:v,province:h,city:m,district:w});case 21:t.updateUserItem({key:"location",val:i});case 22:return x=t.list,b=t.param,_=i,C=_.lng,y=void 0===C?0:C,k=_.lat,A=void 0===k?0:k,b=Object.assign({},b,{lng:y,lat:A}),e.next=27,t.$api.mine.coachCollectList(b);case 27:I=e.sent,1==t.param.page||(I.data=x.data.concat(I.data)),t.list=I,t.loading=!1,t.$util.hideAll();case 31:case"end":return e.stop()}}),e)})))()},handerTabChange:function(t){this.activeIndex=t,this.showInd=-1,this.$util.showLoading(),this.param.page=1,this.getList()},toPreviewImage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.list.data[t],a=i.self_img,n=i.work_img;e&&(a=[n]),this.$util.previewImage({current:a[0],urls:a})},toShowPopup:function(t,e){var i=this;return(0,c.default)((0,s.default)().mark((function