(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78cc7c5a"],{"0182":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form margin-top"},[i("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[i("div",{staticClass:"app-form-group margin-top"},[i("div",{staticClass:"app-form-ti"},[t._v("阿里云物流查询")]),i("div",{staticClass:"padding-top-lg"},[i("el-form-item",{attrs:{label:"状态"}},[i("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[i("el-radio",{attrs:{label:1}},[t._v("开启")]),i("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),1==t.form.status?[i("el-form-item",{attrs:{label:"AppCode",prop:"AppCode"}},[i("el-input",{staticClass:"form-input",model:{value:t.form.AppCode,callback:function(e){t.$set(t.form,"AppCode",e)},expression:"form.AppCode"}}),i("div",{staticClass:"padding-top"},[i("el-button",{attrs:{type:"success",size:"mini"},on:{click:t.onApply}},[t._v("前往申请")])],1)],1)]:t._e()],2)]),i("div",{staticClass:"padding-top-lg flex justify-center"},[i("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),i("copyright")],1)},a=[],o=i("7f70"),n=i("8327"),r={name:"Delivery",components:{},data:function(){return{rules:{},form:{status:0,AppKey:"",AppSecret:"",AppCode:""}}},computed:Object(o["a"])({},Object(n["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onApply:function(){window.open("https://market.aliyun.com/apimarket/detail/cmapi023201?spm=5176.730005.result.4.3b28414aPPk6XX&innerSource=search_%E5%85%A8%E7%90%83%E7%89%A9%E6%B5%81%E6%9F%A5%E8%AF%A2#sku=yuncode17201000019")},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&(t.form,t.api.post("config/deliverySubmit",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.$store.dispatch("settings/getSetting")):t.$util.error(e.message)})))}))},init:function(){var t=this.config;t.data.aliyun_delivery&&(this.form=this.$util.restJson(t.data.aliyun_delivery))}}},l=r,p=(i("d849"),i("3d7a")),c=Object(p["a"])(l,s,a,!1,null,null,null);e["default"]=c.exports},d849:function(t,e,i){"use strict";i("f9d6")},f9d6:function(t,e,i){}}]);