complaint.js 2.75 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/complaint/complaint"],{"4f4f":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{fileList:[],ruleForm:{onSitePhoto:"",complaintType:"",problemDescription:"",remark:"",applicationTime:"",status:"1"},list:[{value:"物业投诉",label:"物业投诉"},{value:"违规投诉",label:"违规投诉"}],popup1:!1}},methods:{chooseLocation:function(e,t){this.popup1=!0},pops:function(e){this.ruleForm.complaintType=e[0].label},submit:function(){var t=this,n=[];n=this.$refs.uUpload.lists.filter((function(e){return 100==e.progress})),n.map((function(e){t.ruleForm.onSitePhoto=e.response.data.url})),this.ruleForm.applicationTime=this.currentTime(),this.ruleForm.applicant=e.getStorageSync("shopId"),this.$http.sendRequest("/cereComplaintsSuggestions/add","POST",this.ruleForm,1).then((function(t){e.navigateTo({url:"/pages/serve/serve"})})).catch((function(e){console.log(e)}))},currentTime:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,o=e.getDate(),u=e.getHours(),i=e.getMinutes(),c=e.getSeconds();n=n<10?"0"+n:n,o=o<10?"0"+o:o,u=u<10?"0"+u:u,i=i<10?"0"+i:i,c=c<10?"0"+c:c;var r="".concat(t,"-").concat(n,"-").concat(o," ").concat(u,":").concat(i,":").concat(c);return r}}};t.default=n}).call(this,n("df3c")["default"])},"59f1":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("06cb");o(n("3240"));var u=o(n("8db1"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(u.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"75b0":function(e,t,n){},"8db1":function(e,t,n){"use strict";n.r(t);var o=n("b95c"),u=n("cb98");for(var i in u)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(i);n("be0d");var c=n("828b"),r=Object(c["a"])(u["default"],o["b"],o["c"],!1,null,"33d1f60a",null,!1,o["a"],void 0);t["default"]=r.exports},b95c:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var o={uInput:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-input/u-input")]).then(n.bind(null,"84bb"))},uUpload:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-upload/u-upload")]).then(n.bind(null,"e581"))},uSelect:function(){return n.e("node-modules/uview-ui/components/u-select/u-select").then(n.bind(null,"ba16"))}},u=function(){var e=this.$createElement;this._self._c},i=[]},be0d:function(e,t,n){"use strict";var o=n("75b0"),u=n.n(o);u.a},cb98:function(e,t,n){"use strict";n.r(t);var o=n("4f4f"),u=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=u.a}},[["59f1","common/runtime","common/vendor"]]]);