1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/share/level/level"],{"1dc9":function(t,e,n){},"223b":function(t,e,n){"use strict";var o,i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.rule.show=!1},t.e1=function(e){t.rule.show=!1})},a=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}))},"319c":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");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 a(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){r(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}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={name:"level",onLoad:function(){this.loadData()},data:function(){return{list:null,dialog:{show:!1,status:0,level_name:"",condition_text:""},rule:{show:!1,content:""}}},computed:a({},(0,o.mapState)({mallConfig:function(t){return t.mallConfig}}),{dialogBg:function(){return this.dialog.status?"background-image: url(".concat(this.mallConfig.__wxapp_img.share.dialog_success,")"):"background-image: url(".concat(this.mallConfig.__wxapp_img.share.dialog_error,")")},bg:function(){return this.list?this.list.length>0?"background-image: url(".concat(this.mallConfig.__wxapp_img.share.sharebg,")"):"background-image: url(".concat(this.mallConfig.__wxapp_img.share.no_level_bg,")"):""}}),methods:{loadData:function(){var e=this;this.$showLoading(),this.$request({url:this.$api.share.level}).then((function(n){e.$hideLoading(),0==n.code?e.list=n.data.list:t.showModal({content:n.msg,showCancel:!1})})).catch((function(t){e.$hideLoading()}))},levelUp:function(){var e=this;t.showLoading({title:"升级中..."}),this.$request({url:this.$api.share.level_up}).then((function(n){t.hideLoading(),0==n.code?(e.dialog.show=!0,e.dialog=a({},e.dialog,{},n.data)):t.showModal({content:n.msg,showCancel:!1})})).catch((function(e){t.hideLoading()}))},cancel:function(){this.dialog.show=!1,1==this.dialog.status&&this.loadData()},ruleClick:function(t){this.rule.show=!0,this.rule.content=t.rule}}};e.default=c}).call(this,n("543d")["default"])},"80b8":function(t,e,n){"use strict";n.r(e);var o=n("223b"),i=n("b8c8");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("946b");var r,c=n("f0c5"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"000851c0",null,!1,o["a"],r);e["default"]=u.exports},"946b":function(t,e,n){"use strict";var o=n("1dc9"),i=n.n(o);i.a},b8c8:function(t,e,n){"use strict";n.r(e);var o=n("319c"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},e5ae:function(t,e,n){"use strict";(function(t){n("8748");o(n("66fd"));var e=o(n("80b8"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["e5ae","common/runtime","common/vendor"]]]);
|