UNPKG

vaneditor

Version:

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

1 lines 22.4 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-hotel-list"],{"039d":function(t,e,i){"use strict";var n=i("0789"),a=i.n(n);a.a},"0789":function(t,e,i){var n=i("8a37");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("041b811c",n,!0,{sourceMap:!1,shadowMode:!1})},"0b47":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAjCAYAAADxG9hnAAAAAXNSR0IArs4c6QAAAyxJREFUWAntWE1oE0EU3plJW2q1rZUqCGK9GSyoJ1tBFP+uggdBREGhV9FcQjGzbrLkkGtvQdAKUjwJgnjRQ0FK8eRFKSgUhFqRqkj/0nS7M35vu1uXzZ/SNPaQR8K8//ft25dhJsz4C8rlcruWFhcnmWF8szKZ84wxXS1Ma80s03xtMLZ3R0fHyWQyuVDNn2y8lgPZC4XCIJYjqH42nU4fqhVDPuQLQP1+bK0QIxZ4WJYVY0qdQ/BRPEkP9K2ipeWBlHIKfBiwx2ekPOVyfjmIp1Uo9cy07Tfl/G3bjruOMwTbqqH1dySZgO8kxRF5QABiQLnuQ8hxT6vXO88c5xVkAlJCa4wdM5S6EzZANw2ZgJSQcpw+pfXdwKDAmKb5nHN+C/V/xrLZ7L7iyspL6HeTE97/MrryA6zSnBdIV46QYAHgP4dtpCNZCMFgC5sMLxf8kR+jZuxEjR505pJS6kU+nz8dc4rFYRgIhAMUsqu7eySRSFQEEGTHU4yCp28Jua5bMszwH4djX+AMuV8rNQFAg19nZoY52nWRjID5KJPJ5CqA+AgXSk5PPItvLSIf8qUYii0hAHmPjjwlA17TFY5OHSABQD7RWo4QNM2FONza1hYHv1zOJ6wjH/KlGIoN28J8UBMYDsbQmnbfuBp2ivJIWPbJon6BnEqlvgR8pVUx5qAr+Oh2+imKSo5bredA4NcQ4f1hq+tWzb9tgDBTSq89GJhZdGquKuw6G1GzFzX3U9qNLd5XeMo616uY7s+IhIBgM3vLtC67nVfMtEmDZiyOn8wJSrPREUzwmGXbI5vM/U/hlpS3sZl5QLbNsDaBRN9hsyPNjkQ7EJWbM9LsSLQDUZlmJDglRW0Nlenw7PgV/8fgejWBYY2YXwQEB9kuH1DDFly69vjF5jneywcScBY54ysbsuBQhJL6AhUDhimG++dVHE7GSIF7xigOK+O4Oi7hQr4ls4MuoIzRiVveEIAMUF3cf66R0rgv5WNUvUF8owkAnqRt+/r6sAhxE4wEiJp33joCLaDmPfzx4zXA60iQHLe5Tu66x5UQvdC1Bvo6r6uoMYca71BvPsj9G/csMjGBafM+AAAAAElFTkSuQmCC"},1296:function(t,e,i){"use strict";var n=i("7a61"),a=i.n(n);a.a},2105:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAXCAYAAAGnofUXAAAAAXNSR0IArs4c6QAAAdxJREFUOBGFkztLA1EQhbObLSzUVP4MSxsFxVZRCxvzQkFQBK00aCXYqdjYCIKKkJekUKKgndFe/Q9C0igIIYhEzcZv1swm2Y24MJk7c87MmXtzbyCZTB4E9EulUt+mBIZhzGqyxdfrdcMNqay7QeuCLquBXC7Xx2LIBbLZ7KAGZigUegSNaMLxJLYc9UY24XhXxl2QNqR9tVp9YdCxWCx20yjxO6lKp9PLijTn1wwe5TKd9ltSv0sAG1uRyJKfQqHQVSwWP0zTHI9Go81xYV1j/ULyfQzx7EuSMBF9BfzoBMpU59hXR5CqbUC7I8iG52TjAvo2nMlkRmq12l1z9kYPkt2+dnJ2Ph0S+9h3GxvBS99eSDzBLLcxCUTc5I8LeQED9i33bBTgnVOe4JQLXpI3dvaYz+d7KpVKXoo5109IMyhceMkatx0M9ynIfToEnMdslBdQPlay+rYiTYrnnNZQ3pUnwreO8q7ifxYpgeIp27bPiLuwvXg8nvi3qKV4iWJ5xaV/i1CKMuIpZrHHDfa482cRf8UmxC06yz1bZKwjVXVegwa8CqtUKp1AjmNfdJ6m87ni6h0luvaSuII4jH8PBoOTkUjkVkleb1FwL2SO9c2yrIFwOPzgJXnjH+nL5bbKS3DmAAAAAElFTkSuQmCC"},"43ba":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-rate"},t._l(t.stars,(function(e,n){return i("v-uni-view",{key:n,staticClass:"uni-rate-icon",style:{marginLeft:t.margin+"px"},on:{click:function(e){e=t.$handleEvent(e),t.onClick(n)}}},[i("uni-icons",{attrs:{size:t.size,color:t.color,type:!1===t.isFill||"false"===t.isFill?"star":"star-filled"}}),i("v-uni-view",{staticClass:"uni-rate-icon-on",style:{width:e.activeWitch}},[i("uni-icons",{attrs:{size:t.size,color:t.activeColor,type:"star-filled"}})],1)],1)})),1)},a=[];i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return a}))},"5a0c":function(t,e,i){!function(e,i){t.exports=i()}(0,(function(){"use strict";var t="millisecond",e="second",i="minute",n="hour",a="day",o="week",r="month",s="quarter",c="year",l=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,u=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},h={s:d,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),a=i%60;return(e<=0?"+":"-")+d(n,2,"0")+":"+d(a,2,"0")},m:function(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,r),a=e-n<0,o=t.clone().add(i+(a?-1:1),r);return Number(-(i+(e-n)/(a?n-o:o-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return{M:r,y:c,w:o,d:a,h:n,m:i,s:e,ms:t,Q:s}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p="en",g={};g[p]=f;var m=function(t){return t instanceof w},v=function(t,e,i){var n;if(!t)return p;if("string"==typeof t)g[t]&&(n=t),e&&(g[t]=e,n=t);else{var a=t.name;g[a]=t,n=a}return i||(p=n),n},y=function(t,e,i){if(m(t))return t.clone();var n=e?"string"==typeof e?{format:e,pl:i}:e:{};return n.date=t,new w(n)},b=h;b.l=v,b.i=m,b.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var w=function(){function d(t){this.$L=this.$L||v(t.locale,null,!0),this.parse(t)}var h=d.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(l);if(n)return i?new Date(Date.UTC(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)):new Date(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return b},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var i=y(t);return this.startOf(e)<=i&&i<=this.endOf(e)},h.isAfter=function(t,e){return y(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<y(t)},h.$g=function(t,e,i){return b.u(t)?this[e]:this.set(i,t)},h.year=function(t){return this.$g(t,"$y",c)},h.month=function(t){return this.$g(t,"$M",r)},h.day=function(t){return this.$g(t,"$W",a)},h.date=function(t){return this.$g(t,"$D","date")},h.hour=function(t){return this.$g(t,"$H",n)},h.minute=function(t){return this.$g(t,"$m",i)},h.second=function(t){return this.$g(t,"$s",e)},h.millisecond=function(e){return this.$g(e,"$ms",t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,s){var l=this,u=!!b.u(s)||s,d=b.p(t),h=function(t,e){var i=b.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return u?i:i.endOf(a)},f=function(t,e){return b.w(l.toDate()[t].apply(l.toDate(),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},p=this.$W,g=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case c:return u?h(1,0):h(31,11);case r:return u?h(1,g):h(0,g+1);case o:var y=this.$locale().weekStart||0,w=(p<y?p+7:p)-y;return h(u?m-w:m+(6-w),g);case a:case"date":return f(v+"Hours",0);case n:return f(v+"Minutes",1);case i:return f(v+"Seconds",2);case e:return f(v+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(o,s){var l,u=b.p(o),d="set"+(this.$u?"UTC":""),h=(l={},l[a]=d+"Date",l.date=d+"Date",l[r]=d+"Month",l[c]=d+"FullYear",l[n]=d+"Hours",l[i]=d+"Minutes",l[e]=d+"Seconds",l[t]=d+"Milliseconds",l)[u],f=u===a?this.$D+(s-this.$W):s;if(u===r||u===c){var p=this.clone().set("date",1);p.$d[h](f),p.init(),this.$d=p.set("date",Math.min(this.$D,p.daysInMonth())).toDate()}else h&&this.$d[h](f);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[b.p(t)]()},h.add=function(t,s){var l,u=this;t=Number(t);var d=b.p(s),h=function(e){var i=y(u);return b.w(i.date(i.date()+Math.round(e*t)),u)};if(d===r)return this.set(r,this.$M+t);if(d===c)return this.set(c,this.$y+t);if(d===a)return h(1);if(d===o)return h(7);var f=(l={},l[i]=6e4,l[n]=36e5,l[e]=1e3,l)[d]||1,p=this.$d.getTime()+t*f;return b.w(p,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var i=t||"YYYY-MM-DDTHH:mm:ssZ",n=b.z(this),a=this.$locale(),o=this.$H,r=this.$m,s=this.$M,c=a.weekdays,l=a.months,d=function(t,n,a,o){return t&&(t[n]||t(e,i))||a[n].substr(0,o)},h=function(t){return b.s(o%12||12,t,"0")},f=a.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:d(a.monthsShort,s,l,3),MMMM:l[s]||l(this,i),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:d(a.weekdaysMin,this.$W,c,2),ddd:d(a.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:b.s(o,2,"0"),h:h(1),hh:h(2),a:f(o,r,!0),A:f(o,r,!1),m:String(r),mm:b.s(r,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:n};return i.replace(u,(function(t,e){return e||p[t]||n.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,l,u){var d,h=b.p(l),f=y(t),p=6e4*(f.utcOffset()-this.utcOffset()),g=this-f,m=b.m(this,f);return m=(d={},d[c]=m/12,d[r]=m,d[s]=m/3,d[o]=(g-p)/6048e5,d[a]=(g-p)/864e5,d[n]=g/36e5,d[i]=g/6e4,d[e]=g/1e3,d)[h]||g,u?m:b.a(m)},h.daysInMonth=function(){return this.endOf(r).$D},h.$locale=function(){return g[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var i=this.clone();return i.$L=v(t,e,!0),i},h.clone=function(){return b.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}();return y.prototype=w.prototype,y.extend=function(t,e){return t(e,w,y),y},y.locale=v,y.isDayjs=m,y.unix=function(t){return y(1e3*t)},y.en=g[p],y.Ls=g,y}))},"739a":function(t,e,i){"use strict";i.r(e);var n=i("f173"),a=i("cb56");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("1296");var r=i("2877"),s=Object(r["a"])(a["default"],n["a"],n["b"],!1,null,"bc62ef76",null);e["default"]=s.exports},"7a61":function(t,e,i){var n=i("92a8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0a895667",n,!0,{sourceMap:!1,shadowMode:!1})},"8a37":function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,".uni-rate[data-v-d227dc2c]{line-height:0;font-size:0;display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row}.uni-rate-icon[data-v-d227dc2c]{position:relative;line-height:0;font-size:0;display:inline-block}.uni-rate-icon-on[data-v-d227dc2c]{position:absolute;top:0;left:0;overflow:hidden}",""])},"92a8":function(t,e,i){e=t.exports=i("2350")(!1),e.push([t.i,".head[data-v-bc62ef76]{width:100%;height:%?350?%;background-size:%?750?% %?350?%}.dateIcon[data-v-bc62ef76]{width:%?34?%;height:%?34?%;margin:0 %?20?% %?-5?% 0;line-height:%?100?%}.hotel-main[data-v-bc62ef76]{text-align:left;padding-bottom:%?40?%;background:#fff;min-height:%?1334?%}.hotel-main .checkTime[data-v-bc62ef76]{height:%?100?%;border-bottom:%?2?% solid #e4e4e4;background-color:#fff;font-size:%?30?%;color:#5c5c5c;line-height:%?100?%;padding:0 %?30?%}.hotel-main .checkTime .day[data-v-bc62ef76]{float:right;font-weight:600;color:#1d1d1d}.hotel-main .checkTime .day .rIcon[data-v-bc62ef76]{width:%?14?%;height:%?22?%;margin-left:%?16?%}.hotel-main .scroll-Y[data-v-bc62ef76]{width:%?750?%;height:%?1400?%}.hotel-main .tip[data-v-bc62ef76]{padding:%?10?%}.hotel-main .end[data-v-bc62ef76]{text-align:center;font-size:%?28?%}.hotel-main .head[data-v-bc62ef76]{width:100%;height:%?350?%;background-size:100% 100%}.hotel-main .hotel-list[data-v-bc62ef76]{padding:%?20?% %?30?%;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-between;justify-content:space-between}.hotel-main .hotel-list li[data-v-bc62ef76]{background:#fff;box-shadow:0 %?16?% %?16?% 0 hsla(0,0%,94.1%,.2);border-radius:%?8?%;overflow:hidden;margin-bottom:%?20?%;list-style:none;height:%?230?%;width:%?690?%;box-shadow:0 0 %?20?% rgba(0,0,0,.1);position:relative}.hotel-main .hotel-list li[data-v-bc62ef76] uni-image{float:left;width:%?280?%;height:%?230?%}.hotel-main .hotel-list li .star[data-v-bc62ef76]{position:absolute;top:0;left:0;padding:0 %?12?%;font-size:%?22?%;line-height:%?36?%;color:#fff;border-radius:0 0 %?16?% 0;background-image:linear-gradient(90deg,#ff6414,#ff8a00)}.hotel-main .hotel-list li .contain[data-v-bc62ef76]{width:%?350?%;height:%?350?%;border-radius:10px 10px 0 0;background-position:top;background-size:auto 350px;background-repeat:no-repeat;overflow:hidden}.hotel-main .hotel-list li .hotel-detail[data-v-bc62ef76]{float:left;width:%?380?%;padding:%?26?% 0 %?26?% %?26?%}.hotel-main .hotel-list li .hotel-detail .title[data-v-bc62ef76]{line-height:%?30?%;overflow:hidden}.hotel-main .hotel-list li .hotel-detail .title .name[data-v-bc62ef76]{font-size:%?30?%;line-height:%?36?%;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hotel-main .hotel-list li .hotel-detail .bodyType[data-v-bc62ef76]{margin-top:%?10?%}.hotel-main .hotel-list li .hotel-detail .bodyType span[data-v-bc62ef76]{display:inline-block;padding:%?2?% %?10?%;margin-right:%?16?%;margin-top:%?10?%;color:#ff740b;border:1px solid #ff740b;border-radius:%?4?%;font-size:%?20?%}.hotel-main .hotel-list li .hotel-detail .rate[data-v-bc62ef76]{position:absolute;bottom:%?20?%;color:#f5a623;font-size:%?38?%}.hotel-main .hotel-list li .hotel-detail .rate span[data-v-bc62ef76]{font-size:%?20?%}.hotel-main .hotel-list li .hotel-detail .district[data-v-bc62ef76]{position:absolute;right:%?4?%;bottom:%?20?%;color:#fc4747}.hotel-main .hotel-list li .hotel-detail .district .area[data-v-bc62ef76]{float:right;font-size:%?20?%;color:#888;line-height:%?40?%}.hotel-main .hotel-list li .hotel-detail .district .icon[data-v-bc62ef76]{font-size:%?26?%}.hotel-main .hotel-list li .hotel-detail .district .number[data-v-bc62ef76]{font-weight:600;font-size:%?42?%}.hotel-main .hotel-list li .hotel-detail .district .suffix[data-v-bc62ef76]{margin-left:%?4?%;font-size:%?22?%;color:#666}",""])},9656:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("8e6e"),i("ac6a"),i("456d"),i("386d");var a=n(i("bd86"));i("28a5"),i("a481");var o=n(i("f96a")),r=n(i("09c2")),s=i("cc87"),c=n(i("1427")),l=n(i("b15c")),u=n(i("5a0c"));function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?d(i,!0).forEach((function(e){(0,a.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):d(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var f={data:function(){return{header:"",noImg:i("ee95"),headerJumpUrl:"",actions:[],labelList:[],hotelBodyTypeCode:"",sortList:[{name:"价格高到低",code:2},{name:"价格低到高",code:1},{name:"离我最近",code:3}],sortType:"0",list:[],name:"",cityKey:0,city:{provinceCode:"",cityCode:"",districtCode:"",name:"地区"},cityName:"地区",IsCalender:!1,close:!1,info:{checkInDate:"",checkOutDate:"",startDate:""},isFixed:!1,end:!1,count:0,page:{pageSize:10,currentPage:1,count:0,loading:!1},menu:[{title:"酒店类型",detailList:[]},{title:"排序",detailList:[{name:"价格高到低",code:2},{name:"价格低到高",code:1},{name:"离我最近",code:3},{name:"评分高到低",code:4}]}]}},components:{uniRate:o.default,uniLoadMore:r.default,search:c.default,calendarPage:l.default},computed:{total:function(){var t=new Date(this.info.checkInDate.replace(/-/gm,"/")),e=new Date(this.info.checkOutDate.replace(/-/gm,"/"));return parseInt((e-t)/864e5)}},onReady:function(){this.$wxShare("畅游金华 酒店民宿","金华本地旅游生活体验,新鲜好玩,惊喜不断!",window.location.hash.split("#")[1])},onLoad:function(){this.info.startDate=(0,u.default)().format("YYYY-M-D"),this.info.checkInDate=(0,u.default)().format("YYYY-M-D"),this.info.checkOutDate=(0,u.default)().add(1,"day").format("YYYY-M-D"),this.getList(),this.queryHoteTypes()},onPullDownRefresh:function(){this.list=[],this.page.currentPage=1,this.getList("refresh")},onReachBottom:function(){this.list.length<this.count&&this.getList()},methods:{getList:function(t){var e=this;e.page.loading=!0;var i=e.dateFormat(this.info.checkInDate),n=e.dateFormat(this.info.checkOutDate);this.$ajax({method:"post",url:"/weChat/hotelbody/queryPage",data:h({},this.city,{bodyName:this.name,status:1,currentPage:this.page.currentPage,pageSize:this.page.pageSize,beginDate:i,endDate:n,hotelBodyTypeCode:e.hotelBodyTypeCode,sortType:e.sortType,orderByIndex:10})}).then((function(i){e.list.push.apply(e.list,i.data),e.page.loading=!1,e.count=i.count,e.list.length>=e.count&&(e.end=!0),e.page.currentPage+=1,"refresh"===t&&uni.stopPullDownRefresh()}))},dateFormat:function(t){var e=t.split("-"),i=parseInt(e[1])<10?"0"+e[1]:e[1],n=parseInt(e[2])<10?"0"+e[2]:e[2];return e[0]+"-"+i+"-"+n},huangxing:function(){this.IsCalender=!0},handeldetermine:function(t){this.info=t,this.close=!0,this.search(),this.IsCalender=!1},handelClose:function(){var t=this;this.close=!0,setTimeout((function(){t.IsCalender=!1}),300)},nameInput:function(t){this.name=t.target.value},changePicker:function(t){console.log(t),this.city={provinceCode:t.cityCode.province?t.cityCode.province+"0000000000":"",cityCode:t.cityCode.city?t.cityCode.city+"00000000":"",districtCode:t.cityCode.area?t.cityCode.area+"000000":"",name:t.label},this.search()},confirm:function(t){0===t.index?this.hotelBodyTypeCode=t.code||"":1===t.index&&(this.sortType=t.code||""),this.search()},reset:function(t){console.log(t),0===t?this.hotelBodyTypeCode="":1===t&&(this.sortType="0"),this.search()},search:function(){this.list=[],this.page.currentPage=1,this.getList()},scroll:function(t){var e=t.detail.scrollTop;this.isFixed=e>13},getLocation:function(){var t="330700000000",e=(0,s.getListByCode)(t),i=this;e.then((function(t){console.log(t),i.actions=t.map((function(t){return{name:t.name,code:t.code}})),i.actions.unshift({name:"金华市",code:""}),i.city=i.actions[0]}))},queryHoteTypes:function(){var t=this;this.$ajax({method:"post",url:"/weChat/hotelbody/queryHoteTypes",data:{}}).then((function(e){t.menu[0].detailList=e.data}))}}};e.default=f},b595:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c5f6");var a=n(i("f0ab")),o={name:"uni-rate",components:{uniIcons:a.default},props:{isFill:{type:[Boolean,String],default:!0},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},size:{type:[Number,String],default:24},value:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1}},data:function(){return{maxSync:this.max,valueSync:this.value}},watch:{value:{handler:function(t){this.valueSync=t},deep:!0}},computed:{stars:function(){for(var t=Number(this.maxSync)?Number(this.maxSync):5,e=Number(this.valueSync)?Number(this.valueSync):0,i=[],n=Math.floor(e),a=Math.ceil(e),o=0;o<t;o++)n>o?i.push({activeWitch:"100%"}):a-1===o?i.push({activeWitch:100*(e-n)+"%"}):i.push({activeWitch:"0"});return i}},methods:{onClick:function(t){!0!==this.disabled&&"true"!==this.disabled&&(this.valueSync=t+1,this.$emit("change",{value:this.valueSync}))}}};e.default=o},cb56:function(t,e,i){"use strict";i.r(e);var n=i("9656"),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},f173:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"hotel-main"},[n("search",{staticClass:"searchFiex",attrs:{name:t.name,isFixed:!0,cityName:t.city.name,areaShow:!0,actions:t.actions,menu:t.menu},on:{search:function(e){e=t.$handleEvent(e),t.search(e)},nameInput:function(e){e=t.$handleEvent(e),t.nameInput(e)},changePicker:function(e){e=t.$handleEvent(e),t.changePicker(e)},confirm:function(e){e=t.$handleEvent(e),t.confirm(e)},reset:function(e){e=t.$handleEvent(e),t.reset(e)}}},[n("div",{staticClass:"checkTime",attrs:{slot:"other"},on:{click:function(e){e=t.$handleEvent(e),t.huangxing(e)}},slot:"other"},[n("v-uni-image",{staticClass:"dateIcon",attrs:{src:i("0b47")}}),n("span",[t._v("入住"+t._s(t.info.checkInDate)+" 至 离店"+t._s(t.info.checkOutDate))]),n("span",{staticClass:"day"},[t._v("共"+t._s(t.total)+"晚"),n("v-uni-image",{staticClass:"rIcon",attrs:{src:i("2105"),alt:""}})],1)],1)]),n("ul",{staticClass:"hotel-list"},t._l(t.list,(function(e){return n("li",{key:e.id},[n("v-uni-navigator",{attrs:{url:"/pages/hotel/detail?id="+e.id}},[n("v-uni-image",{attrs:{src:t.$getImg(e.cover)||t.noImg,mode:"aspectFill"}}),n("section",{staticClass:"hotel-detail"},[n("h3",{staticClass:"title"},[n("p",{staticClass:"name"},[t._v(t._s(e.bodyName))])]),n("div",{staticClass:"bodyType"},t._l(e.hotelBodyType,(function(e,i){return n("span",{key:i},[t._v(t._s(e.name))])})),0),e.grade?n("div",{staticClass:"rate"},[t._v(t._s(parseFloat(e.grade).toFixed(1))),n("span",[t._v("分")])]):n("div",{staticClass:"rate"},[t._v("5.0"),n("span",[t._v("分")])]),-1!=e.referPrice?n("h3",{staticClass:"district"},[n("span",{staticClass:"icon"},[t._v("¥")]),n("span",{staticClass:"number"},[t._v(t._s(e.referPrice))]),n("span",{staticClass:"suffix"},[t._v("起")])]):t._e()]),n("span",{staticClass:"star"},[t._v(t._s(e.star))])],1)],1)})),0),t.end&&!t.page.loading?n("p",{staticClass:"end"},[t._v("没有更多")]):t._e(),t.page.loading?n("uni-load-more",{attrs:{status:"loading"}}):t._e(),n("calendar-page",{attrs:{animation:t.close,value:t.IsCalender,info:t.info},on:{"on-determine":function(e){e=t.$handleEvent(e),t.handeldetermine(e)},"on-close":function(e){e=t.$handleEvent(e),t.handelClose(e)}}}),n("scroll-top")],1)},a=[];i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return a}))},f599:function(t,e,i){"use strict";i.r(e);var n=i("b595"),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},f96a:function(t,e,i){"use strict";i.r(e);var n=i("43ba"),a=i("f599");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("039d");var r=i("2877"),s=Object(r["a"])(a["default"],n["a"],n["b"],!1,null,"d227dc2c",null);e["default"]=s.exports}}]);