1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["store-page-groupBuyingFood-groupBuyingFood"],{"00d7":function(t,e,n){"use strict";n.r(e);var i=n("ff5a"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"0c2b":function(t,e,n){"use strict";n.r(e);var i=n("f2b9"),o=n("00d7");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("42dd");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"687316f3",null,!1,i["a"],void 0);e["default"]=r.exports},"0f04":function(t,e,n){"use strict";n.r(e);var i=n("c54e"),o=n("6457");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("4314");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"2e98347d",null,!1,i["a"],void 0);e["default"]=r.exports},"1fbf":function(t,e,n){"use strict";n.r(e);var i=n("6197"),o=n("84ae");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("47c3");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"ef46d0a4",null,!1,i["a"],void 0);e["default"]=r.exports},"22ac":function(t,e,n){"use strict";n.r(e);var i=n("8d2c"),o=n("8bc0");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("f1ea");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"5aa9cbbe",null,!1,i["a"],void 0);e["default"]=r.exports},"28a9":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getDatas=void 0;var o=i(n("7653"));e.getDatas=function(t){return o.default.get("api/user.store.store/tuangouquan",t)}},"346c":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var o=n("419c"),a=n("28a9"),s=n("78b4"),r=i(n("0f04")),c={components:{Appraise:r.default},data:function(){return{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}},filters:{getDistance:function(t){return t>1e3?(t/1e3).toFixed(2)+"km":t+"m"}},onLoad:function(t){t.sid&&(this.sid=t.sid)},onPageScroll:function(t){var e=t.scrollTop;e>=0&&(this.tranShow=e<=30)},mounted:function(){this.getList()},methods:{showCallPhone:function(t){var e=this;console.log("phone",t),this.mobile=t,this.$nextTick((function(){e.showCallPhoneDialog=!0}))},openMap:function(t,e,n,i){console.log(t,e),uni.openLocation({latitude:Number(t),longitude:Number(e),name:i,address:n,success:function(t){console.log("success",t)},fail:function(t){console.log(t)}})},getList:function(){var t=this;(0,a.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,o.navPage)(t)},favorite:function(){var t=this;this.is_favorite=!this.is_favorite,console.log(this.is_favorite?1:2),(0,s.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,o.navPage)("/store-page/product-showcase/template-1?sid="+t)},navPage:o.navPage,navBack:o.navBack}};e.default=c},"42dd":function(t,e,n){"use strict";var i=n("afa5"),o=n.n(i);o.a},4314:function(t,e,n){"use strict";var i=n("deab"),o=n.n(i);o.a},"45b3":function(t,e,n){var i=n("c86c");e=i(!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,n){"use strict";var i=n("a547"),o=n.n(i);o.a},"5c2e":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("4626"),n("5ac7");var i={options:{virtualHost:!0},props:{icon:{type:String,default:""},tips:{type:String,default:""}},computed:{isImage:function(){return!!this.icon&&this.icon.includes("http")}}};e.default=i},6197:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visibleSync?n("v-uni-view",{staticClass:"tn-popup-class tn-popup",style:[t.customStyle,t.popupStyle,{zIndex:t.elZIndex-1}],attrs:{"hover-stop-propagation":!0}},[n("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)}}}),n("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?n("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?n("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(),n("v-uni-scroll-view",{staticClass:"tn-popup__content__scroll-view"},[t._t("default")],2)],1):n("v-uni-scroll-view",{staticClass:"tn-popup__content__scroll-view",attrs:{"scroll-y":!0}},[t._t("default")],2),"center"!==t.mode&&t.closeBtn?n("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)}}},[n("v-uni-view",{class:["tn-icon-"+t.closeBtnIcon],style:[t.closeBtnStyle]})],1):t._e()],1)],1):t._e()},o=[]},6457:function(t,e,n){"use strict";n.r(e);var i=n("ad82"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"65c2":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa"),n("c223");var o=i(n("74ff")),a={mixins:[o.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,n){var i=this;!0===this.popup&&this.$emit("input",n),this[t]=n,this.timer=n?setTimeout((function(){i[e]=n,i.$emit(n?"open":"close"),clearTimeout(i.timer)}),10):setTimeout((function(){i[e]=n,i.$emit(n?"open":"close"),clearTimeout(i.timer)}),250)}}};e.default=a},"74ff":function(t,e,n){n("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:{}}},"78b4":function(t,e,n){"use strict";n("6a54");var i=n("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,n("5c47"),n("af8f");var o=i(n("7653"));e.getStoreInfoApi=function(t){var e=t.sid,n=t.table_id,i=t.storeCode,a=t.brand;return o.default.get("api/user.store.store/index",{sid:e,table_id:n,storeCode:i,brand:a})};e.getStoreVipInfoApi=function(t){return o.default.get("api/user.store.store/storeVip",t)};e.joinStoreVipApi=function(t){return o.default.post("api/user.store.store/joinStoreVip",t)};e.getStoreGoodsListApi=function(t){var e=t.sid,n=t.search,i=t.orderId,a=t.cid,s=t.child_id,r=t.page,c=t.is_api_shop,l=t.storeCode,u=t.api_brand,d=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,b=t.version,_=t.psize,y=t.slide,x=t.offset;return o.default.get("api/user.store.goods/goods",{sid:e,child_id:s||"",search:n||"",order_id:i||"",cid:a||"",page:r||1,is_api_shop:c||"",storeCode:l||"",api_brand:u||"",order_type:d||"",encrypted_data:f||"",write_off_type:p||"",is_promotion:v||-1,goodsC:h,chrid:g||"",is_takeout:m>=0?m:-1,version:b||"",psize:_||"",slide:y||"",offset:x||""})};e.getStoreShoppingCartDataApi=function(t){var e=t.sid,n=t.tableId,i=t.encrypted_data,a=t.is_takeout;return o.default.get("api/user.store.goods/cartIndex",{sid:e,table_id:n||"",encrypted_data:i||"",is_takeout:a>=0?a:-1})};e.getStoreCommentListApi=function(t){var e=t.sid,n=t.type,i=t.note,a=t.page,s=t.pSize;return o.default.get("api/user.store.store/comment",{sid:e,type:n||"",note:i||0,page:a,psize:s})};e.getMyCommentListApi=function(t){var e=t.page,n=t.pSize;return o.default.get("api/user.store.store/myComment",{page:e,psize:n})};e.delCommentApi=function(t){return o.default.post("api/user.store.store/delComment",t)};e.getStoreTangshiGoodsListApi=function(t){var e=t.sid,n=t.search,i=t.tableId,a=t.clear;return o.default.get("api/user.store.table/goods",{sid:e,search:n||"",table_id:i,clear:a||!1})};e.postStoreCouponApi=function(t){var e=t.sid;return o.default.post("api/user.channel.coupon/receive",{sid:e})};e.postStoreCollectApi=function(t){var e=t.sid,n=t.type,i=t.storeCode;return o.default.get("api/user.member.favorite/operate",{sid:e,type:n,storeCode:i})};e.getCategorys=function(t){var e=t.template_id;return o.default.get("api/user.store.goods/plugin_categorys",{template_id:e})};e.getClassChild=function(t){var e=t.cid;return o.default.get("api/user.store.goods/plugin_goods",{cid:e})};e.getOrderDinnerStoreListApi=function(t){return o.default.get("api/user.store.store/getOrderDinnerStoreList",t)};e.getOrderDinnerStoreIdApi=function(t){return o.default.get("api/user.store.store/getOrderDinnerStoreId",t)};e.getBrandApi=function(t){return o.default.get("api/user.store.store/getBrand?sid="+t)};e.getCodeInfoByCodeApi=function(t){return o.default.get("api/user.store.store/getCodeInfo?code="+t,{})};e.searchRecordApi=function(t){return o.default.post("api/user.tuangouquan.write_off/searchRecords",t)};e.getIsBrandStoreApi=function(t){return o.default.get("api/user.store.store/getIsBrandStore?sid="+t)};e.getBrandStoreListApi=function(t){return o.default.post("api/user.store.store/getBrandStoreList",t)};e.getFaviateBrandStoreListApi=function(t){return o.default.get("api/user.store.store/getFaviateBrandStoreList",t)};e.getBrandMasterApi=function(t){return o.default.get("api/user.appointment.index/index?sid="+t)};e.getBrandGoodsApi=function(t){return o.default.get("api/user.appointment.index/goods?sid="+t)};e.myStoreApi=function(){return o.default.get("api/user.store.store/myStore")};e.postTuangouquanList=function(t){return o.default.post("api/user.tuangouquan.index/index",t)};e.postTuangouquanReceive=function(t){return o.default.post("api/user.tuangouquan.index/receive",t)};e.postTuangouquanDetail=function(t){return o.default.post("api/user.tuangouquan.index/detail",t)};e.isShopBusinessApi=function(t){return o.default.get("api/user.store.store/isShopBusiness?sid="+t)}},"84ae":function(t,e,n){"use strict";n.r(e);var i=n("65c2"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"8bc0":function(t,e,n){"use strict";n.r(e);var i=n("346c"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"8d2c":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={tnRate:n("0c2b").default,tnModal:n("c9f6").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("custom-page",{attrs:{customNavbar:!0,transparentNavbar:t.tranShow,leftSlot:!0,navbarBack:!1,navbarBgColor:"#fff",wrapperBgColor:"#f2bf42"},scopedSlots:t._u([{key:"left",fn:function(){return[n("v-uni-view",{staticClass:"tn-flex tn-flex-center"},[n("v-uni-text",{staticClass:"tn-icon-left tn-margin-right-sm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navBack()}}}),n("v-uni-text",[t._v(t._s(t.storeInfo.title))])],1)]},proxy:!0}])},[n("v-uni-view",{staticClass:"centent_box",staticStyle:{"margin-top":"20px"}},[n("v-uni-view",{staticClass:"tn-padding top-info"},[n("v-uni-view",{staticStyle:{display:"flex","justify-content":"space-between"}},[n("v-uni-text",{staticClass:"tn-text-bold tn-text-xxl"},[t._v(t._s(t.storeInfo.title))]),n("v-uni-view",{staticStyle:{display:"flex","flex-direction":"row","align-items":"center"}},[n("v-uni-view",{staticStyle:{"margin-right":"10rpx","font-size":"40rpx"}},[t.is_favorite?n("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)}}}):n("v-uni-text",{staticClass:"tn-icon-star",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.favorite.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"pay-bill-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toPayBillPage.apply(void 0,arguments)}}},[t._v("当面付")])],1)],1),t.comment.stat?n("v-uni-view",{staticClass:"score"},[t.comment.stat.score?n("v-uni-view",[n("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"}}),n("span",[t._v(t._s(t.comment.stat.score))])],1):t._e(),t.comment.stat.all?n("v-uni-view",[n("v-uni-text",[t._v(t._s(t.comment.stat.all)+"人评")]),n("v-uni-text",{staticClass:"tn-icon-right"})],1):t._e()],1):t._e(),n("v-uni-view",{staticClass:"tab"},[t._v(t._s(t.storeInfo.content)),n("v-uni-text",{staticClass:"tn-icon-right"})],1),n("v-uni-view",{staticClass:"tn-margin-top-sm"},[n("v-uni-scroll-view",{staticStyle:{"white-space":"nowrap"},attrs:{"scroll-x":"true"}},t._l(t.storeInfo.thumbs,(function(t,e){return n("v-uni-view",{key:e,staticClass:"scroll_item"},[n("v-uni-image",{staticClass:"img",attrs:{src:t.image,mode:"aspectFill"}})],1)})),1)],1),n("v-uni-view",{staticClass:"tips-info tn-border-bottom"},[n("v-uni-view",{staticClass:"left"},[n("v-uni-view",{},[t.storeInfo.is_rest?n("v-uni-text",{staticClass:"tn-color-blue tn-margin-right-xs"},[t._v("休息中")]):n("v-uni-text",{staticClass:"tn-color-blue tn-margin-right-xs"},[t._v("营业中")]),n("v-uni-text",[t._v(t._s(t.storeInfo.business_hours_cn))])],1),t.storeInfo.activity&&t.storeInfo.activity.labels?n("v-uni-view",{staticClass:"tags tn-margin-top-xs"},t._l(t.storeInfo.activity.labels,(function(e,i){return n("v-uni-view",{key:i,staticClass:"tag-item"},[t._v(t._s(e.title))])})),1):t._e()],1),n("v-uni-view",{staticClass:"right",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCallPhone(t.storeInfo.telephone)}}},[n("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"}}),n("v-uni-text",[t._v("电话")])],1)],1),n("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)}}},[n("v-uni-view",{staticClass:"tn-text-bold"},[t._v(t._s(t.storeInfo.address)),n("v-uni-text",{staticClass:"tn-icon-right"})],1),n("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),n("v-uni-view",{staticClass:"tn-padding-sm list-container"},[n("v-uni-view",{staticClass:"tn-text-bold tn-text-xl tn-color-black tn-margin-bottom",staticStyle:{position:"relative",display:"flex"}},[n("v-uni-view",{},[n("v-uni-text",[t._v("团购套餐")]),n("span",{staticClass:"acts"})],1),2!=t.storeInfo.delivery_type?n("v-uni-view",{staticClass:"tn-margin-left",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navStore(t.sid)}}},[n("v-uni-text",[t._v("外卖点餐")])],1):t._e()],1),t._l(t.spellrices,(function(e,i){return n("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"}},[n("v-uni-view",{staticClass:"list-img"},[n("v-uni-image",{attrs:{src:e.thumb,mode:"aspectFill"}})],1),n("v-uni-view",{staticClass:"tn-flex-column tn-flex-2"},[n("v-uni-view",{staticStyle:{display:"flex","flex-direction":"column"}},[n("v-uni-view",{staticClass:"tn-text-bold tn-text-lg"},[t._v(t._s(e.title))]),n("v-uni-view",{staticClass:"tn-text-sm tn-color-white",staticStyle:{float:"left","margin-right":"10rpx","margin-top":"8rpx"}},[n("v-uni-text",{staticClass:"sp-bg-line-red tn-color tn-radius",staticStyle:{padding:"2rpx 6rpx"}},[t._v("超值补贴")])],1)],1),n("v-uni-view",{staticClass:"tn-color-gray tn-flex-row tn-margin-top-xs"}),n("v-uni-view",{staticClass:"tn-flex-row tn-margin-top-xs"},[n("v-uni-view",{staticClass:"tn-flex-column"},[n("v-uni-view",{staticClass:"tn-full-width tn-flex-column tn-flex-1 list-justify"},[n("v-uni-view",{staticClass:"tn-color-red"},[t._v(t._s(t.CurrencyUnit)),n("v-uni-text",{staticClass:"tn-text-bold tn-text-xl"},[t._v(t._s(e.price))]),n("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),n("v-uni-view",{staticClass:"tn-flex-1 list-justify",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.navPage("/store-page/tuangouquan/detail?sid="+t.sid+"&id="+e.id)}}},[n("v-uni-view",{staticClass:"tn-cool-bg-16 tn-shadow-blur tn-color-white tn-text-center list-nowpay"},[n("v-uni-view",{staticClass:"tn-text-sm"},[t._v("已拼"+t._s(e.sailed)+"份")]),n("v-uni-view",{staticClass:"tn-text-lg"},[t._v("马上抢")])],1)],1)],1)],1)],1)})),n("v-uni-view",{staticClass:"tn-text-bold tn-margin-top tn-margin-bottom-sm tn-text-xl tn-color-black",staticStyle:{position:"relative"}},[n("v-uni-text",[t._v("商家评价")]),n("span",{staticClass:"acts"})],1)],2),n("v-uni-view",{staticClass:"tn-bg-white"},[n("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)],1)],1),n("tn-modal",{attrs:{custom:!0},model:{value:t.showCallPhoneDialog,callback:function(e){t.showCallPhoneDialog=e},expression:"showCallPhoneDialog"}},[n("v-uni-view",{staticClass:"mobile_content"},[n("v-uni-view",{staticClass:"text"},[t._v("是否拨打电话 "+t._s(t.mobile)),n("v-uni-text",{staticClass:"copy_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copyText(t.mobile)}}},[t._v("复制")])],1),n("v-uni-view",{staticClass:"btns"},[n("v-uni-view",{staticClass:"btn1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCallPhoneDialog=!1}}},[t._v("取消")]),n("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=[]},"9cae":function(t,e,n){var i=n("cc53");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("74ddcd86",i,!0,{sourceMap:!1,shadowMode:!1})},a547:function(t,e,n){var i=n("45b3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("02fcab87",i,!0,{sourceMap:!1,shadowMode:!1})},a71b:function(t,e,n){"use strict";n.r(e);var i=n("ec01"),o=n("dc1c");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("de1c");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"6cf0f295",null,!1,i["a"],void 0);e["default"]=r.exports},ad82:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa"),n("c223"),n("fd3c");var o=i(n("dc1f")),a=i(n("c433")),s=i(n("a71b")),r=n("815c"),c=n("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:[o.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 n=e.stat,i=e.comments;t.storeInfo.storeScore=Number(n.score)||5,t.storeInfo.goodsScore=Number(n.goods_quality)||5,t.storeInfo.packageScore=Number(n.delivery_service)||5,t.storeInfo.deliveryScore=Number(n.delivery_service_percent)||100,t.comment=t.comment.concat(i.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)||""}}}))),i.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,n){var i=n("e9ea");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("2626d00e",i,!0,{sourceMap:!1,shadowMode:!1})},bba5:function(t,e,n){var i=n("d2da");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("4ec2a8d5",i,!0,{sourceMap:!1,shadowMode:!1})},c54e:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={tnRate:n("0c2b").default,tnLazyLoad:n("b461").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"store-appraise tn-safe-area-inset-bottom--lg"},[n("v-uni-view",{staticClass:"store-info tn-flex-row-center"},[n("v-uni-view",{staticClass:"store-score tn-color-orange tn-margin-right"},[t._v(t._s(t.storeInfo.storeScore))]),n("v-uni-view",{staticClass:"store-score-star tn-margin-right"},[n("v-uni-view",{staticClass:"title tn-color-gray"},[t._v("商家评分")]),n("v-uni-view",{staticClass:"value tn-margin-top-xs"},[n("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),n("v-uni-view",{staticClass:"taste-score tn-margin-right"},[n("v-uni-view",{staticClass:"title tn-color-gray"},[t._v(t._s(t.taste_custom_title))]),n("v-uni-view",{staticClass:"value tn-margin-top-xs"},[t._v(t._s(t.formatPrice(t.storeInfo.goodsScore,1)))])],1),n("v-uni-view",{staticClass:"package-score tn-margin-right-lg"},[n("v-uni-view",{staticClass:"title tn-color-gray"},[t._v(t._s(t.package_custom_title))]),n("v-uni-view",{staticClass:"value tn-margin-top-xs"},[t._v(t._s(t.formatPrice(t.storeInfo.packageScore,1)))])],1),n("v-uni-view",{staticClass:"delivery-score tn-margin-left-lg"},[n("v-uni-view",{staticClass:"title tn-color-gray"},[t._v(t._s(t.final_custom_title))]),n("v-uni-view",{staticClass:"value tn-margin-top-xs"},[t._v(t._s(t.storeInfo.deliveryScore)+"%")])],1)],1),n("v-uni-view",{staticClass:"comments"},[t.comment.length>0?t._l(t.comment,(function(e,i){return n("v-uni-view",{key:i,staticClass:"comment tn-border-bottom tn-border-gray--light"},[n("v-uni-view",{staticClass:"top-info tn-flex"},[n("v-uni-view",{staticClass:"avatar tn-border-gray--light"},[n("tn-lazy-load",{attrs:{src:e.avatar}})],1),n("v-uni-view",{staticClass:"info tn-margin-left-xs"},[n("v-uni-view",{staticClass:"nickname"},[t._v(t._s(e.nickname))]),n("v-uni-view",{staticClass:"addtime tn-color-gray"},[t._v(t._s(e.addtime))])],1)],1),n("v-uni-view",{staticClass:"comment-score tn-margin-top-xs"},[n("tn-rate",{attrs:{disabled:!0,size:28,"active-color":t.themeBgColor,gutter:0},model:{value:e.scores,callback:function(n){t.$set(e,"scores",n)},expression:"item.scores"}})],1),e.note?n("v-uni-view",{staticClass:"comment-content tn-margin-top"},[t._v(t._s(e.note))]):t._e(),e.images&&e.images.length>0?n("v-uni-view",{staticClass:"comment-images tn-margin-top-xs"},[n("image-group",{attrs:{data:e.images}})],1):t._e(),e.reply.reply?n("v-uni-view",{staticClass:"comment-reply tn-bg-gray--light tn-color-gray--dark"},[n("v-uni-view",{staticClass:"reply-title"},[t._v("商家回复("+t._s(e.reply.time)+")")]),n("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?n("empty",{attrs:{tips:"暂无评论",icon:"empty-message"}}):t._e()],2)],1)},a=[]},cc53:function(t,e,n){var i=n("c86c");e=i(!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},d2da:function(t,e,n){var i=n("c86c");e=i(!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-5aa9cbbe]{background:linear-gradient(180deg,#fa4d08,#fa1e0e)}.centent_box[data-v-5aa9cbbe]{background-color:#f6f6f6;border-radius:%?20?% %?20?% 0 0}.centent_box .top-info[data-v-5aa9cbbe]{background-color:#fff;border-radius:%?20?%;padding-bottom:0}.centent_box .top-info .pay-bill-btn[data-v-5aa9cbbe]{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-5aa9cbbe]{margin-top:%?17?%;display:flex;align-items:center;justify-content:space-between}.centent_box .top-info .tab[data-v-5aa9cbbe]{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-5aa9cbbe]{display:inline-block;margin-right:%?20?%}.centent_box .top-info .scroll_item .img[data-v-5aa9cbbe]{width:%?250?%;height:%?200?%;border-radius:%?12?%;background-color:#000}.centent_box .top-info .tips-info[data-v-5aa9cbbe]{display:flex;justify-content:space-between;align-items:center;padding-bottom:%?20?%}.centent_box .top-info .tips-info .left[data-v-5aa9cbbe]{flex:1}.centent_box .top-info .tips-info .left .tags .tag-item[data-v-5aa9cbbe]{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-5aa9cbbe]{display:flex;align-items:center;justify-content:center;flex-direction:column}.centent_box .top-info .tips-info .right .icon[data-v-5aa9cbbe]{width:%?50?%;height:%?50?%}.centent_box .top-info .address[data-v-5aa9cbbe]{display:flex;align-items:center;justify-content:space-between}.centent_box .list-container[data-v-5aa9cbbe]{background-color:#f6f6f6}.centent_box .list-container .acts[data-v-5aa9cbbe]{position:absolute;bottom:%?-15?%;left:%?10?%;width:%?60?%;height:%?10?%;border-radius:%?40?%;background-color:#ffd161}.centent_box .list-container .list-img[data-v-5aa9cbbe]{width:%?200?%;height:%?200?%;margin-right:%?10?%}.centent_box .list-container .list-img uni-image[data-v-5aa9cbbe]{width:100%;height:100%;border-radius:%?15?%}.centent_box .list-container .list-star[data-v-5aa9cbbe]{width:%?220?%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.centent_box .list-container .list-time[data-v-5aa9cbbe]{margin-left:auto}.centent_box .list-container .list-tips[data-v-5aa9cbbe]{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-5aa9cbbe]{justify-content:flex-end}.centent_box .list-container .list-nowpay[data-v-5aa9cbbe]{border-radius:%?15?%;background:linear-gradient(118deg,#fc5908,#fc0d0c);padding:%?10?% %?30?%}.mobile_content[data-v-5aa9cbbe]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:%?20?%}.mobile_content .text[data-v-5aa9cbbe]{font-size:%?30?%}.mobile_content .copy_btn[data-v-5aa9cbbe]{margin-top:%?20?%;font-size:%?30?%;color:#ffd161;margin-left:%?20?%}.mobile_content .btns[data-v-5aa9cbbe]{margin-top:%?40?%;display:flex;justify-content:space-between;width:100%}.mobile_content .btns .btn1[data-v-5aa9cbbe]{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-5aa9cbbe]{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-5aa9cbbe]{text-decoration:line-through}',""]),t.exports=e},dc1c:function(t,e,n){"use strict";n.r(e);var i=n("5c2e"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},dc1f:function(t,e,n){"use strict";n("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,n){"use strict";var i=n("9cae"),o=n.n(i);o.a},deab:function(t,e,n){var i=n("eb9d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("d2a1db50",i,!0,{sourceMap:!1,shadowMode:!1})},e9ea:function(t,e,n){var i=n("c86c");e=i(!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,n){var i=n("c86c");e=i(!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,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"empty"},[n("v-uni-view",{staticClass:"empty__icon"},[t.isImage?n("v-uni-view",{staticClass:"icon-image"},[n("v-uni-image",{staticClass:"image",attrs:{src:t.icon,mode:"aspectFill"}})],1):t._e(),n("v-uni-view",{staticClass:"icon-icon"},[n("v-uni-text",{class:["tn-icon-"+t.icon]})],1)],1),t.tips?n("v-uni-view",{staticClass:"empty__tips"},[t._v(t._s(t.tips))]):t._e(),n("v-uni-view",{staticClass:"empty__custom"},[t._t("default")],2)],1)},o=[]},f1ea:function(t,e,n){"use strict";var i=n("bba5"),o=n.n(i);o.a},f2b9:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("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,i){return n("v-uni-view",{key:i,staticClass:"tn-rate__wrap",class:[t.elClass]},[n("v-uni-view",{staticClass:"tn-rate__wrap__icon",class:["tn-icon-"+((t.allowHalf&&t.halfIcon?t.activeIndex>i+1:t.activeIndex>i)?t.elActionIcon:t.elInactionIcon)],style:[t.iconStyle(i)],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click(i+1,e)}}},[t.showHalfIcon(i)?n("v-uni-view",{staticClass:"tn-rate__wrap__icon--half",class:["tn-icon-"+t.elActionIcon],style:[t.halfIconStyle]}):t._e()],1)],1)})),1)},o=[]},ff5a:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var i={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 n={};return n.fontSize=t.$tn.string.getLengthUnitValue(t.size),n.padding="0 ".concat(t.$tn.string.getLengthUnitValue(t.gutter/2)),t.allowHalf&&t.halfIcon?n.color=t.activeIndex>e+1?t.elActionColor:t.inactiveColor:n.color=t.activeIndex>e?t.elActionColor:t.inactiveColor,n}},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 n=0;n<t.count;n++)t.starWidthArr[n]=(n+1)*t.starWidth}))},touchMove:function(t){if(!this.disabled&&t.changedTouches[0]){var e=t.changedTouches[0].pageX,n=e-this.starBoxLeft;n<=0&&(this.activeIndex=0);var i=Math.ceil(n/this.starWidth);if(this.allowHalf){var o=this.starWidthArr[i-1]-this.starWidth/2;n<o?(this.halfIcon=!0,i-=.5):this.halfIcon=!1}this.activeIndex=i>this.count?this.count:i,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 n=e.changedTouches[0].pageX,i=n-this.starBoxLeft,o=this.starWidthArr[t-1]-this.starWidth/2;this.halfIcon=i<o}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=i}}]);
|