(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5346c736"],{"061c":function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"h",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return d})),n.d(t,"l",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"j",(function(){return m})),n.d(t,"k",(function(){return p})),n.d(t,"f",(function(){return h}));var r=n("b775");function a(e){return Object(r["a"])({url:"/system/GoodsOrder/list",method:"get",params:e})}function i(e){return Object(r["a"])({url:"/system/GoodsOrder/"+e,method:"get"})}function u(e){return Object(r["a"])({url:"/system/QuoteType/goodsDataList/"+e,method:"get"})}function c(){return Object(r["a"])({url:"/system/Order/generateCode/",method:"get"})}function o(e){return Object(r["a"])({url:"/system/UserAddress/getuserAddressList/".concat(e),method:"get"})}function s(){return Object(r["a"])({url:"/system/SiteDelivery/getSiteDeliveryList",method:"get"})}function d(e){return Object(r["a"])({url:"/system/GoodsOrder",method:"post",data:e})}function l(e){return Object(r["a"])({url:"/system/GoodsOrder",method:"put",data:e})}function f(e){return Object(r["a"])({url:"/system/GoodsOrder/"+e,method:"delete"})}function m(e){return Object(r["a"])({url:"/system/GoodsOrder/processAfterSale",method:"post",data:e})}function p(e){return Object(r["a"])({url:"/system/GoodsOrder/shipOrder",method:"post",data:e})}function h(e){return Object(r["a"])({url:"/system/UsersPayBefor/getByOrderId/"+e,method:"get"})}},3185:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"select-url-component"},[n("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.options,props:e.props,placeholder:"请选择链接内容",clearable:"","show-all-levels":!1},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}})],1)},a=[],i=n("c7eb"),u=n("1da1"),c=(n("7db0"),n("d81d"),n("b0c0"),n("b64b"),n("d3b7"),n("0643"),n("fffc"),n("a573"),n("f78c")),o=n("061c"),s={name:"SelectUrl",props:{value:{type:String,default:""}},data:function(){return{selectedValue:[],options:[],props:{value:"id",label:"name",children:"children"}}},created:function(){this.loadData()},watch:{value:{handler:function(e){},immediate:!0}},methods:{loadData:function(e,t){var n=this;return Object(u["a"])(Object(i["a"])().mark((function e(){var t,r,a,u,s;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["b"])("config_nine");case 2:return t=e.sent,e.next=5,Object(o["d"])("1");case 5:return r=e.sent,e.next=8,Object(o["d"])("2");case 8:return a=e.sent,e.next=11,Object(o["d"])("3");case 11:return u=e.sent,e.next=14,Object(o["d"])("4");case 14:s=e.sent,console.log(t),n.options=[{id:"1",name:"站内地址",children:JSON.parse(t.rows.find((function(e){return"config_nine"===e.name})).value).siteLinks.map((function(e){return{id:e.url,name:e.name}}))},{id:"2",name:"服务链接",children:r.data.map((function(e){return{id:"/pages/shop/make/details?id="+e.id,name:e.title,leaf:!0}}))},{id:"3",name:"商品链接",children:a.data.map((function(e){return{id:"/pages/shop/Buy/details?id="+e.id+"&type=3",name:e.title,leaf:!0}}))},{id:"4",name:"秒杀商品",children:u.data.map((function(e){return{id:"/pages/shop/make/details?id="+e.id+"&type=1",name:e.title,leaf:!0}}))},{id:"5",name:"拼团商品",children:s.data.map((function(e){return{id:"/pages/shop/make/details?id="+e.id+"&type=3",name:e.title,leaf:!0}}))}],n.options.map((function(e){e.children.map((function(t){t.id==n.value&&(n.selectedValue=[e.id,t.id])}))}));case 18:case"end":return e.stop()}}),e)})))()},handleChange:function(e){console.log("选择变化:",e),this.selectedValue=e,this.$emit("input",e[1])},updateLinkType:function(e){console.log("手动更新链接类型:",e),this.$emit("update:linkType",e)}}},d=s,l=(n("d568"),n("2877")),f=Object(l["a"])(d,r,a,!1,null,"0c8590e6",null);t["default"]=f.exports},"4a56":function(e,t,n){},d568:function(e,t,n){"use strict";n("4a56")},f78c:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u}));var r=n("b775");function a(e){return Object(r["a"])({url:"/system/SiteConfig/list",method:"get",params:e})}function i(e){return Object(r["a"])({url:"/system/SiteConfig",method:"post",data:e})}function u(e){return Object(r["a"])({url:"/system/SiteConfig",method:"put",data:e})}}}]);