set.js 2.2 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["admin/cg/set"],{"155e":function(t,e,n){"use strict";n.r(e);var o=n("87c5"),c=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=c.a},"78c3":function(t,e,n){"use strict";n.r(e);var o=n("b8d2"),c=n("155e");for(var u in c)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(u);n("8321");var r,i=n("0095"),a=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,"7ddab4e3",null,!1,o["a"],r);e["default"]=a.exports},"7c6c":function(t,e,n){"use strict";(function(t){n("6cdc");o(n("4a15"));var e=o(n("78c3"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("f3be")["createPage"])},8321:function(t,e,n){"use strict";var o=n("a7d7"),c=n.n(o);c.a},"87c5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("8dd4"),c=function(){n.e("components/plugin/list-cell").then(function(){return resolve(n("1861"))}.bind(null,n)).catch(n.oe)},u={name:"cgSet",components:{TuiListCell:c},data:function(){return{form:{cgPerCost:""},hasLoad:!1,cgModel:0}},onLoad:function(){},onShow:function(){},methods:{cgModelChange:function(t){var e=t.target.value;this.cgModel=e?1:0},init:function(){var t=this;if(this.hasLoad)return!1;(0,o.currentShop)().then((function(e){1==e.code&&(t.hasLoad=!0,t.form.cgPerCost=e.data.cgPerCost,t.cgModel=e.data.cgModel,t.$forceUpdate())}))},selectCustom:function(){this.$util.pageTo({url:"/admin/custom/selectCustom",query:{style:2}})},formSubmit:function(){var t=this;if(1==t.cgModel&&0==t.$util.isMoney(t.form.cgPerCost))return t.$msg("请输入运费成本"),!1;(0,o.updateCgModel)({cgPerCost:t.form.cgPerCost,cgModel:t.cgModel}).then((function(e){1==e.code&&(t.$msg(e.msg),setTimeout((function(){t.$store.commit("setLoginInfo",{}),t.$util.pageTo({url:"/admin/cg/set",type:3})}),900))}))}}};e.default=u},a7d7:function(t,e,n){},b8d2:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var c=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.form.cgPerCost=""})},u=[]}},[["7c6c","common/runtime","common/vendor"]]]);