(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-feature-feature"],{"52fe":function(t,e,i){"use strict";var n=i("9b6d"),a=i.n(n);a.a},7313:function(t,e,i){"use strict";i.r(e);var n=i("f7c7"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"8b98":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uniFab:i("0e51").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-view",{staticClass:"banner-box"},[n("v-uni-image",{attrs:{src:"/static/imgs/new-food-banner.png",mode:""}})],1),n("v-uni-view",{staticClass:"main"},[n("v-uni-view",{staticClass:"tab-box"},[n("v-uni-view",{staticClass:"tab-item",class:0==t.currentTabIndex?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.currentTabIndex=0}}},[t._v("餐厅新品")]),n("v-uni-view",{staticClass:"tab-item",class:1==t.currentTabIndex?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.currentTabIndex=1}}},[t._v("大众推荐")]),n("v-uni-view",{staticClass:"tab-item",class:2==t.currentTabIndex?"active_tab":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.currentTabIndex=2}}},[t._v("个人推荐")])],1),t.dateInfo?n("v-uni-view",[0==t.currentTabIndex?n("v-uni-view",{staticClass:"time"},[t._v("推荐时间: "+t._s(t.dateInfo.start_time1)+" ~ "+t._s(t.dateInfo.end_time1))]):n("v-uni-view",{staticClass:"time"},[t._v("投票时间: "+t._s(t.dateInfo.start_time2)+" ~ "+t._s(t.dateInfo.end_time2))])],1):t._e(),(1==t.currentTabIndex||0==t.currentTabIndex&&1==t.type)&&1==t.showTab?n("v-uni-view",[n("uni-fab",{attrs:{content:t.content,pattern:t.pattern,horizontal:"right",vertical:"bottom",direction:"horizontal"},on:{trigger:function(e){arguments[0]=e=t.$handleEvent(e),t.trigger.apply(void 0,arguments)}}})],1):t._e(),0==t.currentTabIndex?n("v-uni-view",[t.releasefeatureList.length>0?n("v-uni-view",{staticClass:"list-box"},t._l(t.releasefeatureList,(function(e,i){return n("v-uni-view",{key:e.id,staticClass:"list-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"image-box"},[n("v-uni-image",{attrs:{mode:"",src:t.formatImgUrl(e.picture)},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.vbPicture(new Array(t.formatImgUrl(e.picture)))}}})],1),n("v-uni-view",{staticClass:"fr-content"},[n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("菜品名称:")]),t._v(t._s(e.food_name))],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("菜品类型:")]),t._v(t._s(e.kinds))],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("推荐理由:")]),t._v(t._s(e.reason))],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("推荐人:")]),t._v(t._s(e.real_name))],1)],1)],1),n("v-uni-view",{staticClass:"bottom"},[n("v-uni-view",{staticClass:"num-box"},[t._v("点赞数:"),n("v-uni-text",{staticClass:"num"},[t._v(t._s(e.vote_no||0))])],1)],1)],1)})),1):n("content-none",{attrs:{padTop:30}})],1):t._e(),1==t.currentTabIndex?n("v-uni-view",[t.publicfeatureList.length>0?n("v-uni-view",{staticClass:"list-box"},[n("v-uni-checkbox-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.checkboxChange.apply(void 0,arguments)}}},t._l(t.publicfeatureList,(function(e,a){return n("v-uni-view",{key:e.id,staticClass:"list-item"},[n("v-uni-label",{staticClass:"uni-list-cell uni-list-cell-pd"},[1==t.isCheckBox?n("v-uni-view",[n("v-uni-checkbox",{attrs:{value:e.id,checked:e.checked}})],1):t._e(),n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"image-box"},[n("v-uni-image",{attrs:{mode:"",src:t.formatImgUrl(e.picture)},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.vbPicture(new Array(t.formatImgUrl(e.picture)))}}})],1),n("v-uni-view",{staticClass:"fr-content"},[n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("菜品名称:")]),t._v(t._s(e.food_name))],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("菜品类型:")]),t._v(t._s(e.kinds))],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("推荐理由:")]),t._v(t._s(e.reason))],1)],1)],1),n("v-uni-view",{staticClass:"bottom"},[n("v-uni-view",{staticClass:"num-box"},[t._v("点赞数:"),n("v-uni-text",{staticClass:"num"},[t._v(t._s(e.vote_no||0))])],1),0==e.is_vote||null==e.is_vote?n("v-uni-view",{staticClass:"vote-btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.vote(a,e.id)}}},[n("v-uni-image",{attrs:{src:i("b076")}})],1):t._e(),0!=e.is_vote&&null!=e.is_vote?n("v-uni-view",{staticClass:"vote-btn"},[n("v-uni-image",{attrs:{src:i("21bc")}})],1):t._e()],1)],1)],1)})),1)],1):n("content-none",{attrs:{padTop:30}})],1):t._e(),2==t.currentTabIndex?n("v-uni-view",[t.myfeatureList.length>0?n("v-uni-view",{staticClass:"list-box"},t._l(t.myfeatureList,(function(e){return n("v-uni-view",{key:e.id,staticClass:"list-item"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"image-box"},[n("v-uni-image",{attrs:{mode:"",src:t.formatImgUrl(e.picture)},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.vbPicture(new Array(t.formatImgUrl(e.picture)))}}})],1),n("v-uni-view",{staticClass:"fr-content"},[n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("菜品名称:")]),t._v(t._s(e.food_name))],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("菜品类型:")]),t._v(t._s(e.kinds))],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("推荐理由:")]),t._v(t._s(e.reason))],1)],1)],1)],1)})),1):n("content-none",{attrs:{padTop:30}})],1):t._e()],1),1==t.currentTabIndex&&1==t.isCheckBox?n("v-uni-view",[n("v-uni-view",{staticClass:"footer-btn footer-btn-two"},[n("v-uni-view",{staticClass:"btn btn-col",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancel.apply(void 0,arguments)}}},[t._v("取消")]),n("v-uni-view",{staticClass:"btn btn-col1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitRelease.apply(void 0,arguments)}}},[t._v("确认发布")])],1)],1):t._e(),n("load-more",{directives:[{name:"show",rawName:"v-show",value:0==t.currentTabIndex,expression:"currentTabIndex == 0"}],attrs:{loadingType:t.loadingType0,contentText:t.contentText}}),n("load-more",{directives:[{name:"show",rawName:"v-show",value:1==t.currentTabIndex,expression:"currentTabIndex == 1"}],attrs:{loadingType:t.loadingType1,contentText:t.contentText}}),n("load-more",{directives:[{name:"show",rawName:"v-show",value:2==t.currentTabIndex,expression:"currentTabIndex == 2"}],attrs:{loadingType:t.loadingType2,contentText:t.contentText}})],1)},o=[]},"9b6d":function(t,e,i){var n=i("fa25");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5c4d83da",n,!0,{sourceMap:!1,shadowMode:!1})},a537:function(t,e,i){"use strict";i.r(e);var n=i("8b98"),a=i("7313");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("52fe");var c,r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"31458c20",null,!1,n["a"],c);e["default"]=s.exports},f7c7:function(t,e,i){"use strict";(function(t){var n=i("4ea4");i("99af"),i("caad"),i("2532"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("fb8c"),o=i("d24f"),c=n(i("474f")),r=n(i("28ef")),s=n(i("0e51")),u={data:function(){return{vbPicture:a.vbPicture,formatImgUrl:a.formatImgUrl,showTab:!0,isCheckBox:!1,pattern:{buttonColor:"#307aff"},currentTabIndex:0,chooseClassifyIndex:0,page:1,pageSize:10,loadingType:0,page0:1,pageSize0:10,loadingType0:0,page1:1,pageSize1:10,loadingType1:0,page2:1,pageSize2:10,loadingType2:0,contentText:{contentdown:"上拉加载更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"},index:0,kinds:["熟食","凉菜","热菜","蔬菜","主食","水果"],foodName:"",reason:"",materialName:"",imgs:[],userId:(0,a.getStorage)("userInfo").id,foodList:[],title:"checkbox 复选框",newfoodList:[],dateInfo:null,cindex:1,content:[],myfeatureList:[],publicfeatureList:[],releasefeatureList:[],type:0}},watch:{currentTabIndex:function(t,e){0==t?(this.page0=1,this.loadingType0=0,this.getReleasefeatureList()):1==t?(this.cancel(),this.page1=1,this.loadingType1=0,this.getPublicFeatureFood()):2==t&&(this.page2=1,this.loadingType2=0,this.getMySubmitFeatureFood()),1==t?1==this.type?this.content=[{text:"发布",iconPath:"/static/icons/fb.png"}]:2==this.type&&(this.content=[{text:"推荐",iconPath:"/static/icons/fb.png"}]):0==t&&(this.content=[{text:"上新",iconPath:"/static/icons/fb.png"}])}},components:{loadMore:c.default,contentNone:r.default,uniFab:s.default},mounted:function(){1==this.currentTabIndex?1==this.type?this.content=[{text:"发布",iconPath:"/static/icons/fb.png"}]:2==this.type&&(this.content=[{text:"推荐",iconPath:"/static/icons/fb.png"}]):0==this.currentTabIndex&&(this.content=[{text:"上新",iconPath:"/static/icons/fb.png"}])},onLoad:function(t){this.currentTabIndex=t.currentTabIndex||0,this.type=t.type||0,0==this.currentTabIndex?(this.page0=1,this.loadingType0=0,this.getReleasefeatureList()):1==this.currentTabIndex?(this.cancel(),this.page1=1,this.loadingType1=0,this.getPublicFeatureFood()):2==this.currentTabIndex&&(this.page2=1,this.loadingType2=0,this.getMySubmitFeatureFood())},methods:{checkboxChange:function(t){for(var e=this.publicfeatureList,i=t.detail.value,n=0,a=e.length;n0?(e.myfeatureList=e.myfeatureList.concat(i.returnData),e.loadingType2=0):e.loadingType2=2)}))},getPublicFeatureFood:function(){var t=this,e={method:o.getPublicFeatureFood,data:{creator:this.userId,pageNum:this.page1,pageSize:this.pageSize1}};(0,a.callbackRequest)(e).then((function(e){1==e.data.returnCode&&(e=e.data,1==t.page1?t.publicfeatureList=e.returnData||[]:e.returnData.length>0?(t.publicfeatureList=t.publicfeatureList.concat(e.returnData),t.loadingType1=0):t.loadingType1=2)}))},getReleasefeatureList:function(){var t=this,e={method:o.getReleasefeatureList,data:{creator:this.userId,pageNum:this.page0,pageSize:this.pageSize0}};(0,a.callbackRequest)(e).then((function(e){1==e.data.returnCode&&(e=e.data,1==t.page0?t.releasefeatureList=e.returnData||[]:e.returnData.length>0?(t.releasefeatureList=t.releasefeatureList.concat(e.returnData),t.loadingType0=0):t.loadingType0=2)}))},vote:function(t,e){var i=this,n={method:o.recommendFoodVoteNew,data:{voteUser:this.userId,featureId:e}};(0,a.callbackRequest)(n).then((function(e){1==e.data.returnCode?(i.publicfeatureList[t].vote_no++,i.publicfeatureList[t].is_vote=1):(0,a.alertTip)(e.data.returnMsg)}))},submitRelease:function(){for(var t="",e=0;e