require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/store-home/store-home"],{351:function(t,e,o){"use strict";(function(t,e){var n=o(4);o(30);n(o(25));var a=n(o(352));t.__webpack_require_UNI_MP_PLUGIN__=o,e(a.default)}).call(this,o(1)["default"],o(2)["createPage"])},352:function(t,e,o){"use strict";o.r(e);var n=o(353),a=o(355);for(var r in a)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(r);o(358);var s,u=o(41),i=Object(u["default"])(a["default"],n["render"],n["staticRenderFns"],!1,null,"edb8ba0e",null,!1,n["components"],s);i.options.__file="shop/pages/store-home/store-home.vue",e["default"]=i.exports},353:function(t,e,o){"use strict";o.r(e);var n=o(354);o.d(e,"render",(function(){return n["render"]})),o.d(e,"staticRenderFns",(function(){return n["staticRenderFns"]})),o.d(e,"recyclableRender",(function(){return n["recyclableRender"]})),o.d(e,"components",(function(){return n["components"]}))},354:function(t,e,o){"use strict";var n;o.r(e),o.d(e,"render",(function(){return a})),o.d(e,"staticRenderFns",(function(){return s})),o.d(e,"recyclableRender",(function(){return r})),o.d(e,"components",(function(){return n}));try{n={uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(o.bind(null,513))},customTabbar:function(){return o.e("components/custom-tabbar/custom-tabbar").then(o.bind(null,186))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var a=function(){var t=this,e=t.$createElement,o=(t._self._c,t.showMoney?((t.countData.salesAmount||0)/100).toFixed(2):null),n=t.showMoney?((t.countData.settlementProfit||0)/100).toFixed(2):null,a=t.__map(t.dataList,(function(e,o){var n=t.__get_orig(e),a=t.formatName(e.takeUser),r=t.formatPhoneStar(e.takePhone)||"",s=5===e.status&&1===e.overdueStatus?((e.overdueFee||0)/100).toFixed(2):null,u=5===e.status&&3===e.overdueStatus?((e.overdueFee||0)/100).toFixed(2):null,i=t.__map(e.detailList,(function(e,o){var n=t.__get_orig(e),a=((e.subtotal||0)/100).toFixed(2);return{$orig:n,g4:a}})),c=((e.estimatedAmount||0)/100).toFixed(2);return{$orig:n,m0:a,m1:r,g2:s,g3:u,l0:i,g5:c}})),r=t.isLoadingMore?null:!t.hasNext&&t.dataList.length,s=t.isLoadingMore||r?null:!t.hasNext&&!t.dataList.length;t._isMounted||(t.e0=function(e){t.showMoney=!t.showMoney},t.e1=function(e){t.showMoney=!t.showMoney}),t.$mp.data=Object.assign({},{$root:{g0:o,g1:n,l1:a,g6:r,g7:s}})},r=!1,s=[];a._withStripped=!0},355:function(t,e,o){"use strict";o.r(e);var n=o(356),a=o.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},356:function(t,e,o){"use strict";(function(t){var n=o(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(o(34)),r=n(o(18)),s=n(o(36)),u=n(o(11)),i=o(37),c=o(244);function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?l(Object(o),!0).forEach((function(e){(0,u.default)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var f=function(){o.e("components/custom-tabbar/custom-tabbar").then(function(){return resolve(o(186))}.bind(null,o)).catch(o.oe)},h={components:{CustomTabbar:f},computed:d({},(0,i.mapState)(["navHeight","statusbarHeight","shopInfo"])),onReachBottom:function(){console.log("store-home onReachBottom"),this.getDataList()},onShow:function(){this.shop={},this.checkShopLogin(),this.active=0,this.shop=this.shopInfo||{},this.getCountData(0),this.total=0,this.hasNext=!0,this.currentPage=0,this.getFirstPageData()},methods:{formatPhoneStar:function(t){return(0,c.formatPhoneStar)(t)},formatName:function(t){return t?t.length>7?t.substring(0,7)+"...":t:""},changeActive:function(t){this.getCountData(t)},checkShopLogin:function(){},hexiaoOrder:function(e){t.navigateTo({url:"/shop/pages/write-off-a/write-off-a?id="+e.id})},jumpHexiaoOrder:function(){t.navigateTo({url:"/shop/pages/write-off/write-off"})},jumpOrders:function(){t.navigateTo({url:"/shop/pages/orders/orders"})},jumpOrderDetails:function(e){t.navigateTo({url:"/shop/pages/order-details/order-details?id="+e})},getCountData:function(t){var e=this;return(0,s.default)(a.default.mark((function o(){var n,r,s,u;return a.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return n=e,o.next=3,n.$u.api.shopSalesStats({period:t,endDate:null,startDate:null,tokenType:1});case 3:r=o.sent,200===r.code&&(e.active=t,e.countData=r.data,e.countData.salesAmount=(e.countData.salesAmount||0).toFixed(2),console.log(e.countData.salesAmount,"====================",1),e.countData.settlementProfit=(e.countData.settlementProfit||0).toFixed(2),e.countData.salesAmountNum=Math.floor(e.countData.salesAmount),console.log(e.countData.salesAmountNum,"====================",2),e.countData.settlementProfitNum=Math.floor(e.countData.settlementProfit),s=(e.countData.salesAmount-e.countData.salesAmountNum).toFixed(2),console.log(s,"====================",3),u=(e.countData.settlementProfit-e.countData.settlementProfitNum).toFixed(2),e.countData.salesAmountFloat=(s+"").slice(1,4),console.log(e.countData.salesAmountFloat,"====================",4),e.countData.settlementProfitFloat=(u+"").slice(1,4));case 5:case"end":return o.stop()}}),o)})))()},getFirstPageData:function(){this.currentPage=0,this.hasNext=!0,this.total=0,this.dataList=[],this.getDataList()},getDataList:function(){var t=this;return(0,s.default)(a.default.mark((function e(){var o,n,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.loading&&t.hasNext){e.next=2;break}return e.abrupt("return");case 2:return t.loading=!0,t.currentPage=t.currentPage+1,1==t.currentPage&&(t.hasNext=!0,t.dataList=[]),o=t,e.next=8,o.$u.api.shopOrderPage({capacity:t.pageSize,model:{combinedStatus:7},page:t.currentPage});case 8:n=e.sent,200===n.code&&n.data&&n.data.page===t.currentPage&&(n.data.records=n.data.records||[],(s=o.dataList).push.apply(s,(0,r.default)(n.data.records)),o.total=n.data.total,t.currentPage>=n.data.pageCount?o.hasNext=!1:o.hasNext=!0),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},contactPhoneDo:function(e){null!=e&&""!=phonee&&t.makePhoneCall({phoneNumber:e})},goToStoreInfo:function(){t.navigateTo({url:"/shop/pages/store-info/store-info"})},goToQualification:function(){t.navigateTo({url:"/shop/pages/qualification/qualification"})},goToStore:function(){this.$store.commit("setUserType",0),t.switchTab({url:"/pages/index/index"})},jumpShopLogin:function(){t.redirectTo({url:"/shop/pages/login/login"})}},data:function(){return{bgImg:o(357),show:!1,showHaibao:!1,showQrcode:!1,active:0,loading:!1,showMoney:!1,showPhone:!1,currentPage:1,total:0,hasNext:!0,pageSize:10,isLoadingMore:!1,dataList:[],shop:{},linkItem:{},countData:{},orders:[{id:1,user:"李明 181****1898",status:"待核验",products:[{name:"大件行李箱",spec:"24-28寸",price:35,count:1},{name:"中件行李箱",spec:"24-28寸",price:35,count:1}],total:80,note:"13:30来寄存"},{id:2,user:"张杰 151****7678",status:"待取件",products:[{name:"大件行李箱",spec:"24-28寸",price:35,count:1},{name:"中件行李箱",spec:"24-28寸",price:35,count:1}],total:70,note:"-"}]}}};e.default=h}).call(this,o(2)["default"])},358:function(t,e,o){"use strict";o.r(e);var n=o(359),a=o.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},359:function(t,e,o){}},[[351,"common/runtime","common/vendor","shop/common/vendor"]]]);
|