chunk-a964b06e.6d9be3d6.js 5.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a964b06e"],{"0213":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"feedback-box"},[n("div",{staticClass:"repair-content fixed-page-content"},[n("div",{staticClass:"white-box page-1"},[n("div",{staticClass:"page-1-head",on:{click:function(e){return t.goNavigator("feedbackRecord")}}},[n("i",{staticClass:"iconfont icon-daichulihetong"}),n("span",[t._v("反馈记录")])])]),n("div",{staticClass:"white-box page-2"},[n("van-field",{attrs:{rows:"6",autosize:"",type:"textarea",maxlength:"800",placeholder:"请填写反馈的内容","show-word-limit":""},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)]),n("div",{staticClass:"repair-bottom bottom-button"},[n("button",{staticClass:"btn",on:{click:t.doFeedback}},[t._v("提交")])])])},r=[],o=n("9298"),c=n("3089"),u=n("5cab"),s=n("24ec"),i={name:"Feedback",data:function(){return{uid:"",content:"",myName:"",account:""}},created:function(){},mounted:function(){this.getUserInfo(u["a"].currUser().id)},methods:{getUserInfo:function(t){var e=this;Object(s["g"])({id:t}).then(function(t){t.data&&t.data.trueName&&(e.myName=t.data.trueName)})},doFeedback:function(){var t=this,e=this.content;if(!e)return Object(c["Toast"])("内容不能为空");Object(o["a"])({feedbackId:u["a"].uid(),feedbackName:this.myName,feedbackContent:e}).then(function(e){Object(c["Toast"])("反馈成功"),t.$router.push({path:"/feedbackRecord"})}).catch(function(){})}}},d=i,f=(n("43bb"),n("2877")),h=Object(f["a"])(d,a,r,!1,null,"52ac2a6f",null);e["default"]=h.exports},1145:function(t,e,n){},"24ec":function(t,e,n){"use strict";n.d(e,"i",function(){return u}),n.d(e,"e",function(){return s}),n.d(e,"c",function(){return i}),n.d(e,"j",function(){return d}),n.d(e,"g",function(){return f}),n.d(e,"p",function(){return h}),n.d(e,"m",function(){return l}),n.d(e,"n",function(){return b}),n.d(e,"o",function(){return m}),n.d(e,"a",function(){return p}),n.d(e,"f",function(){return g}),n.d(e,"l",function(){return j}),n.d(e,"k",function(){return k}),n.d(e,"d",function(){return O}),n.d(e,"h",function(){return w}),n.d(e,"b",function(){return v});var a=n("8982"),r="/industryParkApi",o="/wx/user",c="/wx/frameUser";function u(t){return Object(a["a"])({url:r+o+"/login_by_app_main",method:"post",data:t})}function s(t){return Object(a["a"])({url:r+o+"/editMyInformation",method:"post",data:t})}function i(t){return Object(a["a"])({url:r+o+"/changePassword",method:"post",data:t})}function d(t){return Object(a["a"])({url:r+c+"/getById",method:"post",data:t})}function f(t){return Object(a["a"])({url:r+o+"/getById",method:"post",data:t})}function h(t){return Object(a["a"])({url:r+o+"/wechatUnBind",method:"post",data:t})}function l(t){return Object(a["a"])({url:r+o+"/unbound",method:"post",data:t})}function b(t){return Object(a["a"])({url:r+o+"/unbound2",method:"post",data:t})}function m(t){return Object(a["a"])({url:r+o+"/wechatBind",method:"post",data:t})}function p(t){return Object(a["a"])({url:r+o+"/binding",method:"post",data:t})}function g(t){return Object(a["a"])({url:r+c+"/editPassword",method:"post",data:t})}function j(t){return Object(a["a"])({url:r+o+"/send",method:"post",data:t})}function k(t){return Object(a["a"])({url:r+o+"/register_by_account",method:"post",data:t})}function O(t){return Object(a["a"])({url:r+o+"/checkAccount",method:"post",data:t})}function w(t){return Object(a["a"])({url:r+o+"/userInfo/"+t,method:"post"})}function v(t){return Object(a["a"])({url:r+o+"/bizInfo/"+t,method:"post"})}},"43bb":function(t,e,n){"use strict";var a=n("1145"),r=n.n(a);r.a},8982:function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return b});var a=n("795b"),r=n.n(a),o=n("bc3a"),c=n.n(o),u=n("4328"),s=n.n(u),i=n("4360"),d=n("5cab"),f=n("a18c"),h=n("3089");function l(t,e){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var n={method:t.method,url:t.url,data:s.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new r.a(function(e,a){c()(n).then(function(t){if(t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(h["Toast"])(n.errmsg),setTimeout(function(){i["a"].dispatch("user/logout").then(function(){f["a"].push("/login")})},1500),a(n.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(n.errmsg),a(n.errmsg);break}e(n)}else console.log(t),a(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(h["Toast"])(e),a(e,n)})})}function b(t){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new r.a(function(n,a){c.a.defaults.withCredentials=!0,c()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(h["Toast"])(e.errmsg),setTimeout(function(){i["a"].dispatch("user/logout").then(function(){f["a"].push("/login")})},1500),a(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(e.errmsg),a(e.errmsg);break}n(e)}else console.log(t),a(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(h["Toast"])(e),a(e,n)})})}},9298:function(t,e,n){"use strict";n.d(e,"c",function(){return c}),n.d(e,"a",function(){return u}),n.d(e,"b",function(){return s});var a=n("8982"),r="/industryParkApi",o="/wx/parkFeedbackInfo";function c(t){return Object(a["a"])({url:r+o+"/list",method:"post",data:t})}function u(t){return Object(a["a"])({url:r+o+"/add",method:"post",data:t})}function s(t){return Object(a["a"])({url:r+o+"/getById?id="+t,method:"get"})}}}]);