ssm41471/src/main/webapp/front/h5/static/js/pages-jiajiaoxinxi-add-or-update.350b7596.js

(完整代码) 12KB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-jiajiaoxinxi-add-or-update"],{"0fe2":function(e,i,t){"use strict";var r=t("6bd0"),a=t.n(r);a.a},3525:function(e,i,t){"use strict";var r=t("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,t("ac6a"),t("96cf");var a=r(t("3b8d")),n=r(t("e2b1")),o={data:function(){return{ruleForm:{jiaoshizhanghao:"",jiaoshixingming:"",kemuleixing:"",jiaoshijianjie:"",kechengjianjie:"",tupian:"",userid:""},kemuleixingOptions:[],kemuleixingIndex:0,user:{},ro:{jiaoshizhanghao:!1,jiaoshixingming:!1,kemuleixing:!1,jiaoshijianjie:!1,kechengjianjie:!1,tupian:!1,userid:!1}}},components:{wPicker:n.default},computed:{},onLoad:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(i){var t,r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=uni.getStorageSync("nowTable"),e.next=3,this.$api.session(t);case 3:return r=e.sent,this.user=r.data,this.ruleForm.jiaoshizhanghao=this.user.jiaoshizhanghao,this.ruleForm.jiaoshixingming=this.user.jiaoshixingming,e.next=9,this.$api.option("kemuleixing","kemuleixing",{});case 9:if(r=e.sent,this.kemuleixingOptions=r.data,this.ruleForm.userid=uni.getStorageSync("userid"),i.refid&&(this.ruleForm.refid=i.refid,this.ruleForm.nickname=uni.getStorageSync("nickname")),!i.id){e.next=19;break}return this.ruleForm.id=i.id,e.next=17,this.$api.info("jiajiaoxinxi",this.ruleForm.id);case 17:r=e.sent,this.ruleForm=r.data;case 19:if(!i.cross){e.next=54;break}a=uni.getStorageSync("crossObj"),e.t0=regeneratorRuntime.keys(a);case 22:if((e.t1=e.t0()).done){e.next=54;break}if(n=e.t1.value,"jiaoshizhanghao"!=n){e.next=28;break}return this.ruleForm.jiaoshizhanghao=a[n],this.ro.jiaoshizhanghao=!0,e.abrupt("continue",22);case 28:if("jiaoshixingming"!=n){e.next=32;break}return this.ruleForm.jiaoshixingming=a[n],this.ro.jiaoshixingming=!0,e.abrupt("continue",22);case 32:if("kemuleixing"!=n){e.next=36;break}return this.ruleForm.kemuleixing=a[n],this.ro.kemuleixing=!0,e.abrupt("continue",22);case 36:if("jiaoshijianjie"!=n){e.next=40;break}return this.ruleForm.jiaoshijianjie=a[n],this.ro.jiaoshijianjie=!0,e.abrupt("continue",22);case 40:if("kechengjianjie"!=n){e.next=44;break}return this.ruleForm.kechengjianjie=a[n],this.ro.kechengjianjie=!0,e.abrupt("continue",22);case 44:if("tupian"!=n){e.next=48;break}return this.ruleForm.tupian=a[n],this.ro.tupian=!0,e.abrupt("continue",22);case 48:if("userid"!=n){e.next=52;break}return this.ruleForm.userid=a[n],this.ro.userid=!0,e.abrupt("continue",22);case 52:e.next=22;break;case 54:this.styleChange();case 55:case"end":return e.stop()}}),e,this)})));function i(i){return e.apply(this,arguments)}return i}(),methods:{styleChange:function(){this.$nextTick((function(){}))},kemuleixingChange:function(e){this.kemuleixingIndex=e.target.value,this.ruleForm.kemuleixing=this.kemuleixingOptions[this.kemuleixingIndex]},tupianTap:function(){var e=this;this.$api.upload((function(i){e.ruleForm.tupian=e.$base.url+"upload/"+i.file,e.$forceUpdate(),e.$nextTick((function(){e.styleChange()}))}))},getUUID:function(){return(new Date).getTime()},onSubmitTap:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.ruleForm.id){e.next=5;break}return e.next=3,this.$api.update("jiajiaoxinxi",this.ruleForm);case 3:e.next=7;break;case 5:return e.next=7,this.$api.add("jiajiaoxinxi",this.ruleForm);case 7:this.$utils.msgBack("提交成功");case 8:case"end":return e.stop()}}),e,this)})));function i(){return e.apply(this,arguments)}return i}(),optionsChange:function(e){this.index=e.target.value},bindDateChange:function(e){this.date=e.target.value},getDate:function(e){var i=new Date,t=i.getFullYear(),r=i.getMonth()+1,a=i.getDate();return"start"===e?t-=60:"end"===e&&(t+=2),r=r>9?r:"0"+r,a=a>9?a:"0"+a,"".concat(t,"-").concat(r,"-").concat(a)},toggleTab:function(e){this.$refs[e].show()}}};i.default=o},"6bd0":function(e,i,t){var r=t("c559");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var a=t("4f06").default;a("ca81745e",r,!0,{sourceMap:!1,shadowMode:!1})},"8f06":function(e,i,t){"use strict";var r,a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("v-uni-view",{staticClass:"content"},[t("v-uni-form",{staticClass:"app-update-pv"},[t("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"}},[t("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("教师账号")]),t("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:e.ro.jiaoshizhanghao,placeholder:"教师账号"},model:{value:e.ruleForm.jiaoshizhanghao,callback:function(i){e.$set(e.ruleForm,"jiaoshizhanghao",i)},expression:"ruleForm.jiaoshizhanghao"}})],1),t("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"}},[t("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("教师姓名")]),t("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:e.ro.jiaoshixingming,placeholder:"教师姓名"},model:{value:e.ruleForm.jiaoshixingming,callback:function(i){e.$set(e.ruleForm,"jiaoshixingming",i)},expression:"ruleForm.jiaoshixingming"}})],1),t("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"}},[t("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("科目类型")]),t("v-uni-picker",{attrs:{value:e.kemuleixingIndex,range:e.kemuleixingOptions},on:{change:function(i){arguments[0]=i=e.$handleEvent(i),e.kemuleixingChange.apply(void 0,arguments)}}},[t("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"}},[e._v(e._s(e.ruleForm.kemuleixing?e.ruleForm.kemuleixing:"请选择科目类型"))])],1)],1),t("v-uni-view",{staticClass:"cu-form-group",class:"left"==e.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(i){arguments[0]=i=e.$handleEvent(i),e.tupianTap.apply(void 0,arguments)}}},[t("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("图片")]),t("v-uni-view",{staticClass:"right-input",staticStyle:{padding:"0"},style:{textAlign:"left"}},[e.ruleForm.tupian?t("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:e.ruleForm.tupian,mode:"aspectFill"}}):t("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),t("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 0 0 0",borderWidth:"0 0 2rpx",borderStyle:"solid",height:"308rpx"}},[t("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("教师简介")]),t("v-uni-textarea",{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:"28rpx",borderStyle:"solid",height:"280rpx"},attrs:{placeholder:"教师简介"},model:{value:e.ruleForm.jiaoshijianjie,callback:function(i){e.$set(e.ruleForm,"jiaoshijianjie",i)},expression:"ruleForm.jiaoshijianjie"}})],1),t("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 0 0 0",borderWidth:"0 0 2rpx",borderStyle:"solid",height:"308rpx"}},[t("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("课程简介")]),t("v-uni-textarea",{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:"28rpx",borderStyle:"solid",height:"280rpx"},attrs:{placeholder:"课程简介"},model:{value:e.ruleForm.kechengjianjie,callback:function(i){e.$set(e.ruleForm,"kechengjianjie",i)},expression:"ruleForm.kechengjianjie"}})],1),t("v-uni-view",{staticClass:"btn"},[t("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(i){arguments[0]=i=e.$handleEvent(i),e.onSubmitTap.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)],1)},n=[];t.d(i,"b",(function(){return a})),t.d(i,"c",(function(){return n})),t.d(i,"a",(function(){return r}))},c206:function(e,i,t){"use strict";t.r(i);var r=t("8f06"),a=t("d6af");for(var n in a)"default"!==n&&function(e){t.d(i,e,(function(){return a[e]}))}(n);t("0fe2");var o,s=t("f0c5"),u=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"263f1e0e",null,!1,r["a"],o);i["default"]=u.exports},c559:function(e,i,t){var r=t("24fb");i=r(!1),i.push([e.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-263f1e0e]{padding:%?20?%}.content[data-v-263f1e0e]: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-263f1e0e]{border:%?1?% solid #eee;border-radius:%?20?%;padding:%?20?%}.title[data-v-263f1e0e]{width:%?180?%}.avator[data-v-263f1e0e]{width:%?150?%;height:%?60?%}.right-input[data-v-263f1e0e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:left;padding:0 %?24?%}.cu-form-group.active[data-v-263f1e0e]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.btn[data-v-263f1e0e]{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-263f1e0e]{padding:0 %?24?%;background-color:initial;min-height:inherit}.cu-form-group + .cu-form-group[data-v-263f1e0e]{border:0}.cu-form-group uni-input[data-v-263f1e0e]{padding:0 %?30?%}.uni-input[data-v-263f1e0e]{padding:0 %?30?%}.cu-form-group uni-textarea[data-v-263f1e0e]{padding:%?30?%;margin:0}.cu-form-group uni-picker[data-v-263f1e0e]::after{line-height:%?80?%}.select .uni-input[data-v-263f1e0e]{line-height:%?80?%}.input .right-input[data-v-263f1e0e]{line-height:%?80?%}',""]),e.exports=i},d6af:function(e,i,t){"use strict";t.r(i);var r=t("3525"),a=t.n(r);for(var n in r)"default"!==n&&function(e){t.d(i,e,(function(){return r[e]}))}(n);i["default"]=a.a}}]);

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。