chunk-42603b15.c8a5ba96.js 19 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-42603b15"],{"857a":function(t,e,n){var i=n("e330"),r=n("1d80"),a=n("577e"),o=/"/g,s=i("".replace);t.exports=function(t,e,n,i){t=a(r(t));var c="<"+e;return""!==n&&(c+=" "+n+'="'+s(a(i),o,"&quot;")+'"'),c+">"+t+"</"+e+">"}},9911:function(t,e,n){"use strict";var i=n("23e7"),r=n("857a");i({target:"String",proto:!0,forced:n("af03")("link")},{link:function(t){return r(this,"a","href",t)}})},af03:function(t,e,n){var i=n("d039");t.exports=function(t){return i((function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}))}},c36e:function(t,e,n){"use strict";n.r(e),n("a4d3"),n("e01a"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("131a"),n("fb6a");var i=n("0122"),r=n("c964"),a=n("f3f3"),o=(n("ac1f"),n("5319"),n("b0c0"),n("d3b7"),n("9911"),n("159b"),n("e9c4"),n("a434"),n("d708")),s=n("f478"),c=n("2f62"),u=n("c4c8"),l=n("8593"),d=n("310e"),h=(d=n.n(d),n("b0e7")),f=n("7af3"),g=n("c276");function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(e){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var a,o,s,c;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),i=new L(i||[]);return r(e,"_invoke",{value:(a=t,o=n,s=i,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return O()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n&&(n=function t(e,n){var i=n.method,r=e.iterator[i];return void 0===r?(n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),h):(i=d(r,e.iterator,n.arg),"throw"===i.type?(n.method="throw",n.arg=i.arg,n.delegate=null,h):(r=i.arg,r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)))}(n,s),n)){if(n===h)continue;return n}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",n=d(a,o,s),"normal"===n.type){if(c=s.done?"completed":"suspendedYield",n.arg===h)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(c="completed",s.method="throw",s.arg=n.arg)}})}),e}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function f(){}function g(){}function m(){}a={};var v=(u(a,o,(function(){return this})),Object.getPrototypeOf),b=(v=v&&v(v(k([]))),v&&v!==e&&n.call(v,o)&&(a=v),m.prototype=f.prototype=Object.create(a));function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var a;r(this,"_invoke",{value:function(r,o){function s(){return new e((function(a,s){!function r(a,o,s,c){var u;a=d(t[a],t,o);if("throw"!==a.type)return(o=(u=a.arg).value)&&"object"==Object(i.a)(o)&&n.call(o,"__await")?e.resolve(o.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(o).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}));c(a.arg)}(r,o,a,s)}))}return a=a?a.then(s,s):s()}})}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var e,i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(i=function i(){for(;++e<t.length;)if(n.call(t,e))return i.value=t[e],i.done=!1,i;return i.value=void 0,i.done=!0,i}).next=i}return{next:O}}function O(){return{value:void 0,done:!0}}return r(b,"constructor",{value:g.prototype=m,configurable:!0}),r(m,"constructor",{value:g,configurable:!0}),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},_(y.prototype),u(y.prototype,s,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,i,r,a){void 0===a&&(a=Promise);var o=new y(l(e,n,i,r),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},_(b),u(b,c,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,n=Object(t),i=[];for(e in n)i.push(e);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=k,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return o.type="throw",o.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;0<=r;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;0<=i;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}var o=(a=a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc?null:a)?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,i,r=this.tryEntries[e];if(r.tryLoc===t)return"throw"===(n=r.completion).type&&(i=n.arg,w(r)),i}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}d={name:"list",components:{draggable:d.a,uploadPictures:h.a,linkaddress:f.a},computed:Object(a.a)({bgcolors:function(){return{"--color-theme":this.bgCol}},labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}},Object(c.d)("admin/layout",["menuCollapse"])),data:function(){return{formValidate:{content:""},ruleValidate:{},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:""},a:0,guide:0,bgimg:0,columns1:[],bgCol:"",name:"user_recharge_quota",grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,sginList:[],progress:0,swiperOption:{pagination:{el:".swiper-pagination"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},autoplay:{delay:2e3,disableOnInteraction:!1},loop:!1},url:"",BaseURL:o.a.apiBaseURL.replace(/adminapi/,""),pageId:62,theme3:"light",tabList:[],upload_type:"",uploadData:{},lastObj:{add_time:"",comment:"",gid:"",id:"",img:"",link:"",sort:"",status:1},isChoice:"单选",modalPic:!1,gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},groupAll:[],activeIndex:0,sortName:null,activeIndexs:0,cmsList:[],loadingExist:!1,formItem:{time:"",type:"pic",status:1,value:[],video_link:""},fileUrl:o.a.apiBaseURL+"/file/upload",cardUrl:o.a.apiBaseURL+"/file/upload/1",header:{},type:0,upload:{videoIng:!1}}},created:function(){this.color(),this.uploadType(),this.getToken(),this.guide=0,this.a=0,this.url="",this.getListHeader()},mounted:function(){this.info()},methods:{getEditorContent:function(t){this.formValidate.content=t},delVideo:function(){this.$set(this.formItem,"video_link","")},uploadType:function(){var t=this;Object(u.I)().then((function(e){t.upload_type=e.data.upload_type}))},handleSuccess:function(t,e,n){200===t.status?(this.$set(this.formItem,"video_link",t.data.src),this.$Message.success(t.msg)):this.$Message.error(t.msg)},zh_uploadFile:function(){this.video_link?this.formValidate.video_link=this.video_link:this.$refs.refid.click()},zh_uploadFile_change:function(t){var e=this;if(-1===t.target.files[0].name.substr(t.target.files[0].name.indexOf(".")).indexOf(".mp4"))return e.$Message.error("只能上传MP4文件");Object(u.u)().then((function(n){e.$videoCloud.videoUpload({type:n.data.type,evfile:t,res:n,uploading:function(t,n){e.upload.videoIng=t}}).then((function(t){e.formValidate.video_link=t.url,e.$Message.success("视频上传成功")})).catch((function(t){e.$Message.error(t)}))})).catch((function(t){e.$Message.error(t.msg)}))},getToken:function(){this.header["Authori-zation"]="Bearer "+Object(g.c)("token")},beforeUpload:function(){var t=this;return this.uploadData={},new Promise((function(e){t.$nextTick((function(){e(!0)}))}))},linkUrl:function(t){this.tabList.list[this.activeIndexs].link=t},color:function(){var t=this;Object(s.h)("color_change").then((function(e){switch(e.data.status){case 1:t.bgCol="#3875EA",t.bgimg=1;break;case 2:t.bgCol="#00C050",t.bgimg=2;break;case 3:t.bgCol="#E93323",t.bgimg=3;break;case 4:t.bgCol="#FF448F",t.bgimg=4;break;case 5:t.bgCol="#FE5C2D",t.bgimg=5}}))},groupAdd:function(){var t=this;this.$modalForm(Object(l.F)({gid:this.pageId,config_name:this.name},"setting/group_data/create")).then((function(){t.url=t.BaseURL+"pages/users/user_sgin/index",t.info()}))},info:function(){var t=this;Object(l.I)({config_name:this.name},"setting/group_data").then(function(){var e=Object(r.a)(p().mark((function e(n){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.tabList=n.data,"admin_login_slide"==t.name?t.tabList.list.forEach((function(t,e,n){"string"!=typeof t.slide&&"undefined"!=t.slide&&(t.slide=t.slide[0])})):"sign_day_num"==t.name?t.cmsList=n.data.list:"user_recharge_quota"==t.name?t.sginList=n.data:t.tabList.list.forEach((function(t,e,n){"string"!=typeof t.img&&"undefined"!=t.img&&(t.img=t.img[0])}));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)}))},edits:function(t){var e=this;if(this.pageId=t.id||0,this.name=t.config_name||"",1==t)this.a=1,this.guide=0,this.getAgreement();else if(2==t)this.a=0,this.guide=2,Object(l.B)().then((function(t){e.formItem=t.data,e.tabList.list=t.data.value}));else switch(this.info(),this.guide=0,this.a=0,t.config_name){case"routine_home_bast_banner":this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=1&name=精品推荐";break;case"sign_day_num":this.url="",this.getListHeader();break;case"combination_banner":this.url=this.BaseURL+"pages/activity/goods_combination/index";break;case"routine_home_hot_banner":this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=2&name=热门榜单";break;case"routine_home_new_banner":this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=3&name=首发新品";break;case"routine_home_benefit_banner":this.url=this.BaseURL+"pages/columnGoods/HotNewGoods/index?type=4&name=促销单品";break;case"user_recharge_quota":break;case"admin_login_slide":case"integral_shop_banner":this.url=""}},addBox:function(){var t;0==this.tabList.list.length?(this.tabList.list.push(this.lastObj),this.lastObj={add_time:"",comment:"",gid:"",id:"",img:"",link:"",sort:"",status:1}):5==this.tabList.list.length?this.$Message.warning("最多添加五张呦"):(t=JSON.parse(JSON.stringify(this.lastObj)),this.tabList.list.push(t))},bindDelete:function(t,e){this.tabList.list.splice(e,1)},modalPicTap:function(t,e){this.activeIndex=e,this.modalPic=!0},getPic:function(t){var e=this;this.$nextTick((function(){"admin_login_slide"==e.name?e.tabList.list[e.activeIndex].slide=t.att_dir:e.tabList.list[e.activeIndex].img=t.att_dir,e.modalPic=!1}))},save:function(){var t=this;1==this.a?this.onsubmit("formValidate"):2==this.guide?(this.formItem.value=this.tabList.list,Object(l.N)(this.formItem).then((function(e){t.$Message.success(e.msg)}))):(this.loadingExist=!0,Object(l.M)({gid:this.pageId,config_name:this.name,data:this.tabList.list}).then((function(e){t.loadingExist=!1,t.$Message.success(e.msg)})).catch((function(e){t.loadingExist=!1,t.$Message.error(e.msg)})))},link:function(t){this.activeIndexs=t,this.$refs.linkaddres.modals=!0},getListHeader:function(){var t=this;this.loading=!0,Object(l.H)({config_name:this.name},"setting/sign_data/header").then((function(e){e=e.data.header,t.columns1=e,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},edit:function(t){var e=this;this.$modalForm(Object(l.G)({gid:this.pageId,config_name:this.name},"setting/group_data/"+t.id+"/edit")).then((function(){e.info(),e.url=e.BaseURL+"pages/users/user_sgin/index"}))},del:function(t,e,n){var i=this;e={title:e,num:n,url:"setting/group_data/"+t.id,method:"DELETE",ids:""};this.$modalSure(e).then((function(t){i.info(),i.$Message.success(t.msg)})).catch((function(t){i.$Message.error(t.msg)}))},onchangeIsShow:function(t){var e=this;Object(l.J)("setting/group_data/set_status/"+t.id+"/"+t.status).then(function(){var t=Object(r.a)(p().mark((function t(n){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.url=e.BaseURL+"/pages/users/user_sgin/index",e.$Message.success(n.msg),e.info();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.url=e.BaseURL+"/pages/users/user_sgin/index",e.$Message.error(t.msg)}))},getGroupAll:function(){var t=this;Object(l.E)().then(function(){var e=Object(r.a)(p().mark((function e(n){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.groupAll=n.data,t.sortName=n.data[0].config_name,t.pageId=n.data[0].id;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getContent:function(t){this.formValidate.content=t},onsubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(l.Z)(e.formValidate).then(function(){var t=Object(r.a)(p().mark((function t(n){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(n.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))},getAgreement:function(){var t=this;Object(l.x)().then(function(){var e=Object(r.a)(p().mark((function e(n){var i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=n.data,t.formValidate={content:i.content};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)}))}}},n("e6ec"),h=n("2877"),f=Object(h.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:t.bgcolors},[n("div",{staticClass:"box-wrapper"},["user_recharge_quota"==t.name?n("div",{staticClass:"iframe"},[n("div",{staticClass:"iframe-boxs"},[n("div",{staticClass:"moneyBox"},[t._m(0),n("div",{staticClass:"moneyBox_content"},[t._m(1),n("div",{staticClass:"box3"},[t._l(t.sginList.list,(function(e,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:0!=e.status,expression:"item.status != 0"}],key:i,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._m(2)],2),t._m(3),n("div",{staticClass:"box5"},[t._v("立即充值")])])])])]):t._e(),"user_recharge_quota"==t.name?n("div",{staticStyle:{"margin-left":"20px"}},[n("div",{staticClass:"table_box"},[n("div",{attrs:{type:"flex"}},[n("div",t._b({},"div",t.grid,!1),[n("div",{staticClass:"title"},[t._v("充值金额设置")]),n("Button",{staticStyle:{"margin-left":"14px","margin-top":"30px"},attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.groupAdd("添加数据")}}},[t._v("添加数据")])],1)]),n("div",{staticClass:"table"},[n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.sginList.list,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var i=e.row;return e.index,[n("i-switch",{attrs:{value:i.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(i)}},model:{value:i.status,callback:function(e){t.$set(i,"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 i=e.row,r=e.index;return[n("a",{on:{click:function(e){return t.edit(i,"编辑")}}},[t._v("编辑")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(i,"删除这条信息",r)}}},[t._v("删除")])]}}],null,!1,1621473426)})],1)])]):t._e()]),n("linkaddress",{ref:"linkaddres",on:{linkUrl:t.linkUrl}})],1)}),[function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"box1"},[e("div",{staticClass:"font1"},[t._v("我的余额")]),e("div",[t._v("¥ "),e("i",{staticClass:"font2"},[t._v("0.00")])])])},function(){var t=this.$createElement;t=this._self._c||t;return t("div",{staticClass:"box2"},[t("div",[this._v("账户充值")]),t("div",[this._v("佣金导入")])])},function(){var t=this.$createElement;t=this._self._c||t;return t("div",{staticClass:"box3_box"},[t("div",{staticClass:"other"},[this._v("其他")])])},function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"box4"},[e("div",{staticClass:"tips"},[t._v("注意事项:")]),e("div",{staticClass:"tips-samll"},[e("p",[t._v("充值后帐户的金额不能提现,可用于商城消费使用。")]),e("p",[t._v("佣金导入账户之后不能再次导出、不可提现。")]),e("p",[t._v("账户充值出现问题可联系商城客服,也可拨打商城客服热线:40088888889。")])])])}],!1,null,"165e2701",null),e.default=f.exports},df9e:function(t,e,n){},e6ec:function(t,e,n){"use strict";var i=n("df9e");n.n(i).a}}]);