1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/activity/list"],{"0b1f":function(t,e,n){},"2b1f":function(t,e,n){"use strict";n.r(e);var o=n("87dc"),a=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},"2de5":function(t,e,n){"use strict";n.r(e);var o=n("5353"),a=n("2b1f");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("a69e");var u=n("f0c5"),c=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=c.exports},"36d3":function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("2ab2");o(n("66fd"));var a=o(n("2de5"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},5353:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var o={wmWatermark:function(){return n.e("components/wm-watermark/wm-watermark").then(n.bind(null,"e144"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ccaa"))},uPopup:function(){return n.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(n.bind(null,"7401"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(n.bind(null,"830c"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"51b1b"))},uLoadmore:function(){return n.e("uni_modules/vk-uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,"8b52"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.dataList.length);t._isMounted||(t.e0=function(e){t.searchPopupShow=!0},t.e1=function(e){t.searchPopupShow=!1}),t.$mp.data=Object.assign({},{$root:{g0:n}})},r=[]},"87dc":function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("448a")),r=o(n("9523")),u=n("66f6"),c=o(n("1bf8"));function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={components:{wmWatermark:function(){n.e("components/wm-watermark/wm-watermark").then(function(){return resolve(n("e144"))}.bind(null,n)).catch(n.oe)}},data:function(){return{searchKeyword:null,searchPopupShow:!1,searchFormData:{name:"",phone:""},orderMethod:0,filterDropdownValue:{},dataList:[],loadmore:{status:"loadmore",loadingText:"努力加载中",defaultText:"轻轻上拉 查看更多",nomoreText:"实在没有了",currnetPage:1},curRoles:"",userInfo2:{},areaTypeObj:{},curEid:"",curEname:""}},onLoad:function(e){e.eid&&(this.curEid=e.eid,this.curEname=e.enames),this.getDataList(),this.userInfo2=t.getStorageSync("MD_userInfo2"),this.curRoles=t.getStorageSync("MD_userInfo2")?t.getStorageSync("MD_userInfo2").roles:"";var n=t.getStorageSync("MD_dict");this.areaTypeObj=(0,u.arrToObj)(n.area_type)},onReachBottom:function(){"nomore"!=this.loadmore.status&&(this.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:{listItemHandle:function(e){this.userInfo2&&1==this.userInfo2.auth_state&&(2==e.activity_type?t.navigateTo({url:"/pages/agent/activity/join2?id=".concat(e.id)}):t.navigateTo({url:"/pages/agent/activity/join?id=".concat(e.id)}))},copyTextHandle:function(e){(0,c.default)({content:"".concat(e.name,"-").concat("male"==e.sex?"男":"女","-").concat(e.phone),success:function(e){t.showToast({title:e,icon:"none"})},error:function(e){t.showToast({title:e,icon:"none",duration:3e3})}})},getDataList:function(e){var n=this,o=s({},this.searchFormData);n.orderMethod>0&&(1===n.orderMethod&&(o.order_by=JSON.stringify([{field:"create_at",sort:"desc"}])),2===n.orderMethod&&(o.order_by=JSON.stringify([{field:"create_at",sort:"asc"}]))),t.api.cust.apiactivitylist(s({page:n.loadmore.currnetPage},o)).then((function(o){var r=o.list||[];r.length<10&&(n.loadmore.status="nomore"),1===o.current_page?(0===r.length&&t.$msg("无搜索结果","none"),n.dataList=(0,a.default)(r)):n.dataList=n.dataList.concat(r),e&&e()}))},customBack:function(){t.navigateBack()},pageTo:function(e,n){t.navigateTo({url:e,events:{update:function(t){}},success:function(t){t.eventChannel.emit("data",n)}})},searchHandle:function(){var t=this;this.loadmore.currnetPage=1,this.getDataList((function(){t.searchPopupShow=!1}))},getTime:function(t){var e=t?new Date(t):new Date,n=e.getFullYear(),o=e.getMonth()+1;o=o>9?o:"0"+o;var a=e.getDate();a=a>9?a:"0"+a;var r=e.getHours();r=r>9?r:"0"+r;var u=e.getMinutes();u=u>9?u:"0"+u;var c=e.getSeconds();return c=c>9?c:"0"+c,"".concat(n,"-").concat(o,"-").concat(a," ").concat(r,":").concat(u,":").concat(c)}}};e.default=d}).call(this,n("543d")["default"])},a69e:function(t,e,n){"use strict";var o=n("0b1f"),a=n.n(o);a.a}},[["36d3","common/runtime","common/vendor"]]]);
|