You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
7.8 KiB
1 lines
7.8 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21bea50e"],{"099c":function(t,e,r){"use strict";var a=r("0e02"),n=r.n(a);n.a},"0e02":function(t,e,r){},"265f":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{},[r("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}},[r("div",{attrs:{slot:"title"},slot:"title"},[r("div",{staticStyle:{float:"left"}},[r("router-link",{attrs:{to:{path:t.routePre+"/home/"}}},[r("Button",{staticClass:"mr20",attrs:{icon:"ios-arrow-back",size:"small"}},[t._v("返回\n\t\t\t\t\t\t\t ")])],1),r("span",{staticClass:"mr20",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])])],1),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("div",{staticClass:"box"},[r("Form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":120,"label-position":"right"}},[r("FormItem",{attrs:{label:"头像:",prop:"avatar"}},[r("div",{staticClass:"picBox",on:{click:function(e){return t.modalPicTap("单选")}}},[t.formValidate.avatar?r("div",{staticClass:"pictrue"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formValidate.avatar,expression:"formValidate.avatar"}]})]):r("div",{staticClass:"upLoad acea-row row-center-wrapper"},[r("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)])]),r("FormItem",{attrs:{label:"账号",prop:""}},[r("Input",{staticClass:"input",attrs:{type:"text",disabled:!0},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1),r("FormItem",{attrs:{label:"姓名",prop:"real_name"}},[r("Input",{staticClass:"input",attrs:{type:"text"},model:{value:t.formValidate.real_name,callback:function(e){t.$set(t.formValidate,"real_name",e)},expression:"formValidate.real_name"}})],1),r("FormItem",{attrs:{label:"原始密码",prop:"pwd"}},[r("Input",{staticClass:"input",attrs:{type:"password"},model:{value:t.formValidate.pwd,callback:function(e){t.$set(t.formValidate,"pwd",e)},expression:"formValidate.pwd"}})],1),r("FormItem",{attrs:{label:"新密码",prop:"new_pwd"}},[r("Input",{staticClass:"input",attrs:{type:"password"},model:{value:t.formValidate.new_pwd,callback:function(e){t.$set(t.formValidate,"new_pwd",e)},expression:"formValidate.new_pwd"}})],1),r("FormItem",{attrs:{label:"确认新密码",prop:"conf_pwd"}},[r("Input",{staticClass:"input",attrs:{type:"password"},model:{value:t.formValidate.conf_pwd,callback:function(e){t.$set(t.formValidate,"conf_pwd",e)},expression:"formValidate.conf_pwd"}})],1),r("FormItem",[r("Button",{attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1)],1)]),r("Modal",{attrs:{width:"950px",scrollable:"","footer-hide":"",closable:"",title:"上传用户头像","mask-closable":!1,"z-index":1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?r("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)},n=[],o=r("d708"),i=r("c24f"),u=r("2f62"),c=r("b0e7");r("c276");function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(r,!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={name:"setting_user",components:{uploadPictures:c["a"]},computed:l({},Object(u["e"])("store/layout",["isMobile"]),{},Object(u["e"])("store/userLevel",["categoryId"]),{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"left"}}),data:function(){return{routePre:o["a"].routePre,modalPic:!1,isChoice:"单选",account:"",formValidate:{real_name:"",pwd:"",new_pwd:"",conf_pwd:"",avatar:""},ruleValidate:{real_name:[{required:!0,message:"您的姓名不能为空",trigger:"blur"}],pwd:[{required:!0,message:"请输入您的原始密码",trigger:"blur"}],new_pwd:[{required:!0,message:"请输入您的新密码",trigger:"blur"}],conf_pwd:[{required:!0,message:"请确认您的新密码",trigger:"blur"}]},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8}}},mounted:function(){this.getInfo()},methods:{modalPicTap:function(){this.modalPic=!0},getPic:function(t){this.formValidate.avatar=t.att_dir,this.modalPic=!1},getInfo:function(){var t=this;Object(i["h"])().then((function(e){var r=e.data;t.account=r.account,t.formValidate.avatar=r.avatar,t.formValidate.real_name=r.staff_name})).catch((function(e){t.$Message.error(e.msg)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?Object(i["i"])(e.formValidate).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)})):e.formValidate.new_pwd!==e.formValidate.conf_pwd&&e.$Message.error("您输入的新密码与旧密码不一致")}))}}},m=f,p=(r("099c"),r("2877")),b=Object(p["a"])(m,a,n,!1,null,"086428c7",null);e["default"]=b.exports},c24f:function(t,e,r){"use strict";r.d(e,"r",(function(){return n})),r.d(e,"k",(function(){return o})),r.d(e,"l",(function(){return i})),r.d(e,"a",(function(){return u})),r.d(e,"q",(function(){return c})),r.d(e,"j",(function(){return s})),r.d(e,"m",(function(){return l})),r.d(e,"u",(function(){return d})),r.d(e,"d",(function(){return f})),r.d(e,"f",(function(){return m})),r.d(e,"c",(function(){return p})),r.d(e,"e",(function(){return b})),r.d(e,"p",(function(){return g})),r.d(e,"n",(function(){return h})),r.d(e,"t",(function(){return w})),r.d(e,"o",(function(){return v})),r.d(e,"s",(function(){return _})),r.d(e,"g",(function(){return O})),r.d(e,"i",(function(){return j})),r.d(e,"b",(function(){return P})),r.d(e,"h",(function(){return V}));var a=r("b6bd");function n(){return Object(a["a"])({url:"user/user_label_cate",method:"get"})}function o(){return Object(a["a"])({url:"user/user_label_cate/create",method:"get"})}function i(t){return Object(a["a"])({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function u(t){return Object(a["a"])({url:"user/user_label",method:"get",params:t})}function c(){return Object(a["a"])({url:"user/user_label/create",method:"get"})}function s(t){return Object(a["a"])({url:"user/user_label/".concat(t,"/edit"),method:"get"})}function l(t){return Object(a["a"])({url:"user/user",method:"get",params:t})}function d(t){return Object(a["a"])({url:"user/search",method:"get",params:t})}function f(t){return Object(a["a"])({url:"user/label/".concat(t),method:"get"})}function m(t,e){return Object(a["a"])({url:"user/label/".concat(t),method:"post",data:e})}function p(t){return Object(a["a"])({url:"user/user/".concat(t),method:"get"})}function b(t){return Object(a["a"])({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function g(t){return Object(a["a"])({url:"user/set_label",method:"post",data:t})}function h(){return Object(a["a"])({url:"user/recharge/meal",method:"get"})}function w(){return Object(a["a"])({url:"user/member/ship",method:"get"})}function v(t){return Object(a["a"])({url:"user/recharge",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/user/member",method:"post",data:t})}function O(t){return Object(a["a"])({url:"staff/binding/user",method:"post",data:t})}function j(t){return Object(a["a"])({url:"updatePwd",method:"PUT",data:t})}function P(t,e){return Object(a["a"])({url:"check_order_status/".concat(t),method:"post",data:e})}function V(){return Object(a["a"])({url:"staff/staff_info",method:"get"})}}}]); |