shop-php/public/static/js/pages-nongKe-food-index.e3893b0b.js

1 line
25 KiB
JavaScript
Raw Normal View History

2023-09-28 09:15:50 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-nongKe-food-index"],{"001d":function(t,e,a){"use strict";a.r(e);var i=a("220a"),r=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"20e5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAAydJREFUWEfNmEmoj2EUh59fYUUUkVCmWJgTNohIxlhyS2zIwjysiIgVublW2EghS7PYGK6FKeNNRCiSqQwrU0dH56/v/u83XVfufZffd973fb7znvN7z/lEM4aZdQdmAJOBoUBfoFMs8Rl4AdwHLgJnJb0tu7zKGJrZBGBDQLQrMwf44TDATklXiubkgphZf6AOmJVYqAE4D9wAngCf4l1nYCAwBpgGDEnMOQ2skPQsCygTxMxqgH1Ax/i6I0CtpDtFX+fvzWwksBZYALgXvwDLJPk6TUYqiJltBraG9TVgqaR7ZQCqbcxsOLAfGBfvtkjaVm3XBKQKwo9lvaTvfwNRmWNm7YFdwMosmEYgcRyHw3iTpB0tAUjxzkZgezyfL+lYxeYPSATm3YiJOkmr/iVEwjt7wjMeMyMqAZwEORXZ4TExoaXHkfURcUyezh4zpyXNdtvfIGY2EbgU2TH6bwOzrAcjgG9FNk10namAnADmAIckLcr5mvHAQ0kf8jY1s57xxScl/UyzNbNDwELghKS5Ctl+FXSjsnTCzBzCXfoSmCTpacYGA0LiewPzJB3PsHOduR2n0MtB3AMHgQZJfn+kDjPrFhN9g1QYM0tCuM1YSa9z1nwQCrzYQRzCYVw1XQkzR8pGfzyT9y4HpBZY7Y5wkJvAaKBG0tGigEvbMOb4jZvprYzjcfl3yb/pIO+BruFGv8gKRwqMz2kWRGSrX5DXgfcO8hXoAAyW9LiQIgyqYPxpbhBneGQQ8Aj41qZA3gGeER7hrXo0bSZYK+m7W9K6/5y+u4E1lfQtK2g9PM3ysiMlm0bmXQdm1kjQfAOPeC/n8iR+KnChKDuqYMZLulog8V509Sl96ZmZ207xdkHSm4Ij9OB3OUiFCA1pfOnFQ28XLrdSGeC1T31rFUb1LhdNCqPwSj/AS0Xv3P5XqThc0nPfv+0Vz5XgaxPtRAZM6zRYCZj5wIF/3HIuSfYySQkoasI9gPcWNOEfY8EuBU348kpgpmlQc35LrAdmhgKXKVv8t8SZ+C3h6Zo7SoEkjsuvg+lexQPDUn7UeCr6/eFl47kiBU6S/QL1Id6VF0xZ1wAAAABJRU5ErkJggg=="},"220a":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("4de4"),a("d3b7"),a("99af"),a("d81d"),a("159b"),a("14d9"),a("a9e3"),a("acd8"),a("d401"),a("25f0"),a("fb6a");var r=i(a("5530")),o=a("b149"),n=a("26cb"),s=(a("5da1"),a("c02f")),d=i(a("b106")),c=(getApp(),{components:{easyLoadimage:d.default},data:function(){return{titName:"坝坝宴",price:0,stock:0,nows:!1,loading:!1,loadingIcon:!0,loadTitle:"加载更多",title:"",hotPage:1,hotLimit:10,hotScroll:!1,rightBox:!1,brandList:[],downKey:0,downStatus:!1,menuList:[],downMenu:[{title:"默认",key:0,order:""},{title:"销量",key:1,order:"sales"},{title:"好评",key:2,order:"rate"},{title:"距离",key:3,order:"location"}],firstKey:0,storeList:[],sotreParam:{keyword:"",page:1,limit:10,order:"",category_id:"",type_id:"",street_id:"",type_code:""},storeKey:0,storeScroll:!0,mer_id:"",sortId:"",price_on:"",price_off:"",detaile_address:"",recommend_address:"",location_address:"",latitude:"",longitude:"",count:0,storeTypeArr:[],merList:[],product_type:0,show:!1,image:"",credit_buy:""}},onLoad:function(t){this.sotreParam.type_code=t.type_code,this.storeList=[],1==this.mer_location&&this.selfLocation(),this.storeMerchantList(),this.getClassfication(),this.getStoreType()},computed:(0,r.default)({downMenus:function(){var t=this;return this.downMenu.filter((function(e){return t.mer_location?e:e.key<3}))}},(0,s.configMap)({margin_ico_switch:0,margin_ico:"",mer_location:0,store_street_theme:1,hide_mer_status:""},(0,n.mapGetters)(["viewColor"]))),methods:{navGo:function(t){uni.navigateTo({url:"/pages/nongKe/supply_chain/supplierA?type_id=10&?merchant_category_id=".concat(t)})},go_details:function(t,e){98==t&&uni.navigateTo({url:"/pages/admin/goods_details/index?product_id=".concat(e,"&product_type=").concat(t)}),0==t&&uni.navigateTo({url:"/pages/goods_details/index?id=".concat(e)})},getClassfication:function(){var t=this,e=[];(0,o.merClassifly)().then((function(a){e=a.data.map((function(t){return(0,r.default)((0,r.default)({},t),{},{check:!1})})),t.sotreParam.category_id.length>0&&t.sotreParam.category_id.forEach((function(t,a){e.forEach((function(e){t==e.merchant_category_id&&(e.check=!0)}))})),t.merList=e})).catch((function(e){t.$util.Tips({title:e})}))},getStoreType:function(){var t=this,e=[];(0,o.getStoreTypeApi)().then((function(a){a.data.forEach((function(a){a.mer_type_id==t.sotreParam.type_id&&e.push((0,r.default)((0,r.default)({},a),{},{check:!0}))})),t.storeTypeArr=e})).catch((function(e){t.$util.Tips({title:e})}))},showMaoLocation:func