ssm41471/src/main/webapp/front/h5/static/js/pages-jiaoshi-add-or-update.e960f142.js
(完整代码) 13KB(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-jiaoshi-add-or-update"],{1156:function(r,t,e){var i=e("24fb");t=i(!1),t.push([r.i,'@charset "UTF-8";\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.container[data-v-088f9498]{padding:%?20?%}.content[data-v-088f9498]:after{position:fixed;top:0;right:0;left:0;bottom:0;content:"";background-attachment:fixed;background-size:cover;background-position:50%}uni-textarea[data-v-088f9498]{border:%?1?% solid #eee;border-radius:%?20?%;padding:%?20?%}.title[data-v-088f9498]{width:%?180?%}.avator[data-v-088f9498]{width:%?150?%;height:%?60?%}.right-input[data-v-088f9498]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:left;padding:0 %?24?%}.cu-form-group.active[data-v-088f9498]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.btn[data-v-088f9498]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-flex-wrap:wrap;flex-wrap:wrap;padding:%?20?% 0}.cu-form-group[data-v-088f9498]{padding:0 %?24?%;background-color:initial;min-height:inherit}.cu-form-group + .cu-form-group[data-v-088f9498]{border:0}.cu-form-group uni-input[data-v-088f9498]{padding:0 %?30?%}.uni-input[data-v-088f9498]{padding:0 %?30?%}.cu-form-group uni-textarea[data-v-088f9498]{padding:%?30?%;margin:0}.cu-form-group uni-picker[data-v-088f9498]::after{line-height:%?80?%}.select .uni-input[data-v-088f9498]{line-height:%?80?%}.input .right-input[data-v-088f9498]{line-height:%?80?%}',""]),r.exports=t},"42e0":function(r,t,e){var i=e("1156");"string"===typeof i&&(i=[[r.i,i,""]]),i.locals&&(r.exports=i.locals);var o=e("4f06").default;o("10f1e145",i,!0,{sourceMap:!1,shadowMode:!1})},"6f91":function(r,t,e){"use strict";e.r(t);var i=e("c2b6"),o=e.n(i);for(var a in i)"default"!==a&&function(r){e.d(t,r,(function(){return i[r]}))}(a);t["default"]=o.a},"890f":function(r,t,e){"use strict";e.r(t);var i=e("ca22"),o=e("6f91");for(var a in o)"default"!==a&&function(r){e.d(t,r,(function(){return o[r]}))}(a);e("d406");var n,s=e("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"088f9498",null,!1,i["a"],n);t["default"]=u.exports},c2b6:function(r,t,e){"use strict";var i=e("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("ac6a"),e("28a5"),e("96cf");var o=i(e("3b8d")),a=i(e("e2b1")),n={data:function(){return{ruleForm:{jiaoshizhanghao:"",mima:"",jiaoshixingming:"",xingbie:"",shouji:"",youxiang:"",touxiang:""},xingbieOptions:[],xingbieIndex:0,user:{},ro:{jiaoshizhanghao:!1,mima:!1,jiaoshixingming:!1,xingbie:!1,shouji:!1,youxiang:!1,touxiang:!1}}},components:{wPicker:a.default},computed:{},onLoad:function(){var r=(0,o.default)(regeneratorRuntime.mark((function r(t){var e,i,o,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return e=uni.getStorageSync("nowTable"),r.next=3,this.$api.session(e);case 3:if(i=r.sent,this.user=i.data,this.xingbieOptions="男,女".split(","),this.ruleForm.userid=uni.getStorageSync("userid"),t.refid&&(this.ruleForm.refid=t.refid,this.ruleForm.nickname=uni.getStorageSync("nickname")),!t.id){r.next=14;break}return this.ruleForm.id=t.id,r.next=12,this.$api.info("jiaoshi",this.ruleForm.id);case 12:i=r.sent,this.ruleForm=i.data;case 14:if(!t.cross){r.next=49;break}o=uni.getStorageSync("crossObj"),r.t0=regeneratorRuntime.keys(o);case 17:if((r.t1=r.t0()).done){r.next=49;break}if(a=r.t1.value,"jiaoshizhanghao"!=a){r.next=23;break}return this.ruleForm.jiaoshizhanghao=o[a],this.ro.jiaoshizhanghao=!0,r.abrupt("continue",17);case 23:if("mima"!=a){r.next=27;break}return this.ruleForm.mima=o[a],this.ro.mima=!0,r.abrupt("continue",17);case 27:if("jiaoshixingming"!=a){r.next=31;break}return this.ruleForm.jiaoshixingming=o[a],this.ro.jiaoshixingming=!0,r.abrupt("continue",17);case 31:if("xingbie"!=a){r.next=35;break}return this.ruleForm.xingbie=o[a],this.ro.xingbie=!0,r.abrupt("continue",17);case 35:if("shouji"!=a){r.next=39;break}return this.ruleForm.shouji=o[a],this.ro.shouji=!0,r.abrupt("continue",17);case 39:if("youxiang"!=a){r.next=43;break}return this.ruleForm.youxiang=o[a],this.ro.youxiang=!0,r.abrupt("continue",17);case 43:if("touxiang"!=a){r.next=47;break}return this.ruleForm.touxiang=o[a],this.ro.touxiang=!0,r.abrupt("continue",17);case 47:r.next=17;break;case 49:this.styleChange();case 50:case"end":return r.stop()}}),r,this)})));function t(t){return r.apply(this,arguments)}return t}(),methods:{styleChange:function(){this.$nextTick((function(){}))},xingbieChange:function(r){this.xingbieIndex=r.target.value,this.ruleForm.xingbie=this.xingbieOptions[this.xingbieIndex]},touxiangTap:function(){var r=this;this.$api.upload((function(t){r.ruleForm.touxiang=r.$base.url+"upload/"+t.file,r.$forceUpdate(),r.$nextTick((function(){r.styleChange()}))}))},getUUID:function(){return(new Date).getTime()},onSubmitTap:function(){var r=(0,o.default)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(this.ruleForm.jiaoshizhanghao){r.next=3;break}return this.$utils.msg("教师账号不能为空"),r.abrupt("return");case 3:if(this.ruleForm.mima){r.next=6;break}return this.$utils.msg("密码不能为空"),r.abrupt("return");case 6:if(!this.ruleForm.shouji||this.$validate.isMobile(this.ruleForm.shouji)){r.next=9;break}return this.$utils.msg("手机应输入手机格式"),r.abrupt("return");case 9:if(!this.ruleForm.youxiang||this.$validate.isEmail(this.ruleForm.youxiang)){r.next=12;break}return this.$utils.msg("邮箱应输入邮件格式"),r.abrupt("return");case 12:if(!this.ruleForm.id){r.next=17;break}return r.next=15,this.$api.update("jiaoshi",this.ruleForm);case 15:r.next=19;break;case 17:return r.next=19,this.$api.add("jiaoshi",this.ruleForm);case 19:this.$utils.msgBack("提交成功");case 20:case"end":return r.stop()}}),r,this)})));function t(){return r.apply(this,arguments)}return t}(),optionsChange:function(r){this.index=r.target.value},bindDateChange:function(r){this.date=r.target.value},getDate:function(r){var t=new Date,e=t.getFullYear(),i=t.getMonth()+1,o=t.getDate();return"start"===r?e-=60:"end"===r&&(e+=2),i=i>9?i:"0"+i,o=o>9?o:"0"+o,"".concat(e,"-").concat(i,"-").concat(o)},toggleTab:function(r){this.$refs[r].show()}}};t.default=n},ca22:function(r,t,e){"use strict";var i,o=function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("v-uni-view",{staticClass:"content"},[e("v-uni-form",{staticClass:"app-update-pv"},[e("v-uni-view",{staticClass:"cu-form-group",style:{boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 107, 19, 0.1)",borderColor:"rgba(245, 245, 245, 1)",margin:"0",borderWidth:"0 0 2rpx",borderStyle:"solid",height:"108rpx"}},[e("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[r._v("教师账号")]),e("v-uni-input",{style:{boxShadow:"0 0 0px rgba(0,0,0,.6) inset",backgroundColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(255, 170, 51, 1)",borderRadius:"8rpx",color:"rgba(51, 51, 51, 1)",textAlign:"left",borderWidth:"2rpx",fontSize:"26rpx",borderStyle:"solid",height:"80rpx"},attrs:{disabled:r.ro.jiaoshizhanghao,placeholder:"教师账号"},model:{value:r.ruleForm.jiaoshizhanghao,callback:function(t){r.$set(r.ruleForm,"jiaoshizhanghao",t)},expression:"ruleForm.jiaoshizhanghao"}})],1),e("v-uni-view",{staticClass:"cu-form-group",style:{boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 107, 19, 0.1)",borderColor:"rgba(245, 245, 245, 1)",margin:"0",borderWidth:"0 0 2rpx",borderStyle:"solid",height:"108rpx"}},[e("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[r._v("密码")]),e("v-uni-input",{style:{boxShadow:"0 0 0px rgba(0,0,0,.6) inset",backgroundColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(255, 170, 51, 1)",borderRadius:"8rpx",color:"rgba(51, 51, 51, 1)",textAlign:"left",borderWidth:"2rpx",fontSize:"26rpx",borderStyle:"solid",height:"80rpx"},attrs:{disabled:r.ro.mima,placeholder:"密码"},model:{value:r.ruleForm.mima,callback:function(t){r.$set(r.ruleForm,"mima",t)},expression:"ruleForm.mima"}})],1),e("v-uni-view",{staticClass:"cu-form-group",style:{boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 107, 19, 0.1)",borderColor:"rgba(245, 245, 245, 1)",margin:"0",borderWidth:"0 0 2rpx",borderStyle:"solid",height:"108rpx"}},[e("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[r._v("教师姓名")]),e("v-uni-input",{style:{boxShadow:"0 0 0px rgba(0,0,0,.6) inset",backgroundColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(255, 170, 51, 1)",borderRadius:"8rpx",color:"rgba(51, 51, 51, 1)",textAlign:"left",borderWidth:"2rpx",fontSize:"26rpx",borderStyle:"solid",height:"80rpx"},attrs:{disabled:r.ro.jiaoshixingming,placeholder:"教师姓名"},model:{value:r.ruleForm.jiaoshixingming,callback:function(t){r.$set(r.ruleForm,"jiaoshixingming",t)},expression:"ruleForm.jiaoshixingming"}})],1),e("v-uni-view",{staticClass:"cu-form-group select",style:{boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 107, 19, 0.1)",borderColor:"rgba(245, 245, 245, 1)",margin:"0",borderWidth:"0 0 2rpx",borderStyle:"solid",height:"108rpx"}},[e("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[r._v("性别")]),e("v-uni-picker",{attrs:{value:r.xingbieIndex,range:r.xingbieOptions},on:{change:function(t){arguments[0]=t=r.$handleEvent(t),r.xingbieChange.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"uni-input",style:{boxShadow:"0 0 0px rgba(0,0,0,.6) inset",backgroundColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(255, 170, 51, 1)",borderRadius:"8rpx",color:"rgba(51, 51, 51, 1)",textAlign:"left",borderWidth:"2rpx",fontSize:"26rpx",borderStyle:"solid",height:"80rpx"}},[r._v(r._s(r.ruleForm.xingbie?r.ruleForm.xingbie:"请选择性别"))])],1)],1),e("v-uni-view",{staticClass:"cu-form-group",style:{boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 107, 19, 0.1)",borderColor:"rgba(245, 245, 245, 1)",margin:"0",borderWidth:"0 0 2rpx",borderStyle:"solid",height:"108rpx"}},[e("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[r._v("手机")]),e("v-uni-input",{style:{boxShadow:"0 0 0px rgba(0,0,0,.6) inset",backgroundColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(255, 170, 51, 1)",borderRadius:"8rpx",color:"rgba(51, 51, 51, 1)",textAlign:"left",borderWidth:"2rpx",fontSize:"26rpx",borderStyle:"solid",height:"80rpx"},attrs:{disabled:r.ro.shouji,placeholder:"手机"},model:{value:r.ruleForm.shouji,callback:function(t){r.$set(r.ruleForm,"shouji",t)},expression:"ruleForm.shouji"}})],1),e("v-uni-view",{staticClass:"cu-form-group",style:{boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 107, 19, 0.1)",borderColor:"rgba(245, 245, 245, 1)",margin:"0",borderWidth:"0 0 2rpx",borderStyle:"solid",height:"108rpx"}},[e("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[r._v("邮箱")]),e("v-uni-input",{style:{boxShadow:"0 0 0px rgba(0,0,0,.6) inset",backgroundColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(255, 170, 51, 1)",borderRadius:"8rpx",color:"rgba(51, 51, 51, 1)",textAlign:"left",borderWidth:"2rpx",fontSize:"26rpx",borderStyle:"solid",height:"80rpx"},attrs:{disabled:r.ro.youxiang,placeholder:"邮箱"},model:{value:r.ruleForm.youxiang,callback:function(t){r.$set(r.ruleForm,"youxiang",t)},expression:"ruleForm.youxiang"}})],1),e("v-uni-view",{staticClass:"cu-form-group",class:"left"==r.left?"":"active",style:{boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 107, 19, 0.1)",borderColor:"#ccc",margin:"0 0 20rpx 0",borderWidth:"0",borderStyle:"solid",height:"140rpx"},on:{click:function(t){arguments[0]=t=r.$handleEvent(t),r.touxiangTap.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[r._v("头像")]),e("v-uni-view",{staticClass:"right-input",staticStyle:{padding:"0"},style:{textAlign:"left"}},[r.ruleForm.touxiang?e("v-uni-image",{staticClass:"avator",style:{width:"120rpx",boxShadow:"0 0 8rpx rgba(0,0,0,.3)",borderRadius:"50%",textAlign:"left",height:"120rpx"},attrs:{src:r.ruleForm.touxiang,mode:"aspectFill"}}):e("v-uni-image",{staticClass:"avator",style:{width:"120rpx",boxShadow:"0 0 8rpx rgba(0,0,0,.3)",borderRadius:"50%",textAlign:"left",height:"120rpx"},attrs:{src:"../../static/gen/upload.png",mode:"aspectFill"}})],1)],1),e("v-uni-view",{staticClass:"btn"},[e("v-uni-button",{staticClass:"bg-red",style:{boxShadow:"0 0 0px rgba(0,0,0,0) inset",backgroundColor:"rgba(255, 107, 19, 1)",borderColor:"rgba(255, 107, 19, 1)",borderRadius:"20rpx",color:"#fff",borderWidth:"0",width:"100%",fontSize:"32rpx",borderStyle:"solid",height:"80rpx"},on:{click:function(t){arguments[0]=t=r.$handleEvent(t),r.onSubmitTap.apply(void 0,arguments)}}},[r._v("提交")])],1)],1)],1)},a=[];e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return i}))},d406:function(r,t,e){"use strict";var i=e("42e0"),o=e.n(i);o.a}}]);
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
