store-page-brand-list-index.003430f9.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["store-page-brand-list-index"],{"009a":function(t,e,i){"use strict";i.r(e);var a=i("8129"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},1138:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("c223"),i("5ef2");var a={name:"tn-lazy-load",options:{virtualHost:!0},props:{index:{type:[String,Number],default:""},bgColor:{type:String,default:"#f8f7f8"},src:{type:String,default:""},imgMode:{type:String,default:"aspectFill"},loadingImg:{type:String,default:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/loading.gif"},errorImg:{type:String,default:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/nopic.jpg"},threshold:{type:[Number,String],default:100},isEffect:{type:Boolean,default:!0},duration:{type:[String,Number],default:500},effect:{type:String,default:"ease-in-out"},height:{type:[String,Number],default:""},borderRadius:{type:String,default:""},enableLazyLoad:{type:Boolean,default:!0}},computed:{thresholdValue:function(){var t=uni.upx2px(Math.abs(this.threshold));return this.threshold<0?-t:t},lazyLoadItemStyle:function(){var t={};return t.opacity=Number(this.opacity),this.borderRadius&&(t.borderRadius=this.borderRadius),t.backgroundColor=this.bgColor,t.transition="opacity ".concat(this.time/1e3,"s ").concat(this.effect),t.height=this.$tn.string.getLengthUnitValue(this.height),t},imageStyle:function(){var t={};return"string"===typeof this.height&&-1===this.height.indexOf("%")&&(t.height=this.$tn.string.getLengthUnitValue(this.height)),t}},watch:{show:function(t){var e=this;this.effect&&(this.time=0,this.opacity=0,setTimeout((function(){e.time=e.duration,e.opacity=1}),30))},src:function(t){t?(this.init(),this.error=!1):this.error=!0}},data:function(){return{elIndex:this.$tn.uuid(),show:!1,opacity:1,time:this.duration,loadStatus:"",error:!1}},created:function(){this.observer={},this.observerName="lazyLoadContentObserver"},mounted:function(){var t=this;this.$nextTick((function(){uni.$once("tOnLazyLoadReachBottom",(function(){t.show||(t.show=!0)}))})),this.enableLazyLoad?setTimeout((function(){t.disconnectObserver(t.observerName);var e=uni.createIntersectionObserver(t);e.relativeToViewport({bottom:t.thresholdValue}).observe(".tn-lazy-load__item--".concat(t.elIndex),(function(e){e.intersectionRatio>0&&(t.show=!0,t.disconnectObserver(t.observerName))})),t[t.observerName]=e}),50):this.show=!0},methods:{init:function(){this.error=!1,this.loadStatus=""},handleImgClick:function(){var t="";t=!1===this.show?"lazyImg":!0===this.error?"errorImg":"realImg",this.$emit("click",{index:this.index,whichImg:t})},handleImgLoaded:function(){(this.loadStatus="")?this.loadStatus="lazyed":"lazyed"==this.loadStatus&&(this.loadStatus="loaded",this.$emit("loaded",this.index))},handleErrorImgLoaded:function(){this.$emit("error",this.index)},handleImgError:function(){this.error=!0},disconnectObserver:function(t){var e=this[t];e&&e.disconnect&&e.disconnect()}},beforeDestroy:function(){this.disconnectObserver(this.observerName)}};e.default=a},"12ba":function(t,e,i){"use strict";i.r(e);var a=i("d7e8"),o=i("009a");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("398c");var s=i("828b"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"768f659a",null,!1,a["a"],void 0);e["default"]=r.exports},"14b9":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("fd3c"),i("64aa");var o=a(i("6fbe")),n=a(i("12ba")),s=i("9d0a"),r=i("419c"),d=i("d55c"),c={components:{AdStoreItemTemplate2:n.default},mixins:[o.default],data:function(){return{storeList:[],currentPage:1,pageSize:20,isLoadAll:!1}},onLoad:function(){this.initCustomNavBarInfo(),this.getBrandStoreData()},computed:{getHeight:function(){var t=uni.getSystemInfoSync();return t.statusBarHeight}},methods:{navPage:r.navPage,getBrandStoreData:function(){var t=this;(0,d.getBrandStoreListDataApi)({page:this.currentPage,psize:this.pageSize}).then((function(e){var i=e.stores;i?t.storeList=t.storeList.concat(i.map((function(t){var e;return{id:t.id,title:t.title,logo:t.logo,image:t.logo,content:t.content,deliveryTime:t.delivery_time,deliveryPrice:Number(t.delivery_price),score:t.score,sailed:t.sailed,pageShowType:t.pageShowType,is_haodian:t.is_haodian,delivery_type:t.delivery_type,goods:null===(e=t.goods)||void 0===e?void 0:e.map((function(t){return{id:t.id,image:t.thumb,title:t.title,price:Number(t.price),oldPrice:Number(t.old_price)}}))}}))):t.isLoadAll=!0})).catch((function(t){console.error("[brand-list]获取品牌商户列表失败",t),(0,s.showModal)({title:"提示",content:"获取品牌商户数据失败",callback:function(){(0,r.navBack)()}})}))},nP:function(t,e,i,a){2==i?(0,r.navPage)("/store-page/groupBuyingFood/groupBuyingFood?sid=".concat(t)):2==i&&a?(0,r.navPage)("".concat(a)):(0,r.navPage)("/store-page/product-showcase/template-1?sid=".concat(t))}}};e.default=c},"1dce":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */\n/* 顶部背景颜色 start */.top-bg-color[data-v-c247b5b4]{position:fixed;left:0;top:0;width:100%;height:%?1200?%;background:linear-gradient(180deg,#e83a30,hsla(0,0%,100%,0));z-index:1}\n/* 顶部背景颜色 end */\n/* 顶部标题文字 start */.top-title[data-v-c247b5b4]{position:fixed;left:0;width:100%;z-index:1;height:%?70?%}.top-title .image[data-v-c247b5b4]{width:auto;height:%?70?%}\n/* 顶部标题文字 end */\n/* 商家列表 start */.store-list[data-v-c247b5b4]{position:relative;padding:%?30?%;z-index:2}.store-list .store-item + .store-item[data-v-c247b5b4]{margin-top:%?40?%}\n/* 商家列表 end */',""]),t.exports=e},2478:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-lazy-load[data-v-fe7a5378]{width:100%;height:100%;border-radius:inherit}.tn-lazy-load__item[data-v-fe7a5378]{width:100%;height:100%;border-radius:inherit;overflow:hidden}.tn-lazy-load__item__content[data-v-fe7a5378]{width:100%;height:100%;border-radius:inherit}.tn-lazy-load__item__image[data-v-fe7a5378]{display:block;width:100%;height:100%;border-radius:inherit;-webkit-transform:transition3d(0,0,0);transform:transition3d(0,0,0);will-change:transform}',""]),t.exports=e},"398c":function(t,e,i){"use strict";var a=i("7ee2"),o=i.n(a);o.a},"3b86":function(t,e,i){var a=i("2478");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("967d").default;o("72ef400c",a,!0,{sourceMap:!1,shadowMode:!1})},"4dbc":function(t,e,i){var a=i("1dce");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("967d").default;o("617e15ad",a,!0,{sourceMap:!1,shadowMode:!1})},"705a":function(t,e,i){"use strict";i.r(e);var a=i("f727"),o=i("dc78");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("ceca");var s=i("828b"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"c247b5b4",null,!1,a["a"],void 0);e["default"]=r.exports},"7cdd":function(t,e,i){"use strict";i.r(e);var a=i("1138"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},"7dd3":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),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:"tn-lazy-load-class tn-lazy-load"},[i("v-uni-view",{staticClass:"tn-lazy-load__item",class:["tn-lazy-load__item--"+t.elIndex],staticStyle:{color:"#aaaaaa !important"},style:[t.lazyLoadItemStyle]},[i("v-uni-view",{staticClass:"tn-lazy-load__item__content"},[t.error?i("v-uni-image",{staticClass:"tn-lazy-load__item__image tn-lazy-load__item__image--error",style:[t.imageStyle],attrs:{src:t.errorImg,mode:t.imgMode},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.handleErrorImgLoaded.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleImgClick.apply(void 0,arguments)}}}):i("v-uni-image",{staticClass:"tn-lazy-load__item__image",style:[t.imageStyle],attrs:{src:t.show?t.src:t.loadingImg,mode:t.imgMode},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.handleImgLoaded.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.handleImgError.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleImgClick.apply(void 0,arguments)}}})],1)],1)],1)},o=[]},"7ee2":function(t,e,i){var a=i("85c0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("967d").default;o("37bcb3c1",a,!0,{sourceMap:!1,shadowMode:!1})},8129:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={options:{virtualHost:!0},props:{store:{type:Object,default:function(){return{}}},storeConfig:{type:Object,default:function(){return{}}}}};e.default=a},"85c0":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.ad-store-show-1[data-v-768f659a]{position:relative;width:100%;background-color:#fff;border-radius:%?20?%;padding:%?20?%;overflow:hidden\n /* 人气推荐 start */\n /* 人气推荐 end */}.ad-store-show-1 .popularity-tag[data-v-768f659a]{position:absolute;top:0;right:0;font-size:%?24?%;padding:%?6?% %?14?%;border-radius:%?0?% %?20?% %?0?% %?20?%;line-height:1}.ad-store-show-1 .store-info[data-v-768f659a]{display:flex\n /* 左边内容 start */\n /* 左边内容 end */\n /* 商家、商品信息 start */\n /* 商家、商品信息 end */}.ad-store-show-1 .store-info .left-info[data-v-768f659a]{flex-shrink:0;position:relative;display:flex;flex-direction:column;width:%?200?%;height:%?400?%;border-radius:%?10?%\n /* 内容分割线 start */\n /* 内容分割线 end */}.ad-store-show-1 .store-info .left-info .product-image[data-v-768f659a]{width:100%;height:%?200?%;border-radius:%?10?%}.ad-store-show-1 .store-info .left-info .content-split-line[data-v-768f659a]{position:relative;width:100%;height:%?50?%}.ad-store-show-1 .store-info .left-info .content-split-line .point[data-v-768f659a]{position:absolute;width:%?10?%;height:%?10?%;background-color:inherit;border-radius:50%;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ad-store-show-1 .store-info .left-info .content-split-line .point[data-v-768f659a]::before{content:"";position:absolute;width:%?60?%;height:%?2?%;background-color:inherit;right:%?20?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ad-store-show-1 .store-info .left-info .content-split-line .point[data-v-768f659a]::after{content:"";position:absolute;width:%?60?%;height:%?2?%;background-color:inherit;left:%?20?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ad-store-show-1 .store-info .left-info .store-content[data-v-768f659a]{flex:1;padding:%?0?% %?20?%;margin-bottom:%?42?%;font-size:%?24?%;overflow:hidden}.ad-store-show-1 .store-info .right-info[data-v-768f659a]{width:calc(100% - %?200?% - %?20?%);display:flex;flex-direction:column;margin-left:%?20?%\n /* 商家基础信息 start */\n /* 商家基础信息 start */\n /* 配送标签 start */\n /* 配送标签 end */\n /* 商品信息 start */\n /* 商品信息 end */}.ad-store-show-1 .store-info .right-info .store-title[data-v-768f659a]{width:80%;font-size:%?34?%;font-weight:500}.ad-store-show-1 .store-info .right-info .store-info-base[data-v-768f659a]{display:flex;align-items:center;justify-content:space-between;margin-top:%?14?%;font-size:%?20?%}.ad-store-show-1 .store-info .right-info .store-info-base .base-info[data-v-768f659a]{display:flex;align-items:center}.ad-store-show-1 .store-info .right-info .store-info-base .base-info .score[data-v-768f659a]{display:flex;align-items:center;color:#ffca28}.ad-store-show-1 .store-info .right-info .store-info-base .base-info .score .value[data-v-768f659a]{margin-left:%?10?%}.ad-store-show-1 .store-info .right-info .store-info-base .base-info .month-sale[data-v-768f659a],\n.ad-store-show-1 .store-info .right-info .store-info-base .base-info .delivery-price[data-v-768f659a]{color:#aaa;margin-left:%?12?%}.ad-store-show-1 .store-info .right-info .store-info-base .delivery-time[data-v-768f659a]{color:#aaa}.ad-store-show-1 .store-info .right-info .store-delivery-tag[data-v-768f659a]{margin-top:%?14?%;width:-webkit-fit-content;width:fit-content;font-size:%?22?%;border-radius:%?6?%;padding:%?0?% %?8?%}.ad-store-show-1 .store-info .right-info .product-data[data-v-768f659a]{width:100%;margin-top:%?14?%;flex:1}.ad-store-show-1 .store-info .right-info .product-data .product-item[data-v-768f659a]{flex-shrink:0;width:%?220?%;height:100%}.ad-store-show-1 .store-info .right-info .product-data .product-item .image[data-v-768f659a]{width:100%;height:%?140?%;border-radius:%?15?%}.ad-store-show-1 .store-info .right-info .product-data .product-item .title[data-v-768f659a]{margin-top:%?10?%}.ad-store-show-1 .store-info .right-info .product-data .product-item .price[data-v-768f659a]{margin-top:%?10?%}.ad-store-show-1 .store-info .right-info .product-data .product-item .price .original-price[data-v-768f659a]{font-size:%?32?%;font-weight:500}.ad-store-show-1 .store-info .right-info .product-data .product-item .price .old-price[data-v-768f659a]{font-size:%?22?%;margin-left:%?8?%;text-decoration:line-through;-webkit-transform:translateY(%?-4?%);transform:translateY(%?-4?%)}.ad-store-show-1 .store-info .right-info .product-data .product-item + .product-item[data-v-768f659a]{margin-left:%?14?%}',""]),t.exports=e},"91b9":function(t,e,i){"use strict";var a=i("3b86"),o=i.n(a);o.a},"9d0a":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.showToast=e.showModal=e.showLoading=e.closeLoading=void 0;e.showToast=function(t){var e=t.title,i=t.icon,a=t.mask,o=t.callback;uni.showToast({icon:i||"none",title:e,mask:a||!0}),setTimeout((function(){o&&o()}),1500)};e.showModal=function(t){var e=t.title,i=t.content,a=t.showCancel,o=t.cancelText,n=t.confirmText,s=t.callback;uni.showModal({title:e||"操作提示",content:i,showCancel:a||!1,cancelText:o||"取消",confirmText:n||"确认",success:function(t){t.confirm&&s&&s(!0),t.cancel&&s&&s(!1)}})};e.showLoading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.title,i=void 0===e?"":e,a=t.mask,o=void 0!==a&&a;uni.showLoading({title:i,mask:o})};e.closeLoading=function(){uni.hideLoading()}},b461:function(t,e,i){"use strict";i.r(e);var a=i("7dd3"),o=i("7cdd");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("91b9");var s=i("828b"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"fe7a5378",null,!1,a["a"],void 0);e["default"]=r.exports},ceca:function(t,e,i){"use strict";var a=i("4dbc"),o=i.n(a);o.a},d7e8:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var a={tnLazyLoad:i("b461").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"ad-store-show-1 tn-shadow"},[i("v-uni-view",{staticClass:"popularity-tag tn-cool-bg-15"},[i("v-uni-text",{staticClass:"tn-icon-fire-fill"}),t._v("人气推荐")],1),i("v-uni-view",{staticClass:"store-info"},[i("v-uni-view",{staticClass:"left-info tn-bg-orange--light"},[i("v-uni-view",{staticClass:"product-image"},[i("v-uni-view",{staticClass:"image"},[i("tn-lazy-load",{attrs:{src:t.store.image}})],1)],1),i("v-uni-view",{staticClass:"content-split-line"},[i("v-uni-view",{staticClass:"point tn-bg-orange"})],1),i("v-uni-view",{staticClass:"store-content tn-text-ellipsis-4"},[t._v(t._s(t.store.content))])],1),i("v-uni-view",{staticClass:"right-info"},[i("v-uni-view",{staticClass:"store-title tn-text-ellipsis-1"},[t._v(t._s(t.store.title))]),i("v-uni-view",{staticClass:"store-info-base"},[i("v-uni-view",{staticClass:"base-info"},[i("v-uni-view",{staticClass:"score"},[i("v-uni-view",{staticClass:"icon tn-icon-star-fill"}),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.store.score))])],1),i("v-uni-view",{staticClass:"month-sale"},[t._v("月销热度 "+t._s(t.store.sailed))]),2!=t.store.delivery_type?i("v-uni-view",{staticClass:"delivery-price"},[t._v(t._s(t.store.deliveryPrice?"配送费"+t.CurrencyUnit+t.store.deliveryPrice.toFixed(2):"免配送费"))]):t._e()],1),2!=t.store.delivery_type?i("v-uni-view",{staticClass:"delivery-time"},[t._v(t._s(t.store.deliveryTime)+"分钟")]):t._e()],1),i("v-uni-view",{staticClass:"store-delivery-tag tn-bg-orange--light"},[t._v("闪电侠配送")]),i("v-uni-view",{staticClass:"product-data"},[i("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-x":!0}},[i("v-uni-view",{staticClass:"data-wrapper tn-flex"},t._l(t.store.goods,(function(e,a){return i("v-uni-view",{key:a,staticClass:"product-item"},[i("v-uni-view",{staticClass:"image"},[i("tn-lazy-load",{attrs:{src:e.image}})],1),i("v-uni-view",{staticClass:"title tn-text-ellipsis-1"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"price tn-flex-row-end"},[i("v-uni-view",{staticClass:"original-price tn-color-red"},[t._v(t._s(t.CurrencyUnit)+t._s(e.price.toFixed(2)))]),e.oldPrice&&0!==t.storeConfig.isShowGoodsOldPrice?i("v-uni-view",{staticClass:"old-price tn-color-gray"},[t._v(t._s(t.CurrencyUnit)+t._s(e.oldPrice.toFixed(2)))]):t._e()],1)],1)})),1)],1)],1)],1)],1)],1)},n=[]},dc78:function(t,e,i){"use strict";i.r(e);var a=i("14b9"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},f727:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("custom-page",{attrs:{"custom-navbar":!0,"transparent-navbar":!0,"wrapper-begin-navbar":!1}},[i("v-uni-view",{staticClass:"top-bg-color"}),i("v-uni-view",{staticClass:"top-title tn-flex-center",style:[{top:t.getHeight+"px"}]},[i("v-uni-image",{staticClass:"image",attrs:{src:"https://qny.wdsp666.com/seafox/pinpaiyouxuan.png",mode:"heightFix"}})],1),i("v-uni-view",{staticClass:"store-list tn-safe-area-inset-bottom--lg",style:[{top:t.navBarInfo.height+"px"}]},t._l(t.storeList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"store-item tn-shadow",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.nP(e.id,e.pageShowType,e.is_haodian,e.custom_links)}}},[i("ad-store-item-template2",{attrs:{store:e}})],1)})),1)],1)},o=[]}}]);