ssm5tq98/src/main/webapp/front/h5/static/js/pages-cheweixinxi-add-or-update.059f9460.js

(完整代码) 17KB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cheweixinxi-add-or-update"],{1199:function(e,r,i){"use strict";var t,a=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("v-uni-view",{staticClass:"content"},[i("v-uni-form",{staticClass:"app-update-pv"},[i("v-uni-view",{staticClass:"cu-form-group",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",margin:"0 0 20rpx 0",borderColor:"#ccc",backgroundColor:"rgba(255, 255, 255, 0)",borderRadius:"0",borderWidth:"0",width:"100%",borderStyle:"solid",height:"108rpx"}},[i("v-uni-view",{staticClass:"title",style:{padding:"0",boxShadow:"0 0 16rpx rgba(0,0,0,0)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"0",borderWidth:"0",width:"160rpx",lineHeight:"80rpx",fontSize:"28rpx",borderStyle:"solid"}},[e._v("车场名称")]),i("v-uni-input",{style:{padding:"0 30rpx",boxShadow:"0 0 0px rgba(0,0,0,.6) inset",margin:"0",borderColor:"rgba(0,0,0,.6)",backgroundColor:"rgba(255, 255, 255, 1)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"20rpx 20rpx 0 0",borderWidth:"0",width:"calc(100% - 160rpx)",fontSize:"28rpx",borderStyle:"solid",height:"88rpx"},attrs:{disabled:e.ro.chechangmingcheng,placeholder:"车场名称"},model:{value:e.ruleForm.chechangmingcheng,callback:function(r){e.$set(e.ruleForm,"chechangmingcheng",r)},expression:"ruleForm.chechangmingcheng"}})],1),i("v-uni-view",{staticClass:"cu-form-group",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",margin:"0 0 20rpx 0",borderColor:"#ccc",backgroundColor:"rgba(255, 255, 255, 0)",borderRadius:"0",borderWidth:"0",width:"100%",borderStyle:"solid",height:"108rpx"}},[i("v-uni-view",{staticClass:"title",style:{padding:"0",boxShadow:"0 0 16rpx rgba(0,0,0,0)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"0",borderWidth:"0",width:"160rpx",lineHeight:"80rpx",fontSize:"28rpx",borderStyle:"solid"}},[e._v("车场地址")]),i("v-uni-input",{style:{padding:"0 30rpx",boxShadow:"0 0 0px rgba(0,0,0,.6) inset",margin:"0",borderColor:"rgba(0,0,0,.6)",backgroundColor:"rgba(255, 255, 255, 1)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"20rpx 20rpx 0 0",borderWidth:"0",width:"calc(100% - 160rpx)",fontSize:"28rpx",borderStyle:"solid",height:"88rpx"},attrs:{disabled:e.ro.chechangdizhi,placeholder:"车场地址"},model:{value:e.ruleForm.chechangdizhi,callback:function(r){e.$set(e.ruleForm,"chechangdizhi",r)},expression:"ruleForm.chechangdizhi"}})],1),i("v-uni-view",{staticClass:"cu-form-group",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",margin:"0 0 20rpx 0",borderColor:"#ccc",backgroundColor:"rgba(255, 255, 255, 0)",borderRadius:"0",borderWidth:"0",width:"100%",borderStyle:"solid",height:"108rpx"}},[i("v-uni-view",{staticClass:"title",style:{padding:"0",boxShadow:"0 0 16rpx rgba(0,0,0,0)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"0",borderWidth:"0",width:"160rpx",lineHeight:"80rpx",fontSize:"28rpx",borderStyle:"solid"}},[e._v("车位编号")]),i("v-uni-input",{style:{padding:"0 30rpx",boxShadow:"0 0 0px rgba(0,0,0,.6) inset",margin:"0",borderColor:"rgba(0,0,0,.6)",backgroundColor:"rgba(255, 255, 255, 1)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"20rpx 20rpx 0 0",borderWidth:"0",width:"calc(100% - 160rpx)",fontSize:"28rpx",borderStyle:"solid",height:"88rpx"},attrs:{disabled:e.ro.cheweibianhao,placeholder:"车位编号"},model:{value:e.ruleForm.cheweibianhao,callback:function(r){e.$set(e.ruleForm,"cheweibianhao",r)},expression:"ruleForm.cheweibianhao"}})],1),i("v-uni-view",{staticClass:"cu-form-group select",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 255, 255, 0)",borderColor:"#ccc",margin:"0 0 20rpx 0",borderRadius:"0",borderWidth:"0",width:"100%",borderStyle:"solid",height:"108rpx"}},[i("v-uni-view",{staticClass:"title",style:{padding:"0",boxShadow:"0 0 16rpx rgba(0,0,0,0)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"0",borderWidth:"0",width:"160rpx",lineHeight:"80rpx",fontSize:"28rpx",borderStyle:"solid"}},[e._v("车位状态")]),i("v-uni-picker",{attrs:{value:e.cheweizhuangtaiIndex,range:e.cheweizhuangtaiOptions},on:{change:function(r){arguments[0]=r=e.$handleEvent(r),e.cheweizhuangtaiChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"uni-input",style:{padding:"0 30rpx",boxShadow:"0 0 0px rgba(0,0,0,.6) inset",margin:"0",backgroundColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(0,0,0,.6)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"20rpx 20rpx 0 0",borderWidth:"0",width:"calc(100% - 160rpx)",lineHeight:"80rpx",fontSize:"28rpx",borderStyle:"solid"}},[e._v(e._s(e.ruleForm.cheweizhuangtai?e.ruleForm.cheweizhuangtai:"请选择车位状态"))])],1)],1),i("v-uni-view",{staticClass:"cu-form-group",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",margin:"0 0 20rpx 0",borderColor:"#ccc",backgroundColor:"rgba(255, 255, 255, 0)",borderRadius:"0",borderWidth:"0",width:"100%",borderStyle:"solid",height:"108rpx"}},[i("v-uni-view",{staticClass:"title",style:{padding:"0",boxShadow:"0 0 16rpx rgba(0,0,0,0)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"0",borderWidth:"0",width:"160rpx",lineHeight:"80rpx",fontSize:"28rpx",borderStyle:"solid"}},[e._v("小时费用")]),i("v-uni-input",{style:{padding:"0 30rpx",boxShadow:"0 0 0px rgba(0,0,0,.6) inset",margin:"0",borderColor:"rgba(0,0,0,.6)",backgroundColor:"rgba(255, 255, 255, 1)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"20rpx 20rpx 0 0",borderWidth:"0",width:"calc(100% - 160rpx)",fontSize:"28rpx",borderStyle:"solid",height:"88rpx"},attrs:{disabled:e.ro.xiaoshifeiyong,placeholder:"小时费用"},model:{value:e.ruleForm.xiaoshifeiyong,callback:function(r){e.$set(e.ruleForm,"xiaoshifeiyong",r)},expression:"ruleForm.xiaoshifeiyong"}})],1),i("v-uni-view",{staticClass:"cu-form-group",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 255, 255, 0)",borderColor:"#ccc",margin:"0 0 20rpx 0",borderRadius:"0",borderWidth:"0",width:"100%",borderStyle:"solid",height:"108rpx"},on:{click:function(r){arguments[0]=r=e.$handleEvent(r),e.cheweitupianTap.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"title",style:{padding:"0",boxShadow:"0 0 16rpx rgba(0,0,0,0)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"0",borderWidth:"0",width:"160rpx",lineHeight:"80rpx",fontSize:"28rpx",borderStyle:"solid"}},[e._v("车位图片")]),i("v-uni-view",{staticClass:"right-input",staticStyle:{padding:"0"}},[e.ruleForm.cheweitupian?i("v-uni-image",{staticClass:"avator",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",borderRadius:"100%",borderWidth:"0",width:"88rpx",borderStyle:"solid",height:"88rpx"},attrs:{src:e.baseUrl+e.ruleForm.cheweitupian,mode:"aspectFill"}}):i("v-uni-image",{staticClass:"avator",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",borderRadius:"100%",borderWidth:"0",width:"88rpx",borderStyle:"solid",height:"88rpx"},attrs:{src:"../../static/gen/upload.png",mode:"aspectFill"}})],1)],1),i("v-uni-view",{staticClass:"cu-form-group",style:{padding:"0",boxShadow:"0 0 0px rgba(0,0,0,.3)",backgroundColor:"rgba(255, 255, 255, 0)",borderColor:"#ccc",margin:"0 0 20rpx 0",borderRadius:"0",borderWidth:"0",width:"100%",borderStyle:"solid",height:"308rpx"}},[i("v-uni-view",{staticClass:"title",style:{padding:"0",boxShadow:"0 0 16rpx rgba(0,0,0,0)",margin:"0",borderColor:"#ccc",backgroundColor:"rgba(0,0,0,0)",color:"rgba(0, 0, 0, 1)",textAlign:"left",borderRadius:"0",borderWidth:"0",width:"160rpx",lineHeight:"80rpx",fontSize:"28rpx",borderStyle:"solid"}},[e._v("车位介绍")]),i("v-uni-textarea",{style:{padding:"20rpx",boxShadow:"0 0 0px rgba(0,0,0,.6) inset",margin:"0",backgroundColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(0,0,0,.6)",borderRadius:"20rpx 20rpx 0 0",color:"rgba(0, 0, 0, 1)",borderWidth:"0",width:"calc(100% - 160rpx)",fontSize:"28rpx",borderStyle:"solid",height:"280rpx"},attrs:{placeholder:"车位介绍"},model:{value:e.ruleForm.cheweijieshao,callback:function(r){e.$set(e.ruleForm,"cheweijieshao",r)},expression:"ruleForm.cheweijieshao"}})],1),i("v-uni-view",{staticClass:"btn"},[i("v-uni-button",{staticClass:"bg-red",style:{padding:"0",boxShadow:"0 0 16rpx rgba(0,0,0,0) inset",margin:"0",backgroundColor:"rgba(37, 147, 230, 1)",borderColor:"rgba(37, 147, 230, 1)",borderRadius:"80rpx",color:"#fff",borderWidth:"1",width:"60%",fontSize:"28rpx",borderStyle:"solid",height:"80rpx"},on:{click:function(r){arguments[0]=r=e.$handleEvent(r),e.onSubmitTap.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)],1)},o=[];i.d(r,"b",(function(){return a})),i.d(r,"c",(function(){return o})),i.d(r,"a",(function(){return t}))},"21ef":function(e,r,i){"use strict";var t=i("4ea4");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,i("a481"),i("c5f6"),i("f559"),i("ac6a"),i("28a5"),i("96cf");var a=t(i("3b8d")),o=t(i("e2b1")),n={data:function(){return{cross:"",ruleForm:{chechangmingcheng:"",chechangdizhi:"",cheweibianhao:"",cheweizhuangtai:"",xiaoshifeiyong:"",cheweijieshao:"",cheweitupian:""},cheweizhuangtaiOptions:[],cheweizhuangtaiIndex:0,user:{},ro:{chechangmingcheng:!1,chechangdizhi:!1,cheweibianhao:!1,cheweizhuangtai:!1,xiaoshifeiyong:!1,cheweijieshao:!1,cheweitupian:!1}}},components:{wPicker:o.default},computed:{baseUrl:function(){return this.$base.url}},onLoad:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(r){var i,t,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=uni.getStorageSync("nowTable"),e.next=3,this.$api.session(i);case 3:if(t=e.sent,this.user=t.data,this.cheweizhuangtaiOptions="占用,空闲".split(","),this.ruleForm.userid=uni.getStorageSync("userid"),r.refid&&(this.ruleForm.refid=r.refid,this.ruleForm.nickname=uni.getStorageSync("nickname")),!r.id){e.next=14;break}return this.ruleForm.id=r.id,e.next=12,this.$api.info("cheweixinxi",this.ruleForm.id);case 12:t=e.sent,this.ruleForm=t.data;case 14:if(this.cross=r.cross,!r.cross){e.next=50;break}a=uni.getStorageSync("crossObj"),e.t0=regeneratorRuntime.keys(a);case 18:if((e.t1=e.t0()).done){e.next=50;break}if(o=e.t1.value,"chechangmingcheng"!=o){e.next=24;break}return this.ruleForm.chechangmingcheng=a[o],this.ro.chechangmingcheng=!0,e.abrupt("continue",18);case 24:if("chechangdizhi"!=o){e.next=28;break}return this.ruleForm.chechangdizhi=a[o],this.ro.chechangdizhi=!0,e.abrupt("continue",18);case 28:if("cheweibianhao"!=o){e.next=32;break}return this.ruleForm.cheweibianhao=a[o],this.ro.cheweibianhao=!0,e.abrupt("continue",18);case 32:if("cheweizhuangtai"!=o){e.next=36;break}return this.ruleForm.cheweizhuangtai=a[o],this.ro.cheweizhuangtai=!0,e.abrupt("continue",18);case 36:if("xiaoshifeiyong"!=o){e.next=40;break}return this.ruleForm.xiaoshifeiyong=a[o],this.ro.xiaoshifeiyong=!0,e.abrupt("continue",18);case 40:if("cheweijieshao"!=o){e.next=44;break}return this.ruleForm.cheweijieshao=a[o],this.ro.cheweijieshao=!0,e.abrupt("continue",18);case 44:if("cheweitupian"!=o){e.next=48;break}return this.ruleForm.cheweitupian=a[o],this.ro.cheweitupian=!0,e.abrupt("continue",18);case 48:e.next=18;break;case 50:this.styleChange();case 51:case"end":return e.stop()}}),e,this)})));function r(r){return e.apply(this,arguments)}return r}(),methods:{styleChange:function(){this.$nextTick((function(){}))},cheweizhuangtaiChange:function(e){this.cheweizhuangtaiIndex=e.target.value,this.ruleForm.cheweizhuangtai=this.cheweizhuangtaiOptions[this.cheweizhuangtaiIndex]},cheweitupianTap:function(){var e=this;this.$api.upload((function(r){e.ruleForm.cheweitupian="upload/"+r.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(){var r,i,t,a,o,n,c,d,s,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.ruleForm.xiaoshifeiyong||this.$validate.isNumber(this.ruleForm.xiaoshifeiyong)){e.next=3;break}return this.$utils.msg("小时费用应输入数字"),e.abrupt("return");case 3:if(!this.cross){e.next=19;break}if(a=uni.getStorageSync("statusColumnName"),o=uni.getStorageSync("statusColumnValue"),""==a){e.next=19;break}if(n=uni.getStorageSync("crossObj"),a.startsWith("[")){e.next=15;break}for(c in n)c==a&&(n[c]=o);return d=uni.getStorageSync("crossTable"),e.next=13,this.$api.update("".concat(d),n);case 13:e.next=19;break;case 15:r=Number(uni.getStorageSync("userid")),i=n["id"],t=uni.getStorageSync("statusColumnName"),t=t.replace(/\[/,"").replace(/\]/,"");case 19:if(!i||!r){e.next=41;break}return this.ruleForm.crossuserid=r,this.ruleForm.crossrefid=i,s={page:1,limit:10,crossuserid:r,crossrefid:i},e.next=25,this.$api.list("cheweixinxi",s);case 25:if(u=e.sent,!(u.data.total>=t)){e.next=31;break}return this.$utils.msg(uni.getStorageSync("tips")),e.abrupt("return",!1);case 31:if(!this.ruleForm.id){e.next=36;break}return e.next=34,this.$api.update("cheweixinxi",this.ruleForm);case 34:e.next=38;break;case 36:return e.next=38,this.$api.add("cheweixinxi",this.ruleForm);case 38:this.$utils.msgBack("提交成功");case 39:e.next=49;break;case 41:if(!this.ruleForm.id){e.next=46;break}return e.next=44,this.$api.update("cheweixinxi",this.ruleForm);case 44:e.next=48;break;case 46:return e.next=48,this.$api.add("cheweixinxi",this.ruleForm);case 48:this.$utils.msgBack("提交成功");case 49:case"end":return e.stop()}}),e,this)})));function r(){return e.apply(this,arguments)}return r}(),optionsChange:function(e){this.index=e.target.value},bindDateChange:function(e){this.date=e.target.value},getDate:function(e){var r=new Date,i=r.getFullYear(),t=r.getMonth()+1,a=r.getDate();return"start"===e?i-=60:"end"===e&&(i+=2),t=t>9?t:"0"+t,a=a>9?a:"0"+a,"".concat(i,"-").concat(t,"-").concat(a)},toggleTab:function(e){this.$refs[e].show()}}};r.default=n},"3c26":function(e,r,i){"use strict";var t=i("4c34"),a=i.n(t);a.a},"4c34":function(e,r,i){var t=i("88e4");"string"===typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);var a=i("4f06").default;a("40ae328a",t,!0,{sourceMap:!1,shadowMode:!1})},"518e":function(e,r,i){"use strict";i.r(r);var t=i("21ef"),a=i.n(t);for(var o in t)"default"!==o&&function(e){i.d(r,e,(function(){return t[e]}))}(o);r["default"]=a.a},"88e4":function(e,r,i){var t=i("24fb");r=t(!1),r.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-81595bfe]{padding:%?20?%}.content[data-v-81595bfe]:after{position:fixed;top:0;right:0;left:0;bottom:0;content:"";background-image:url(http://codegen.caihongy.cn/20220213/4e09d53e8f3e4a9e88cf87ecedcf7ca0.png);background-attachment:fixed;background-size:cover;background-position:50%}uni-textarea[data-v-81595bfe]{border:%?1?% solid #eee;border-radius:%?20?%;padding:%?20?%}.title[data-v-81595bfe]{width:%?180?%}.avator[data-v-81595bfe]{width:%?150?%;height:%?60?%}.right-input[data-v-81595bfe]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:left;padding:0 %?24?%}.cu-form-group.active[data-v-81595bfe]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.btn[data-v-81595bfe]{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-81595bfe]{padding:0 %?24?%;background-color:initial;min-height:inherit}.cu-form-group + .cu-form-group[data-v-81595bfe]{border:0}.cu-form-group uni-input[data-v-81595bfe]{padding:0 %?30?%}.uni-input[data-v-81595bfe]{padding:0 %?30?%}.cu-form-group uni-textarea[data-v-81595bfe]{padding:%?30?%;margin:0}.cu-form-group uni-picker[data-v-81595bfe]::after{line-height:%?80?%}.select .uni-input[data-v-81595bfe]{line-height:%?80?%}.input .right-input[data-v-81595bfe]{line-height:%?88?%}',""]),e.exports=r},b71d:function(e,r,i){"use strict";i.r(r);var t=i("1199"),a=i("518e");for(var o in a)"default"!==o&&function(e){i.d(r,e,(function(){return a[e]}))}(o);i("3c26");var n,c=i("f0c5"),d=Object(c["a"])(a["default"],t["b"],t["c"],!1,null,"81595bfe",null,!1,t["a"],n);r["default"]=d.exports}}]);

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

AI 解读 AI

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

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