| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesStatistics-trainingClassEdit"],{"05c1":function(t,e,a){var i=a("5acd");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/***\n全局scss 变量和方法 存放处\n */\n/* 引入minxin */\n/* 颜色变量 */\n/*图片地址*/\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.app-content[data-v-550943a9]{min-height:calc(100vh - %?20?%);padding-top:%?20?%}.prompt-text[data-v-550943a9]{color:#999;padding-left:%?30?%;margin-bottom:%?30?%}.module-com[data-v-550943a9]{margin-bottom:%?20?%}.module-com .member-wrap .member-det[data-v-550943a9]{font-size:%?24?%;margin-left:%?20?%}.module-com .remark-wrap[data-v-550943a9]{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.module-com .remark-wrap .remark[data-v-550943a9]{height:%?240?%}.radio-group[data-v-550943a9]{display:-webkit-box;display:-webkit-flex;display:flex}.radio-group uni-label[data-v-550943a9]{margin-right:%?80?%}.confirm-btn[data-v-550943a9]{width:calc(100% - %?60?%);margin:%?60?% %?30?% %?20?%}.confirm-btn .admin-button-com[data-v-550943a9]{width:100%}uni-textarea[data-v-550943a9]{border:%?1?% solid #eee;padding:%?20?%;font-size:%?28?%}._thmist[data-v-550943a9]{width:%?200?%;height:%?200?%;vertical-align:top;background-color:#eee;margin-top:%?-18?%}',""]),t.exports=e},1861:function(t,e,a){"use strict";a.r(e);var i=a("5449"),r=a("b68f");for(var n in r)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("4012");var o,s=a("8aaf"),u=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"208f12fd",null,!1,i["a"],o);e["default"]=u.exports},"285c":function(t,e,a){"use strict";a.r(e),a.d(e,"default",(function(){return u}));var i=a("1b0c");function r(t){if(Array.isArray(t))return Object(i["a"])(t)}function n(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}var o=a("3602");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t){return r(t)||n(t)||Object(o["a"])(t)||s()}},"3dda":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("34b3");e.default={name:"tuiListCell",props:{arrow:{type:Boolean,default:!1},hover:{type:Boolean,default:!0},lineLeft:{type:Boolean,default:!0},lineRight:{type:Boolean,default:!0},padding:{type:String,default:"26rpx 30rpx"},last:{type:Boolean,default:!1},radius:{type:Boolean,default:!1},bgcolor:{type:String,default:"#fff"},size:{type:Number,default:28},color:{type:String,default:"#333"},index:{type:Number,default:0}},methods:{handleClick:function(){this.$emit("click",{index:this.index})}}}},4012:function(t,e,a){"use strict";var i=a("d123"),r=a.n(i);r.a},5449:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tui-cell-class tui-list-cell",class:{"tui-cell-arrow":t.arrow,"tui-cell-last":t.last,"tui-line-left":t.lineLeft,"tui-line-right":t.lineRight,"tui-radius":t.radius},style:{background:t.bgcolor,fontSize:t.size+"rpx",color:t.color,padding:t.padding},attrs:{"hover-class":t.hover?"tui-cell-hover":"","hover-stay-time":150},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t._t("default")],2)},n=[]},"61de":function(t,e,a){var i=a("05c1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("47af").default;r("1348d9de",i,!0,{sourceMap:!1,shadowMode:!1})},"6e65":function(t,e,a){"use strict";var i=a("61de"),r=a.n(i);r.a},"76e8":function(t,e,a){"use strict";var i=a("d669");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(a("1861")),n=i(a("f4e1")),o=a("7adc"),s=a("90f4");e.default={name:"staff-add",components:{TuiListCell:r.default,AppUploader:n.default},data:function(){return{form:{name:"",tuition:"",introduction:"",target:"",status:"",cover:"",summary:""},statusList:[{value:"01",name:"上架"},{value:"02",name:"下架"}],imgShow:!1,imgList:[]}},onLoad:function(){console.log(this.option.id)},onShow:function(){this.option.id?(uni.setNavigationBarTitle({title:"修改培训班"}),this.imgShow=!0):uni.setNavigationBarTitle({title:"添加培训班"})},methods:{init:function(){this.option.id&&this._getDet()},_resultData:function(t){this.form.cover=t.shortUrl,this.imgShow=!1},_getDet:function(){var t=this;(0,o.pxClassDetail)({id:this.option.id}).then((function(e){console.log(e),t.form=e.data,t.imgList.push(e.data.cover),console.log(t.imgList)})).catch((function(t){console.log(t)}))},radioChange:function(t){for(var e=0;e<this.statusList.length;e++)if(this.statusList[e].value===t.target.value){this.form.status=t.target.value;break}},confirmFn:function(){var t=this;if(this.form.cover){var e=this.option.id?o.pxClassUpdate:o.pxClassAdd;this.option.id&&(this.form.id=this.option.id),e(this.form).then((function(e){uni.removeStorageSync("pxClassInfoList");var a=t.option.id?"修改成功!":"添加成功!";t.$msg(a),setTimeout((function(){t.pageTo(1)}),1e3)}))}else this.$msg("请上传头像")},formSubmit:function(t){var e=[{name:"name",rule:["required"],msg:["请输入名称"]},{name:"tuition",rule:["required"],msg:["请输入价格"]},{name:"target",rule:["required"],msg:["请输入招生对象"]},{name:"summary",rule:["required"],msg:["请输入简介"]}],a=t.detail.value,i=s.validation(a,e);i?this.$msg(i):this.confirmFn()}}}},"7adc":function(t,e,a){"use strict";var i=a("d669");Object.defineProperty(e,"__esModule",{value:!0}),e.updateProduct=e.py=e.pxClassUpdate=e.pxClassDetail=e.pxClassDel=e.pxClassAdd=e.productList=e.print=e.getPxClassDataApi=e.getProductDetail=e.getProductDataApi=e.getGoodsDataApi=e.getGhsProductListV2=e.getGhsProductList=e.getGhsProductDetail=e.getAllProductDataApi=e.generatePriceTable=e.changePriceByIdApi=e.batchChangePrice=e.batchChangeAddPrice=e.autoPriceByIdApi=e.addProduct=void 0;var r=i(a("14bf"));e.print=function(t){return r.default.get("/product/print",t)},e.batchChangeAddPrice=function(t){return r.default.post("/product/batch-change-add-price",t)},e.productList=function(t){return r.default.get("/product/list",t)},e.py=function(t){return r.default.get("/product/py",t)},e.getGhsProductDetail=function(t){return r.default.get("/product/ghs-product-detail",t)},e.getProductDataApi=function(t){return r.default.get("/product/index",t)},e.getAllProductDataApi=function(t){return r.default.get("/product/list",t)},e.autoPriceByIdApi=function(t){return r.default.post("/product/auto-price",t)},e.addProduct=function(t){return r.default.post("/product/add",t)},e.updateProduct=function(t){return r.default.post("/product/update",t)},e.changePriceByIdApi=function(t){return r.default.post("/product/change-price",t)},e.getPxClassDataApi=function(t){return r.default.get("/px-class/list",t)},e.getGoodsDataApi=function(t){return r.default.get("/goods/index",t)},e.pxClassDetail=function(t){return r.default.get("/px-class/detail",t)},e.pxClassUpdate=function(t){return r.default.get("/px-class/update",t)},e.pxClassAdd=function(t){return r.default.get("/px-class/add",t)},e.pxClassDel=function(t){return r.default.get("/px-class/del",t)},e.getGhsProductList=function(t){return r.default.get("/product/ghs-item",t)},e.getGhsProductListV2=function(t){return r.default.get("/product/ghs-item-v2",t)},e.getProductDetail=function(t){return r.default.get("/product/detail",t)},e.batchChangePrice=function(t){return r.default.post("/product/batch-change-price",t)},e.generatePriceTable=function(t){return r.default.get("/product/generate-price-table",t)}},"82ce":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-content"},[a("v-uni-form",{on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)},reset:function(e){arguments[0]=e=t.$handleEvent(e),t.formReset.apply(void 0,arguments)}}},[a("div",{staticClass:"module-com input-line-wrap"},[a("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1}},[a("div",{staticClass:"tui-title required"},[t._v("名称")]),a("v-uni-input",{staticClass:"tui-input",attrs:{"placeholder-class":"phcolor",name:"name",placeholder:"请输入名称",maxlength:"50",type:"text"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1}},[a("div",{staticClass:"tui-title required"},[t._v("价格")]),a("v-uni-input",{staticClass:"tui-input",attrs:{"placeholder-class":"phcolor",name:"tuition",placeholder:"请输入价格",maxlength:"50",type:"digit"},model:{value:t.form.tuition,callback:function(e){t.$set(t.form,"tuition",e)},expression:"form.tuition"}})],1),a("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1}},[a("div",{staticClass:"tui-title required"},[t._v("招生对象")]),a("v-uni-input",{staticClass:"tui-input",attrs:{"placeholder-class":"phcolor",name:"target",placeholder:"请输入招生对象",maxlength:"50",type:"text"},model:{value:t.form.target,callback:function(e){t.$set(t.form,"target",e)},expression:"form.target"}})],1),a("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1}},[a("div",{staticClass:"tui-title"},[t._v("封面图")]),a("app-uploader",{attrs:{remark:"建议上传比例800X500",num:1,prefixShow:!0,imgList:t.imgList},on:{resultData:function(e){arguments[0]=e=t.$handleEvent(e),t._resultData.apply(void 0,arguments)}}})],1),a("tui-list-cell",{staticClass:"line-cell",attrs:{hover:!1}},[a("div",{staticClass:"tui-title"},[t._v("简介")]),a("v-uni-textarea",{attrs:{name:"summary",id:"",cols:"30",rows:"10",placeholder:"简介 . . ."},model:{value:t.form.summary,callback:function(e){t.$set(t.form,"summary",e)},expression:"form.summary"}})],1)],1),a("div",{staticClass:"confirm-btn"},[a("v-uni-button",{staticClass:"admin-button-com big blue",attrs:{formType:"submit"}},[t._v("确认")])],1)]),a("app-area-sel",{attrs:{show:t.showRegion,city:t.form.receiveCity},on:{"update:show":function(e){arguments[0]=e=t.$handleEvent(e),t.showRegion=e},change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeAreaFn.apply(void 0,arguments)}}})],1)},n=[]},"90f4":function(t,e,a){"use strict";function i(t,e){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=r(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==a.return||a.return()}finally{if(u)throw o}}}}function r(t,e){if(t){if("string"===typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}a("dad1"),a("051d"),a("436b"),a("57af"),a("225b"),a("34b3"),a("78db");var o={validation:function(t,e){var a,r=i(e);try{for(r.s();!(a=r.n()).done;){var n=a.value,s=n.name,u=n.rule,l=n.msg;if(s&&u&&0!==u.length&&l&&0!==l.length)for(var d=0,c=u.length;d<c;d++){var f=u[d],p=l[d];if(f&&p){var m=null;if(~f.indexOf(":")){var g=f.split(":");f=g[0],m=g[1]}var h=!1;switch(f){case"required":h=o._isNullOrEmpty(t[s]);break;case"isMobile":h=!o._isMobile(t[s]);break;case"isEmail":h=!o._isEmail(t[s]);break;case"isCarNo":h=!o._isCarNo(t[s]);break;case"isIdCard":h=!o._isIdCard(t[s]);break;case"isAmount":h=!o._isAmount(t[s]);break;case"isNum":h=!o._isNum(t[s]);break;case"isChinese":h=!o._isChinese(t[s]);break;case"isEnglish":h=!o._isEnglish(t[s]);break;case"isEnAndNo":h=!o._isEnAndNo(t[s]);break;case"isEnOrNo":h=!o._isEnOrNo(t[s]);break;case"isSpecial":h=o._isSpecial(t[s]);break;case"isEmoji":h=o._isEmoji(t[s]);break;case"isDate":h=!o._isDate(t[s]);break;case"isUrl":h=!o._isUrl(t[s]);break;case"isSame":h=!o._isSame(t[s],t[m]);break;case"range":var v=null;try{if(v=JSON.parse(m),v.length<=1)throw new Error("range值传入有误!")}catch(b){return"range值传入有误!"}h=!o._isRange(t[s],v[0],v[1]);break;case"minLength":h=!o._minLength(t[s],m);break;case"maxLength":h=!o._maxLength(t[s],m);break;default:break}if(h)return p}}}}catch(y){r.e(y)}finally{r.f()}return""},_isNullOrEmpty:function(t){return!(null!==t&&""!==t&&void 0!==t)},_isMobile:function(t){return/^(?:13\d|14\d|15\d|16\d|17\d|18\d|19\d)\d{5}(\d{3}|\*{3})$/.test(t)},_isEmail:function(t){return/^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(t)},_isCarNo:function(t){var e=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,a=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===t.length?a.test(t):8===t.length&&e.test(t)},_isIdCard:function(t){var e=t;if(15==e.length)return this.__isValidityBrithBy15IdCard;if(18==e.length){var a=e.split("");return!(!this.__isValidityBrithBy18IdCard(e)||!this.__isTrueValidateCodeBy18IdCard(a))}return!1},__isTrueValidateCodeBy18IdCard:function(t){var e=0,a=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1],i=[1,0,10,9,8,7,6,5,4,3,2];"x"==t[17].toLowerCase()&&(t[17]=10);for(var r=0;r<17;r++)e+=a[r]*t[r];var n=e%11;return t[17]==i[n]},__isValidityBrithBy18IdCard:function(t){var e=t.substring(6,10),a=t.substring(10,12),i=t.substring(12,14),r=new Date(e,parseFloat(a)-1,parseFloat(i));return r.getFullYear()==parseFloat(e)&&r.getMonth()==parseFloat(a)-1&&r.getDate()==parseFloat(i)},__isValidityBrithBy15IdCard:function(t){var e=t.substring(6,8),a=t.substring(8,10),i=t.substring(10,12),r=new Date(e,parseFloat(a)-1,parseFloat(i));return r.getYear()==parseFloat(e)&&r.getMonth()==parseFloat(a)-1&&r.getDate()==parseFloat(i)},_isAmount:function(t){return/^([0-9]*[.]?[0-9])[0-9]{0,1}$/.test(t)},_isNum:function(t){return/^[0-9]+$/.test(t)},_isChinese:function(t){var e=/.*[\u4e00-\u9fa5]+.*$/;return""!==t&&e.test(t)&&!o._isSpecial(t)&&!o._isEmoji(t)},_isEnglish:function(t){return/^[a-zA-Z]*$/.test(t)},_isEnAndNo:function(t){return/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/.test(t)},_isEnOrNo:function(t){var e=/.*[\u4e00-\u9fa5]+.*$/,a=!0;return(e.test(t)||o._isSpecial(t)||o._isEmoji(t))&&(a=!1),a},_isSpecial:function(t){var e=/[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im,a=/[·!#¥(——):;“”‘、,|《。》?、【】[\]]/im;return!(!e.test(t)&&!a.test(t))},_isEmoji:function(t){return/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g.test(t)},_isDate:function(t){var e=/^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$/;return e.test(t)},_isUrl:function(t){return/^((https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/.test(t)},_isSame:function(t,e){return t===e},_isRange:function(t,e,a){return!e&&0!=e&&!a&&0!=a||(e||0==e?a||0==a?t>=e&&t<=a:t>=e:t<=a)},_minLength:function(t,e){return t.length>=Number(e)},_maxLength:function(t,e){return t.length<=Number(e)}};t.exports={validation:o.validation}},b391:function(t,e,a){"use strict";a.r(e);var i=a("76e8"),r=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},b68f:function(t,e,a){"use strict";a.r(e);var i=a("3dda"),r=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},bfbe:function(t,e,a){var i=a("5acd");e=i(!1),e.push([t.i,'.tui-list-cell[data-v-208f12fd]{position:relative;width:100%;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.tui-radius[data-v-208f12fd]{border-radius:%?12?%;overflow:hidden}.tui-cell-hover[data-v-208f12fd]{background:#f7f7f9!important}.tui-list-cell[data-v-208f12fd]::after{content:"";position:absolute;border-bottom:%?2?% solid #eee;-webkit-transform:scaleY(.5);transform:scaleY(.5);bottom:0;right:0;left:0}.tui-line-left[data-v-208f12fd]::after{left:%?30?%!important}.tui-line-right[data-v-208f12fd]::after{right:%?30?%!important}.tui-cell-last[data-v-208f12fd]::after{border-bottom:0!important}.tui-list-cell.tui-cell-arrow[data-v-208f12fd]:before{content:" ";height:%?22?%;width:%?22?%;border-width:%?2?% %?2?% 0 0;border-color:#b2b2b2;border-style:solid;-webkit-transform:matrix(.5,.5,-.5,.5,0,0);transform:matrix(.5,.5,-.5,.5,0,0);position:absolute;top:50%;margin-top:%?-12?%;right:%?30?%}',""]),t.exports=e},d123:function(t,e,a){var i=a("bfbe");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("47af").default;r("3ac4adf4",i,!0,{sourceMap:!1,shadowMode:!1})},ff58:function(t,e,a){"use strict";a.r(e);var i=a("82ce"),r=a("b391");for(var n in r)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("6e65");var o,s=a("8aaf"),u=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"550943a9",null,!1,i["a"],o);e["default"]=u.exports}}]);
|