addFeed.js 5.2 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/addFeed"],{139:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(140));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},140:function(e,t,n){"use strict";n.r(t);var o=n(141),i=n(143);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n(145);var r,u=n(36),s=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"59ac439c",null,!1,o["components"],r);s.options.__file="pages/mine/addFeed.vue",t["default"]=s.exports},141:function(e,t,n){"use strict";n.r(t);var o=n(142);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},142:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return r})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return o}));try{o={tnNavBar:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(n.bind(null,220))},uniDataSelect:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-data-select/components/uni-data-select/uni-data-select")]).then(n.bind(null,359))},uniFilePicker:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker")]).then(n.bind(null,375))},uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,384))},tnButton:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-button/tn-button")]).then(n.bind(null,273))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement;e._self._c},a=!1,r=[];i._withStripped=!0},143:function(e,t,n){"use strict";n.r(t);var o=n(144),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},144:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(58)),a={data:function(){return{imgList:[],fileDetailList:[],showHistory:!1,content:[],contentValue:"",contactMethod:e.getStorageSync("userInfo")?JSON.parse(e.getStorageSync("userInfo")).userName:"",typeValue:1,range:[{value:1,text:"汇报系统故障"},{value:2,text:"平台问题"},{value:3,text:"投诉"}],showEmpty:!1}},filters:{formatDate:function(e){if(!e)return"";var t=new Date(e),n=new Date,o=new Date(n);return o.setDate(o.getDate()-1),t.getFullYear()==n.getFullYear()&&t.getMonth()==n.getMonth()&&t.getDate()==n.getDate()?"今天 "+(t.getHours()>9?"":"0")+t.getHours()+":"+(t.getMinutes()>9?"":"0")+t.getMinutes():t.getFullYear()==o.getFullYear()&&t.getMonth()==o.getMonth()&&t.getDate()==o.getDate()?"昨天 "+(t.getHours()>9?"":"0")+t.getHours()+":"+(t.getMinutes()>9?"":"0")+t.getMinutes():t.toLocaleDateString()+" "+(t.getHours()>9?"":"0")+t.getHours()+":"+(t.getMinutes()>9?"":"0")+t.getMinutes()}},created:function(){},methods:{showHis:function(){e.navigateTo({url:"/pages/mine/feedback"})},goBack:function(){e.navigateBack()},select:function(e){console.log("选择文件:",e);var t=e.tempFiles;for(var n in t)this.upfile(t[n])},upfile:function(t){var n=this;console.warn(t),e.uploadFile({url:"http://slb-m.dev.ml1993.com/oss/upload/userFeedback",filePath:t.url,name:"file",success:function(e){console.warn(JSON.parse(e.data));var o=JSON.parse(e.data).resultMap;n.fileDetailList.push({name:t.name,fileName:t.name,ftpUrl:o.uploadUrl})}})},success:function(e){console.log("上传成功")},saveForm:function(){var t={};return this.contentValue?this.contactMethod?(e.showToast({title:"提交中...",icon:"none"}),t.slbFeedback=JSON.stringify({type:this.typeValue,content:this.contentValue,contactMethod:this.contactMethod,userNo:e.getStorageSync("userNo")}),t.fileDetailList=JSON.stringify(this.fileDetailList),void i.default.post("/slbFeedback/add",t).then((function(t){t.success?e.showToast({title:"已提交",icon:"none",success:function(){setTimeout((function(){e.redirectTo({url:"/pages/mine/feedback"})}),2e3)}}):e.showToast({title:t.msg,icon:"none"}),console.warn(t)}))):(e.showToast({title:"请输入您的联系方式",duration:2e3,icon:"none"}),!1):(e.showToast({title:"请输入您遇到的问题",duration:2e3,icon:"none"}),!1)}},onLoad:function(){}};t.default=a}).call(this,n(2)["default"])},145:function(e,t,n){"use strict";n.r(t);var o=n(146),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},146:function(e,t,n){}},[[139,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/addFeed.js.map