chunk-2969c7d3.9cb6a81f.js 2.2 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2969c7d3"],{"151a":function(t,e,s){t.exports=s.p+"view_admin/img/feed-icon.99e39a74.png"},"3af2":function(t,e,s){},5909:function(t,e,s){"use strict";s.r(e);var a=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"img-box"},[e("img",{attrs:{src:s("151a"),mode:""}})])}],n=s("42e3"),i={name:"feedback",data:function(){return{name:"",phone:"",con:"",feedback:"",isDisabled:!1}},created:function(){this.getInfo()},methods:{getInfo:function(){var t=this;Object(n.h)().then((function(e){t.feedback=e.data.feedback}))},subMit:function(){var t=this;return this.name?this.phone&&/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.phone)?this.con?(this.isDisabled=!0,void Object(n.i)({rela_name:this.name,phone:this.phone,content:this.con}).then((function(e){t.$Message.success(e.msg),t.$router.go(-1)})).catch((function(e){t.$Message.error(e.msg)}))):this.$Message.error("请填写内容"):this.$Message.error("请填写正确的手机号码"):this.$Message.error("请填写姓名")}}},c=(s("c283"),s("2877")),o=Object(c.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"feedback-wrapper"},[s("div",{staticClass:"head"},[s("div",{staticClass:"left-wrapper"},[s("div",{staticClass:"title"},[t._v("商城客服已离线")]),s("div",{staticClass:"txt"},[t._v(t._s(t.feedback))])]),t._m(0)]),s("div",{staticClass:"main"},[s("div",{staticClass:"title"},[t._v("我要反馈")]),s("div",{staticClass:"input-box"},[s("Input",{attrs:{type:"text",placeholder:"请输入您的姓名"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),s("div",{staticClass:"input-box"},[s("Input",{attrs:{type:"text",placeholder:"请输入您的联系电话"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1),s("div",{staticClass:"input-box"},[s("Input",{attrs:{type:"textarea",placeholder:"请填写内容"},model:{value:t.con,callback:function(e){t.con=e},expression:"con"}})],1),s("Button",{staticClass:"sub_btn",attrs:{disabled:t.isDisabled},on:{click:t.subMit}},[t._v("提交")])],1)])}),a,!1,null,null,null);e.default=o.exports},c283:function(t,e,s){"use strict";var a=s("3af2");s.n(a).a}}]);