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 line
18 KiB
1 line
18 KiB
|
2 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"03da":function(t,e,o){"use strict";var n=o("f46a"),a=o.n(n);a.a},"1bef":function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("7859");n(o("3240"));var a=n(o("9a86"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(a.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"64cc":function(t,e,o){"use strict";(function(t,n){var a=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(o("7eb4")),s=a(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:"",warehouseKeeperFlag:t.getStorageSync("warehouseKeeperFlag"),storeFlag:t.getStorageSync("storeFlag"),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:[],zongAmount:0}},components:{cmdNavBar:function(){o.e("components/cmd-nav-bar/cmd-nav-bar").then(function(){return resolve(o("3d8f"))}.bind(null,o)).catch(o.oe)}},filters:{spliceMsg:function(t){return t}},onLoad:function(){var e=this;n.getLocation({type:"gcj02",success:function(t){}}),t.getStorage({key:"shopName",success:function(t){e.shopName=t.data}}),t.getStorage({key:"type",success:function(t){e.type=t.data}});var o=new Date,a=o.getDate();t.getStorageSync("publicize")==a||(t.setStorageSync("publicize",a),this.$refs.publicizepopup.open("center")),this.getEndTime()},onShow:function(){this.getSaleInfo()},onTabItemTap:function(e){this.warehouseKeeperFlag=t.getStorageSync("warehouseKeeperFlag"),this.storeFlag=t.getStorageSync("storeFlag")},methods:{getAmount:function(){var t=this,e=new Date,o=e.getFullYear().toString(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1).toString():(e.getMonth()+1).toString(),a=e.getDate()<10?"0"+e.getDate().toString():e.getDate().toString(),i=e.getDate()+1<10?"0"+(e.getDate()+1).toString():(e.getDate()+1).toString(),s=o+"-"+n+"-"+a,u=o+"-"+n+"-"+i;this.tui.request("/app/dealingRecord/getDealingsRecordListByTimeRange","post",{startTime:s,endTime:u},!1,!0).then((function(e){t.zongAmount=0;for(var o=0;o<e.result.length;o++)e.result[o].amount>0&&4==e.result[o].dealingsType&&0==e.result[o].delFlag&&-1!=e.result[o].remark.indexOf("客户充值:")&&(t.zongAmount+=e.result[o].amount,t.shopInfo.totalAlreadyEarn+=e.result[o].amount)}))},goOrder:function(){t.switchTab({url:"/pages/index/order?type=dingdan"})},goOrderDetail:function(){t.switchTab({url:"/pages/index/order?listStatus=8"})},goInventory:function(){t.navigateTo({url:"/package1/index/waitStorage?inStorageStatus=1&storeFlag=1"})},getEndTime:function(){var e=this;this.textArr=[],this.tui.request("/app/shop/getShopInfoById","post",{id:t.getStorageSync("shopId")},!1,!0).then((function(o){t.setStorageSync("endTime",o.result.endTime),e.endTime=o.result.endTime,e.endDay=e.daysUntil(o.result.endTime),e.endDay<7&&(e.enDayShow=!0)})),setTimeout((function(t){if(void 0!=e.endTime){var o="您的店铺有效期至"+e.endTime+",还有"+e.endDay+"天到期,请及时联系管理员续费或开通";e.textArr.push(o),console.log(e.textArr)}}),500)},daysUntil:function(t){var e=new Date(t),o=new Date,n=e-o,a=Math.ceil(n/864e5);return a},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()},g
|