UNPKG

vaneditor

Version:

``` 移动端ui框架统一用uView,css扩展语言用scss,全局数据管理vuex,统一样式主体风格颜色定义/src/uni.scss ```

1 lines 22 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cate-detail"],{"082f":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("28a5");var o=i(a("2a65")),n=i(a("d3ed")),s=i(a("f96a")),r=i(a("fed7")),d=i(a("5a0c")),l=i(a("a171")),c=i(a("7fe9")),f=i(a("f0ab")),u={data:function(){return{indicatorDots:!0,indicatorColor:"rgba(255, 255, 255, .9)",autoplay:!0,interval:2e3,duration:500,imgList:[],current:1,currentLength:0,id:"",detail:{bodyIntroduce:""},setMeal:[],cashCoupon:[],tagList:[],foodList:[],commentObj:{total:0,starLevel:5},collect:{collectionType:"30",productGroupType:"2003",collectionId:""}}},components:{uniIcons:f.default,uniRate:s.default,resItem:o.default,moreContent:l.default,commentList:c.default,collect:r.default},computed:{rank:function(){var t="AAAAA";return 1===this.detail.starType?"其他":t.substr(0,this.detail.starType)},address:function(){return this.detail.detailAddress?(0,n.default)(this.detail.detailAddress,38):""}},onLoad:function(t){this.collect.collectionId=this.id=t.id,this.queryData()},onShow:function(){},methods:{changeImg:function(t){this.current=t.detail.current+1},queryData:function(){var t=this;this.$ajax({method:"POST",url:"/weChat/foodBody/queryByBodyId",data:{id:this.id}}).then((function(e){t.detail=e.data,t.foodList=e.data.recommendFoodIds.split(","),t.detail.address=e.data.provinceName+" "+e.data.cityName+" "+e.data.districtName+" 详细地址:"+e.data.detailAddress,t.imgList=e.data.images.split(","),t.tagList=e.data.labelCodeVos?e.data.labelCodeVos:[],t.currentLength=t.imgList.length,t.$wxShare(e.data.bodyName,"",window.location.hash.split("#")[1],t.$getImg(e.data.cover)),e.data.list.map((function(e){e.validStartDate=e.validStartDate?(0,d.default)(e.validStartDate).format("M月DD日"):"",e.validEndDate=e.validEndDate?(0,d.default)(e.validEndDate).format("M月DD日"):"",e.effectTime=e.effectTime?(0,d.default)(e.effectTime).format("M月DD日"):"",e.effectEndTime=e.effectEndTime?(0,d.default)(e.effectEndTime).format("M月DD日"):"",2===e.foodType?t.setMeal.push(e):1===e.foodType&&t.cashCoupon.push(e)}))}))},tel:function(t){uni.makePhoneCall({phoneNumber:t})},jump:function(){uni.navigateTo({url:"/pages/common/images?image="+this.imgList})},showPosition:function(){this.detail.latitude&&this.detail.longitude&&this.$jweixin.openLocation({latitude:parseFloat(this.detail.latitude),longitude:parseFloat(this.detail.longitude),name:this.detail.bodyName,address:this.detail.address,scale:16,infoUrl:""})},toCommentList:function(){uni.navigateTo({url:"/pages/comment/list?bodyId=".concat(this.id,"&productId=")})},updateComments:function(t){this.commentObj.total=t.count,this.commentObj.starLevel=parseFloat(t.dataObj||0)}}};e.default=u},"08cf":function(t,e,a){var i=a("5560");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("4f06").default;o("05275969",i,!0,{sourceMap:!1,shadowMode:!1})},"287f":function(t,e,a){"use strict";a.r(e);var i=a("082f"),o=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=o.a},"2a65":function(t,e,a){"use strict";a.r(e);var i=a("d26b"),o=a("9524");for(var n in o)"default"!==n&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("a56b");var s=a("2877"),r=Object(s["a"])(o["default"],i["a"],i["b"],!1,null,"b6b2b8d0",null);e["default"]=r.exports},3414:function(t,e,a){"use strict";var i=a("72d6"),o=a.n(i);o.a},3483:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content-box"},[a("div",{class:t.show?"detail":"detail minHeight"},[a("u-parse",{attrs:{content:t.content}}),t.show?t._e():a("div",{staticClass:"mask"})],1),a("p",{staticClass:"more",on:{click:function(e){e=t.$handleEvent(e),t.showContent(e)}}},[t._v(t._s(t.show?t.height>300?"收起":"":"查看更多"))])])},o=[];a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return o}))},5246:function(t,e,a){"use strict";var i=a("76cd"),o=a.n(i);o.a},5560:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".info .detail-box-main .detail-box[data-v-b6b2b8d0]{position:relative;padding:%?20?% 0 %?20?% %?140?%;border-bottom:%?1?% solid #ededed;height:%?80?%}.info .detail-box-main .detail-box[data-v-b6b2b8d0]:last-child{border-bottom:0}.info uni-image[data-v-b6b2b8d0]{width:%?120?%;height:%?120?%;position:absolute;margin-right:20px;left:0;top:0}.info .set-meal-text[data-v-b6b2b8d0]{float:left}.info .set-meal-text .title[data-v-b6b2b8d0]{display:block;width:%?330?%;font-weight:600;font-size:%?30?%;line-height:%?42?%;color:#333;max-width:%?550?%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-bottom:0!important;margin-bottom:%?8?%}.info .set-meal-text .restrict[data-v-b6b2b8d0]{position:relative;font-size:%?26?%;color:#888;line-height:%?36?%;width:%?410?%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.info .price[data-v-b6b2b8d0]{float:right;height:%?86?%;margin-right:%?15?%;text-align:right}.info .price .discount[data-v-b6b2b8d0]{margin-top:%?22?%;font-size:%?24?%;line-height:%?30?%;font-weight:600;position:relative;top:%?6?%;color:#ff5041}.info .price .discount.disabled[data-v-b6b2b8d0]{color:#999;font-weight:400;font-family:sans-serif}.info .price .discount .unit[data-v-b6b2b8d0]{font-size:%?14?%}.info .price .issale[data-v-b6b2b8d0]{color:#888;font-size:%?26?%;margin-top:%?14?%;position:relative;right:0}.info .angle-right[data-v-b6b2b8d0]{width:%?14?%;height:%?24?%;position:absolute;right:%?0?%;top:%?45?%}.info .view-more[data-v-b6b2b8d0]{margin-top:0;border-top:%?1?% solid #ededed;padding:%?20?% 0;text-align:center;font-size:%?28?%;color:#2fb7fc}.info .view-more i[data-v-b6b2b8d0]{-webkit-transform:rotate(90deg);transform:rotate(90deg);margin-left:%?20?%}.info .up i[data-v-b6b2b8d0]{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.voucher .detail-box-main .detail-box[data-v-b6b2b8d0]{padding:%?20?% 0 %?20?% 0}.voucher .detail-box-main .detail-box .price[data-v-b6b2b8d0]{margin-top:0}.voucher .detail-box-main .detail-box .set-meal-text[data-v-b6b2b8d0]{float:left}.voucher .detail-box-main .detail-box .set-meal-text .title[data-v-b6b2b8d0]{margin:0 0 %?10?% 0;width:%?550?%}",""])},"72d6":function(t,e,a){var i=a("a1a1");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("4f06").default;o("99f7a710",i,!0,{sourceMap:!1,shadowMode:!1})},"76cd":function(t,e,a){var i=a("ac0d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("4f06").default;o("1849b910",i,!0,{sourceMap:!1,shadowMode:!1})},9524:function(t,e,a){"use strict";a.r(e);var i=a("c3fe"),o=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=o.a},"961e":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"restaurant"},[a("v-uni-swiper",{staticClass:"swiper swipe-style",attrs:{"indicator-dots":t.indicatorDots,autoplay:t.autoplay,"indicator-color":t.indicatorColor,interval:t.interval,duration:t.duration},on:{change:function(e){e=t.$handleEvent(e),t.changeImg(e)}}},t._l(t.imgList,(function(e,i){return a("v-uni-swiper-item",{key:i,on:{click:function(e){e=t.$handleEvent(e),t.jump(e)}}},[a("v-uni-view",{staticClass:"swiper-item"},[a("v-uni-image",{staticClass:"img-style",attrs:{src:t.$getImg(e),mode:"widthFix"}})],1)],1)})),1),a("v-uni-view",{staticClass:"current"},[a("v-uni-image",{attrs:{src:"/static/scenicTutorials/camera.png",mode:"widthFix"}}),t._v(t._s(t.current)+"/"+t._s(t.currentLength))],1),a("collect",{staticClass:"collect",attrs:{info:t.collect}}),a("div",{staticClass:"block scenicspotInfo"},[a("div",{staticClass:"item"},[a("div",{staticClass:"title"},[a("h3",[t._v(t._s(t.detail.bodyName))])]),a("p",{staticStyle:{padding:"5rpx 0 15rpx",height:"50rpx"}},[t.tagList.length>0?a("span",{staticClass:"tags"},t._l(t.tagList,(function(e){return a("span",{key:e.code,staticClass:"tag"},[t._v(t._s(e.name))])})),0):t._e()]),a("p",{staticClass:"desc"},[t._v(t._s(t.detail.description))])]),a("div",{staticClass:"item"},[a("p",[a("span",{staticClass:"starLevel orange"},[t._v(t._s(t.commentObj.starLevel.toFixed(1))),a("span",{staticClass:"unit"},[t._v("分")])]),a("uni-rate",{staticClass:"item-rate",attrs:{value:t.commentObj.starLevel,size:10,activeColor:"#f08b44",disabled:""}}),a("span",{staticClass:"right",on:{click:function(e){e=t.$handleEvent(e),t.toCommentList(e)}}},[a("span",{staticClass:"orange"},[t._v(t._s(t.commentObj.total)+"条评论")]),a("uni-icons",{attrs:{type:"forward",size:"20"}})],1)],1)]),t.detail.businessStartTime?a("div",{staticClass:"item"},[a("p",[a("span",{staticClass:"time"},[t._v("营业时间")]),t._v(t._s(t.detail.businessStartTime))])]):t._e(),t.detail.phone?a("div",{staticClass:"item"},[a("p",[a("a",{directives:[{name:"show",rawName:"v-show",value:t.detail.phone,expression:"detail.phone"}],staticClass:"telphone",attrs:{href:"tel:"+t.detail.phone}},[a("span",{staticClass:"time"},[t._v("客服电话")]),t._v(t._s(t.detail.phone))])])]):t._e(),a("div",{staticClass:"item",on:{click:function(e){e=t.$handleEvent(e),t.showPosition(e)}}},[a("p",[a("span",{staticClass:"address"},[t._v("餐厅地址")]),t._v(t._s(t.address)),a("span",{staticClass:"right"},[a("span",{staticClass:"goBtn"},[a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/traffic/go.png",mode:"aspectFill"}}),t._v("导航")],1)])])])]),a("div",{staticClass:"card"},[a("p",{staticClass:"border card-header"},[a("span",{staticStyle:{background:"#ff7d7d"}},[t._v("推")]),t._v("美食推荐")]),a("div",{staticClass:"footer-box"},[a("ul",t._l(t.foodList,(function(e,i){return a("li",{key:i},[t._v(t._s(e))])})),0),a("span",{directives:[{name:"show",rawName:"v-show",value:1===t.foodList.length&&""===t.foodList[0],expression:"foodList.length===1 && foodList[0]===''"}],staticStyle:{"font-size":"14px"}},[t._v("暂无")])])]),0!=t.cashCoupon.length?a("div",{staticClass:"card"},[a("p",{staticClass:"border card-header"},[a("span",[t._v("券")]),t._v("代金券")]),a("resItem",{attrs:{isVoucher:!0,list:t.cashCoupon}})],1):t._e(),0!=t.setMeal.length?a("div",{staticClass:"card"},[a("p",{staticClass:"border card-header"},[a("span",{staticStyle:{background:"#f5a623"}},[t._v("套")]),t._v("套餐")]),a("resItem",{attrs:{isVoucher:!1,list:t.setMeal}})],1):t._e(),a("div",{staticClass:"card res-card"},[a("p",{staticClass:"border card-header"},[t._v("餐厅简介")]),a("div",{staticClass:"footer-box",staticStyle:{"padding-left":"0px"}},[a("more-content",{attrs:{detail:t.detail.bodyIntroduce}})],1)]),a("comment-list",{attrs:{detailId:t.id,showCommentList:!1},on:{updateComments:function(e){e=t.$handleEvent(e),t.updateComments(e)}}})],1)},o=[];a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return o}))},a15d:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(a("2825")),n={data:function(){return{moreTitle:"查看更多",show:!0,height:0,content:""}},props:{detail:{type:String,default:""}},watch:{detail:function(){var t=this,e=this;this.content=this.detail,setTimeout((function(){var a=uni.createSelectorQuery().in(t).select(".detail");a.fields({size:!0},(function(a){e.height=a.height,a.height>400&&(t.show=!1)})).exec()}),1e3)}},components:{uParse:o.default},methods:{showContent:function(){this.show=!this.show}}};e.default=n},a171:function(t,e,a){"use strict";a.r(e);var i=a("3483"),o=a("c999");for(var n in o)"default"!==n&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("5246");var s=a("2877"),r=Object(s["a"])(o["default"],i["a"],i["b"],!1,null,"d265c20e",null);e["default"]=r.exports},a1a1:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,'.lineType[data-v-0334345e]{position:absolute;top:%?15?%;right:%?10?%}.restaurant[data-v-0334345e]{background:#f5f5f5}.restaurant .swiper[data-v-0334345e]{width:100%;height:%?500?%;margin-bottom:%?-40?%}.restaurant .swiper uni-image[data-v-0334345e]{width:100%;height:%?500?%!important}.restaurant[data-v-0334345e] .restrict{font-size:13px!important}.restaurant .current[data-v-0334345e]{position:absolute;right:%?0?%;top:%?325?%;color:#fff;z-index:990;background:rgba(0,0,0,.6);text-align:center;opacity:.9;font-size:%?28?%;border-radius:%?38?% 0 0 %?38?%;padding:%?16?% %?20?%;width:%?160?%;box-sizing:border-box}.restaurant .current uni-image[data-v-0334345e]{margin-right:%?8?%;width:%?30?%;height:%?24?%}.restaurant .collect[data-v-0334345e]{position:absolute;top:%?32?%;right:%?44?%}.restaurant .block[data-v-0334345e]{background-color:#fff;padding:0 %?30?%;border-bottom:%?20?% solid #f5f5f5}.restaurant .block .title .icon[data-v-0334345e]{display:inline-block;width:%?30?%;height:%?35?%;position:absolute;left:0;top:%?28?%}.restaurant .block .title h1[data-v-0334345e]{font-weight:700;font-size:%?30?%;color:#333;padding-left:%?50?%}.restaurant .orange[data-v-0334345e]{color:#ff740b}.restaurant .detail[data-v-0334345e]{overflow:hidden}.restaurant .detail[data-v-0334345e] img{max-width:100%}.restaurant .scenicspotInfo[data-v-0334345e]{background-color:#fff;position:relative;top:0;margin-top:%?-50?%;border-radius:%?35?% %?35?% 0 0;padding:%?20?% 0 0}.restaurant .scenicspotInfo .item[data-v-0334345e]{margin:0 %?28?%}.restaurant .scenicspotInfo .item[data-v-0334345e]:not(:first-of-type){border-top:%?1?% solid #eaeaea;padding:%?12?% 0}.restaurant .scenicspotInfo .item[data-v-0334345e]:first-child{padding-top:0}.restaurant .scenicspotInfo .item[data-v-0334345e]:last-child{border-bottom-width:0}.restaurant .scenicspotInfo .item .starLevel[data-v-0334345e]{color:#ff740b;font-size:%?38?%;margin-right:%?10?%}.restaurant .scenicspotInfo .item .starLevel .unit[data-v-0334345e]{font-size:%?14?%}.restaurant .scenicspotInfo .item .item-rate[data-v-0334345e]{display:inline-block;vertical-align:middle}.restaurant .scenicspotInfo .item .right .angle-right[data-v-0334345e]{display:inline-block;width:%?12?%;height:%?20?%;margin-left:%?12?%;vertical-align:middle}.restaurant .scenicspotInfo .item .title h3[data-v-0334345e]{font-size:%?36?%;line-height:%?68?%;color:#333;display:inline-block;font-weight:600;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.restaurant .scenicspotInfo .item .rank[data-v-0334345e]{box-sizing:border-box;display:inline-block;vertical-align:top;font-size:%?24?%;color:#fff;height:%?30?%;line-height:%?28?%;background:#ff740b;border-radius:%?4?%;text-align:center;padding:%?1?% %?9?%;margin-right:%?4?%}.restaurant .scenicspotInfo .item .tags[data-v-0334345e]{box-sizing:border-box;overflow:hidden;width:%?580?%;display:inline-block;vertical-align:top}.restaurant .scenicspotInfo .item .tag[data-v-0334345e]{font-size:%?24?%;color:#999;height:%?30?%;line-height:%?26?%;border:%?1?% solid #999;border-radius:%?4?%;text-align:center;padding:%?4?% %?10?%;margin:0 %?8?%}.restaurant .scenicspotInfo .item p[data-v-0334345e]{font-size:%?26?%;color:#666;line-height:%?56?%}.restaurant .scenicspotInfo .item p .address[data-v-0334345e],.restaurant .scenicspotInfo .item p .time[data-v-0334345e]{display:inline-block;margin-right:%?14?%;font-size:%?28?%;color:#333}.restaurant .scenicspotInfo .item p .right[data-v-0334345e]{float:right;color:#7e7d7d;line-height:%?56?%;font-size:%?28?%;margin:0 %?10?%}.restaurant .scenicspotInfo .item p .right .orange[data-v-0334345e]{display:inline-block;vertical-align:middle;font-size:%?26?%}.restaurant .scenicspotInfo .item p .goBtn[data-v-0334345e]{box-sizing:border-box;display:inline-block;font-size:%?24?%;color:#666;font-weight:400;min-width:%?110?%;line-height:%?44?%;background:#ededed;border-radius:%?24?%;height:%?48?%;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;padding-right:%?10?%}.restaurant .scenicspotInfo .item p .goBtn .icon[data-v-0334345e]{display:inline-block;width:%?24?%;height:%?24?%;margin-right:%?6?%}.restaurant .scenicspotInfo .item .desc[data-v-0334345e]{width:100%;padding:%?12?% 0;line-height:1.5;font-size:%?28?%}.restaurant .scenicspotInfo .item a.telphone[data-v-0334345e]{position:relative;color:#666;font-size:%?26?%;text-decoration:none}.restaurant .scenicspotInfo .item a.telphone[data-v-0334345e]:before{content:"|";position:absolute;top:0;left:%?-44?%;width:%?1?%;height:%?29?%;color:#e2e2e2;display:inline-block}.restaurant .info-card1[data-v-0334345e]{position:relative;font-size:%?48?%;color:#333;margin-bottom:%?20?%;border-top-left-radius:%?30?%;border-top-right-radius:%?30?%}.restaurant .info-card1 h3[data-v-0334345e]{position:relative}.restaurant .info-card1 h3 .name[data-v-0334345e]{display:block;margin-bottom:%?10?%;font-weight:600;width:%?600?%}.restaurant .info-card1 .start[data-v-0334345e]{font-size:%?24?%;line-height:%?36?%;color:#333;margin-top:%?10?%;float:left}.restaurant .card[data-v-0334345e]{padding:0 %?30?%;background:#fff;margin-bottom:%?20?%}.restaurant .card.res-card[data-v-0334345e]{margin-bottom:0}.restaurant .card .card-header[data-v-0334345e]{font-size:%?30?%;color:#333}.restaurant .card .card-header span[data-v-0334345e]{background:#fc7b3c;height:%?42?%;line-height:%?42?%;width:%?42?%;text-align:center;border-radius:%?4?%;display:inline-block;color:#fff;font-size:%?30?%;margin-right:%?20?%}.restaurant .card .rate[data-v-0334345e]{float:left;margin:%?10?% %?10?% 0 0}.restaurant .card .border[data-v-0334345e]{padding:%?30?% 0;border-bottom:%?1?% solid #ededed;overflow:hidden}.restaurant .card .word-style[data-v-0334345e]{font-size:14px;color:#6d6d6d;min-height:20px}.restaurant .card .footer-box[data-v-0334345e]{padding-left:%?14?%;margin-top:%?20?%;font-size:%?30?%;color:#666;line-height:%?44?%;padding-bottom:%?20?%}.restaurant .card .footer-box ul[data-v-0334345e]{margin-top:%?20?%;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.restaurant .card .footer-box ul li[data-v-0334345e]{float:left;margin-right:%?16?%;font-size:%?30?%;color:#666}.restaurant .card .loc[data-v-0334345e]{position:relative;line-height:%?40?%;padding:%?22?% 0;display:-webkit-flex;display:flex}.restaurant .card .loc span[data-v-0334345e]{-webkit-flex:9;flex:9}.restaurant .card .loc .localImg[data-v-0334345e]{width:%?28?%;height:%?35?%;-webkit-flex:1;flex:1}.restaurant .card .clock[data-v-0334345e]{position:relative;padding:%?22?% 0;line-height:%?40?%;display:-webkit-flex;display:flex}.restaurant .card .clock .clockImg[data-v-0334345e]{-webkit-flex:1;flex:1;width:%?28?%;height:%?28?%}.restaurant .card .clock span[data-v-0334345e]{-webkit-flex:9;flex:9}.restaurant .card .clock .icon-tel[data-v-0334345e]{width:%?30?%;height:%?41?%;float:right;margin-right:%?44?%;border-left:1px #e2e2e2 solid;padding-left:%?20?%}',""])},a56b:function(t,e,a){"use strict";var i=a("08cf"),o=a.n(i);o.a},ac0d:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,".detail[data-v-d265c20e]{overflow:hidden;padding:%?20?%;position:relative;height:auto}.detail[data-v-d265c20e] img{max-width:100%}.minHeight[data-v-d265c20e]{height:%?400?%}.content-box[data-v-d265c20e]{position:relative;background:#fff}.content-box .more[data-v-d265c20e]{text-align:center;font-size:%?26?%;color:#333;padding-bottom:%?20?%;cursor:pointer}.mask[data-v-d265c20e]{background-image:linear-gradient(-180deg,hsla(0,0%,100%,0) 6%,#fff 97%);border-radius:4px;width:100%;position:absolute;bottom:0;height:%?100?%}",""])},c3fe:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(a("f0ab")),n={data:function(){return{setMealShow:!1,setMealShowUp:!1,count:5,score:5}},components:{uniIcons:o.default},props:{isVoucher:{type:Boolean},list:{type:Array,default:function(){return[]}}}};e.default=n},c999:function(t,e,a){"use strict";a.r(e);var i=a("a15d"),o=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=o.a},caaf:function(t,e,a){"use strict";a.r(e);var i=a("961e"),o=a("287f");for(var n in o)"default"!==n&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("3414");var s=a("2877"),r=Object(s["a"])(o["default"],i["a"],i["b"],!1,null,"0334345e",null);e["default"]=r.exports},d26b:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("div",{class:["info",{voucher:t.isVoucher}]},[a("div",{staticClass:"detail-box-main"},t._l(t.list,(function(e,i){return i<2||t.setMealShow?a("div",{key:i,staticClass:"detail-box"},[a("v-uni-navigator",{attrs:{url:"/pages/cate/goodsDetail?id="+e.productId}},[t.isVoucher?t._e():a("v-uni-image",{attrs:{src:t.$getImg(e.cover),mode:"aspectFit"}}),a("div",{staticClass:"set-meal-text"},[a("p",{staticClass:"title"},[t._v(t._s(e.productName))]),a("p",{staticClass:"restrict"},[t._v("使用时间:"+t._s(e.validStartDate)+"-"+t._s(e.validEndDate))])]),a("div",{staticClass:"price"},[e.stock>0?a("span",{staticClass:"discount"},[a("span",{staticClass:"unit"},[t._v("¥")]),t._v(t._s(e.settlementPrice))]):a("span",{staticClass:"discount disabled"},[t._v("已售罄")]),a("br"),a("p",{staticClass:"issale"},[t._v("已售"+t._s(e.actualSale)+"份")])]),a("uni-icons",{staticClass:"angle-right",attrs:{type:"arrowright",size:"20",color:"#333"}})],1)],1):t._e()})),0),!t.setMealShow&&t.list.length>2?a("p",{staticClass:"footer-box view-more",on:{click:function(e){e=t.$handleEvent(e),t.setMealShow=!0,t.setMealShowUp=!0}}},[t._v("查看更多")]):t._e(),t.setMealShowUp&&t.setMealShow?a("p",{staticClass:"footer-box view-more up",on:{click:function(e){e=t.$handleEvent(e),t.setMealShow=!1}}},[t._v("收起")]):t._e()])])},o=[];a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return o}))},d3ed:function(t,e,a){"use strict";function i(t,e){var a=/[^\\x00-\xff]/g;if(t.replace(a,"mm").length<=e)return t;for(var i=Math.floor(e/2),o=i;o<t.length;o++)if(t.substr(0,o).replace(a,"mm").length>=e)return t.substr(0,o)+"...";return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,a("a481")}}]);