1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-29aaa501"],{2666:function(t,e,n){"use strict";var s=n("8245");n.n(s).a},8245:function(t,e,n){},c36e:function(t,e,n){"use strict";n.r(e);var s=n("a34a"),a=n.n(s),i=n("f478"),r=n("2f62"),o=n("8593");function c(t,e,n,s,a,i,r){try{var o=t[i](r),c=o.value}catch(t){return void n(t)}o.done?e(c):Promise.resolve(c).then(s,a)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(s,a){var i=t.apply(e,n);function r(t){c(i,s,a,r,o,"next",t)}function o(t){c(i,s,a,r,o,"throw",t)}r(void 0)}))}}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,s)}return n}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f={name:"list",computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(n,!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({bgcolors:function(){return{"--color-theme":this.bgCol}},labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}},Object(r.e)("admin/layout",["menuCollapse"])),data:function(){return{gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},grid:{xl:7,lg:7,md:12,sm:24,xs:24},name:"user_recharge_quota",pageId:0,columns:[],bgCol:"",loading:!1,recharge:[],gid:0}},created:function(){this.color()},mounted:function(){this.getListHeader(),this.getGroupAll(),this.info()},methods:{info:function(){var t=this;Object(o.D)({config_name:this.name},"setting/group_data").then(function(){var e=u(a.a.mark((function e(n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.recharge=n.data.list,t.gid=n.data.gid;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},groupAdd:function(){var t=this;this.$modalForm(Object(o.A)({gid:this.gid,config_name:this.name},"setting/group_data/create")).then((function(){t.info()}))},edit:function(t){var e=this;this.$modalForm(Object(o.B)({gid:t.gid,config_name:this.name},"setting/group_data/"+t.id+"/edit")).then((function(){e.info()}))},getGroupAll:function(){var t=this;Object(o.z)().then(function(){var e=u(a.a.mark((function e(n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.data.forEach((function(e){e.config_name==t.name&&(t.pageId=e.id)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},del:function(t,e,n){var s=this,a={title:e,num:n,url:"setting/group_data/"+t.id,method:"DELETE",ids:""};this.$modalSure(a).then((function(t){s.info(),s.$Message.success(t.msg)})).catch((function(t){s.$Message.error(t.msg)}))},onchangeIsShow:function(t){var e=this;Object(o.E)("setting/group_data/set_status/"+t.id+"/"+t.status).then(function(){var t=u(a.a.mark((function t(n){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(n.msg),e.info();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getListHeader:function(){var t=this;this.loading=!0,Object(o.C)({config_name:this.name},"setting/sign_data/header").then((function(e){t.columns=e.data.header,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},color:function(){var t=this;Object(i.h)("color_change").then((function(e){switch(e.data.status){case 1:t.bgCol="#1DB0FC";break;case 2:t.bgCol="#42CA4D";break;case 3:t.bgCol="#e93323";break;case 4:t.bgCol="#FF448F";break;case 5:t.bgCol="#FE5C2D";break;case 6:t.bgCol="#e0a558"}}))}}},g=(n("2666"),n("2877")),v=Object(g.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:t.bgcolors},[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Row",{staticClass:"ivu-mt acea-row"},[n("Col",{staticClass:"iframe"},[n("div",{staticClass:"iframe-boxs"},[n("div",{staticClass:"moneyBox"},[n("div",{staticClass:"box1"},[n("div",{staticClass:"font1"},[t._v("我的余额")]),n("div",[t._v("¥ "),n("i",{staticClass:"font2"},[t._v("0.00")])])]),n("div",{staticClass:"moneyBox_content"},[n("div",{staticClass:"box2"},[n("div",[t._v("账户充值")]),n("div",[t._v("佣金导入")])]),n("div",{staticClass:"box3"},[t._l(t.recharge,(function(e,s){return 0!=e.status?n("div",{staticClass:"box3_box"},[n("div",[t._v(t._s(e.price)),n("i",{staticClass:"font"},[t._v("元")])]),n("div",{staticClass:"font"},[t._v("赠送:"+t._s(e.give_money)+"元")])]):t._e()})),n("div",{staticClass:"box3_box"},[n("div",{staticClass:"other"},[t._v("其他")])])],2),n("div",{staticClass:"box4"},[n("div",{staticClass:"tips"},[t._v("注意事项:")]),n("div",{staticClass:"tips-samll"},[n("p",[t._v("充值后帐户的金额不能提现,可用于商城消费使用。")]),n("p",[t._v("佣金导入账户之后不能再次导出、不可提现。")]),n("p",[t._v("账户充值出现问题可联系商城客服,也可拨打商城客服热线:40088888889。")])])]),n("div",{staticClass:"box5"},[t._v("立即充值")])])])])]),n("Col",{staticClass:"right ml20"},[n("div",{staticClass:"table_box"},[n("Row",{attrs:{type:"flex"}},[n("Col",t._b({},"Col",t.grid,!1),[n("div",{staticClass:"title"},[t._v("充值金额设置")]),n("Button",{staticClass:"ml14 mt30",attrs:{type:"primary"},on:{click:function(e){return t.groupAdd("添加数据")}}},[t._v("添加数据")])],1)],1),n("div",{staticClass:"table"},[n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.recharge,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var s=e.row;return e.index,[n("i-switch",{attrs:{value:s.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"row.status"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}},{key:"action",fn:function(e){var s=e.row,a=e.index;return[n("a",{on:{click:function(e){return t.edit(s,"编辑")}}},[t._v("编辑")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(s,"删除这条信息",a)}}},[t._v("删除")])]}}])})],1)],1)])],1)],1)],1)}),[],!1,null,"17858bd6",null);e.default=v.exports}}]);
|