You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/public/admin/system_static/js/chunk-07b70953.a83eb5f9.js

1 lines
6.9 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-07b70953"],{"4e82":function(e,t,r){"use strict";var i=r("23e7"),n=r("e330"),a=r("59ed"),l=r("7b0b"),o=r("07fa"),s=r("083a"),d=r("577e"),u=r("d039"),c=r("addb"),p=r("a640"),f=r("04d1"),m=r("d998"),h=r("2d00"),b=r("512ce"),v=[],y=n(v.sort),w=n(v.push),g=(r=u((function(){v.sort(void 0)})),n=u((function(){v.sort(null)})),p=p("sort"),!u((function(){if(h)return h<70;if(!(f&&3<f)){if(m)return!0;if(b)return b<603;for(var e,t,r,i="",n=65;n<76;n++){switch(e=String.fromCharCode(n),n){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)v.push({k:e+r,v:t})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)e=v[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}})));i({target:"Array",proto:!0,forced:r||!n||!p||!g},{sort:function(e){void 0!==e&&a(e);var t=l(this);if(g)return void 0===e?y(t):y(t,e);for(var r,i,n=[],u=o(t),p=0;p<u;p++)p in t&&w(n,t[p]);for(c(n,(i=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==i?+i(e,t)||0:d(e)>d(t)?1:-1})),r=o(n),p=0;p<r;)t[p]=n[p++];for(;p<u;)s(t,p++);return t}})},9406:function(e,t,r){"use strict";r.r(t),r("4e82"),r("99af"),r("d3b7"),r("159b"),r("caad"),r("b64b"),r("e9c4");var i=r("c24f"),n={name:"list",data:function(){return{tbody:[],loading:!1,modal:!1,rowEdit:{},rowModelType:"编辑",options:{form:{labelWidth:"100px"}},rule:[{type:"hidden",field:"id",value:""},{type:"hidden",field:"type",value:""},{type:"input",field:"title",title:"会员名",value:"",props:{disabled:!1,placeholder:"输入会员名"},validate:[{type:"string",max:10,min:1,message:"请输入长度为1-10的名称",requred:!0}]},{type:"InputNumber",field:"vip_day",title:"有限期(天)",value:null,props:{precision:0,disabled:!1,type:"text",placeholder:"输入有限期",controls:!1},style:{width:"100%"},validate:[{type:"number",max:1e6,min:0,message:"最大只能输入1000000,最小为0",requred:!0}]},{type:"InputNumber",field:"price",title:"原价",value:null,props:{min:0,disabled:!1,placeholder:"输入原价",controls:!1},style:{width:"100%"},validate:[{type:"number",max:1e6,min:0,message:"最大只能输入1000000,最小为0",requred:!0}]},{type:"InputNumber",field:"pre_price",title:"优惠价",value:null,props:{min:0,disabled:!1,placeholder:"输入优惠价",controls:!1},style:{width:"100%"},validate:[{type:"number",max:1e6,min:0,message:"最大只能输入1000000,最小为0",requred:!0}]},{type:"InputNumber",field:"sort",title:"排序",value:0,props:{min:1,max:1e6,disabled:!1,placeholder:"请输入排序",controls:!1},style:{width:"100%"},validate:[{type:"number",max:1e6,min:0,message:"最大只能输入1000000,最小为0",requred:!0}]}],fapi:{id:"",pre_price:null,price:null,sort:null,title:"",type:"owner",vip_day:null}}},created:function(){this.getMemberShip()},mounted:function(){},methods:{onchangeIsShow:function(e){var t=this;e={id:e.id,is_del:e.is_del};Object(i.u)(e).then((function(e){t.$message.success(e.msg),t.getMemberShip()})).catch((function(e){t.$message.error(e.msg)}))},cancel:function(){this.fapi={id:"",pre_price:null,price:null,sort:null,title:"",type:"owner",vip_day:null},this.rule.forEach((function(e){e.value=null}))},getMemberShip:function(){var e=this;this.loading=!0,Object(i.V)().then((function(t){e.loading=!1;t=t.data;var r=t.count;t=t.list;e.total=r,e.tbody=t})).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))},addType:function(){this.rowEdit.id=0,this.rowModelType="新增",this.rule[1].value="owner",this.rule[3].props.disabled=!1,this.rule[5].props.disabled=!1,this.rowEdit.title="",this.modal=!0},del:function(e,t,r){var i=this;t={title:t,num:r,url:"user/member_ship/delete/".concat(e.id),method:"DELETE",ids:""};this.$modalSure(t).then((function(e){i.$message.success(e.msg),i.getMemberShip()})).catch((function(e){i.$message.error(e.msg)}))},editType:function(e){this.rule.forEach((function(t){for(var r in e)e.hasOwnProperty(r)&&t.field===r&&("vip_day"===r&&(-1===e[r]||"永久"==e[r]?(t.type="input",t.props.disabled=!0,e[r]="永久",t.validate=[{type:"string",message:"",requred:!0}]):(t.props.disabled=!1,t.props.min=1,t.validate=[{type:"number",max:1e6,min:0,message:"最大只能输入1000000,最小为0",requred:!0}])),["price"].includes(r)&&(e[r]=parseFloat(e[r])),["pre_price"].includes(r)&&(e[r]=parseFloat(e[r]),e[r]?t.props.disabled=!1:t.props.disabled=!0),t.value=e[r])})),this.rowModelType="编辑",this.rowEdit=JSON.parse(JSON.stringify(e)),this.modal=!0},onSubmit:function(e){var t=this;Object(i.z)(this.rowEdit.id,e).then((function(e){t.modal=!1,t.$message.success(e.msg),t.getMemberShip(),t.cancel()})).catch((function(e){t.$message.error(e.msg)}))}}};r=r("2877"),r=Object(r.a)(n,(function(){var e=this,t=e._self._c;return t("div",[t("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[t("el-button",{attrs:{type:"primary"},on:{click:e.addType}},[e._v("添加类型")]),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"mt14",attrs:{data:e.tbody,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[t("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.id))])]}}])}),t("el-table-column",{attrs:{label:"会员名","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.title))])]}}])}),t("el-table-column",{attrs:{label:"有限期(天)","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(-1===r.row.vip_day?"永久":r.row.vip_day))])]}}])}),t("el-table-column",{attrs:{label:"原价","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.price))])]}}])}),t("el-table-column",{attrs:{label:"优惠价","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.pre_price))])]}}])}),t("el-table-column",{attrs:{label:"排序","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("span",[e._v(e._s(r.row.sort))])]}}])}),t("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("a",{attrs:{href:"javascript:"},on:{click:function(t){return e.editType(r.row)}}},[e._v("编辑")]),"free"!==r.row.type&&"ever"!==r.row.type?t("el-divider",{attrs:{direction:"vertical"}}):e._e(),"free"!==r.row.type&&"ever"!==r.row.type?t("a",{attrs:{href:"javascript:"},on:{click:function(t){return e.del(r.row,"删除类型",r.$index)}}},[e._v("删除")]):e._e()]}}])})],1)],1),t("el-dialog",{attrs:{visible:e.modal,title:"".concat(e.rowModelType).concat(e.rowEdit&&e.rowEdit.title,"会员"),width:"540px"},on:{"update:visible":function(t){e.modal=t},closed:e.cancel}},[e.modal?t("form-create",{attrs:{rule:e.rule,option:e.options},on:{submit:e.onSubmit},model:{value:e.fapi,callback:function(t){e.fapi=t},expression:"fapi"}}):e._e()],1)],1)}),[],!1,null,"1e3ff850",null);t.default=r.exports}}]);