11 lines
3.2 KiB
JavaScript
11 lines
3.2 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/component/modal/level"],{"05a5":function(e,t,n){"use strict";n.r(t);var o=n("f796"),i=n("d22d");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("4dec");var c=n("828b"),l=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=l.exports},"4dec":function(e,t,n){"use strict";var o=n("9809"),i=n.n(o);i.a},"94a0":function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("7ca3")),r=n("8f59");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var l={name:"modalLevel",data:function(){return{levelList:[],selectItem:[]}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,r.mapState)({themeColor:function(e){return e.app.themeColor}})),methods:{open:function(e){this.levelList=[],this.getLevelList(e),this.$refs.popupModal.open()},getLevelList:function(t){var n=this;this.$util.request("member.level").then((function(o){if(1==o.code)for(var i in n.levelList=o.data,n.selectItem=[],n.levelList)for(var r in t)n.levelList[i].id==t[r].id&&n.selectItem.push(n.levelList[i]);else e.showToast({title:o.msg,icon:"none"})})).catch((function(e){console.error("获取会员级别 ",e)}))},selectLevel:function(e){this.selectItem.includes(e)?this.$delete(this.selectItem,this.selectItem.indexOf(e)):this.selectItem.push(e)},onClose:function(){this.$refs.popupModal.close()},onReset:function(){this.selectItem=[],this.$emit("callback",[]),this.onClose()},onConfirm:function(){this.$emit("callback",this.selectItem),this.onClose()},onChange:function(e){this.$emit("onChange",e.show)}}};t.default=l}).call(this,n("df3c")["default"])},9809:function(e,t,n){},d22d:function(e,t,n){"use strict";n.r(t);var o=n("94a0"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},f796:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o}));var o={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"f295"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.levelList,(function(t,n){var o=e.__get_orig(t),i=e.selectItem.includes(t);return{$orig:o,g0:i}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'pages/component/modal/level-create-component',
|
|
{
|
|
'pages/component/modal/level-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("05a5"))
|
|
})
|
|
},
|
|
[['pages/component/modal/level-create-component']]
|
|
]);
|