mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
4 lines
9.7 KiB
JavaScript
Vendored
4 lines
9.7 KiB
JavaScript
Vendored
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ebcaff1"],{"0a5a":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r="admin_token";function o(){return localStorage.getItem("token")}function a(){return localStorage.removeItem(r)}},"23ba":function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"f",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return c}));var r=n("adb5");function o(t){return Object(r["a"])({url:"/api/group",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/api/group",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/group/".concat(t),method:"get"})}function s(t,e){return Object(r["a"])({url:"/api/group/".concat(t),method:"patch",data:e})}function u(t){return Object(r["a"])({url:"/api/groupGoods",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/api/groupGoods",method:"post",params:t})}},"323e":function(t,e,n){var r,o;
|
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
* @license MIT */(function(a,i){r=i,o="function"===typeof r?r.call(e,n,e,t):r,void 0===o||(t.exports=o)})(0,(function(){var t={version:"0.2.0"},e=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(t,e,n){return t<e?e:t>n?n:t}function r(t){return 100*(-1+t)}function o(t,n,o){var a;return a="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},a.transition="all "+n+"ms "+o,a}t.configure=function(t){var n,r;for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var s=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var u=t.render(!s),c=u.querySelector(e.barSelector),l=e.speed,d=e.easing;return u.offsetWidth,a((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),i(c,o(r,l,d)),1===r?(i(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){i(u,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),l)}),l)):setTimeout(n,l)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){n--,0===n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var o=document.createElement("div");o.id="nprogress",o.innerHTML=e.template;var a,s=o.querySelector(e.barSelector),c=n?"-100":r(t.status||0),l=document.querySelector(e.parent);return i(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),e.showSpinner||(a=o.querySelector(e.spinnerSelector),a&&d(a)),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(o),o},t.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&d(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),i=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;var r,o=t.length,a=e.charAt(0).toUpperCase()+e.slice(1);while(o--)if(r=t[o]+a,r in n)return r;return e}function o(t){return t=n(t),e[t]||(e[t]=r(t))}function a(t,e,n){e=o(e),t.style[e]=n}return function(t,e){var n,r,o=arguments;if(2==o.length)for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&a(t,n,r);else a(t,o[1],o[2])}}();function s(t,e){var n="string"==typeof t?t:l(t);return n.indexOf(" "+e+" ")>=0}function u(t,e){var n=l(t),r=n+e;s(n,e)||(t.className=r.substring(1))}function c(t,e){var n,r=l(t);s(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function l(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function d(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},"548e":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-card",{staticClass:"box-card",attrs:{"body-style":{padding:"20px 20px 0 20px"}}},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.formSearch}},[n("el-form-item",{attrs:{label:"店铺"}},[n("el-select",{attrs:{placeholder:"全部"},model:{value:t.formSearch.store_id,callback:function(e){t.$set(t.formSearch,"store_id",e)},expression:"formSearch.store_id"}},t._l(t.stores,(function(t){return n("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),n("el-form-item",{attrs:{label:"团购状态"}},[n("el-select",{attrs:{placeholder:"团购状态"},model:{value:t.formSearch.status,callback:function(e){t.$set(t.formSearch,"status",e)},expression:"formSearch.status"}},[n("el-option",{attrs:{label:"未开始",value:"-5"}}),n("el-option",{attrs:{label:"跟团中",value:"1"}}),n("el-option",{attrs:{label:"预览中",value:"-10"}}),n("el-option",{attrs:{label:"已结束",value:"20"}})],1)],1),n("el-form-item",{attrs:{label:"活动标题"}},[n("el-input",{attrs:{placeholder:"活动标题"},model:{value:t.formSearch.title,callback:function(e){t.$set(t.formSearch,"title",e)},expression:"formSearch.title"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getGroupList()}}},[t._v("查询")]),n("el-button",{attrs:{type:"success"},on:{click:function(e){return t.groupAdd()}}},[t._v("新增团购")])],1)],1)],1),n("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"10px"}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},[n("el-table-column",{attrs:{prop:"shop.name",label:"店铺"}}),n("el-table-column",{attrs:{prop:"title",label:"活动标题"}}),n("el-table-column",{attrs:{prop:"status",label:"团购状态"}}),n("el-table-column",{attrs:{label:"开团时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.start_time))]),n("div",[t._v("至")]),n("div",[t._v(t._s(e.row.end_time))])]}}])}),n("el-table-column",{attrs:{label:"手机查看"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:t.row.ercode}})]}}])}),n("el-table-column",{attrs:{prop:"options",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.groupEdit(e.row.id)}}},[t._v("编辑")])]}}])})],1)],1)],1)},o=[],a=n("e692"),i=n("23ba"),s={data:function(){return{formSearch:{store_id:"",status:"",title:"",page:1,per_page:20},stores:[],loading:!1,tableData:[]}},mounted:function(){this.getStoreList(),this.getGroupList()},methods:{getStoreList:function(){var t=this,e={page:0,per_page:999,plat_id:1};Object(a["d"])(e).then((function(e){t.stores=e.data.data}))},getGroupList:function(){var t=this;Object(i["e"])(this.formSearch).then((function(e){t.tableData=e.data.data}))},groupAdd:function(){this.$router.push({path:"GROUP_GOODS_ADD",query:{id:0}})},groupEdit:function(t){this.$router.push({path:"GROUP_GOODS_EDIT",query:{id:t}})}}},u=s,c=n("2877"),l=Object(c["a"])(u,r,o,!1,null,null,null);e["default"]=l.exports},a5d8:function(t,e,n){},adb5:function(t,e,n){"use strict";n("d3b7");var r=n("bc3a"),o=n.n(r),a=n("0a5a"),i=n("323e"),s=n.n(i),u=(n("a5d8"),n("5c96")),c=o.a.create({timeout:3e4});c.interceptors.request.use((function(t){return t.headers.Authorization="Bearer "+Object(a["a"])(),s.a.start(),t}),(function(t){return Promise.reject(t)})),c.interceptors.response.use((function(t){s.a.done();var e=t.status;if(200===e||201===e)return t}),(function(t){return s.a.done(),400===t.response.status&&Object(u["Message"])({message:t.response.data.errorMessage,type:"error"}),500===t.response.status&&Object(u["Message"])({message:t.response.data.message,type:"error"}),Promise.reject(t)})),e["a"]=c},e692:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return u}));var r=n("adb5");function o(){return Object(r["a"])({url:"/api/shop_platforms",method:"get"})}function a(t){return Object(r["a"])({url:"/api/shops",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/shops",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/api/download/".concat(t,"/goods"),method:"get"})}function u(t,e){return Object(r["a"])({url:"/api/shops/".concat(t),method:"patch",params:e})}}}]);
|
|
//# sourceMappingURL=chunk-3ebcaff1.b3f1815c.js.map
|