1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/hotel"],{"1d03":function(t,o,e){"use strict";e.r(o);var i=e("6433"),s=e.n(i);for(var n in i)"default"!==n&&function(t){e.d(o,t,(function(){return i[t]}))}(n);o["default"]=s.a},5161:function(t,o,e){"use strict";e.r(o);var i=e("8028"),s=e("1d03");for(var n in s)"default"!==n&&function(t){e.d(o,t,(function(){return s[t]}))}(n);e("ab39");var c,a=e("f0c5"),d=Object(a["a"])(s["default"],i["b"],i["c"],!1,null,"b9d0873e",null,!1,i["a"],c);o["default"]=d.exports},6433:function(t,o,e){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var i=e("2f62");function s(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,i)}return e}function n(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?s(Object(e),!0).forEach((function(o){c(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}function c(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}var a=function(){e.e("component/uni-icon/uni-icon").then(function(){return resolve(e("d4ee"))}.bind(null,e)).catch(e.oe)},d=function(){e.e("component/loginDialog").then(function(){return resolve(e("3478"))}.bind(null,e)).catch(e.oe)},r=function(){e.e("component/uni-nav-bar/uni-nav-bar").then(function(){return resolve(e("9d62"))}.bind(null,e)).catch(e.oe)},l=function(){e.e("component/commoNar").then(function(){return resolve(e("e217"))}.bind(null,e)).catch(e.oe)},h=function(){e.e("component/shopList").then(function(){return resolve(e("989b"))}.bind(null,e)).catch(e.oe)},u=function(){e.e("component/assess").then(function(){return resolve(e("553f"))}.bind(null,e)).catch(e.oe)},g={components:{uniIcon:a,uniNavBar:r,commoNar:l,assess:u,shopList:h,logionDialog:d},data:function(){return{hoteldetail:{},has_collected:0,chosegoods_commonid:!0,chosegoods_price:!0,firstwo:1,isDetail:1,pictureUrl:this.pictureUrl,showdialog:!1,store_description:"",store_summary:"",store_slide:[],goods_list:[],isnexttwo:1,feedback_list:[],hotelitle:"",istopclick:0,page:1,goodId:0,page_size:10,gc_id_1:"",gc_id_2:"",goods_commonid:"",goods_price:"",praise:"",keyword:"",category_list:[],tabIndex:1,menu:[{name:"综合",id:"0"},{name:"上新",id:"1"},{name:"价格",id:"2"},{name:"分类",id:"3"}],background:["color1","color2","color3"],indicatorDots:!0,autoplay:!0,interval:2e3,duration:500,activeindex:0,scrollTop:0,old:{scrollTop:0},value1:0,iScrolltop:1}},onReady:function(){},onLoad:function(t){this.goodId=t.id,this.activeindex=0,this.getshopdetail(),this.hotelmenu(),this.gethoteil()},computed:n({},(0,i.mapState)(["hasLogin","userInfo"])),methods:{gofeedback:function(){if(0!=this.hoteldetail.can_feedback){var o=this.goodId;t.navigateTo({url:"/pages/index/feedback?store_id=".concat(o)})}else this.$msg(this.hoteldetail.feedback_msg)},gotosearch:function(){var o=this.goodId;t.navigateTo({url:"/pages/index/hotelsearch?store_id=".concat(o)})},gocollect:function(){var t=this;this.hasLogin?this.request({url:"/v1/favorites/collect",method:"post",data:{type:"store",fav_id:this.goodId},success:function(){t.gethoteil()}}):this.showdialog=!0},cancelDiaolog:function(){this.showdialog=!1},confirmDiaolog:function(){this.showdialog=!1},choseType:function(t){this.tabIndex=t,this.goods_list=[],1==this.tabIndex?(this.istopclick=0,this.gc_id_1="",this.goods_price="",this.goods_commonid=""):2==this.tabIndex?(this.chosegoods_price=!0,console.log(this.chosegoods_commonid),this.istopclick=this.chosegoods_commonid?1:2,this.goods_price="",this.goods_commonid=this.chosegoods_commonid?"asc":"desc",this.gc_id_1="",this.chosegoods_commonid=!this.chosegoods_commonid):3==this.tabIndex?(this.chosegoods_commonid=!0,console.log(this.chosegoods_price),this.istopclick=this.chosegoods_price?3:4,this.goods_price=this.chosegoods_price?"desc":"asc",this.goods_commonid="",this.gc_id_1="",this.chosegoods_price=!this.chosegoods_price):4==this.tabIndex&&(this.istopclick=0,this.goods_price="",this.goods_commonid="",this.chosegoods_price=!0,this.chosegoods_commonid=!0),this.getshopdetail()},changeisclick:function(t){},godetail:function(o){console.log(o);var e=o.gc_id,i=this.goodId,s=o.gc_name;t.navigateTo({url:"/pages/index/hoteldetail?id=".concat(e,"&gc_name=").concat(s,"&store_id=").concat(i)})},getshopdetail:function(){var t=this;this.request({url:"/v2/entry/storeGoods",method:"get",data:{store_id:this.goodId,page:this.page,goods_commonid:this.goods_commonid,goods_price:this.goods_price,gc_id_1:this.gc_id_1},success:function(o){t.goods_list=t.goods_list.concat(o.data.data.goods_list),o.data.data.goods_list.length<10&&(t.isDetail=2)}})},hotelmenu:function(){var t=this;this.request({url:"/v1/entry/storeCategory",method:"get",data:{store_id:this.goodId},success:function(o){var e=o.data.data.category_list;e.forEach((function(t,o){t.text=t.gc_name,t.value=o})),t.category_list=e}})},onChange:function(t){this.activeindex=t.detail.name,this.page=1,1==t.detail.name?this.getcomment():0==t.detail.name&&this.getshopdetail()},getcomment:function(){var t=this;this.request({url:"/v1/store/feedbackList",method:"POST",data:{page:this.page,page_size:10,store_id:this.goodId},success:function(o){t.feedback_list=o.data.data.feedback_list,o.data.data.feedback_list.length<10&&(t.isnexttwo=2)}})},gethoteil:function(){var t=this;this.request({url:"/v1/store/info",method:"get",data:{store_id:this.goodId},success:function(o){var e=o.data.data;t.hoteldetail=e,t.hotelitle=e.store_name,t.store_slide=e.store_slide,t.store_summary=e.store_summary,t.store_description=e.store_description,t.has_collected=e.has_collected}})},changemenu:function(t){},confirm:function(t){this.tabIndex=0,this.gc_id_1=t.gc_id,this.getshopdetail()},upper:function(t){console.log("顶部")},lower:function(t){console.log(this.activeindex),console.log(this.isDetail),1==this.activeindex?(1==this.isnexttwo&&(this.page=this.page+1),this.getcomment()):0==this.activeindex&&1==this.isDetail&&(this.page=this.page+1,this.getshopdetail())},scroll:function(t){this.old.scrollTop=t.detail.scrollTop,t.detail.scrollTop>160?this.iScrolltop=2:this.iScrolltop=1},goback:function(){t.navigateBack()}}};o.default=g}).call(this,e("543d")["default"])},8028:function(t,o,e){"use strict";var i,s=function(){var t=this,o=t.$createElement;t._self._c},n=[];e.d(o,"b",(function(){return s})),e.d(o,"c",(function(){return n})),e.d(o,"a",(function(){return i}))},"831d":function(t,o,e){},9801:function(t,o,e){"use strict";(function(t){e("0bef"),e("921b");i(e("66fd"));var o=i(e("5161"));function i(t){return t&&t.__esModule?t:{default:t}}t(o.default)}).call(this,e("543d")["createPage"])},ab39:function(t,o,e){"use strict";var i=e("831d"),s=e.n(i);s.a}},[["9801","common/runtime","common/vendor"]]]);
|