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 line
48 KiB
1 line
48 KiB
9 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["client"],{"036f":function(e,a,t){},"144d":function(e,a,t){},"2fa9":function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{staticClass:"mt-30",attrs:{label:"是否开启访问",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["enabled",{rules:[{required:!0}]}],expression:"['enabled', { rules: [{ required: true }] }]"}]},[a("a-radio",{attrs:{value:!0}},[e._v("开启")]),a("a-radio",{attrs:{value:!1}},[e._v("关闭")])],1),a("div",{staticClass:"form-item-help"},[a("small",[e._v("注:如关闭,用户则无法通过H5端访问商城")])])],1),a("a-form-item",{attrs:{label:"H5站点地址",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["baseUrl",{rules:[{required:!0,message:"请输入H5站点地址"}]}],expression:"['baseUrl', { rules: [{ required: true, message: '请输入H5站点地址' }] }]"}]}),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[a("span",[e._v("请填写H5端实际的访问地址,以")]),a("a-tag",{staticClass:"mlr-5"},[e._v("https://")]),e._v("开头; 斜杠 "),a("a-tag",{staticClass:"mlr-5"},[e._v("/")]),a("span",[e._v("结尾")])],1),a("p",{staticClass:"extra"},[a("span",[e._v("例如:https://www.你的域名.com/")]),a("span",{staticClass:"ml-8"},[e._v("https://shop10001.你的域名.com/")])])])],1),a("a-form-item",{attrs:{wrapperCol:{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(t("d3b7"),t("88bc")),l=t.n(s),o=t("ca00"),n=t("5530"),c=t("b775"),u={detail:"/client.h5.setting/detail",update:"/client.h5.setting/update"};function d(e){return Object(c["b"])({url:u.detail,method:"get",params:{key:e}})}function p(e,a){return Object(c["b"])({url:u.update,method:"post",data:Object(n["a"])({key:e},a)})}var m={data:function(){return{labelCol:{span:4},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),key:"basic",record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,d(this.key).then((function(a){e.record=a.data.detail,e.setFieldsValue()})).finally((function(){return e.isLoading=!1}))},setFieldsValue:function(){var e=this.record,a=this.$nextTick,t=this.form;!Object(o["f"])(t.getFieldsValue())&&a((function(){t.setFieldsValue(l()(e,["enabled","baseUrl"]))}))},handleSubmit:function(e){var a=this;e.preventDefault();var t=this.form.validateFields;t((function(e,t){!e&&a.onFormSubmit(t)}))},onFormSubmit:function(e){var a=this;this.isLoading=!0,p(this.key,{form:e}).then((function(e){return a.$message.success(e.message,1.5)})).finally((function(){return a.isLoading=!1}))}}},f=m,v=(t("9a01"),t("2877")),b=Object(v["a"])(f,r,i,!1,null,"3025a70a",null);a["default"]=b.exports},3267:function(e,a,t){"use strict";var r=t("5c06");a["a"]=new r["a"]([{key:"CAPTCHA",name:"短信验证码",value:"captcha"},{key:"ORDER_PAY",name:"新付款订单",value:"order_pay"}])},3490:function(e,a,t){"use strict";t("144d")},"56ee":function(e,a,t){},"5c33":function(e,a,t){"use strict";t("6827")},"67e5":function(e,a,t){"use strict";var r=function(){var e=this,a=e._self._c;return a("a-upload",{attrs:{beforeUpload:e.beforeUpload,remove:e.handleRemove,accept:e.accept,multiple:!1,fileList:e.fileList}},[a("a-button",[a("a-icon",{attrs:{type:"upload"}}),e._v("选择文件 ")],1)],1)},i=[],s=(t("b0c0"),t("a434"),t("4d91")),l={name:"InputFile",model:{prop:"value",event:"change"},props:{value:s["a"].string.def(""),accept:s["a"].string.def("")},data:function(){return{fileList:[]}},watch:{value:{immediate:!0,handler:function(e){e&&0===this.fileList.length&&(this.fileList=[{uid:"default",name:e}])}},fileList
|