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 lines
28 KiB
1 lines
28 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4aa6512f"],{"07ea":function(t,e,r){},1336:function(t,e,r){"use strict";r.d(e,"e",(function(){return i})),r.d(e,"d",(function(){return a})),r.d(e,"f",(function(){return o})),r.d(e,"a",(function(){return s})),r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return u})),r.d(e,"h",(function(){return l})),r.d(e,"g",(function(){return d}));var n=r("b6bd");function i(t){return Object(n.a)({url:"cms/cms",method:"get",params:t})}function a(t){return Object(n.a)({url:"cms/cms",method:"post",data:t})}function o(t){return Object(n.a)({url:"cms/cms/".concat(t),method:"get"})}function s(){return Object(n.a)({url:"cms/category/create",method:"GET"})}function c(t){return Object(n.a)({url:"cms/category",method:"GET",params:t})}function u(t){return Object(n.a)({url:"cms/category/".concat(t,"/edit"),method:"GET"})}function l(t){return Object(n.a)({url:"cms/category/set_status/".concat(t.id,"/").concat(t.status),method:"put"})}function d(t,e){return Object(n.a)({url:"cms/cms/relation/".concat(e),method:"put",data:t})}},5188:function(t,e,r){"use strict";r("07ea")},"7af3":function(t,e,r){"use strict";var n=r("f478"),i=r("c4c8"),a=r("b7be"),o=r("1336");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,o=Object.create(a.prototype),s=new U(n||[]);return i(o,"_invoke",{value:E(t,r,s)}),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="suspendedYield",y="executing",g="completed",v={};function b(){}function _(){}function w(){}var k={};d(k,o,(function(){return this}));var x=Object.getPrototypeOf,T=x&&x(x(V([])));T&&T!==r&&n.call(T,o)&&(k=T);var L=w.prototype=b.prototype=Object.create(k);function C(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(i,a,o,c){var u=f(t[i],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==s(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,o,c)}),(function(t){r("throw",t,o,c)})):e.resolve(d).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}})}function E(e,r,n){var i=p;return function(a,o){if(i===y)throw Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:t,done:!0}}for(n.method=a,n.arg=o;;){var s=n.delegate;if(s){var c=O(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===p)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var u=f(e,r,n);if("normal"===u.type){if(i=n.done?g:m,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=f(i,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var o=a.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function U(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function V(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(s(e)+" is not iterable")}return _.prototype=w,i(L,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:_,configurable:!0}),_.displayName=d(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,d(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},C(I.prototype),d(I.prototype,u,(function(){return this})),e.AsyncIterator=I,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new I(h(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},C(L),d(L,l,"Generator"),d(L,o,(function(){return this})),d(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=V,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:V(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function u(t,e,r,n,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){u(a,n,i,o,s,"next",t)}function s(t){u(a,n,i,o,s,"throw",t)}o(void 0)}))}}function d(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var f={name:"linkaddress",props:{linkType:{type:Number,default:0},fromType:{type:String,default:""},isCateTree:{type:Boolean,default:!0}},data:function(){return{modals:!1,categoryData:[],currenType:"link",columns:[{title:"ID",key:"id",width:60},{title:"页面名称",key:"name",width:150},{title:"页面链接",key:"url"}],columns7:[{title:"ID",key:"id",width:60},{title:"分类名称",key:"cate_name",tree:!0},{title:"分类图标",slot:"pic"}],columns8:[{title:"ID",key:"id",width:60},{title:"商品图片",slot:"image",width:90},{title:"商品名称",key:"store_name"}],storeHome:[{title:"ID",key:"id",width:60},{title:"门店信息",slot:"storeInfo",width:160},{title:"门店分类",key:"cate_name",width:90},{title:"联系电话",key:"phone",width:100},{title:"门店地址",key:"detailed_address"}],bargain:[{title:"ID",key:"id",width:60},{title:"商品图片",slot:"image",width:90},{title:"商品名称",key:"title"}],news:[{title:"ID",key:"id",width:60},{title:"文章图片",slot:"image_input",width:90},{title:"文章名称",key:"title"}],formValidate:{page:1,limit:15,cate_id:"",store_name:"",keywords:""},total:0,basicsList:[],userList:[],distributionList:[],coupon:[],luckDraw:[],integral:[],presale:[],currenId:"",currenUrl:"",loading:!1,tableList:[],presentId:0,categoryId:"",treeSelect:[],customdate:{url:"",appid:"",mpUrl:"",status:1},customNum:1,ruleValidate:{name:[{required:!0,message:"请输入链接名称",trigger:"blur"}],url:[{required:!0,message:"请输入跳转路径",trigger:"blur"}],appid:[{required:!0,message:"请输入正确APPID",trigger:"blur"}],mpUrl:[{required:!0,message:"请输入正确小程序路径",trigger:"blur"}]},pid:0,currentItem:{}}},computed:{},watch:{isCateTree:{handler:function(t){var e,r=d(this.columns7);try{for(r.s();!(e=r.n()).done;){var n=e.value;if("cate_name"==n.key){n.tree=t;break}}}catch(t){r.e(t)}finally{r.f()}},immediate:!0}},created:function(){var t=this;this.getSort(),this.goodsCategory();var e={width:60,align:"center",render:function(e,r){var n=r.row.id,i=!1;i=t.presentId===n;var a=t;return e("div",[e("Radio",{props:{value:i},on:{"on-change":function(){a.presentId=n,t.currenUrl=r.row.url}}})])}};this.columns.unshift(e),this.columns7.unshift(e),this.columns8.unshift(e),this.bargain.unshift(e),this.news.unshift(e),this.storeHome.unshift(e)},methods:{radioTap:function(t){this.$refs[t].resetFields()},handleLoadData:function(t,e){t._loading=!0,Object(n.s)(this.categoryId,{pid:t.id}).then((function(r){t._loading=!1,r.data.list.forEach((function(t){t.url="/pages/goods/goods_list/index?sid=".concat(t.id,"&title=").concat(t.cate_name)})),e(r.data.list)}))},delLink:function(t,e,r){var n=this,i={title:e,num:r,url:"diy/del_link/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(i).then((function(t){n.$Message.success(t.msg),n.tableList.splice(r,1),n.tableList.length||(n.customNum=2)})).catch((function(t){n.$Message.error(t.msg)}))},customLink:function(){this.customNum=2},customList:function(){this.customNum=1},getCustomList:function(){var t=this;Object(n.s)(this.categoryId).then((function(e){e.data.list.length||(t.customNum=2),t.tableList=e.data.list})).catch((function(e){t.$Message.error(e.msg)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(t){var r=e.customdate.url;r=1==e.customdate.status?e.customdate.url:e.customdate.mpUrl+"@APPID="+e.customdate.appid,e.$emit("linkUrl",r),e.modals=!1,e.reset()}else e.$Message.error("请填写信息")}))},handleReset:function(t){this.$refs[t].resetFields()},pageChange:function(t){this.formValidate.page=t,"special"==this.currenType||"store_home"==this.currenType?this.handleCheckChange("",this.currentItem):this.getList()},goodsCategory:function(){var t=this;Object(i.yb)(1).then((function(e){t.treeSelect=e.data})).catch((function(e){t.$Message.error(e.msg)}))},userSearchs:function(){this.formValidate.page=1,"product"==this.currenType?this.getList():this.handleCheckChange("",this.currentItem)},reset:function(){this.currenUrl="",this.presentId=0,this.currenId="",this.customdate.url="",this.customdate.appid="",this.customdate.mpUrl=""},getUrl:function(t){this.currenId=t.id,this.currenUrl=t.url},getSort:function(){var t=this;Object(n.r)().then((function(e){e.data[0].children[0].selected=!0,t.categoryData=e.data,t.handleCheckChange("",e.data[0].children[0])})).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,"product"==this.currenType?Object(i.i)(this.formValidate).then(function(){var e=l(c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=r.data).list.forEach((function(t){t.url="/pages/goods_details/index?id=".concat(t.id)})),t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"seckill"==this.currenType?Object(a.Ab)(this.formValidate).then(function(){var e=l(c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=r.data).list.forEach((function(t){t.url="/pages/activity/goods_details/index?id=".concat(t.id,"&status=1&type=1")})),t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"bargain"==this.currenType?Object(a.l)(this.formValidate).then(function(){var e=l(c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=r.data).list.forEach((function(t){t.url="/pages/activity/goods_bargain_details/index?id=".concat(t.id)})),t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"combination"==this.currenType?Object(a.s)(this.formValidate).then(function(){var e=l(c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=r.data).list.forEach((function(t){t.url="/pages/activity/goods_details/index?id=".concat(t.id,"&type=3")})),t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"news"==this.currenType?Object(o.e)(this.formValidate).then(function(){var e=l(c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=r.data).list.forEach((function(t){t.url="/pages/extension/news_details/index?id=".concat(t.id)})),t.tableList=n.list,t.total=n.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)})):"integral"==this.currenType&&Object(a.mb)(this.formValidate).then(function(){var e=l(c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=r.data).list.forEach((function(t){t.url="/pages/activity/goods_details/index?id=".concat(t.id,"&type=4")})),t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},handleCheckChange:function(t,e){var r=this;t&&t.length&&(this.formValidate.page=1),this.currentItem=e,this.reset();var i="";if(!e.pid)return!1;if(i=e.id,this.categoryId=e.id,this.loading=!0,this.currenType=e.type,"product"==this.currenType||"seckill"==this.currenType||"bargain"==this.currenType||"combination"==this.currenType||"news"==this.currenType||"integral"==this.currenType)this.getList();else if("custom"==this.currenType)this.getCustomList();else{var a={pid:this.pid};"special"!=this.currenType&&"store_home"!=this.currenType||(a.page=this.formValidate.page,a.limit=this.formValidate.limit),"store_home"==this.currenType&&(a.keywords=this.formValidate.keywords),Object(n.s)(i,a).then((function(t){r.loading=!1;var e=t.data.list;if("marketing_link"==r.currenType||"link"==r.currenType){var n=[],i=[],a=[],o=[],s=[],c=[],u=[];e.forEach((function(t){1==t.type?n.push(t):2==t.type?i.push(t):3==t.type?a.push(t):4==t.type?o.push(t):5==t.type?s.push(t):6==t.type?u.push(t):c.push(t)})),r.basicsList=n,r.distributionList=i,r.userList=a,r.coupon=c,r.luckDraw=s,r.integral=o,r.presale=u}else if("special"==r.currenType){var l=[];t.data.list.forEach((function(t){r.linkType?t.url="/pages/annex/special/index?id=".concat(t.id,"&name=").concat(t.name):t.url="/pages/annex/special/index?id=".concat(t.id),t.is_diy&&l.push(t)})),r.total=t.data.count,r.tableList=l}else if("product_category"==r.currenType)e.forEach((function(t){t.hasOwnProperty("children")&&t.children.forEach((function(t){t.url="/pages/goods/goods_list/index?sid=".concat(t.id,"&title=").concat(t.cate_name)})),t.url="/pages/goods/goods_list/index?cid=".concat(t.id,"&title=").concat(t.cate_name)})),r.tableList=e;else if("store_home"==r.currenType){var d=[];t.data.list.forEach((function(t){t.url="/pages/store/home/index?id=".concat(t.id),d.push(t)})),r.total=t.data.count,r.tableList=d}})).catch((function(t){r.loading=!1,r.$Message.error(t.msg)}))}},ok:function(){if(""==this.currenUrl)return this.$Message.warning("请选择链接");this.$emit("linkUrl",this.currenUrl),this.modals=!1,this.reset()},cancel:function(){this.modals=!1,this.reset()}}},p=(r("5188"),r("2877")),m=Object(p.a)(f,(function(){var t=this,e=t._self._c;return e("div",[e("Modal",{attrs:{scrollable:"",closable:"",title:"选择链接","mask-closable":!1,width:"860"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("div",{staticClass:"table_box"},["diyPage"!=t.fromType?e("div",{staticClass:"left_box"},[e("Tree",{attrs:{data:t.categoryData},on:{"on-select-change":t.handleCheckChange}})],1):t._e(),"link"==t.currenType?e("div",{staticClass:"right_box"},[t.basicsList.length?e("div",[e("div",{staticClass:"cont"},[t._v("基础链接")]),e("div",{staticClass:"Box"},t._l(t.basicsList,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e(),t.userList.length?e("div",[e("div",{staticClass:"cont"},[t._v("个人中心")]),e("div",{staticClass:"Box"},t._l(t.userList,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e(),t.distributionList.length?e("div",[e("div",{staticClass:"cont"},[t._v("分销")]),e("div",{staticClass:"Box"},t._l(t.distributionList,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e()]):t._e(),"marketing_link"==t.currenType?e("div",{staticClass:"right_box"},[t.coupon.length?e("div",[e("div",{staticClass:"cont"},[t._v("优惠券")]),e("div",{staticClass:"Box"},t._l(t.coupon,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e(),t.basicsList.length?e("div",[e("div",{staticClass:"cont"},[t._v("秒杀")]),e("div",{staticClass:"Box"},t._l(t.basicsList,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e(),t.distributionList.length?e("div",[e("div",{staticClass:"cont"},[t._v("砍价")]),e("div",{staticClass:"Box"},t._l(t.distributionList,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e(),t.userList.length?e("div",[e("div",{staticClass:"cont"},[t._v("拼团")]),e("div",{staticClass:"Box"},t._l(t.userList,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e(),t.presale.length?e("div",[e("div",{staticClass:"cont"},[t._v("预售")]),e("div",{staticClass:"Box"},t._l(t.presale,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e(),t.integral.length?e("div",[e("div",{staticClass:"cont"},[t._v("积分")]),e("div",{staticClass:"Box"},t._l(t.integral,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e(),t.luckDraw.length?e("div",[e("div",{staticClass:"cont"},[t._v("抽奖")]),e("div",{staticClass:"Box"},t._l(t.luckDraw,(function(r,n){return e("div",{key:n,staticClass:"cont_box",class:t.currenId==r.id?"on":"",on:{click:function(e){return t.getUrl(r)}}},[t._v(t._s(r.name))])})),0)]):t._e()]):t._e(),"special"==t.currenType||"store_home"==t.currenType||"product_category"==t.currenType||"product"==t.currenType||"seckill"==t.currenType||"bargain"==t.currenType||"combination"==t.currenType||"news"==t.currenType||"integral"==t.currenType?e("div",{staticClass:"right_box",class:"diyPage"==t.fromType?"diy":""},["product"==t.currenType||"store_home"==t.currenType?e("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate}},["product"==t.currenType?e("Row",{attrs:{type:"flex",gutter:24}},[e("Col",[e("FormItem",{attrs:{label:"","label-for":"pid"}},[e("Select",{staticStyle:{width:"230px"},attrs:{clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.cate_id,callback:function(e){t.$set(t.formValidate,"cate_id",e)},expression:"formValidate.cate_id"}},t._l(t.treeSelect,(function(r){return e("Option",{key:r.id,attrs:{value:r.id}},[t._v(t._s(r.html+r.cate_name)+"\n ")])})),1)],1)],1),e("Col",[e("FormItem",{attrs:{label:"","label-for":"store_name"}},[e("Input",{staticClass:"input-add",attrs:{search:"","enter-button":"",placeholder:"请输入商品名称,关键字,编号"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1)],1):t._e(),"store_home"==t.currenType?e("Row",{attrs:{type:"flex",gutter:24}},[e("Col",[e("FormItem",{attrs:{label:"","label-for":"keywords"}},[e("Input",{staticClass:"input-add",attrs:{search:"","enter-button":"",placeholder:"点击搜索门店"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.keywords,callback:function(e){t.$set(t.formValidate,"keywords",e)},expression:"formValidate.keywords"}})],1)],1)],1):t._e()],1):t._e(),e("Table",{ref:"table",attrs:{"row-key":"id","load-data":t.handleLoadData,"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果",columns:"special"==t.currenType?t.columns:"product_category"==t.currenType?t.columns7:"bargain"==t.currenType||"combination"==t.currenType||"integral"==t.currenType?t.bargain:"news"==t.currenType?t.news:"store_home"==t.currenType?t.storeHome:t.columns8,data:t.tableList,loading:t.loading,"max-height":"special"==t.currenType?"410":"seckill"==t.currenType||"bargain"==t.currenType||"combination"==t.currenType||"news"==t.currenType||"integral"==t.currenType?"400":"product"==t.currenType?"356":""},scopedSlots:t._u([{key:"pic",fn:function(t){var r=t.row;return t.index,r.hasOwnProperty("pic")?[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.pic,expression:"row.pic"}]})])])]:void 0}},{key:"image",fn:function(t){var r=t.row;return t.index,r.hasOwnProperty("image")?[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.image,expression:"row.image"}]})])])]:void 0}},{key:"image_input",fn:function(t){var r=t.row;return t.index,r.hasOwnProperty("image_input")?[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.image_input[0],expression:"row.image_input[0]"}]})])])]:void 0}},{key:"storeInfo",fn:function(r){var n=r.row;return r.index,n.hasOwnProperty("image")?[e("div",{staticClass:"acea-row row-middle"},[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image,expression:"row.image"}]})])]),e("div",{staticClass:"ml10 width10"},[t._v(t._s(n.name))])],1)]:void 0}}],null,!0)}),"special"==t.currenType||"store_home"==t.currenType||"product"==t.currenType||"seckill"==t.currenType||"bargain"==t.currenType||"combination"==t.currenType||"news"==t.currenType||"integral"==t.currenType?e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{current:t.formValidate.page,total:t.total,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1):t._e()],1):t._e(),"custom"==t.currenType?e("div",{staticClass:"right_box"},[e("div",{staticStyle:{width:"340px",margin:"150px 100px 0 120px"}},[e("Form",{ref:"customdate",attrs:{model:t.customdate,rules:t.ruleValidate,"label-width":100}},[e("div",{staticClass:"mb30 radioGroup"},[e("RadioGroup",{on:{"on-change":function(e){return t.radioTap("customdate")}},model:{value:t.customdate.status,callback:function(e){t.$set(t.customdate,"status",e)},expression:"customdate.status"}},[e("Radio",{attrs:{label:1}},[e("Icon"),e("span",[t._v("普通链接")])],1),e("Radio",{attrs:{label:2}},[e("Icon"),e("span",[t._v("跳转其他小程序")])],1)],1)],1),1==t.customdate.status?e("FormItem",{attrs:{label:"跳转路径:",prop:"url"}},[e("Input",{attrs:{placeholder:"请输入正确跳转路径"},model:{value:t.customdate.url,callback:function(e){t.$set(t.customdate,"url",e)},expression:"customdate.url"}})],1):t._e(),2==t.customdate.status?e("FormItem",{attrs:{label:"APPID:",prop:"appid"}},[e("Input",{attrs:{placeholder:"请输入正确APPID"},model:{value:t.customdate.appid,callback:function(e){t.$set(t.customdate,"appid",e)},expression:"customdate.appid"}})],1):t._e(),2==t.customdate.status?e("FormItem",{attrs:{label:"小程序路径:",prop:"mpUrl"}},[e("Input",{attrs:{placeholder:"请输入正确小程序路径"},model:{value:t.customdate.mpUrl,callback:function(e){t.$set(t.customdate,"mpUrl",e)},expression:"customdate.mpUrl"}})],1):t._e()],1)],1)]):t._e()]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{on:{click:t.cancel}},[t._v("取消")]),"custom"==t.currenType?e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("customdate")}}},[t._v("确定")]):e("Button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("确定")])],1)])],1)}),[],!1,null,"72f9f09d",null);e.a=m.exports}}]); |