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.
1 line
5.1 KiB
1 line
5.1 KiB
8 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/pages/collect"],{2785:function(t,e,n){"use strict";var a=n("6780"),i=n.n(a);i.a},"3b57":function(t,e,n){"use strict";n.r(e);var a=n("fca2"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"55cd":function(t,e,n){"use strict";n.r(e);var a=n("66f0"),i=n("3b57");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("2785");var r=n("828b"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=c.exports},"66f0":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0&&t.location.lng:null),a=!t.loading&&t.list.data.length<=0&&1==t.list.current_page&&t.location.lng;t._isMounted||(t.e0=function(e){return t.$util.checkAuth({type:"userLocation"})}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:a}})},i=[]},6780:function(t,e,n){},"9c15":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("7043");a(n("3240"));var i=a(n("55cd"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},fca2:function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("7eb4")),o=a(n("ee10")),r=a(n("7ca3")),c=n("8f59");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={components:{technicianListItem:function(){n.e("components/technician-list-item").then(function(){return resolve(n("a0e3"))}.bind(null,n)).catch(n.oe)},technicianListPopup:function(){n.e("components/technician-list-popup").then(function(){return resolve(n("ba2d"))}.bind(null,n)).catch(n.oe)}},data:function(){return{options:{},param:{page:1,ser_id:0,coach_name:""},list:{data:[]},loading:!0}},computed:(0,c.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}}),onLoad:function(){this.$util.showLoading(),this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.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:s(s(s({},(0,c.mapActions)([])),(0,c.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var e=arguments,n=this;return(0,o.default)(i.default.mark((function a(){return i.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.length>0&&void 0!==e[0]&&e[0],a.next=3,n.getList();case 3:n.$util.setNavigationBarColor({bg:n.primaryColor}),t.setNavigationBarTitle({title:"收藏"+n.$t("action.attendantName")});case 5:case"end":return a.stop()}}),a)})))()},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,o.default)(i.default.mark((function e(){var n,a,o,r,c,u,s,l,f;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.location,n.lat){e.next=6;break}return e.next=4,t.$util.getBmapLocation();case 4:n=e.sent,t.updateUserItem({key:"location",val:n});case 6:return a=t.list,o=t.param,r=n,c=r.lng,u=void 0===c?0:c,s=r.lat,l=v
|