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 lines
34 KiB
1 lines
34 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-shopStreet-index"],{"07dc":function(t,e,i){"use strict";i.r(e);var a=i("2b43"),n=i("d72e");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("4f41b");var o=i("f0c5"),s=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"6e0779dd",null,!1,a["a"],void 0);e["default"]=s.exports},"2b43":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"right-wrapper",style:t.viewColor,on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.moveStop.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"control-wrapper animated",class:t.showBox?"slideInRight":""},[i("v-uni-view",{staticClass:"wrapper-count"},[i("v-uni-view",{staticClass:"content-box"},[i("v-uni-view",{staticClass:"content-title"},[i("v-uni-view",{staticClass:"title"},[t._v("店铺类型")]),t.list.length>20?i("v-uni-view",[i("v-uni-view",{staticClass:"btns",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.isShowType=!t.isShowType}}},[t._v(t._s(t.isShowType?"收起":"展开")),i("v-uni-text",{staticClass:"iconfont",class:t.isShowType?"icon-xiangshang":"icon-xiangxia"})],1)],1):t._e()],1),i("v-uni-view",{staticClass:"brand-wrapper"},[i("v-uni-scroll-view",{staticStyle:{"max-height":"400rpx"},attrs:{"scroll-y":t.isShow}},[i("v-uni-view",{staticClass:"wrapper"},t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item line1",class:e.check?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindChenck1(e)}}},[t._v(t._s(e.type_name))])})),1)],1)],1)],1),i("v-uni-view",{staticClass:"content-box"},[i("v-uni-view",{staticClass:"content-title"},[i("v-uni-view",{staticClass:"title"},[t._v("商户分类")]),t.merCate.length>20?i("v-uni-view",[i("v-uni-view",{staticClass:"btns",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.isShowCate=!t.isShowCate}}},[t._v(t._s(t.isShowCate?"收起":"展开")),i("v-uni-text",{staticClass:"iconfont",class:t.isShowCate?"icon-xiangshang":"icon-xiangxia"})],1)],1):t._e()],1),i("v-uni-view",{staticClass:"brand-wrapper"},[i("v-uni-scroll-view",{staticStyle:{"max-height":"400rpx"},attrs:{"scroll-y":t.isShow}},[i("v-uni-view",{staticClass:"wrapper"},t._l(t.merCate,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item line1",class:e.check?"on":"",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.bindChenck2(e)}}},[t._v(t._s(e.category_name))])})),1)],1)],1)],1)],1),i("v-uni-view",{staticClass:"foot-btn"},[i("v-uni-view",{staticClass:"btn-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.reset.apply(void 0,arguments)}}},[t._v("重置")]),i("v-uni-view",{staticClass:"btn-item confirm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[t._v("确定")])],1)],1),i("v-uni-view",{staticClass:"right-bg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)},n=[]},"4f41b":function(t,e,i){"use strict";var a=i("c820"),n=i.n(a);n.a},"542b":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.productList .search[data-v-8318a064]{width:100%;height:%?86?%;padding:0 %?20?%;box-sizing:border-box;position:fixed;left:0;top:0;z-index:9;display:flex;flex-wrap:nowrap;background-color:#fff}.productList .search.styleType1[data-v-8318a064]{background-color:var(--view-theme)}.productList .search .search-right[data-v-8318a064]{display:flex;align-items:center;justify-content:space-between;max-width:-webkit-max-content;max-width:max-content;flex:1;padding-left:%?20?%}.productList .search .right-text[data-v-8318a064]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:%?28?%;width:-webkit-max-content;width:max-content;color:#fff;padding:0 %?10?%}.productList .search .icon-xiangyou[data-v-8318a064],\n.productList .search .icon-dingwei[data-v-8318a064]{font-size:%?30?%;color:#fff}.search-right.styleType2 .right-text[data-v-8318a064], .search-right.styleType3 .right-text[data-v-8318a064]{color:#282828}.search-right.styleType2 .icon-xiangyou[data-v-8318a064], .search-right.styleType3 .icon-xiangyou[data-v-8318a064]{color:#999}.search-right.styleType2 .icon-dingwei[data-v-8318a064], .search-right.styleType3 .icon-dingwei[data-v-8318a064]{color:#8a8a8a}.productList .search .back[data-v-8318a064]{display:flex;align-items:center;width:%?40?%;height:%?60?%}.productList .search .back .iconfont[data-v-8318a064]{color:#fff;font-size:%?36?%}.productList .search .input[data-v-8318a064]{flex:1;height:%?60?%;background-color:#fff;border-radius:%?50?%;padding:0 %?20?%;box-sizing:border-box}.productList .search.styleType2 .input[data-v-8318a064], .productList .search.styleType3 .input[data-v-8318a064]{background:#ededed}.productList .search .input uni-input[data-v-8318a064]{flex:1;height:100%;font-size:%?26?%;margin-left:%?10?%}.productList .search .input .placeholder[data-v-8318a064]{color:#999}.productList .search .input .iconfont[data-v-8318a064]{font-size:%?35?%;color:#555}.productList .search .icon-pailie[data-v-8318a064],\n.productList .search .icon-tupianpailie[data-v-8318a064]{color:#fff;width:%?62?%;font-size:%?40?%;height:%?86?%;line-height:%?86?%}.productList .nav-wrapper[data-v-8318a064]{z-index:9;position:fixed;left:0;top:0;width:100%;margin-top:%?86?%;background-color:#fff}.productList .nav-wrapper.styleType1[data-v-8318a064]{background-color:var(--view-theme)}.productList .nav-wrapper .tab-bar[data-v-8318a064]{display:flex;align-items:center}.productList .nav-wrapper .tab-bar .tab-item[data-v-8318a064]{position:relative;flex:1;display:flex;justify-content:center;align-items:center;padding:%?8?% 0 %?20?%;color:#fff;font-size:%?28?%;font-weight:700}.productList .nav-wrapper .tab-bar .tab-item[data-v-8318a064]::after{content:" ";position:absolute;left:50%;bottom:%?18?%;width:%?30?%;height:%?3?%;background:transparent;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.productList .nav-wrapper .tab-bar .tab-item.on[data-v-8318a064]::after{background:#fff}.border-picture[data-v-8318a064]{position:absolute;top:0;left:0;width:100%;height:100%;background:50%/cover no-repeat}.productList .nav[data-v-8318a064]{height:%?86?%;color:#454545;font-size:%?28?%;display:flex;justify-content:space-between;padding:0 %?28?%}.productList .nav .item[data-v-8318a064]{display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff;flex:1}.productList .nav.styleType2 .item[data-v-8318a064], .productList .nav.styleType3 .item[data-v-8318a064]{color:#282828}.productList .nav .item.font-colors[data-v-8318a064]{font-weight:500;color:#fff}.productList .nav.styleType2 .item.font-colors[data-v-8318a064],\n.productList .nav.styleType3 .item.font-colors[data-v-8318a064]{color:var(--view-theme)}.productList .nav .item .font-line[data-v-8318a064]{height:%?4?%;background-color:#fff;margin-top:%?3?%;width:%?28?%;animation:line-data-v-8318a064 .3s;-moz-animation:line-data-v-8318a064 .3s;\n /* Firefox */-webkit-animation:line-data-v-8318a064 .3s;\n /* Safari 和 Chrome */-o-animation:line-data-v-8318a064 .3s\n /* Opera */}.productList .nav.styleType2 .item .font-line[data-v-8318a064],\n.productList .nav.styleType3 .item .font-line[data-v-8318a064]{background-color:var(--view-theme)}@-webkit-keyframes line-data-v-8318a064{from{width:%?0?%}to{width:%?28?%}}@keyframes line-data-v-8318a064{from{width:%?0?%}to{width:%?28?%}}.productList .nav .item uni-image[data-v-8318a064]{width:%?15?%;height:%?19?%;margin-left:%?10?%}.mer-box[data-v-8318a064]{padding:%?20?% %?20?%;margin-top:%?168?%}.mer-box .store-margin[data-v-8318a064]{width:%?30?%!important;height:%?32?%!important;margin:0 0 0 %?10?%!important;border:none!important;border-radius:0!important}.mer-box .mer-item[data-v-8318a064]{margin-bottom:%?20?%;background-color:#fff;border-radius:%?16?%}.mer-box .mer-item.mer-item3[data-v-8318a064]{background-size:cover;background-repeat:no-repeat}.mer-box .mer-item .mer-hd[data-v-8318a064]{position:relative;width:100%;height:%?134?%;border-radius:%?16?% %?16?% 0 0;overflow:hidden;display:flex}.mer-box .mer-item .mer-hd uni-image[data-v-8318a064]{width:100%;height:100%}.mer-box .mer-item .mer-hd .mer-name[data-v-8318a064]{position:absolute;left:%?20?%;top:%?30?%;display:flex;align-items:center;padding:0 %?10?%}.mer-box .mer-item .mer-hd .mer-name uni-image[data-v-8318a064]{width:%?79?%;height:%?79?%;border:1px solid #fff;border-radius:50%;margin-right:%?10?%}.mer-box .mer-item .mer-hd .mer-name .txt[data-v-8318a064]{flex:1}.mer-box .mer-item[data-v-8318a064] .easy-loadimage{width:100%;height:%?214?%;border-radius:%?8?%}.mer-box .mer-item .pro-box[data-v-8318a064]{display:flex;align-items:center;padding:%?20?% %?20?% %?30?%}.mer-box .mer-item .pro-box .pro-item[data-v-8318a064]{width:%?218?%;margin-right:%?14?%}.mer-box .mer-item .pro-box .pro-item .picture[data-v-8318a064], .mer-box .mer-item .pro-box .pro-item[data-v-8318a064] uni-image, .mer-box .mer-item .pro-box .pro-item uni-image[data-v-8318a064]{width:100%;height:%?214?%;border-radius:%?8?%;position:relative}.mer-box .mer-item .pro-box .pro-item .price[data-v-8318a064]{margin-top:%?5?%;font-size:%?28?%;color:var(--view-priceColor);font-weight:700}.mer-box .mer-item .pro-box .pro-item .price uni-text[data-v-8318a064]{font-size:%?28?%}.mer-box .mer-item .pro-box .pro-item[data-v-8318a064]:last-child{margin-right:0}.mer-box .mer-item .pro-box.styleType3[data-v-8318a064]{padding:%?20?%}.mer-box .mer-item .pro-box.styleType3 .pro-item[data-v-8318a064]{background-color:#fff;border-radius:%?16?%;text-align:center;padding:%?10?% 0 %?20?%}.mer-box .mer-item .pro-box.styleType3 .pro-item .picture[data-v-8318a064], .mer-box .mer-item .pro-box.styleType3 .pro-item[data-v-8318a064] uni-image, .mer-box .mer-item .pro-box.styleType3 .pro-item uni-image[data-v-8318a064]{width:%?194?%;height:%?194?%;text-align:center;border-radius:%?8?%;position:relative;margin:0 auto}.mer-box .mer-top[data-v-8318a064]{display:flex;align-items:center;color:#fff;font-size:%?28?%;font-weight:700;margin-bottom:%?6?%}.mer-box .mer-top .font-bg-red[data-v-8318a064]{margin-left:%?20?%;font-size:%?18?%;padding:%?2?% %?10?%;color:#fff;border-radius:%?30?%;width:auto;background-color:var(--view-theme)}.mer-box .mer-btn[data-v-8318a064]{color:hsla(0,0%,100%,.7);font-size:%?24?%;display:flex;align-items:center}.mer-box .mer-btn .line[data-v-8318a064]{width:%?2?%;height:%?18?%;color:hsla(0,0%,100%,.7);margin:0 %?12?%}.mer-box .mer-btn .distance[data-v-8318a064]{display:flex;align-items:center;font-size:%?24?%}.mer-box .mer-btn .distance .iconfont[data-v-8318a064]{font-size:%?24?%;line-height:%?24?%}.mer-box .more-shop[data-v-8318a064]{display:flex;align-items:center;justify-content:center;background-color:#fff;padding:%?27?% 0;color:#999;font-size:%?26?%}.mer-box .more-shop .icon-xiangyou[data-v-8318a064]{font-size:%?22?%}.mer-item2[data-v-8318a064]{padding:%?20?%;background:#fff;margin-bottom:%?20?%;border-radius:%?16?%}.mer-item2 .mer-shop-count[data-v-8318a064]{display:flex}.mer-item2 .mer-shop-count .mer-avatar[data-v-8318a064]{width:%?100?%;height:%?100?%}.mer-item2 .mer-shop-count .mer-top[data-v-8318a064]{color:#282828}.mer-item2 .mer-shop-count .mer-shop-right[data-v-8318a064]{margin-left:%?20?%}.mer-item2 .mer-shop-count .mer-shop-right .mer-btn[data-v-8318a064]{color:#666}.mer-item2 .mer-shop-count .pro-box[data-v-8318a064]{display:flex;align-items:center;margin-top:%?20?%}.mer-item2 .mer-shop-count .pro-box .pro-item[data-v-8318a064]{width:%?170?%;margin-right:%?20?%}.mer-item2 .mer-shop-count .pro-box .pro-item .picture[data-v-8318a064], .mer-item2 .mer-shop-count .pro-box .pro-item[data-v-8318a064] uni-image, .mer-item2 .mer-shop-count .pro-box .pro-item uni-image[data-v-8318a064], .mer-item2 .mer-shop-count .pro-box .pro-item[data-v-8318a064] .easy-loadimage{width:100%;height:%?170?%;border-radius:%?8?%;position:relative}.mer-item2 .mer-shop-count .pro-box .pro-item .price[data-v-8318a064]{margin-top:%?5?%;font-size:%?28?%;color:var(--view-priceColor);font-weight:700}.mer-item2 .mer-shop-count .pro-box .pro-item .price uni-text[data-v-8318a064]{font-size:%?28?%}.mer-item2 .mer-shop-count .pro-box .pro-item[data-v-8318a064]:last-child{margin-right:0}.no-shop[data-v-8318a064]{background-color:#fff;padding-bottom:calc(100% - %?176?%)}.no-shop .pictrue[data-v-8318a064]{display:flex;flex-direction:column;align-items:center;color:#999}.no-shop .pictrue uni-image[data-v-8318a064]{width:%?414?%;height:%?380?%}',""]),t.exports=e},"59a8":function(t,e,i){"use strict";i.r(e);var a=i("dd31"),n=i("8a3a");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("5e41");var o=i("f0c5"),s=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"8318a064",null,!1,a["a"],void 0);e["default"]=s.exports},"5e41":function(t,e,i){"use strict";var a=i("842a"),n=i.n(a);n.a},"6e15":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.slideInRight[data-v-6e0779dd]{-webkit-animation-duration:.5s;animation-duration:.5s}.content-border[data-v-6e0779dd]{border-top:%?20?% solid #f5f5f5}.right-wrapper[data-v-6e0779dd]{z-index:99;position:fixed;left:0;top:0;width:100%;height:100%}.right-wrapper .control-wrapper[data-v-6e0779dd]{z-index:90;position:absolute;right:0;top:0;display:flex;flex-direction:column;width:%?635?%;height:100%;background-color:#fff}.right-wrapper .control-wrapper .wrapper-count[data-v-6e0779dd]{height:calc(100% - %?120?%);overflow-y:auto}.right-wrapper .control-wrapper .content-box[data-v-6e0779dd]{position:relative;display:flex;flex-direction:column;padding:0 %?26?%}.right-wrapper .control-wrapper .content-box .content-title[data-v-6e0779dd]{display:flex;align-items:center;justify-content:space-between;padding:%?40?% 0 %?20?%}.right-wrapper .control-wrapper .content-box .content-title .title[data-v-6e0779dd]{font-size:%?26?%;font-weight:700;color:#282828}.right-wrapper .control-wrapper .content-box .content-title .btns[data-v-6e0779dd]{display:flex;align-items:center;justify-content:center;font-size:%?22?%;color:#999}.right-wrapper .control-wrapper .content-box .content-title .btns .iconfont[data-v-6e0779dd]{margin-left:%?10?%;margin-top:%?5?%;font-size:%?20?%}.right-wrapper .control-wrapper .content-box .brand-wrapper[data-v-6e0779dd]{flex:1;overflow:hidden}.right-wrapper .control-wrapper .content-box .brand-wrapper .wrapper[data-v-6e0779dd]{display:flex;flex-wrap:wrap;padding-bottom:%?20?%}.right-wrapper .control-wrapper .content-box .brand-wrapper .item[data-v-6e0779dd]{display:block;width:%?186?%;height:%?56?%;line-height:%?56?%;text-align:center;background:#f2f2f2;border-radius:%?28?%;margin-top:%?25?%;padding:0 %?10?%;margin-right:%?12?%}.right-wrapper .control-wrapper .content-box .brand-wrapper .item[data-v-6e0779dd]:nth-child(3n){margin-right:0}.right-wrapper .control-wrapper .content-box .brand-wrapper .item.on[data-v-6e0779dd]{background:var(--view-minorColor);border:1px solid var(--view-theme);color:var(--view-theme)}.right-wrapper .control-wrapper .content-box .brand-wrapper .btns[data-v-6e0779dd]{display:flex;align-items:center;justify-content:center;padding-top:%?10?%;font-size:%?22?%;color:#999}.right-wrapper .control-wrapper .content-box .brand-wrapper .btns .iconfont[data-v-6e0779dd]{margin-left:%?10?%;margin-top:%?5?%;font-size:%?20?%}.right-wrapper .foot-btn[data-v-6e0779dd]{display:flex;align-items:center;justify-content:space-between;padding-bottom:%?30?%;position:absolute;bottom:0;left:%?20?%}.right-wrapper .foot-btn .btn-item[data-v-6e0779dd]{display:flex;align-items:center;justify-content:center;width:%?286?%;height:%?68?%;background:#fff;border:1px solid #aaa;border-radius:%?34?%;font-size:%?26?%;color:#282828}.right-wrapper .foot-btn .btn-item.confirm[data-v-6e0779dd]{background:var(--view-theme);border-color:var(--view-theme);color:#fff;margin-left:%?20?%}.right-wrapper .right-bg[data-v-6e0779dd]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5)}',""]),t.exports=e},"842a":function(t,e,i){var a=i("542b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("3522ba28",a,!0,{sourceMap:!1,shadowMode:!1})},"8a3a":function(t,e,i){"use strict";i.r(e);var a=i("a40e"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},a40e:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("5530"));i("d401"),i("d3b7"),i("25f0"),i("4de4"),i("d81d"),i("159b"),i("a9e3"),i("acd8"),i("fb6a"),i("99af"),i("14d9");var r=i("736f"),o=a(i("1857")),s=a(i("07dc")),c=i("26cb"),d=(i("f823"),i("3255")),l=i("f26a"),u=a(i("2243")),p=(getApp(),{components:{recommend:o.default,rightSlider:s.default,easyLoadimage:u.default},data:function(){return{domain:l.HTTP_REQUEST_URL,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,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:""},storeKey:0,storeScroll:!0,mer_id:"",sortId:"",price_on:"",price_off:"",detaile_address:"",recommend_address:"",location_address:"",latitude:"",longitude:"",count:0,storeTypeArr:[],merList:[]}},onLoad:function(t){var e=this;this.sotreParam.type_id=t.type_id&&t.type_id.split(",").toString()||"",this.sotreParam.category_id=t.cate_id&&t.cate_id.split(",").toString()||"",this.storeList=[],this.mer_location&&this.selfLocation(),setTimeout((function(){e.storeMerchantList()}),500),this.getClassfication(),this.getStoreType()},computed:(0,n.default)({downMenus:function(){var t=this;return this.downMenu.filter((function(e){return t.mer_location?e:e.key<3}))}},(0,d.configMap)({margin_ico_switch:0,margin_ico:"",mer_location:0,store_street_theme:1,hide_mer_status:""},(0,c.mapGetters)(["viewColor"]))),methods:{getClassfication:function(){var t=this,e=[];(0,r.merClassifly)().then((function(i){e=i.data.map((function(t){return(0,n.default)((0,n.default)({},t),{},{check:!1})})),t.sotreParam.category_id.length>0&&t.sotreParam.category_id.forEach((function(t,i){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,r.getStoreTypeApi)().then((function(i){e=i.data.map((function(t){return(0,n.default)((0,n.default)({},t),{},{check:!1})})),t.sotreParam.type_id.length>0&&t.sotreParam.type_id.forEach((function(t,i){e.forEach((function(e){t==e.mer_type_id&&(e.check=!0)}))})),t.storeTypeArr=e})).catch((function(e){t.$util.Tips({title:e})}))},showMaoLocation:function(t,e){if(!t||!e)return this.$util.Tips({title:"请设置允许商城访问您的位置!"});!0===this.$wechat.isWeixin()?this.$wechat.seeLocation({latitude:Number(t),longitude:Number(e),name:"当前位置",address:this.location_address}).then((function(t){})):uni.openLocation({latitude:parseFloat(t),longitude:parseFloat(e),name:"当前位置",address:this.location_address,scale:8,success:function(t){}})},showStoreLocation:function(t){if(!t.lat||!t.long)return this.$util.Tips({title:"请设置允许商城访问您的位置!"});!0===this.$wechat.isWeixin()?this.$wechat.seeLocation({latitude:Number(t.lat),longitude:Number(t.long),name:t.mer_name,address:t.mer_address?t.mer_address:""}).then((function(t){})):uni.openLocation({latitude:parseFloat(t.lat),longitude:parseFloat(t.long),scale:8,name:t.mer_name,address:t.mer_address?t.mer_address:"",success:function(t){}})},selfLocation:function(){var t=this;uni.getLocation({type:"gcj02",success:function(e){var i,a;i=e.latitude.toString(),a=e.longitude.toString(),t.latitude=e.latitude,t.longitude=e.longitude,(0,r.getGeocoder)({lat:i,long:a}).then((function(e){t.detaile_address=e.data.address,t.location_address=e.data.address,t.recommend_address=e.data.address.length>4?e.data.address.slice(0,4)+"...":e.data.address})).catch((function(t){uni.showToast({title:t,icon:"none"})}))},fail:function(t){uni.showToast({title:t,icon:"none",duration:1e3})}})},storeMerchantList:function(){var t=this;if(!this.loading){this.loading=!0;var e={keyword:this.sotreParam.keyword,page:this.sotreParam.page,limit:10,order:this.sotreParam.order,category_id:this.sotreParam.category_id,type_id:this.sotreParam.type_id};this.latitude&&(e.location=this.latitude+","+this.longitude),(0,r.storeMerchantList)(e).then((function(e){t.count=e.data.count,t.storeList=t.storeList.concat(e.data.list),t.loading=!1,t.loadingIcon=!1}))}},goStore:function(t){1!=this.hide_mer_status&&uni.navigateTo({url:"/pages/store/home/index?id=".concat(t)})},searchSubmit:function(t){this.$set(this.sotreParam,"keyword",t.detail.value),this.set_where(this.firstKey)},bindRight:function(){this.sotreParam.page=1,this.rightBox=!0},confirm:function(t){var e=[],i=[];0==t.storeTypeArr.length?this.sotreParam.type_id="":(t.storeTypeArr.forEach((function(t){e.push(t.mer_type_id)})),this.sotreParam.type_id=e.toString()),0==t.merList.length?this.sotreParam.category_id="":(t.merList.forEach((function(t){i.push(t.merchant_category_id)})),this.sotreParam.category_id=i.toString()),this.rightBox=t.status,this.loadend=!1,this.$set(this.sotreParam,"page",1),this.storeList=[],this.storeMerchantList()},close:function(){this.rightBox=!1},set_where:function(t){this.loading||(this.storeList=[],this.firstKey=t,this.sotreParam.page=1,this.sotreParam.order=this.downMenu[t].order,this.storeMerchantList())},backjJump:function(){uni.navigateBack({delta:1})}},onPullDownRefresh:function(){},onReachBottom:function(){if(this.count===this.storeList.length){if(0===this.count)return;uni.showToast({title:"已加载全部",icon:"none",duration:1e3})}else this.sotreParam.page+=1,this.storeMerchantList()},onPageScroll:function(t){uni.$emit("scroll")}});e.default=p},a49d:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("4de4"),i("d3b7"),i("159b");var a=i("26cb"),n={props:{storeTypeArr:{type:Array},merList:{type:Array},status:{type:Boolean,default:!1}},computed:(0,a.mapGetters)(["viewColor"]),data:function(){return{min:"",max:"",isShow:!1,isShowType:!1,isShowCate:!1,list:[],merCate:[],activeList:[],selectList:[],showBox:!1}},mounted:function(){this.list=this.storeTypeArr,this.merCate=this.merList,this.showBox=this.status},methods:{bindChenck1:function(t){t.check=!t.check,this.arrFilter1()},bindChenck2:function(t){t.check=!t.check,this.arrFilter2()},arrFilter1:function(){this.selectList=this.list.filter((function(t){return 1==t.check}))},arrFilter2:function(){this.activeList=this.merCate.filter((function(t){return 1==t.check}))},reset:function(){this.list.forEach((function(t,e){t.check=!1})),this.merCate.forEach((function(t,e){t.check=!1})),this.arrFilter1(),this.arrFilter2()},confirm:function(){this.arrFilter1(),this.arrFilter2();var t={storeTypeArr:this.selectList,merList:this.activeList,status:!1};this.showBox=!1,this.$emit("confirm",t)},close:function(){this.showBox=!1,this.$emit("close")},moveStop:function(){}}};e.default=n},c820:function(t,e,i){var a=i("6e15");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("00470f50",a,!0,{sourceMap:!1,shadowMode:!1})},d72e:function(t,e,i){"use strict";i.r(e);var a=i("a49d"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},dd31:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var a={easyLoadimage:i("2243").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"productList",style:t.viewColor},[i("v-uni-view",{staticClass:"search acea-row row-between-wrapper",class:"styleType"+t.store_street_theme},[i("v-uni-view",{staticClass:"back",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.backjJump()}}},[i("v-uni-view",{staticClass:"iconfont icon-xiangzuo"})],1),i("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[i("v-uni-text",{staticClass:"iconfont icon-sousuo"}),i("v-uni-input",{attrs:{placeholder:"搜索店铺名称","placeholder-class":"placeholder","confirm-type":"search",name:"search",value:t.sotreParam.keyword},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.searchSubmit.apply(void 0,arguments)}}})],1),1==t.mer_location?i("v-uni-view",{staticClass:"iconfont search-right",class:"styleType"+t.store_street_theme,staticStyle:{"text-align":"right"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showMaoLocation(t.latitude,t.longitude)}}},[i("v-uni-view",{staticClass:"iconfont icon-dingwei"}),t.recommend_address?i("v-uni-view",{staticClass:"right-text"},[t._v(t._s(t.recommend_address))]):t._e(),t.recommend_address?i("v-uni-view",{staticClass:"iconfont icon-xiangyou"}):t._e()],1):t._e()],1),i("v-uni-view",{staticClass:"nav-wrapper",class:"styleType"+t.store_street_theme},[i("v-uni-view",{staticClass:"nav acea-row row-middle",class:"styleType"+t.store_street_theme},[t._l(t.downMenus,(function(e){return i("v-uni-view",{key:e.key,staticClass:"item",class:{"font-colors":t.firstKey==e.key},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.set_where(e.key)}}},[i("v-uni-view",{},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"line",class:{"font-line":t.firstKey==e.key}})],1)})),i("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindRight.apply(void 0,arguments)}}},[i("v-uni-view",[t._v("筛选")]),i("v-uni-view",{staticClass:"line"})],1)],2)],1),[i("v-uni-view",{staticClass:"mer-box"},[1==t.store_street_theme?t._l(t.storeList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"mer-item"},[i("v-uni-view",{staticClass:"mer-hd",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goStore(e.mer_id)}}},[i("v-uni-image",{attrs:{src:e.mini_banner?e.mini_banner:e.mer_banner}}),i("v-uni-view",{staticClass:"mer-name"},[i("v-uni-image",{attrs:{src:e.mer_avatar}}),i("v-uni-view",{},[i("v-uni-view",{staticClass:"mer-top"},[i("v-uni-view",{staticClass:"txt line1"},[t._v(t._s(e.mer_name))]),1==t.margin_ico_switch&&t.margin_ico&&10==e.is_margin?i("v-uni-image",{staticClass:"store-margin",attrs:{src:t.margin_ico}}):t._e(),e.type_name?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v(t._s(e.type_name))]):e.is_trader?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v("自营")]):t._e()],1),i("v-uni-view",{staticClass:"mer-btn"},[i("v-uni-view",{},[t._v(t._s(e.care_count<1e4?e.care_count:(e.care_count/1e4).toFixed(2)+"万")+"人关注")]),e.distance?i("v-uni-view",{staticClass:"line"}):t._e(),e.distance?i("v-uni-view",{staticClass:"distance",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.showStoreLocation(e)}}},[i("v-uni-view",{},[t._v(t._s(e.distance))]),i("v-uni-view",{staticClass:"iconfont icon-xiangyou"})],1):t._e()],1)],1)],1)],1),i("v-uni-view",{staticClass:"pro-box",class:"styleType"+t.store_street_theme},t._l(e.recommend,(function(a,n){return e.recommend.length<=3?i("v-uni-navigator",{key:n,staticClass:"pro-item",attrs:{url:"/pages/goods_details/index?id="+a.product_id,"hover-class":"none"}},[i("v-uni-view",{staticClass:"picture"},[i("easy-loadimage",{attrs:{mode:"widthFix","image-src":a.image}}),a.border_pic?i("v-uni-view",{staticClass:"border-picture",style:{backgroundImage:"url("+a.border_pic+")"}}):t._e()],1),i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥")]),t._v(t._s(a.price))],1)],1):t._e()})),1)],1)})):t._e(),2==t.store_street_theme?t._l(t.storeList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"mer-item2"},[i("v-uni-view",{staticClass:"mer-hd mer-shop-count"},[i("v-uni-image",{staticClass:"mer-avatar",attrs:{src:e.mer_avatar}}),i("v-uni-view",{staticClass:"mer-shop-right"},[i("v-uni-view",{staticClass:"mer-count"},[i("v-uni-view",{staticClass:"mer-top",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goStore(e.mer_id)}}},[i("v-uni-view",{staticClass:"txt line1"},[t._v(t._s(e.mer_name))]),e.type_name?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v(t._s(e.type_name))]):e.is_trader?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v("自营")]):t._e()],1),i("v-uni-view",{staticClass:"mer-btn",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goStore(e.mer_id)}}},[i("v-uni-view",{},[t._v(t._s(e.care_count<1e4?e.care_count:(e.care_count/1e4).toFixed(2)+"万")+"人关注")]),e.distance?i("v-uni-view",{staticClass:"line"}):t._e(),e.distance?i("v-uni-view",{staticClass:"distance",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.showStoreLocation(e)}}},[i("v-uni-view",{},[t._v(t._s(e.distance))]),i("v-uni-view",{staticClass:"iconfont icon-xiangyou"})],1):t._e()],1)],1),i("v-uni-view",{staticClass:"pro-box"},t._l(e.recommend,(function(a,n){return e.recommend.length<=3?i("v-uni-navigator",{key:n,staticClass:"pro-item",attrs:{url:"/pages/goods_details/index?id="+a.product_id,"hover-class":"none"}},[i("v-uni-view",{staticClass:"picture"},[i("easy-loadimage",{attrs:{mode:"widthFix","image-src":a.image}}),a.border_pic?i("v-uni-view",{staticClass:"border-picture",style:{backgroundImage:"url("+a.border_pic+")"}}):t._e()],1),i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥")]),t._v(t._s(a.price))],1)],1):t._e()})),1)],1)],1)],1)})):t._e(),3==t.store_street_theme?t._l(t.storeList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"mer-item mer-item3",style:"background-image:url("+e.mini_banner+")"},[i("v-uni-view",{staticClass:"mer-hd",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.goStore(e.mer_id)}}},[i("v-uni-view",{staticClass:"mer-name"},[i("v-uni-image",{attrs:{src:e.mer_avatar}}),i("v-uni-view",{},[i("v-uni-view",{staticClass:"mer-top"},[i("v-uni-view",{staticClass:"txt line1"},[t._v(t._s(e.mer_name))]),e.type_name?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v(t._s(e.type_name))]):e.is_trader?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v("自营")]):t._e()],1),i("v-uni-view",{staticClass:"mer-btn"},[i("v-uni-view",{},[t._v(t._s(e.care_count<1e4?e.care_count:(e.care_count/1e4).toFixed(2)+"万")+"人关注")]),e.distance?i("v-uni-view",{staticClass:"line"}):t._e(),e.distance?i("v-uni-view",{staticClass:"distance",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.showStoreLocation(e)}}},[i("v-uni-view",{},[t._v(t._s(e.distance))]),i("v-uni-view",{staticClass:"iconfont icon-xiangyou"})],1):t._e()],1)],1)],1)],1),i("v-uni-view",{staticClass:"pro-box",class:"styleType"+t.store_street_theme},t._l(e.recommend,(function(a,n){return e.recommend.length<=3?i("v-uni-navigator",{key:n,staticClass:"pro-item",attrs:{url:"/pages/goods_details/index?id="+a.product_id,"hover-class":"none"}},[i("v-uni-view",{staticClass:"picture"},[i("v-uni-image",{attrs:{src:a.image}}),a.border_pic?i("v-uni-view",{staticClass:"border-picture",style:{backgroundImage:"url("+a.border_pic+")"}}):t._e()],1),i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥")]),t._v(t._s(a.price))],1)],1):t._e()})),1)],1)})):t._e(),t.loading?i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e()],2),t.storeList.length||t.loading||t.loadingIcon?t._e():i("v-uni-view",{staticClass:"no-shop"},[i("v-uni-view",{staticClass:"pictrue",staticStyle:{margin:"0 auto"}},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/noCart.png"}}),i("v-uni-text",[t._v("暂无店铺,快去搜索其他店铺吧")])],1)],1)]],2),t.rightBox?i("rightSlider",{attrs:{status:t.rightBox,merList:t.merList,storeTypeArr:t.storeTypeArr},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e()],1)},r=[]}}]); |