(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"1b51":function(t,e,o){"use strict";(function(t,n){var i=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(o("7eb4")),s=i(o("ee10")),u=o("8f59"),r={computed:(0,u.mapState)(["userId","shopIndex","avatar"]),data:function(){return{type:"",src:"http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg",inventoryList:[],settingShow:!1,isCancel:!1,showFormula:!1,chartData:{},showDan:"",returnList:new Map,shopName:"",waimaiRight:"-70rpx",showDayPrice:!1,shijiPrice:!1,opts:{padding:[15,10,0,15],dataLabel:!0,dataPointShape:!1,enableScroll:!1,legend:{},xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2,data:[{min:0}]},extra:{column:{type:"group",width:30,customColor:["#44fd6d","#91CB74"],activeBgColor:"#000000",activeBgOpacity:.08,seriesGap:10,barBorderCircle:!0,barBorderRadius:[20,20,0,0],linearType:"custom"}}},shopInfo:{totalAmount:0,totalAlreadyEarn:0,totalPayAmount:0,totalCCount:0,totalCount:0,totalJCount:0,totalProfit:0,saleReturnCost:0,returnTotalAmount:0,returnTotalCount:0,totalAlreadyEarnDetail:0},waitCount:{},enDayShow:!1,endDay:"",textArr:[]}},components:{cmdNavBar:function(){o.e("components/cmd-nav-bar/cmd-nav-bar").then(function(){return resolve(o("63fc"))}.bind(null,o)).catch(o.oe)}},filters:{spliceMsg:function(t){return t}},onLoad:function(){var e=this;t.getLocation({type:"gcj02",success:function(t){}}),n.getStorage({key:"shopName",success:function(t){e.shopName=t.data}}),n.getStorage({key:"type",success:function(t){e.type=t.data}});var o=new Date,i=o.getDate();n.getStorageSync("publicize")==i||(n.setStorageSync("publicize",i),this.$refs.publicizepopup.open("center")),this.getSaleInfo(),this.getEndTime()},onTabItemTap:function(t){this.getSaleInfo()},methods:{getEndTime:function(){var t=this;this.textArr=[],this.tui.request("/app/shop/getShopInfoById","post",{id:n.getStorageSync("shopId")},!1,!0).then((function(e){n.setStorageSync("endTime",e.result.endTime),t.endTime=e.result.endTime,t.endDay=t.daysUntil(e.result.endTime),t.endDay<7&&(t.enDayShow=!0)})),setTimeout((function(e){if(void 0!=t.endTime){var o="您的店铺有效期至"+t.endTime+",还有"+t.endDay+"天到期,请及时联系管理员续费或开通";t.textArr.push(o),console.log(t.textArr)}}),500)},daysUntil:function(t){var e=new Date(t),o=new Date,n=e-o,i=Math.ceil(n/864e5);return i},changeFormula:function(t){var e=this;console.log(t),this.showFormula=!0,this.showDan=t,setTimeout((function(t){e.showFormula=!1}),2e3)},popClose:function(){this.$refs.publicizepopup.close()},getReturnOrder:function(t){var e=this;return(0,s.default)(a.default.mark((function o(){var n;return a.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return n=e,o.next=3,e.tui.request("/app/return/list","post",{remark:3,saleId:t},!1,!1).then((function(t){200==t.code&&null!=t.result&&void 0!=t.result?""!=t.result&&t.result.forEach((function(t){e.tui.request("/app/return/get/"+t.id,"GET",null,!1,!1).then((function(t){if(200==t.code&&null!=t.result&&void 0!=t.result)for(var e=0;e