(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/inventory/inventory"],{193:function(t,e,i){"use strict";(function(t,e){var o=i(4);i(26);o(i(25));var s=o(i(194));t.__webpack_require_UNI_MP_PLUGIN__=i,e(s.default)}).call(this,i(1)["default"],i(2)["createPage"])},194:function(t,e,i){"use strict";i.r(e);var o=i(195),s=i(197);for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i(199);var a,r=i(38),c=Object(r["default"])(s["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);c.options.__file="pages/inventory/inventory.vue",e["default"]=c.exports},195:function(t,e,i){"use strict";i.r(e);var o=i(196);i.d(e,"render",(function(){return o["render"]})),i.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),i.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),i.d(e,"components",(function(){return o["components"]}))},196:function(t,e,i){"use strict";var o;i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return a})),i.d(e,"recyclableRender",(function(){return n})),i.d(e,"components",(function(){return o}));try{o={uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,999))},uniSearchBar:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(i.bind(null,1123))},uLoadmore:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(i.bind(null,1134))},uniPopup:function(){return i.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(i.bind(null,1064))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var s=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){return t.$refs.sharePopup.close()},t.e1=function(e){return t.$refs.sharePopup.close()},t.e2=function(e){return t.$refs.customPopup.close()},t.e3=function(e){return t.$refs.showPopup.close()})},n=!1,a=[];s._withStripped=!0},197:function(t,e,i){"use strict";i.r(e);var o=i(198),s=i.n(o);for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);e["default"]=s.a},198:function(t,e,i){"use strict";(function(t){var o=i(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=o(i(18)),n=i(32),a={computed:(0,n.mapState)(["shopIndex","region"]),data:function(){return{canvasshow:!1,size:30,indexList:[],zheng:"0",khName:{},canvasWidth:0,canvasHeight:0,fu:"0",bigImg:[],swiperDotIndex:0,pageNum:1,shopList:[],categoryId:"",shopId:"",type:"",orderSort:"",sort:"",mini_program_openid:"",unionid:"",official_account_openid:"",warnMsg:[],goodsData:[],searchName:"",base64:"",categoryIndex:0,windowHeight:0,shopList1:[],picture:"",gateType:"",total:0,customerCategoryList:[]}},onLoad:function(e){void 0!=e.khid&&t.redirectTo({url:"/package1/index/oneGoodsShare?khid="+e.khid});var i=this;this.type=t.getStorageSync("type"),t.getSystemInfo({success:function(t){i.windowHeight=t.windowHeight}}),this.getCustomerCategoryList()},onShareAppMessage:function(){return{title:t.getStorageSync("shopName")+"给您推荐的商品",imageUrl:this.picture,path:"/package1/index/oneGoodsShare?khid="+this.khid+"&userId="+this.khName.id+"&mini_program_openid="+this.mini_program_openid+"&unionid="+this.unionid+"&official_account_openid="+this.official_account_openid}},onReachBottom:function(){this.pageNum>=this.pages||(this.pageNum++,"search"==this.gateType?this.getShareList("search"):this.getShareList())},onShow:function(){console.log("shopList",this.khName),1==t.getStorageSync("noReload")?(this.searchName="",t.removeStorageSync("noReload")):(this.searchName="",this.getGategoryList()),this.getWarnMsg(),this.getweiruku()},methods:{getToken:function(){t.login({provider:"weixin",success:function(t){console.log(t.code),this.getOpenId(t.code)}})},getOpenId:function(t){var e=this;this.tui.request("","post",{appid:"wx6d7d4fb58d1502db",secret:"3a2c8cd00926764bbd12fd7361e01f1d",js_code:t,grant_type:"authorization_code",customId:""},!1,!1).then((function(t){e.status="nomore",200==t.code||e.tui.toast(t.message)})).catch((function(t){}))},goPopleList:function(){t.navigateTo({url:"/package1/index/peopleList?popleType=khName"})},getCustomerCategoryList:function(){var e=this;this.tui.request("/app/customerCategory/getCustomerCategoryListByShopId","POST",{shopId:t.getStorageSync("shopId")},!1,!0).then((function(t){if(200==t.code)if(t.result.length>0){e.customerCategoryList=t.result;for(var i=0;i2?(e.canvasHeight=2*o.width,o.height=.8*e.canvasHeight):e.canvasHeight=o.height/.8,console.log(e.canvasWidth),console.log(e.canvasHeight),i.setFillStyle("#fff"),i.fillRect(0,0,e.canvasWidth,e.canvasHeight),i.drawImage(o.path,0,0,o.width,o.height),i.draw(),i.drawImage(e.base64,25,.8*e.canvasHeight+.2*e.canvasHeight*.15,.2*e.canvasHeight*.75,.2*e.canvasHeight*.75),i.draw(!0),i.font="20px 宋体";var s=.2*e.canvasHeight*.75;i.setFontSize((s/6).toFixed(0)),i.fillStyle="#FF5809",i.fillText(t.getStorageSync("shopName"),.2*e.canvasHeight*.75+35,.8*e.canvasHeight+.2*e.canvasHeight*.47),i.setFontSize((s/7).toFixed(0)),i.fillStyle="#000",i.fillText("长按识别查看商品",.2*e.canvasHeight*.75+35,.8*e.canvasHeight+.2*e.canvasHeight*.47+Number((s/5).toFixed(0))),i.draw(!0,function(){setTimeout((function(i){t.canvasToTempFilePath({x:0,y:0,width:e.canvasWidth,height:e.canvasHeight,destWidth:e.canvasWidth,destHeight:e.canvasHeight,canvasId:"myCanvas",success:function(i){e.canvasshow=!1,e.tempFilePath=i.tempFilePath,t.previewImage({urls:[i.tempFilePath]}),t.hideLoading()}})}),500)}())}})},lunbochange:function(t){this.current=t.detail.current},goodsListSort:function(){this.pageNum=1,this.shopList1=[],this.shopList=[],this.sort="stockCount",""==this.orderSort?this.orderSort="asc":"asc"==this.orderSort?this.orderSort="desc":"desc"==this.orderSort&&(this.orderSort="asc"),this.getShareList()},largeImg:function(t){if(null==t.productPicture&&null==t.productPictures||""==t.productPicture&&null==t.productPictures)this.tui.toast("暂无可展示的图片",300);else{if(this.bigImg=[],null!=t.productPicture){var e={productPicture:t.productPicture};this.bigImg.push(e)}if(null!=t.productPictures)for(var i=0;i