memeber.js 4.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/bonus/memeber/memeber"],{6057:function(t,e,n){},"77cd":function(t,e,n){"use strict";var o,r=function(){var t=this,e=t.$createElement;t._self._c},i=[];n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},"7a7f":function(t,e,n){"use strict";(function(t){n("8748");o(n("66fd"));var e=o(n("7c24"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"7c24":function(t,e,n){"use strict";n.r(e);var o=n("77cd"),r=n("8c4d");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("a7e1");var c,a=n("f0c5"),s=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"2b4b5e63",null,!1,o["a"],c);e["default"]=s.exports},"8c4d":function(t,e,n){"use strict";n.r(e);var o=n("b435"),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},a7e1:function(t,e,n){"use strict";var o=n("6057"),r=n.n(o);r.a},b435:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function r(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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-layout/app-layout")]).then(function(){return resolve(n("3dd6"))}.bind(null,n)).catch(n.oe)},s=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-form-id/app-form-id")]).then(function(){return resolve(n("e583"))}.bind(null,n)).catch(n.oe)},u=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-rich/parse")]).then(function(){return resolve(n("ee52"))}.bind(null,n)).catch(n.oe)},d={data:function(){var t;return t={order_by:"bonus_price desc",captain_id:null,keyword:"",page:2,setting:"",more_list:!1},c(t,"setting",""),c(t,"toSearch",!1),c(t,"list",[]),t},components:{"app-layout":a,"app-form-id":s,"app-rich-text":u},computed:i({},(0,o.mapState)({theme:function(t){return t.mallConfig.theme}})),methods:{toOrder:function(e){t.navigateTo({url:"/plugins/bonus/order/order?nickname="+e})},cancelSeacrch:function(){this.keyword="",this.toSearch=!this.toSearch,this.page=2,this.getList()},beSearch:function(){this.toSearch=!this.toSearch,this.page=2},goSearch:function(){t.showLoading({title:"加载中..."}),this.getList()},toggle:function(){"bonus_price desc"==this.order_by?this.order_by="bonus_price":"bonus_price"==this.order_by&&(this.order_by="bonus_price desc"),this.list=[],this.page=2,this.getList()},getSetting:function(){var e=this;e.$request({url:e.$api.bonus.setting}).then((function(n){e.getList(),0==n.code?(e.setting=n.data.list,e.setting.form&&e.setting.form.members?t.setNavigationBarTitle({title:e.setting.form.members}):t.setNavigationBarTitle({title:"队员"})):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){}))},getList:function(){var e=this;e.$request({url:e.$api.bonus.team,data:{keyword:e.keyword,keyword_1:1,order_by:e.order_by},method:"post"}).then((function(n){e.$hideLoading(),t.hideLoading(),0==n.code?e.list=n.data.list:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(n){e.$hideLoading(),t.hideLoading()}))},getMore:function(){var e=this;e.$request({url:e.$api.bonus.team,data:{keyword:e.keyword,keyword_1:1,order_by:e.order_by,page:e.page}}).then((function(n){e.$hideLoading(),0==n.code?(e.list=e.list.concat(n.data.list),e.page++):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))}},onLoad:function(){var t=this;t.$showLoading({type:"global",text:"加载中..."}),t.getSetting()},onReachBottom:function(){this.getMore()}};e.default=d}).call(this,n("543d")["default"])}},[["7a7f","common/runtime","common/vendor"]]]);