1 line
1.8 KiB
JavaScript
1 line
1.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70762058"],{"3dda":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"cmcPayInfo"}},[o("c-title",{attrs:{hide:!1,text:"CMC账号管理"}}),o("van-field",{attrs:{label:"账号",placeholder:"请输入账号"},model:{value:t.mobile,callback:function(e){t.mobile=e},expression:"mobile"}}),o("van-field",{attrs:{label:"密码",placeholder:"请输入密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),o("div",{staticStyle:{"margin-top":"2rem",padding:"0 2rem"}},[o("van-button",{attrs:{type:"primary",block:""},on:{click:t.saveInfo}},[t._v("保存")])],1)],1)},n=[],c=(o("e7e5"),o("d399")),s=o("6968"),i={data:function(){return{mobile:"",password:""}},activated:function(){this.getInfo()},components:{cTitle:s["a"]},computed:{},methods:{getInfo:function(){var t=this;$http.get("plugin.cmc-pay.frontend.account.get-cmc-account",{},"").then((function(e){if(1===e.result){var o=e.data;t.fun.isTextEmpty(o)||(t.mobile=o.mobile,t.password=o.password)}}),(function(t){}))},saveInfo:function(){var t=this;$http.get("plugin.cmc-pay.frontend.account.store-account",{mobile:this.mobile,password:this.password},"").then((function(e){1===e.result?(Object(c["a"])("保存成功"),t.$router.go(-1)):Object(c["a"])(e.msg)}),(function(t){}))}}},l=i,r=(o("f763"),o("2877")),u=Object(r["a"])(l,a,n,!1,null,"96bbc018",null);e["default"]=u.exports},"6591d":function(t,e,o){var a=o("ef18");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=o("499e").default;n("7f789632",a,!0,{sourceMap:!1,shadowMode:!1})},ef18:function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,"#cmcPayInfo[data-v-96bbc018]{text-align:left}",""]),t.exports=e},f763:function(t,e,o){"use strict";o("6591d")}}]); |