1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["store-page-groupBuyingFood-groupBuyingFood"],{"00d7":function(t,e,i){"use strict";i.r(e);var o=i("ff5a"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},"0c2b":function(t,e,i){"use strict";i.r(e);var o=i("f2b9"),n=i("00d7");for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("42dd");var s=i("828b"),r=Object(s["a"])(n["default"],o["b"],o["c"],!1,null,"687316f3",null,!1,o["a"],void 0);e["default"]=r.exports},"0f04":function(t,e,i){"use strict";i.r(e);var o=i("c54e"),n=i("6457");for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("4314");var s=i("828b"),r=Object(s["a"])(n["default"],o["b"],o["c"],!1,null,"2e98347d",null,!1,o["a"],void 0);e["default"]=r.exports},"1b82":function(t,e,i){"use strict";var o=i("93b5"),n=i.n(o);n.a},"1fbf":function(t,e,i){"use strict";i.r(e);var o=i("6197"),n=i("84ae");for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("47c3");var s=i("828b"),r=Object(s["a"])(n["default"],o["b"],o["c"],!1,null,"ef46d0a4",null,!1,o["a"],void 0);e["default"]=r.exports},"22ac":function(t,e,i){"use strict";i.r(e);var o=i("cbd2"),n=i("8bc0");for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("1b82");var s=i("828b"),r=Object(s["a"])(n["default"],o["b"],o["c"],!1,null,"5175547c",null,!1,o["a"],void 0);e["default"]=r.exports},"269b":function(t,e,i){"use strict";i.r(e);var o=i("590f"),n=i("7527");for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("36f5");var s=i("828b"),r=Object(s["a"])(n["default"],o["b"],o["c"],!1,null,"78d8cb21",null,!1,o["a"],void 0);e["default"]=r.exports},"28a9":function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getDatas=void 0;var n=o(i("7653"));e.getDatas=function(t){return n.default.get("api/user.store.store/tuangouquan",t)}},"346c":function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var n=i("e0a2"),a=o(i("a71b")),s=i("419c"),r=i("28a9"),c=i("78b4"),l=o(i("0f04")),d=o(i("269b")),u={components:{Appraise:l.default,Empty:a.default,GoodsWaterfall:d.default},data:function(){return{renderTemplateFlag:[!0,!1,!1],listTab:[{title:"团购套餐"},{title:"相关笔记"},{title:"商家评价"}],icon:[n.staticUrl+"api/images/20250723/images_1753251749.png"],comment:{},tags:["新店","付费停车","空调开放","充电宝"],spellrices:[],storeInfo:{data:{comment_titles:{package_custom_title:"包装",taste_custom_title:"口味",final_custom_title:"配送满意度"}}},tranShow:!0,sid:"",is_favorite:!1,mobile:"",showCallPhoneDialog:!1,storeTab:0,lastTriggerTop:0,store_type:""}},filters:{getDistance:function(t){return t>1e3?(t/1e3).toFixed(2)+"km":t+"m"}},computed:{currentNavStyle:function(){var t=this;return function(e){var i={};return i.display=t.storeTab===e?"block":"none",console.log("this.renderTemplateFlag",i),i}}},onLoad:function(t){t.sid&&(this.sid=t.sid),t.store_type&&(this.store_type=t.store_type)},onReachBottom:function(){var t,e;2==this.storeTab&&((null===(t=this.$refs)||void 0===t||null===(e=t.storeNote)||void 0===e?void 0:e.loadMoreGoodsData)&&this.$refs.storeNote.loadMoreGoodsData())},onPageScroll:function(t){var e=t.scrollTop;if(e>=0&&(this.tranShow=e<=30),2==this.storeTab){var i,o,n=e-this.lastTriggerTop;if(n>=100)this.lastTriggerTop=e,(null===(i=this.$refs)||void 0===i||null===(o=i.storeNote)||void 0===o?void 0:o.loadMoreGoodsData)&&this.$refs.storeNote.loadMoreGoodsData()}},mounted:function(){3==this.store_type&&(this.listTab=[{title:"相关笔记"},{title:"团购套餐"},{title:"商家评价"}]),this.getList()},methods:{changeStore:function(t){this.storeTab=t,this.renderTemplateFlag[t]||(this.renderTemplateFlag[t]=!0),console.log("this.renderTemplateFlag",this.renderTemplateFlag)},showCallPhone:function(t){var e=this;console.log("phone",t),this.mobile=t,this.$nextTick((function(){e.showCallPhoneDialog=!0}))},openMap:function(t,e,i,o){console.log(t,e),uni.openLocation({latitude:Number(t),longitude:Number(e),name:o,address:i,success:function(t){console.log("success",t)},fail:function(t){console.log(t)}})},getList:function(){var t=this;(0,r.getDatas)({sid:this.sid}).then((function(e){console.log(e),t.storeInfo=e.storeInfo.store,console.log(t.storeInfo,"this.storeInfo"),t.comment=e.comment,t.spellrices=e.goods,t.is_favorite=e.is_favorite})).catch((function(t){console.log(t)}))},callPhone:function(t){uni.makePhoneCall({phoneNumber:t})},toPayBillPage:function(){var t="/plugin-page/paybill/index?sid="+this.sid;(0,s.navPage)(t)},favorite:function(){var t=this;this.is_favorite=!this.is_favorite,console.log(this.is_favorite?1:2),(0,c.postStoreCollectApi)({sid:this.storeInfo.id,type:this.is_favorite?1:2}).then((function(e){console.log("rrrr",e,t.is_favorite)}))},copyText:function(t){uni.setClipboardData({data:t,success:function(){uni.showToast({title:"复制成功",icon:"none"})}})},navStore:function(t){this.storeInfo.pageShowType,(0,s.navPage)("/store-page/product-showcase/template-1?sid="+t)},navPage:s.navPage,navBack:s.navBack}};e.default=u},"36f5":function(t,e,i){"use strict";var o=i("bc32"),n=i.n(o);n.a},"42dd":function(t,e,i){"use strict";var o=i("afa5"),n=i.n(o);n.a},4314:function(t,e,i){"use strict";var o=i("deab"),n=i.n(o);n.a},"45b3":function(t,e,i){var o=i("c86c");e=o(!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-popup[data-v-ef46d0a4]{display:block;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden}.tn-popup__content[data-v-ef46d0a4]{display:block;position:absolute;transition:all .25s linear}.tn-popup__content--visible[data-v-ef46d0a4]{-webkit-transform:translateZ(0)!important;transform:translateZ(0)!important}.tn-popup__content--visible.tn-popup--center[data-v-ef46d0a4]{-webkit-transform:scale(1);transform:scale(1);opacity:1}.tn-popup__content__center_box[data-v-ef46d0a4]{min-width:%?100?%;min-height:%?100?%;display:block;position:relative}.tn-popup__content__scroll-view[data-v-ef46d0a4]{width:100%;height:100%}.tn-popup__content__center--animation-zoom[data-v-ef46d0a4]{-webkit-transform:scale(1.15);transform:scale(1.15)}.tn-popup__scroll_view[data-v-ef46d0a4]{width:100%;height:100%}.tn-popup--left[data-v-ef46d0a4]{top:0;bottom:0;left:0;background-color:#fff}.tn-popup--right[data-v-ef46d0a4]{top:0;bottom:0;right:0;background-color:#fff}.tn-popup--top[data-v-ef46d0a4]{left:0;right:0;top:0;background-color:#fff}.tn-popup--bottom[data-v-ef46d0a4]{left:0;right:0;bottom:0;background-color:#fff}.tn-popup--center[data-v-ef46d0a4]{display:flex;flex-direction:column;bottom:0;top:0;left:0;right:0;justify-content:center;align-items:center;opacity:0}.tn-popup__close[data-v-ef46d0a4]{position:absolute}.tn-popup__close--top-left[data-v-ef46d0a4]{top:%?30?%;left:%?30?%}.tn-popup__close--top-right[data-v-ef46d0a4]{top:%?30?%;right:%?30?%}.tn-popup__close--bottom-left[data-v-ef46d0a4]{bottom:%?30?%;left:%?30?%}.tn-popup__close--bottom-right[data-v-ef46d0a4]{bottom:%?30?%;right:%?30?%}.tn-popup__mask[data-v-ef46d0a4]{width:100%;height:100%;position:fixed;top:0;left:0;right:0;border:0;background-color:rgba(0,0,0,.4);transition:.25s linear;transition-property:opacity;opacity:0}.tn-popup__mask--show[data-v-ef46d0a4]{opacity:1}',""]),t.exports=e},"47c3":function(t,e,i){"use strict";var o=i("a547"),n=i.n(o);n.a},"590f":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(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.config.status||"store"==t.type?i("v-uni-view",{staticClass:"demand-special-offer"},["home"==t.type?i("v-uni-view",{staticClass:"category"},[i("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-x":!0}},t._l(t.cateList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"cate-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.handleChoose(e,o)}}},[i("v-uni-text",{class:{active:t.chooseIndex===o}},[t._v(t._s(e.title))]),i("v-uni-text",{staticStyle:{"font-size":"20rpx",color:"#808080"}},[t._v(t._s(e.info))]),t.chooseIndex===o?i("v-uni-view",{staticClass:"select"}):t._e()],1)})),1)],1):t._e(),i("v-uni-view",{staticClass:"goods-list"},[i("v-uni-view",{staticStyle:{"margin-right":"5px",flex:"1"}},t._l(t.goodsListLeft,(function(e,o){return i("v-uni-view",{key:e.id,staticClass:"item-goods tn-shadow"},[i("v-uni-view",{staticClass:"item-goods__desc",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.toDetail(i,e)}}},[e.video_url?i("v-uni-view",{staticStyle:{width:"100%",height:"auto",position:"relative"}},[i("v-uni-video",{staticStyle:{width:"100%",height:"420rpx","border-radius":"10rpx"},attrs:{"object-fit":"cover",id:"myVideo"+o,src:e.video_url},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.videoErrorCallback.apply(void 0,arguments)}}}),i("v-uni-view",{staticStyle:{width:"370rpx",height:"520rpx",position:"absolute",top:"0rpx",left:"0rpx"}}),i("v-uni-view",{staticClass:"flex alcenter center",staticStyle:{position:"absolute",left:"10rpx",bottom:"10rpx",padding:"4rpx 10rpx","border-radius":"20rpx","background-color":"rgba(1, 1, 1, .4)","z-index":"1"}},[i("v-uni-image",{staticStyle:{width:"20rpx",height:"20rpx"},attrs:{mode:"aspectFill",src:t.icon[1]}}),i("v-uni-text",{staticStyle:{"margin-left":"6rpx","font-size":"22rpx",color:"white","font-weight":"400"}},[t._v(t._s(t._f("distanceValue")(e.distance)))])],1)],1):i("v-uni-view",{staticClass:"item-goods__img",staticStyle:{position:"relative"}},[i("img",{attrs:{src:e.imgs[0]}}),i("v-uni-view",{staticClass:"flex alcenter center",staticStyle:{position:"absolute",left:"10rpx",bottom:"10rpx",padding:"4rpx 10rpx","border-radius":"20rpx","background-color":"rgba(1, 1, 1, .4)","z-index":"1"}},[i("v-uni-image",{staticStyle:{width:"20rpx",height:"20rpx"},attrs:{mode:"aspectFill",src:t.icon[1]}}),i("v-uni-text",{staticStyle:{"margin-left":"6rpx","font-size":"22rpx",color:"white","font-weight":"400"}},[t._v(t._s(t._f("distanceValue")(e.distance)))])],1)],1),i("v-uni-view",{staticClass:"item-goods__content flex flex-column flex-1",staticStyle:{width:"300rpx",overflow:"hidden","text-overflow":"ellipsis"}},[i("span",{staticClass:"span-26 item-goods__title"},[t._v(t._s(e.details))])]),e.member?i("v-uni-view",{staticStyle:{display:"flex","align-items":"center",padding:"10rpx"}},[i("v-uni-image",{staticStyle:{width:"36rpx",height:"36rpx","border-radius":"50%"},attrs:{src:e.member.avatar,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"tn-margin-left-sm"},[i("v-uni-view",{staticClass:"ft10"},[i("v-uni-text",[t._v(t._s(e.member.nickname))])],1)],1)],1):t._e()],1)],1)})),1),i("v-uni-view",{staticStyle:{"margin-left":"5px",flex:"1"}},t._l(t.goodsListRight,(function(e,o){return i("v-uni-view",{key:e.id,staticClass:"item-goods tn-shadow"},[i("v-uni-view",{staticClass:"item-goods__desc",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.toDetail(i,e)}}},[e.video_url?i("v-uni-view",{staticStyle:{width:"100%",height:"auto",position:"relative"}},[i("v-uni-video",{staticStyle:{width:"100%",height:"420rpx","border-radius":"10rpx"},attrs:{"object-fit":"cover",id:"myVideo"+o,src:e.video_url},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.videoErrorCallback.apply(void 0,arguments)}}}),i("v-uni-view",{staticStyle:{width:"370rpx",height:"520rpx",position:"absolute",top:"0rpx",left:"0rpx"}}),i("v-uni-view",{staticClass:"flex alcenter center",staticStyle:{position:"absolute",left:"10rpx",bottom:"10rpx",padding:"4rpx 10rpx","border-radius":"20rpx","background-color":"rgba(1, 1, 1, .4)","z-index":"1"}},[i("v-uni-image",{staticStyle:{width:"20rpx",height:"20rpx"},attrs:{mode:"aspectFill",src:t.icon[1]}}),i("v-uni-text",{staticStyle:{"margin-left":"6rpx","font-size":"22rpx",color:"white","font-weight":"400"}},[t._v(t._s(t._f("distanceValue")(e.distance)))])],1)],1):i("v-uni-view",{staticClass:"item-goods__img",staticStyle:{position:"relative"}},[i("img",{attrs:{src:e.imgs[0]}}),i("v-uni-view",{staticClass:"flex alcenter center",staticStyle:{position:"absolute",left:"10rpx",bottom:"10rpx",padding:"4rpx 10rpx","border-radius":"20rpx","background-color":"rgba(1, 1, 1, .4)","z-index":"1"}},[i("v-uni-image",{staticStyle:{width:"20rpx",height:"20rpx"},attrs:{mode:"aspectFill",src:t.icon[1]}}),i("v-uni-text",{staticStyle:{"margin-left":"6rpx","font-size":"22rpx",color:"white","font-weight":"400"}},[t._v(t._s(t._f("distanceValue")(e.distance)))])],1)],1),i("v-uni-view",{staticClass:"item-goods__content flex flex-column flex-1",staticStyle:{width:"300rpx",overflow:"hidden","text-overflow":"ellipsis"}},[i("span",{staticClass:"span-26 item-goods__title"},[t._v(t._s(e.details))])]),e.member?i("v-uni-view",{staticStyle:{display:"flex","align-items":"center",padding:"10rpx"}},[i("v-uni-image",{staticStyle:{width:"36rpx",height:"36rpx","border-radius":"50%"},attrs:{src:e.member.avatar,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"tn-margin-left-sm"},[i("v-uni-view",{staticClass:"ft10"},[i("v-uni-text",[t._v(t._s(e.member.nickname))])],1)],1)],1):t._e()],1)],1)})),1)],1),0==t.goodsList.length?[i("empty",{attrs:{icon:"empty-data",tips:"暂无数据"}})]:t._e()],2):t._e()},n=[]},"5c2e":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("4626"),i("5ac7");var o={options:{virtualHost:!0},props:{icon:{type:String,default:""},tips:{type:String,default:""}},computed:{isImage:function(){return!!this.icon&&this.icon.includes("http")}}};e.default=o},6197: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(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.visibleSync?i("v-uni-view",{staticClass:"tn-popup-class tn-popup",style:[t.customStyle,t.popupStyle,{zIndex:t.elZIndex-1}],attrs:{"hover-stop-propagation":!0}},[i("v-uni-view",{staticClass:"tn-popup__mask",class:[{"tn-popup__mask--show":t.showPopup&&t.mask}],style:{zIndex:t.elZIndex-2},attrs:{"hover-stop-propagation":!0},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),function(){}.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.maskClick.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"tn-popup__content",class:["center"!==t.mode?t.backgroundColorClass:"",t.safeAreaInsetBottom?"tn-safe-area-inset-bottom":"","tn-popup--"+t.mode,t.showPopup?"tn-popup__content--visible":"",t.zoom&&"center"===t.mode?"tn-popup__content__center--animation-zoom":""],style:[t.contentStyle],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:[function(e){arguments[0]=e=t.$handleEvent(e),t.modeCenterClose.apply(void 0,arguments)},function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}]}},["center"===t.mode?i("v-uni-view",{staticClass:"tn-popup__content__center_box",class:[t.backgroundColorClass],style:[t.centerStyle],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}}},[t.closeBtn?i("v-uni-view",{staticClass:"tn-popup__close",class:["tn-icon-"+t.closeBtnIcon,"tn-popup__close--"+t.closeBtnPosition],style:[t.closeBtnStyle,{zIndex:t.elZIndex}],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),i("v-uni-scroll-view",{staticClass:"tn-popup__content__scroll-view"},[t._t("default")],2)],1):i("v-uni-scroll-view",{staticClass:"tn-popup__content__scroll-view",attrs:{"scroll-y":!0}},[t._t("default")],2),"center"!==t.mode&&t.closeBtn?i("v-uni-view",{staticClass:"tn-popup__close",class:["tn-popup__close--"+t.closeBtnPosition],style:{zIndex:t.elZIndex},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[i("v-uni-view",{class:["tn-icon-"+t.closeBtnIcon],style:[t.closeBtnStyle]})],1):t._e()],1)],1):t._e()},n=[]},6457:function(t,e,i){"use strict";i.r(e);var o=i("ad82"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},"65c2":function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("c223");var n=o(i("74ff")),a={mixins:[n.default],name:"tn-popup",props:{value:{type:Boolean,default:!1},mode:{type:String,default:"left"},mask:{type:Boolean,default:!0},length:{type:[Number,String],default:"auto"},width:{type:String,default:""},height:{type:String,default:""},zoom:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseable:{type:Boolean,default:!0},customStyle:{type:Object,default:function(){return{}}},borderRadius:{type:Number,default:0},zIndex:{type:Number,default:0},closeBtn:{type:Boolean,default:!1},boxBg:{type:String,default:"#ffffff"},closeBtnIcon:{type:String,default:"close"},closeBtnPosition:{type:String,default:"top-right"},closeIconColor:{type:String,default:"#AAAAAA"},closeIconSize:{type:Number,default:30},negativeTop:{type:Number,default:0},marginTop:{type:Number,default:0},popup:{type:Boolean,default:!0}},computed:{popupStyle:function(){var t={};return"top"!==this.mode&&"left"!==this.mode&&"right"!==this.mode||!this.marginTop||(t.marginTop=this.$tn.string.getLengthUnitValue(this.marginTop,"px")),t},contentStyle:function(){var t={};if("left"===this.mode||"right"===this.mode?t={width:this.width?this.$tn.string.getLengthUnitValue(this.width):this.$tn.string.getLengthUnitValue(this.length),height:"100%",transform:"translate3D(".concat("left"===this.mode?"-100%":"100%",", 0px, 0px)")}:"top"!==this.mode&&"bottom"!==this.mode||(t={width:"100%",height:this.height?this.$tn.string.getLengthUnitValue(this.height):this.$tn.string.getLengthUnitValue(this.length),transform:"translate3D(0px, ".concat("top"===this.mode?"-100%":"100%",", 0px)")}),t.zIndex=this.elZIndex,this.borderRadius){switch(this.mode){case"left":t.borderRadius="0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0");break;case"top":t.borderRadius="0 0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx");break;case"right":t.borderRadius="".concat(this.borderRadius,"rpx 0 0 ").concat(this.borderRadius,"rpx");break;case"bottom":t.borderRadius="".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0 0");break}t.overflow="hidden"}return this.backgroundColorStyle&&"center"!==this.mode&&(t.backgroundColor=this.backgroundColorStyle),t},centerStyle:function(){var t={};return t.width=this.width?this.$tn.string.getLengthUnitValue(this.width):this.$tn.string.getLengthUnitValue(this.length),t.height=this.height?this.$tn.string.getLengthUnitValue(this.height):"auto",t.zIndex=this.elZIndex,t.backgroundColor=this.boxBg,this.negativeTop&&(t.marginTop="-".concat(this.$tn.string.getLengthUnitValue(this.negativeTop))),this.borderRadius&&(t.borderRadius="".concat(this.borderRadius,"rpx"),t.overflow="hidden"),this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),t},closeBtnStyle:function(){var t={};return this.closeIconColor&&(t.color=this.closeIconColor),this.closeIconSize&&(t.fontSize=this.closeIconSize+"rpx"),t},elZIndex:function(){return this.zIndex?this.zIndex:this.$tn.zIndex.popup}},data:function(){return{timer:null,visibleSync:!1,showPopup:!1,closeFromInner:!1}},watch:{value:function(t){if(t){if(this.visibleSync)return void(this.visibleSync=!1);this.open()}else this.closeFromInner||this.close();this.closeFromInner=!1}},mounted:function(){this.value&&this.open()},methods:{maskClick:function(){this.maskCloseable&&this.close()},open:function(){this.change("visibleSync","showPopup",!0)},close:function(){this.closeFromInner=!0,this.change("showPopup","visibleSync",!1)},modeCenterClose:function(){"center"==this.mode&&this.maskCloseable&&this.close()},change:function(t,e,i){var o=this;!0===this.popup&&this.$emit("input",i),this[t]=i,this.timer=i?setTimeout((function(){o[e]=i,o.$emit(i?"open":"close"),clearTimeout(o.timer)}),10):setTimeout((function(){o[e]=i,o.$emit(i?"open":"close"),clearTimeout(o.timer)}),250)}}};e.default=a},"74ff":function(t,e,i){i("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},7527:function(t,e,i){"use strict";i.r(e);var o=i("b7e2"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},"78b4":function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.searchRecordApi=e.postTuangouquanReceive=e.postTuangouquanList=e.postTuangouquanDetail=e.postStoreCouponApi=e.postStoreCollectApi=e.myStoreApi=e.joinStoreVipApi=e.isShopBusinessApi=e.getStoreVipInfoApi=e.getStoreTangshiGoodsListApi=e.getStoreShoppingCartDataApi=e.getStoreInfoApi=e.getStoreGoodsListApi=e.getStoreCommentListApi=e.getOrderDinnerStoreListApi=e.getOrderDinnerStoreIdApi=e.getMyCommentListApi=e.getIsBrandStoreApi=e.getFaviateBrandStoreListApi=e.getCodeInfoByCodeApi=e.getClassChild=e.getCategorys=e.getBrandStoreListApi=e.getBrandMasterApi=e.getBrandGoodsApi=e.getBrandApi=e.delCommentApi=void 0,i("5c47"),i("af8f");var n=o(i("7653"));e.getStoreInfoApi=function(t){var e=t.sid,i=t.table_id,o=t.storeCode,a=t.brand;return n.default.get("api/user.store.store/index",{sid:e,table_id:i,storeCode:o,brand:a})};e.getStoreVipInfoApi=function(t){return n.default.get("api/user.store.store/storeVip",t)};e.joinStoreVipApi=function(t){return n.default.post("api/user.store.store/joinStoreVip",t)};e.getStoreGoodsListApi=function(t){var e=t.sid,i=t.search,o=t.orderId,a=t.cid,s=t.child_id,r=t.page,c=t.is_api_shop,l=t.storeCode,d=t.api_brand,u=t.order_type,f=t.encrypted_data,p=t.write_off_type,v=t.is_promotion,h=t.goodsC,g=t.chrid,m=t.is_takeout,_=t.version,b=t.psize,x=t.slide,y=t.offset;return n.default.get("api/user.store.goods/goods",{sid:e,child_id:s||"",search:i||"",order_id:o||"",cid:a||"",page:r||1,is_api_shop:c||"",storeCode:l||"",api_brand:d||"",order_type:u||"",encrypted_data:f||"",write_off_type:p||"",is_promotion:v||-1,goodsC:h,chrid:g||"",is_takeout:m>=0?m:-1,version:_||"",psize:b||"",slide:x||"",offset:y||""})};e.getStoreShoppingCartDataApi=function(t){var e=t.sid,i=t.tableId,o=t.encrypted_data,a=t.is_takeout;return n.default.get("api/user.store.goods/cartIndex",{sid:e,table_id:i||"",encrypted_data:o||"",is_takeout:a>=0?a:-1})};e.getStoreCommentListApi=function(t){var e=t.sid,i=t.type,o=t.note,a=t.page,s=t.pSize;return n.default.get("api/user.store.store/comment",{sid:e,type:i||"",note:o||0,page:a,psize:s})};e.getMyCommentListApi=function(t){var e=t.page,i=t.pSize;return n.default.get("api/user.store.store/myComment",{page:e,psize:i})};e.delCommentApi=function(t){return n.default.post("api/user.store.store/delComment",t)};e.getStoreTangshiGoodsListApi=function(t){var e=t.sid,i=t.search,o=t.tableId,a=t.clear;return n.default.get("api/user.store.table/goods",{sid:e,search:i||"",table_id:o,clear:a||!1})};e.postStoreCouponApi=function(t){var e=t.sid;return n.default.post("api/user.channel.coupon/receive",{sid:e})};e.postStoreCollectApi=function(t){var e=t.sid,i=t.type,o=t.storeCode;return n.default.get("api/user.member.favorite/operate",{sid:e,type:i,storeCode:o})};e.getCategorys=function(t){var e=t.template_id;return n.default.get("api/user.store.goods/plugin_categorys",{template_id:e})};e.getClassChild=function(t){var e=t.cid;return n.default.get("api/user.store.goods/plugin_goods",{cid:e})};e.getOrderDinnerStoreListApi=function(t){return n.default.get("api/user.store.store/getOrderDinnerStoreList",t)};e.getOrderDinnerStoreIdApi=function(t){return n.default.get("api/user.store.store/getOrderDinnerStoreId",t)};e.getBrandApi=function(t){return n.default.get("api/user.store.store/getBrand?sid="+t)};e.getCodeInfoByCodeApi=function(t){return n.default.get("api/user.store.store/getCodeInfo?code="+t,{})};e.searchRecordApi=function(t){return n.default.post("api/user.tuangouquan.write_off/searchRecords",t)};e.getIsBrandStoreApi=function(t){return n.default.get("api/user.store.store/getIsBrandStore?sid="+t)};e.getBrandStoreListApi=function(t){return n.default.post("api/user.store.store/getBrandStoreList",t)};e.getFaviateBrandStoreListApi=function(t){return n.default.get("api/user.store.store/getFaviateBrandStoreList",t)};e.getBrandMasterApi=function(t){return n.default.get("api/user.appointment.index/index?sid="+t)};e.getBrandGoodsApi=function(t){return n.default.get("api/user.appointment.index/goods?sid="+t)};e.myStoreApi=function(){return n.default.get("api/user.store.store/myStore")};e.postTuangouquanList=function(t){return n.default.post("api/user.tuangouquan.index/index",t)};e.postTuangouquanReceive=function(t){return n.default.post("api/user.tuangouquan.index/receive",t)};e.postTuangouquanDetail=function(t){return n.default.post("api/user.tuangouquan.index/detail",t)};e.isShopBusinessApi=function(t){return n.default.get("api/user.store.store/isShopBusiness?sid="+t)}},"84ae":function(t,e,i){"use strict";i.r(e);var o=i("65c2"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},"8bc0":function(t,e,i){"use strict";i.r(e);var o=i("346c"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},"93b5":function(t,e,i){var o=i("e321");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("442f5114",o,!0,{sourceMap:!1,shadowMode:!1})},"9cae":function(t,e,i){var o=i("cc53");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("74ddcd86",o,!0,{sourceMap:!1,shadowMode:!1})},a547:function(t,e,i){var o=i("45b3");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("02fcab87",o,!0,{sourceMap:!1,shadowMode:!1})},a71b:function(t,e,i){"use strict";i.r(e);var o=i("ec01"),n=i("dc1c");for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);i("de1c");var s=i("828b"),r=Object(s["a"])(n["default"],o["b"],o["c"],!1,null,"6cf0f295",null,!1,o["a"],void 0);e["default"]=r.exports},ad82:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("c223"),i("fd3c");var n=o(i("dc1f")),a=o(i("c433")),s=o(i("a71b")),r=i("815c"),c=i("78b4"),l={props:{sid:{type:[String,Number],default:""},package_custom_title:{type:String,default:"包装"},taste_custom_title:{type:String,default:"口味"},final_custom_title:{type:String,default:"配送满意度"}},components:{ImageGroup:a.default,Empty:s.default},mixins:[n.default],data:function(){return{storeInfo:{storeScore:5,goodsScore:5,packageScore:5,deliveryScore:100},comment:[],currentPage:1,pageSize:20,isLoadAll:!1}},watch:{sid:{handler:function(t){t&&this.getStoreCommentData()},immediate:!0}},methods:{getStoreCommentData:function(){var t=this;(0,c.getStoreCommentListApi)({sid:this.sid,page:this.currentPage,pSize:this.pageSize}).then((function(e){var i=e.stat,o=e.comments;t.storeInfo.storeScore=Number(i.score)||5,t.storeInfo.goodsScore=Number(i.goods_quality)||5,t.storeInfo.packageScore=Number(i.delivery_service)||5,t.storeInfo.deliveryScore=Number(i.delivery_service_percent)||100,t.comment=t.comment.concat(o.map((function(t){return{id:t.id,avatar:t.avatar,nickname:t.mobile,scores:t.scores.length,addtime:t.addtime,note:(null===t||void 0===t?void 0:t.note)||"",images:(null===t||void 0===t?void 0:t.thumbs)||[],reply:{reply:(null===t||void 0===t?void 0:t.reply)||"",time:(null===t||void 0===t?void 0:t.replytime)||""}}}))),o.length<t.pageSize&&(t.isLoadAll=!0)})).catch((function(e){console.error("[showcase-appraise]获取店铺评论列表失败",e),t.storeInfo.storeScore=5,t.storeInfo.goodsScore=5,t.storeInfo.packageScore=5,t.storeInfo.deliveryScore=100,t.comment=[],t.isLoadAll=!0}))},loadMoreCommentData:function(){this.isLoadAll||(this.currentPage++,this.getStoreCommentData())},formatPrice:r.formatPrice}};e.default=l},afa5:function(t,e,i){var o=i("e9ea");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("2626d00e",o,!0,{sourceMap:!1,shadowMode:!1})},b7e2:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("b7c7"));i("64aa"),i("bd06"),i("c223"),i("bf0f"),i("2797"),i("aa9c"),i("fd3c");var a=o(i("a71b")),s=i("d55c"),r=i("419c"),c=i("e0a2"),l={components:{Empty:a.default},props:{config:{type:[Array,Object],default:function(){return[]}},type:{type:String,default:function(){return"home"}},storeId:{type:[Number,String],default:function(){return""}}},data:function(){return{icon:[c.staticUrl+"api/images/20250804/images_175429650526671.png",c.staticUrl+"api/images/20250807/images_175453599632707.png"],cateList:[],allGoods:[],goodsList:[],chooseIndex:0,goodsListLeft:[],goodsListRight:[],currentPage:1,currentIds:null,isLoading:!1,isLoadStoreAll:!1}},filters:{distanceValue:function(t){if(!t)return"";if("string"===typeof t){if(-1!=t.findIndex("m"))return t;t=Number(t)}return t<1e3?(t=t.toFixed(1),"".concat(t,"m")):(t=(t/1e3).toFixed(1),"".concat(t,"km"))}},created:function(){this.init()},methods:{loadMoreGoodsData:function(){var t=this;if(!this.isLoading&&!this.isLoadStoreAll)if(this.isLoading=!0,"store"==this.type){var e={page:this.currentPage+1,page_size:15,store_id:this.storeId};(0,s.getStoreTieListApi)(e).then((function(e){if(e.list.length>0){t.currentPage++;var i=[].concat((0,n.default)(t.goodsList),(0,n.default)(e.list)),o=[],a=[];e.list.forEach((function(e,i){var n=t.goodsListLeft.length+o.length,s=t.goodsListRight.length+a.length;n<=s?o.push(e):a.push(e)})),t.goodsListLeft=[].concat((0,n.default)(t.goodsListLeft),o),t.goodsListRight=[].concat((0,n.default)(t.goodsListRight),a),t.goodsList=i}else t.isLoadStoreAll=!0;t.isLoading=!1})).catch((function(){t.isLoading=!1}))}else{var i={page:this.currentPage+1,page_size:15};(0,s.tieStoreListApi)(i).then((function(e){if(e.list.length>0){t.currentPage++;var i=[].concat((0,n.default)(t.goodsList),(0,n.default)(e.list)),o=[],a=[];e.list.forEach((function(e,i){var n=t.goodsListLeft.length+o.length,s=t.goodsListRight.length+a.length;n<=s?o.push(e):a.push(e)})),t.goodsListLeft=[].concat((0,n.default)(t.goodsListLeft),o),t.goodsListRight=[].concat((0,n.default)(t.goodsListRight),a),t.goodsList=i}else t.isLoadStoreAll=!0;t.isLoading=!1})).catch((function(){t.isLoading=!1}))}},init:function(){var t=this;"store"!==this.type&&(this.cateList=[{id:-1,title:"推荐",info:"精品推荐"}].concat((0,n.default)(this.config.cateList)),this.config.cateList.forEach((function(e){var i;(i=t.allGoods).push.apply(i,(0,n.default)(e.goods))}))),this.getGoodsList()},toDetail:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.navPage)("/circle-page/detail/index?id=".concat(e.id))},getGoodsList:function(t){var e=this;if("store"==this.type){console.log("optionsData.sid",this.storeId);var i={page:1,page_size:15,store_id:this.storeId};(0,s.getStoreTieListApi)(i).then((function(t){var i=(0,n.default)(t.list);e.goodsList=t.list;var o=[],a=[];t.list.forEach((function(t,e){o.length<=a.length?o.push(t):a.push(t)})),e.goodsListLeft=[].concat(o),e.goodsListRight=[].concat(a),e.goodsList=i,console.log("this.goodsListLeft11",e.goodsListLeft.length,e.goodsListRight.length)}))}else{(0,s.tieStoreListApi)({page:1,page_size:15}).then((function(t){var i=(0,n.default)(t.list);e.goodsList=t.list;var o=[],a=[];t.list.forEach((function(t,e){o.length<=a.length?o.push(t):a.push(t)})),e.goodsListLeft=[].concat(o),e.goodsListRight=[].concat(a),e.goodsList=i,console.log("this.goodsListLeft11",e.goodsListLeft.length,e.goodsListRight.length)}))}},handleChoose:function(t,e){this.goodsList=[],this.currentPage=1;var i=t.goods,o=void 0===i?null:i;this.currentIds=o?o.map((function(t){return t.id})).join(","):null,this.getGoodsList(o||this.allGoods),this.chooseIndex=e}}};e.default=l},bc32:function(t,e,i){var o=i("e377");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("d2bf4e7c",o,!0,{sourceMap:!1,shadowMode:!1})},c54e:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return o}));var o={tnRate:i("0c2b").default,tnLazyLoad:i("b461").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"store-appraise tn-safe-area-inset-bottom--lg"},[i("v-uni-view",{staticClass:"store-info tn-flex-row-center"},[i("v-uni-view",{staticClass:"store-score tn-color-orange tn-margin-right"},[t._v(t._s(t.storeInfo.storeScore))]),i("v-uni-view",{staticClass:"store-score-star tn-margin-right"},[i("v-uni-view",{staticClass:"title tn-color-gray"},[t._v("商家评分")]),i("v-uni-view",{staticClass:"value tn-margin-top-xs"},[i("tn-rate",{attrs:{disabled:!0,size:36,"active-color":t.themeBgColor,gutter:0},model:{value:t.storeInfo.storeScore,callback:function(e){t.$set(t.storeInfo,"storeScore",e)},expression:"storeInfo.storeScore"}})],1)],1),i("v-uni-view",{staticClass:"taste-score tn-margin-right"},[i("v-uni-view",{staticClass:"title tn-color-gray"},[t._v(t._s(t.taste_custom_title))]),i("v-uni-view",{staticClass:"value tn-margin-top-xs"},[t._v(t._s(t.formatPrice(t.storeInfo.goodsScore,1)))])],1),i("v-uni-view",{staticClass:"package-score tn-margin-right-lg"},[i("v-uni-view",{staticClass:"title tn-color-gray"},[t._v(t._s(t.package_custom_title))]),i("v-uni-view",{staticClass:"value tn-margin-top-xs"},[t._v(t._s(t.formatPrice(t.storeInfo.packageScore,1)))])],1),i("v-uni-view",{staticClass:"delivery-score tn-margin-left-lg"},[i("v-uni-view",{staticClass:"title tn-color-gray"},[t._v(t._s(t.final_custom_title))]),i("v-uni-view",{staticClass:"value tn-margin-top-xs"},[t._v(t._s(t.storeInfo.deliveryScore)+"%")])],1)],1),i("v-uni-view",{staticClass:"comments"},[t.comment.length>0?t._l(t.comment,(function(e,o){return i("v-uni-view",{key:o,staticClass:"comment tn-border-bottom tn-border-gray--light"},[i("v-uni-view",{staticClass:"top-info tn-flex"},[i("v-uni-view",{staticClass:"avatar tn-border-gray--light"},[i("tn-lazy-load",{attrs:{src:e.avatar}})],1),i("v-uni-view",{staticClass:"info tn-margin-left-xs"},[i("v-uni-view",{staticClass:"nickname"},[t._v(t._s(e.nickname))]),i("v-uni-view",{staticClass:"addtime tn-color-gray"},[t._v(t._s(e.addtime))])],1)],1),i("v-uni-view",{staticClass:"comment-score tn-margin-top-xs"},[i("tn-rate",{attrs:{disabled:!0,size:28,"active-color":t.themeBgColor,gutter:0},model:{value:e.scores,callback:function(i){t.$set(e,"scores",i)},expression:"item.scores"}})],1),e.note?i("v-uni-view",{staticClass:"comment-content tn-margin-top"},[t._v(t._s(e.note))]):t._e(),e.images&&e.images.length>0?i("v-uni-view",{staticClass:"comment-images tn-margin-top-xs"},[i("image-group",{attrs:{data:e.images}})],1):t._e(),e.reply.reply?i("v-uni-view",{staticClass:"comment-reply tn-bg-gray--light tn-color-gray--dark"},[i("v-uni-view",{staticClass:"reply-title"},[t._v("商家回复("+t._s(e.reply.time)+")")]),i("v-uni-view",{staticClass:"reply-content"},[t._v(t._s(e.reply.reply))])],1):t._e()],1)})):t._e(),0===t.comment.length&&t.isLoadAll?i("empty",{attrs:{tips:"暂无评论",icon:"empty-message"}}):t._e()],2)],1)},a=[]},cbd2:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return o}));var o={tnRate:i("0c2b").default,tnTabs:i("37fc").default,tnModal:i("c9f6").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("custom-page",{attrs:{customNavbar:!0,enableSafeAreaBottom:!1,transparentNavbar:t.tranShow,"wrapper-bg-color":"#FFCA28"}},[i("v-uni-view",{staticClass:"centent_box"},[i("v-uni-view",{staticClass:"tn-padding top-info"},[i("v-uni-view",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("v-uni-text",{staticClass:"tn-text-bold tn-text-xxl"},[t._v(t._s(t.storeInfo.title))]),i("v-uni-view",{staticStyle:{display:"flex","flex-direction":"row","align-items":"center"}},[i("v-uni-view",{staticStyle:{"margin-right":"10rpx","font-size":"40rpx"}},[t.is_favorite?i("v-uni-text",{staticClass:"tn-icon-star-fill tn-color-yellow theme-star-avct",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.favorite.apply(void 0,arguments)}}}):i("v-uni-text",{staticClass:"tn-icon-star",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.favorite.apply(void 0,arguments)}}})],1)],1)],1),t.comment.stat?i("v-uni-view",{staticClass:"score"},[t.comment.stat.score?i("v-uni-view",[i("tn-rate",{attrs:{activeColor:"#ff791a",allowHalf:!0,disabled:!0},model:{value:t.comment.stat.score,callback:function(e){t.$set(t.comment.stat,"score",e)},expression:"comment.stat.score"}}),i("span",[t._v(t._s(t.comment.stat.score))])],1):t._e(),t.comment.stat.all?i("v-uni-view",[i("v-uni-text",[t._v(t._s(t.comment.stat.all)+"人评")]),i("v-uni-text",{staticClass:"tn-icon-right"})],1):t._e()],1):t._e(),t.storeInfo.content?i("v-uni-view",{staticClass:"tab"},[t._v(t._s(t.storeInfo.content)),i("v-uni-text",{staticClass:"tn-icon-right"})],1):t._e(),i("v-uni-view",{staticClass:"tn-margin-top-sm"},[i("v-uni-scroll-view",{staticStyle:{"white-space":"nowrap"},attrs:{"scroll-x":"true"}},t._l(t.storeInfo.thumbs,(function(t,e){return i("v-uni-view",{key:e,staticClass:"scroll_item"},[i("v-uni-image",{staticClass:"img",attrs:{src:t.image,mode:"aspectFill"}})],1)})),1)],1),i("v-uni-view",{staticClass:"tips-info tn-border-bottom"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-view",{},[t.storeInfo.is_rest?i("v-uni-text",{staticClass:"tn-color-blue tn-margin-right-xs"},[t._v("休息中")]):i("v-uni-text",{staticClass:"tn-color-blue tn-margin-right-xs"},[t._v("营业中")]),i("v-uni-text",[t._v(t._s(t.storeInfo.business_hours_cn))])],1),t.storeInfo.activity&&t.storeInfo.activity.labels?i("v-uni-view",{staticClass:"tags tn-margin-top-xs"},t._l(t.storeInfo.activity.labels,(function(e,o){return i("v-uni-view",{key:o,staticClass:"tag-item"},[t._v(t._s(e.title))])})),1):t._e()],1),i("v-uni-view",{staticClass:"right",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCallPhone(t.storeInfo.telephone)}}},[i("v-uni-image",{staticClass:"icon",attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/%E7%BB%84%2013503@2x.png",mode:"widthFix"}}),i("v-uni-text",[t._v("电话")])],1)],1),i("v-uni-view",{staticClass:"address tn-padding-top-xs tn-padding-bottom-xs",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openMap(t.storeInfo.location_x,t.storeInfo.location_y,t.storeInfo.address,t.storeInfo.title)}}},[i("v-uni-view",{staticClass:"tn-text-bold"},[t._v(t._s(t.storeInfo.address)),i("v-uni-text",{staticClass:"tn-icon-right"})],1),i("v-uni-image",{staticStyle:{width:"45rpx",height:"45rpx"},attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/%E8%92%99%E7%89%88%E7%BB%84%20126@2x.png",mode:"widthFix"}})],1)],1),i("v-uni-view",{staticStyle:{width:"100%"}},[i("tn-tabs",{attrs:{list:t.listTab,gutter:33,bold:!0,current:t.storeTab,name:"title",activeColor:"#000",inactiveColor:"gray",activeItemStyle:{fontSize:"34rpx"},inactiveItemStyle:{fontSize:"32rpx"},bardiyStyle:{backgroundColor:"#FFCA28",borderRadius:"20rpx",width:"30%"},diyIfBar:!0,showBar:!1},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeStore.apply(void 0,arguments)}}})],1),t.renderTemplateFlag[3==t.store_type?1:0]?i("v-uni-view",{staticClass:"tn-padding-sm list-container",style:[t.currentNavStyle(3==t.store_type?1:0)]},[i("v-uni-view",{staticClass:"tn-text-bold tn-text-xl tn-color-black tn-margin-bottom",staticStyle:{position:"relative",display:"flex"}}),t.spellrices&&0!==t.spellrices.length?i("v-uni-view",{},t._l(t.spellrices,(function(e,o){return i("v-uni-view",{key:e.goods_id,staticClass:"tn-padding-sm tn-bg-white tn-margin-bottom-sm tn-flex-row",staticStyle:{"border-radius":"15rpx"}},[i("v-uni-view",{staticClass:"list-img"},[i("v-uni-image",{attrs:{src:e.thumb,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"tn-flex-column tn-flex-2"},[i("v-uni-view",{staticStyle:{display:"flex","flex-direction":"column"}},[i("v-uni-view",{staticClass:"tn-text-bold tn-text-lg"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"tn-text-sm tn-color-white",staticStyle:{float:"left","margin-right":"10rpx","margin-top":"8rpx"}},[i("v-uni-text",{staticClass:"sp-bg-line-red tn-color tn-radius",staticStyle:{padding:"2rpx 6rpx"}},[t._v("超值补贴")])],1)],1),i("v-uni-view",{staticClass:"tn-color-gray tn-flex-row tn-margin-top-xs"}),i("v-uni-view",{staticClass:"tn-flex-row tn-margin-top-xs"},[i("v-uni-view",{staticClass:"tn-flex-column"},[i("v-uni-view",{staticClass:"tn-full-width tn-flex-column tn-flex-1 list-justify"},[i("v-uni-view",{staticClass:"tn-color-red"},[t._v(t._s(t.CurrencyUnit)),i("v-uni-text",{staticClass:"tn-text-bold tn-text-xl"},[t._v(t._s(e.price))]),i("v-uni-text",{staticClass:"tn-text-sm tn-color-gray tn-text-line-through oldPrice",staticStyle:{"margin-left":"10rpx"}},[t._v(t._s(t.CurrencyUnit)+t._s(e.old_price))])],1)],1)],1),i("v-uni-view",{staticClass:"tn-flex-1 list-justify",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.navPage("/store-page/tuangouquan/detail?sid="+t.sid+"&id="+e.id)}}},[i("v-uni-view",{staticClass:"tn-cool-bg-16 tn-shadow-blur tn-color-white tn-text-center list-nowpay"},[i("v-uni-view",{staticClass:"tn-text-sm"},[t._v("已拼"+t._s(e.sailed)+"份")]),i("v-uni-view",{staticClass:"tn-text-lg"},[t._v("马上抢")])],1)],1)],1)],1)],1)})),1):i("v-uni-view",{staticClass:"flex column alcenter center",staticStyle:{padding:"30rpx 0 100rpx 0","background-color":"white","border-radius":"20rpx"}},[i("v-uni-image",{staticStyle:{width:"526rpx",height:"322rpx"},attrs:{src:t.icon[0],mode:""}}),i("v-uni-view",{staticClass:"ft16 ftw400 mt10",staticStyle:{color:"#666666"}},[t._v("暂无套餐")])],1)],1):t._e(),t.renderTemplateFlag[2]?i("v-uni-view",{staticClass:"tn-bg-white",style:[t.currentNavStyle(2)]},[i("Appraise",{ref:"appraiseRef",attrs:{sid:t.sid,package_custom_title:t.storeInfo.data.comment_titles.package_custom_title,taste_custom_title:t.storeInfo.data.comment_titles.taste_custom_title,final_custom_title:t.storeInfo.data.comment_titles.final_custom_title}})],1):t._e(),t.renderTemplateFlag[3==t.store_type?0:1]?i("v-uni-view",{staticClass:"store-info tn-border-top tn-border-gray--light",staticStyle:{padding:"20rpx"},style:[t.currentNavStyle(3==t.store_type?0:1)]},[i("goods-waterfall",{ref:"storeNote",attrs:{storeId:t.sid,type:"store","is-show-bottom":!0}})],1):t._e()],1)],1),i("tn-modal",{attrs:{custom:!0},model:{value:t.showCallPhoneDialog,callback:function(e){t.showCallPhoneDialog=e},expression:"showCallPhoneDialog"}},[i("v-uni-view",{staticClass:"mobile_content"},[i("v-uni-view",{staticClass:"text"},[t._v("是否拨打电话 "+t._s(t.mobile)),i("v-uni-text",{staticClass:"copy_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copyText(t.mobile)}}},[t._v("复制")])],1),i("v-uni-view",{staticClass:"btns"},[i("v-uni-view",{staticClass:"btn1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCallPhoneDialog=!1}}},[t._v("取消")]),i("v-uni-view",{staticClass:"btn2",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.callPhone(t.mobile)}}},[t._v("拨打")])],1)],1)],1)],1)},a=[]},cc53:function(t,e,i){var o=i("c86c");e=o(!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 */.empty[data-v-6cf0f295]{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:%?60?% %?0?%}.empty__icon .icon-icon[data-v-6cf0f295]{font-size:%?180?%;line-height:1;color:#f3f2f7}.empty__icon .icon-image[data-v-6cf0f295]{width:%?180?%;height:%?180?%}.empty__tips[data-v-6cf0f295]{color:#aaa;font-size:%?32?%;margin-top:%?20?%}.empty__custom[data-v-6cf0f295]{margin-top:%?24?%}',""]),t.exports=e},dc1c:function(t,e,i){"use strict";i.r(e);var o=i("5c2e"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},dc1f:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},computed:{themeBgColor:function(){return this.$isTheme()?"--theme-general-color":this.vuex_themeBgColor||""},themeOpacityBgColor:function(){return this.vuex_themeBgColor?"".concat(this.vuex_themeBgColor,"7F"):""},themeFontColor:function(){return this.$isTheme()?"--general-color-text":this.vuex_themeFontColor||""},themeBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.backgroundColor=this.vuex_themeBgColor),this.vuex_themeFontColor&&(t.color=this.vuex_themeFontColor),this.$isTheme()&&(t.backgroundColor="var(--theme-general-color)",t.color="--general-color-text"),t},themeLineBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.border="1rpx solid ".concat(this.vuex_themeBgColor),t.color=this.vuex_themeBgColor),this.$isTheme()&&(t.border="1rpx solid var(--theme-general-color)",t.color="var(--theme-general-color)"),t}}}},de1c:function(t,e,i){"use strict";var o=i("9cae"),n=i.n(o);n.a},deab:function(t,e,i){var o=i("eb9d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("d2a1db50",o,!0,{sourceMap:!1,shadowMode:!1})},e321:function(t,e,i){var o=i("c86c");e=o(!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 */.sp-bg-line-red[data-v-5175547c]{background:linear-gradient(180deg,#fa4d08,#fa1e0e)}.centent_box[data-v-5175547c]{min-height:100vh;background-color:#f6f6f6;border-radius:%?20?% %?20?% 0 0}.centent_box .top-info[data-v-5175547c]{background-color:#fff;border-radius:%?20?%;padding-bottom:0}.centent_box .top-info .pay-bill-btn[data-v-5175547c]{background:#ffd161;border-radius:%?10?%;width:%?120?%;text-align:center;align-items:center;justify-content:center;display:flex;color:#000;height:%?60?%}.centent_box .top-info .score[data-v-5175547c]{margin-top:%?17?%;display:flex;align-items:center;justify-content:space-between}.centent_box .top-info .tab[data-v-5175547c]{margin-top:%?12?%;display:inline-block;background-color:#fff6e7;border-radius:%?10?%;padding:0 %?5?%;color:#9f7c2d}.centent_box .top-info .scroll_item[data-v-5175547c]{display:inline-block;margin-right:%?20?%}.centent_box .top-info .scroll_item .img[data-v-5175547c]{width:%?250?%;height:%?200?%;border-radius:%?12?%;background-color:#000}.centent_box .top-info .tips-info[data-v-5175547c]{display:flex;justify-content:space-between;align-items:center;padding-bottom:%?20?%}.centent_box .top-info .tips-info .left[data-v-5175547c]{flex:1}.centent_box .top-info .tips-info .left .tags .tag-item[data-v-5175547c]{display:inline-block;background-color:#f4f4f6;padding:0 %?5?%;margin-right:%?10?%;border-radius:%?8?% %?8?% %?8?% %?0?%;color:#666;font-size:%?22?%}.centent_box .top-info .tips-info .right[data-v-5175547c]{display:flex;align-items:center;justify-content:center;flex-direction:column}.centent_box .top-info .tips-info .right .icon[data-v-5175547c]{width:%?50?%;height:%?50?%}.centent_box .top-info .address[data-v-5175547c]{display:flex;align-items:center;justify-content:space-between}.centent_box .list-container[data-v-5175547c]{background-color:#f6f6f6}.centent_box .list-container .acts[data-v-5175547c]{position:absolute;bottom:%?-15?%;left:%?10?%;width:%?60?%;height:%?10?%;border-radius:%?40?%;background-color:#ffd161}.centent_box .list-container .list-img[data-v-5175547c]{width:%?200?%;height:%?200?%;margin-right:%?10?%}.centent_box .list-container .list-img uni-image[data-v-5175547c]{width:100%;height:100%;border-radius:%?15?%}.centent_box .list-container .list-star[data-v-5175547c]{width:%?220?%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.centent_box .list-container .list-time[data-v-5175547c]{margin-left:auto}.centent_box .list-container .list-tips[data-v-5175547c]{background-color:rgba(243,123,29,.2);border-radius:%?10?%;color:#f37b1d;padding:0 %?10?%;margin-right:%?5?%}.centent_box .list-container .list-justify[data-v-5175547c]{justify-content:flex-end}.centent_box .list-container .list-nowpay[data-v-5175547c]{border-radius:%?15?%;background:linear-gradient(118deg,#fc5908,#fc0d0c);padding:%?10?% %?30?%}.mobile_content[data-v-5175547c]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:%?20?%}.mobile_content .text[data-v-5175547c]{font-size:%?30?%}.mobile_content .copy_btn[data-v-5175547c]{margin-top:%?20?%;font-size:%?30?%;color:#ffd161;margin-left:%?20?%}.mobile_content .btns[data-v-5175547c]{margin-top:%?40?%;display:flex;justify-content:space-between;width:100%}.mobile_content .btns .btn1[data-v-5175547c]{width:40%;height:%?80?%;background-color:#ccc;border-radius:%?15?%;display:flex;justify-content:center;align-items:center;color:#000;font-size:%?30?%}.mobile_content .btns .btn2[data-v-5175547c]{width:40%;height:%?80?%;background-color:#ffd161;border-radius:%?15?%;display:flex;justify-content:center;align-items:center;color:#000;font-size:%?30?%}.oldPrice[data-v-5175547c]{text-decoration:line-through}',""]),t.exports=e},e377:function(t,e,i){var o=i("c86c");e=o(!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 */.category[data-v-78d8cb21]{margin-top:%?20?%;padding:%?10?% 0}.scroll-view[data-v-78d8cb21]{white-space:nowrap}.cate-item[data-v-78d8cb21]{font-size:%?36?%;display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;margin-right:%?30?%;color:#666;position:relative}.active[data-v-78d8cb21]{font-weight:700;color:#000;z-index:11}.select[data-v-78d8cb21]{position:absolute;left:0;bottom:%?26?%;width:100%;height:%?16?%;border-radius:88px;background:linear-gradient(90deg,var(--theme-general-color),#fff)}.goods-list[data-v-78d8cb21]{display:flex}.item-goods[data-v-78d8cb21]{background-color:#fff;border-radius:8px;color:#333;flex-grow:1;margin:10px 0}.item-goods__desc[data-v-78d8cb21]{flex:1}.item-goods__img[data-v-78d8cb21]{width:100%;position:relative;padding-top:100%;border-radius:5px;overflow:hidden}.item-goods__content[data-v-78d8cb21]{position:relative;padding:5px}.item-goods__title[data-v-78d8cb21]{line-height:1.6;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.item-goods .icon[data-v-78d8cb21]{background-color:#f25370;color:#fff;border-radius:50%;border:1px solid #fff;display:inline-flex;position:absolute;right:5px;top:0}.item-goods__img img[data-v-78d8cb21]{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}',""]),t.exports=e},e9ea:function(t,e,i){var o=i("c86c");e=o(!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-rate[data-v-687316f3]{display:inline-flex;align-items:center;margin:0;padding:0}.tn-rate__wrap__icon[data-v-687316f3]{position:relative;box-sizing:border-box}.tn-rate__wrap__icon--half[data-v-687316f3]{position:absolute;top:0;left:0;display:inline-block;overflow:hidden;width:50%}',""]),t.exports=e},eb9d:function(t,e,i){var o=i("c86c");e=o(!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 */.store-appraise[data-v-2e98347d]{position:relative;width:100%\n /* 商家评分信息 start */\n /* 商家评分信息 end */\n /* 用户评论 start */\n /* 用户评论 end */}.store-appraise .store-info[data-v-2e98347d]{padding:%?40?% %?30?%;border-bottom:%?16?% solid #e6e6e6}.store-appraise .store-info .store-score[data-v-2e98347d]{font-size:%?54?%;font-weight:500}.store-appraise .store-info .taste-score .value[data-v-2e98347d], .store-appraise .store-info .package-score .value[data-v-2e98347d], .store-appraise .store-info .delivery-score .value[data-v-2e98347d]{font-size:%?32?%;font-weight:700}.store-appraise .store-info .delivery-score[data-v-2e98347d]{position:relative}.store-appraise .store-info .delivery-score[data-v-2e98347d]::before{content:"";position:absolute;left:%?-40?%;top:50%;width:%?1?%;height:80%;background-color:#e6e6e6;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.store-appraise .comments[data-v-2e98347d]{padding:%?30?%}.store-appraise .comments .comment[data-v-2e98347d]{padding:%?30?% %?0?%}.store-appraise .comments .comment .avatar[data-v-2e98347d]{width:%?80?%;height:%?80?%;border-radius:50%}.store-appraise .comments .comment .info[data-v-2e98347d]{margin-top:%?6?%}.store-appraise .comments .comment .info .nickname[data-v-2e98347d]{font-weight:500}.store-appraise .comments .comment .info .addtime[data-v-2e98347d]{font-size:%?24?%}.store-appraise .comments .comment .comment-images[data-v-2e98347d]{width:100%;position:relative}.store-appraise .comments .comment .comment-reply[data-v-2e98347d]{margin-top:%?20?%;width:100%;border-radius:%?15?%;padding:%?20?%;font-size:%?24?%}.store-appraise .comments .comment .comment-reply .reply-title[data-v-2e98347d]{font-weight:700}.store-appraise .comments .comment .comment-reply .reply-content[data-v-2e98347d]{margin-top:%?4?%}',""]),t.exports=e},ec01: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(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"empty"},[i("v-uni-view",{staticClass:"empty__icon"},[t.isImage?i("v-uni-view",{staticClass:"icon-image"},[i("v-uni-image",{staticClass:"image",attrs:{src:t.icon,mode:"aspectFill"}})],1):t._e(),i("v-uni-view",{staticClass:"icon-icon"},[i("v-uni-text",{class:["tn-icon-"+t.icon]})],1)],1),t.tips?i("v-uni-view",{staticClass:"empty__tips"},[t._v(t._s(t.tips))]):t._e(),i("v-uni-view",{staticClass:"empty__custom"},[t._t("default")],2)],1)},n=[]},f2b9: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(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"tn-rate-class tn-rate",attrs:{id:t.elId},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)}}},t._l(t.count,(function(e,o){return i("v-uni-view",{key:o,staticClass:"tn-rate__wrap",class:[t.elClass]},[i("v-uni-view",{staticClass:"tn-rate__wrap__icon",class:["tn-icon-"+((t.allowHalf&&t.halfIcon?t.activeIndex>o+1:t.activeIndex>o)?t.elActionIcon:t.elInactionIcon)],style:[t.iconStyle(o)],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click(o+1,e)}}},[t.showHalfIcon(o)?i("v-uni-view",{staticClass:"tn-rate__wrap__icon--half",class:["tn-icon-"+t.elActionIcon],style:[t.halfIconStyle]}):t._e()],1)],1)})),1)},n=[]},ff5a:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var o={name:"tn-rate",props:{value:{type:Number,default:0},count:{type:Number,default:5},minCount:{type:Number,default:0},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},size:{type:Number,default:32},activeIcon:{type:String,default:"star-fill"},inactiveIcon:{type:String,default:"star"},activeColor:{type:String,default:"#01BEFF"},inactiveColor:{type:String,default:"#AAAAAA"},gutter:{type:Number,default:10},colors:{type:Array,default:function(){return[]}},icons:{type:Array,default:function(){return[]}}},computed:{showHalfIcon:function(t){var e=this;return function(t){return e.allowHalf&&Math.ceil(e.activeIndex)===t+1&&e.halfIcon}},elActionIcon:function(){var t=this.icons.length;if(t&&t<=this.count){var e=Math.round(Math.ceil(this.activeIndex)/Math.round(this.count/t));return e<1?this.icons[0]:e>t?this.icons[t-1]:this.icons[e-1]}return this.activeIcon},elInactionIcon:function(){var t=this.icons.length;if(t&&t<=this.count){var e=Math.round(Math.ceil(this.activeIndex)/Math.round(this.count/t));return e<1?this.icons[0]:e>t?this.icons[t-1]:this.icons[e-1]}return this.inactiveIcon},elActionColor:function(){var t=this.colors.length;if(t&&t<=this.count){var e=Math.round(Math.ceil(this.activeIndex)/Math.round(this.count/t));return e<1?this.colors[0]:e>t?this.colors[t-1]:this.colors[e-1]}return this.activeColor},iconStyle:function(){var t=this;return function(e){var i={};return i.fontSize=t.$tn.string.getLengthUnitValue(t.size),i.padding="0 ".concat(t.$tn.string.getLengthUnitValue(t.gutter/2)),t.allowHalf&&t.halfIcon?i.color=t.activeIndex>e+1?t.elActionColor:t.inactiveColor:i.color=t.activeIndex>e?t.elActionColor:t.inactiveColor,i}},halfIconStyle:function(){var t={};return t.fontSize=this.$tn.string.getLengthUnitValue(this.size),t.padding="0 ".concat(this.$tn.string.getLengthUnitValue(this.gutter/2)),t.color=this.elActionColor,t}},data:function(){return{elId:this.$tn.uuid(),elClass:this.$tn.uuid(),starBoxLeft:0,activeIndex:this.value,starWidth:0,starWidthArr:[],halfIcon:!1}},watch:{value:function(t){this.activeIndex=t,this.allowHalf&&t%1===.5?this.halfIcon=!0:this.halfIcon=!1},size:function(){var t=this;this.$nextTick((function(){t.getElRectById(),t.getElRectByClass()}))}},mounted:function(){this.getElRectById(),this.getElRectByClass(),console.log("aaaaaaa",this.value),this.halfIcon=this.value%1===.5},methods:{getElRectById:function(){var t=this;this._tGetRect("#"+this.elId).then((function(e){t.starBoxLeft=e.left}))},getElRectByClass:function(){var t=this;this._tGetRect("."+this.elClass).then((function(e){t.starWidth=e.width;for(var i=0;i<t.count;i++)t.starWidthArr[i]=(i+1)*t.starWidth}))},touchMove:function(t){if(!this.disabled&&t.changedTouches[0]){var e=t.changedTouches[0].pageX,i=e-this.starBoxLeft;i<=0&&(this.activeIndex=0);var o=Math.ceil(i/this.starWidth);if(this.allowHalf){var n=this.starWidthArr[o-1]-this.starWidth/2;i<n?(this.halfIcon=!0,o-=.5):this.halfIcon=!1}this.activeIndex=o>this.count?this.count:o,this.activeIndex<this.minCount&&(this.activeIndex=this.minCount),this.emitEvent()}},click:function(t,e){if(!this.disabled){if(this.allowHalf){if(!e.changedTouches[0])return;var i=e.changedTouches[0].pageX,o=i-this.starBoxLeft,n=this.starWidthArr[t-1]-this.starWidth/2;this.halfIcon=o<n}1==t?this.allowHalf&&this.allowHalf?.5===this.activeIndex&&this.halfIcon||1===this.activeIndex&&!this.halfIcon?this.activeIndex=0:this.activeIndex=this.halfIcon?.5:1:1==this.activeIndex?this.activeIndex=0:this.activeIndex=1:this.activeIndex=this.allowHalf&&this.halfIcon?t-.5:t,this.activeIndex<this.minCount&&(this.activeIndex=this.minCount),this.emitEvent()}},emitEvent:function(){this.$emit("change",this.activeIndex),this.$emit("input",this.activeIndex)}}};e.default=o}}]);
|