h5/static/js/pages-tousuxinxi-add-or-update.802b11dd.js
(完整代码) 12KB(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-tousuxinxi-add-or-update"],{7967:function(e,t,r){var i=r("24fb");t=i(!1),t.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-55eefd8e]{padding:%?20?%}.content[data-v-55eefd8e]: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-55eefd8e]{border:%?1?% solid #eee;border-radius:%?20?%;padding:%?20?%}.title[data-v-55eefd8e]{width:%?180?%}.avator[data-v-55eefd8e]{width:%?150?%;height:%?60?%}.right-input[data-v-55eefd8e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:left;padding:0 %?24?%}.cu-form-group.active[data-v-55eefd8e]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.btn[data-v-55eefd8e]{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-55eefd8e]{padding:0 %?24?%;background-color:initial;min-height:inherit}.cu-form-group + .cu-form-group[data-v-55eefd8e]{border:0}.cu-form-group uni-input[data-v-55eefd8e]{padding:0 %?30?%}.uni-input[data-v-55eefd8e]{padding:0 %?30?%}.cu-form-group uni-textarea[data-v-55eefd8e]{padding:%?30?%;margin:0}.cu-form-group uni-picker[data-v-55eefd8e]::after{line-height:%?80?%}.select .uni-input[data-v-55eefd8e]{line-height:%?80?%}.input .right-input[data-v-55eefd8e]{line-height:%?80?%}',""]),e.exports=t},"81fa":function(e,t,r){"use strict";var i,n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"content"},[r("v-uni-form",{staticClass:"app-update-pv"},[r("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"}},[r("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("学生账号")]),r("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.xueshengzhanghao,placeholder:"学生账号"},model:{value:e.ruleForm.xueshengzhanghao,callback:function(t){e.$set(e.ruleForm,"xueshengzhanghao",t)},expression:"ruleForm.xueshengzhanghao"}})],1),r("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"}},[r("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("学生姓名")]),r("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.xueshengxingming,placeholder:"学生姓名"},model:{value:e.ruleForm.xueshengxingming,callback:function(t){e.$set(e.ruleForm,"xueshengxingming",t)},expression:"ruleForm.xueshengxingming"}})],1),r("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"}},[r("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("投诉时间")]),r("v-uni-picker",{attrs:{mode:"date",value:e.ruleForm.tousushijian},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.tousushijianChange.apply(void 0,arguments)}}},[r("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.tousushijian?e.ruleForm.tousushijian:"请选择投诉时间"))])],1)],1),r("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(t){arguments[0]=t=e.$handleEvent(t),e.tupianTap.apply(void 0,arguments)}}},[r("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("图片")]),r("v-uni-view",{staticClass:"right-input",staticStyle:{padding:"0"},style:{textAlign:"left"}},[e.ruleForm.tupian?r("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"}}):r("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),r("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"}},[r("v-uni-view",{staticClass:"title",style:{width:"200rpx",fontSize:"28rpx",color:"rgba(0, 0, 0, 1)",textAlign:"right"}},[e._v("投诉内容")]),r("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.tousuneirong,callback:function(t){e.$set(e.ruleForm,"tousuneirong",t)},expression:"ruleForm.tousuneirong"}})],1),r("v-uni-view",{staticClass:"btn"},[r("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=e.$handleEvent(t),e.onSubmitTap.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)],1)},a=[];r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return i}))},8457:function(e,t,r){"use strict";r.r(t);var i=r("bd1e"),n=r.n(i);for(var a in i)"default"!==a&&function(e){r.d(t,e,(function(){return i[e]}))}(a);t["default"]=n.a},"86e8":function(e,t,r){"use strict";r.r(t);var i=r("81fa"),n=r("8457");for(var a in n)"default"!==a&&function(e){r.d(t,e,(function(){return n[e]}))}(a);r("94fa");var o,u=r("f0c5"),s=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"55eefd8e",null,!1,i["a"],o);t["default"]=s.exports},"94fa":function(e,t,r){"use strict";var i=r("fd44"),n=r.n(i);n.a},bd1e:function(e,t,r){"use strict";var i=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("ac6a"),r("96cf");var n=i(r("3b8d")),a=i(r("e2b1")),o={data:function(){return{ruleForm:{xueshengzhanghao:"",xueshengxingming:"",tousushijian:"",tousuneirong:"",tupian:"",userid:""},user:{},ro:{xueshengzhanghao:!1,xueshengxingming:!1,tousushijian:!1,tousuneirong:!1,tupian:!1,userid:!1}}},components:{wPicker:a.default},computed:{},onLoad:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(t){var r,i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=uni.getStorageSync("nowTable"),e.next=3,this.$api.session(r);case 3:if(i=e.sent,this.user=i.data,this.ruleForm.xueshengzhanghao=this.user.xueshengzhanghao,this.ruleForm.xueshengxingming=this.user.xueshengxingming,this.ruleForm.userid=uni.getStorageSync("userid"),t.refid&&(this.ruleForm.refid=t.refid,this.ruleForm.nickname=uni.getStorageSync("nickname")),!t.id){e.next=15;break}return this.ruleForm.id=t.id,e.next=13,this.$api.info("tousuxinxi",this.ruleForm.id);case 13:i=e.sent,this.ruleForm=i.data;case 15:if(!t.cross){e.next=46;break}n=uni.getStorageSync("crossObj"),e.t0=regeneratorRuntime.keys(n);case 18:if((e.t1=e.t0()).done){e.next=46;break}if(a=e.t1.value,"xueshengzhanghao"!=a){e.next=24;break}return this.ruleForm.xueshengzhanghao=n[a],this.ro.xueshengzhanghao=!0,e.abrupt("continue",18);case 24:if("xueshengxingming"!=a){e.next=28;break}return this.ruleForm.xueshengxingming=n[a],this.ro.xueshengxingming=!0,e.abrupt("continue",18);case 28:if("tousushijian"!=a){e.next=32;break}return this.ruleForm.tousushijian=n[a],this.ro.tousushijian=!0,e.abrupt("continue",18);case 32:if("tousuneirong"!=a){e.next=36;break}return this.ruleForm.tousuneirong=n[a],this.ro.tousuneirong=!0,e.abrupt("continue",18);case 36:if("tupian"!=a){e.next=40;break}return this.ruleForm.tupian=n[a],this.ro.tupian=!0,e.abrupt("continue",18);case 40:if("userid"!=a){e.next=44;break}return this.ruleForm.userid=n[a],this.ro.userid=!0,e.abrupt("continue",18);case 44:e.next=18;break;case 46:this.styleChange();case 47:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),methods:{styleChange:function(){this.$nextTick((function(){}))},tousushijianChange:function(e){this.ruleForm.tousushijian=e.target.value,this.$forceUpdate()},tupianTap:function(){var e=this;this.$api.upload((function(t){e.ruleForm.tupian=e.$base.url+"upload/"+t.file,e.$forceUpdate(),e.$nextTick((function(){e.styleChange()}))}))},getUUID:function(){return(new Date).getTime()},onSubmitTap:function(){var e=(0,n.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.ruleForm.xueshengzhanghao){e.next=3;break}return this.$utils.msg("学生账号不能为空"),e.abrupt("return");case 3:if(this.ruleForm.xueshengxingming){e.next=6;break}return this.$utils.msg("学生姓名不能为空"),e.abrupt("return");case 6:if(!this.ruleForm.id){e.next=11;break}return e.next=9,this.$api.update("tousuxinxi",this.ruleForm);case 9:e.next=13;break;case 11:return e.next=13,this.$api.add("tousuxinxi",this.ruleForm);case 13:this.$utils.msgBack("提交成功");case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),optionsChange:function(e){this.index=e.target.value},bindDateChange:function(e){this.date=e.target.value},getDate:function(e){var t=new Date,r=t.getFullYear(),i=t.getMonth()+1,n=t.getDate();return"start"===e?r-=60:"end"===e&&(r+=2),i=i>9?i:"0"+i,n=n>9?n:"0"+n,"".concat(r,"-").concat(i,"-").concat(n)},toggleTab:function(e){this.$refs[e].show()}}};t.default=o},fd44:function(e,t,r){var i=r("7967");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=r("4f06").default;n("477c2039",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
