1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-film-filmPlay~pages-film-filmYSearch"],{"0c5c":function(t,e,i){"use strict";var n=i("6153"),a=i.n(n);a.a},4530:function(t,e,i){"use strict";i.r(e);var n=i("757a"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},6153:function(t,e,i){var n=i("dd38");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("7f4b5641",n,!0,{sourceMap:!1,shadowMode:!1})},6999:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.skeleton[data-v-4c72cf65]{background-color:#f1f2f4!important;color:#f1f2f4!important;margin:var(--skeleton)}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */',""]),t.exports=e},"757a":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2634")),s=n(i("2fdc"));i("9c4e"),i("64aa");var r=n(i("dbcc")),o={name:"u-sticky",mixins:[uni.$u.mpMixin,uni.$u.mixin,r.default],data:function(){return{cssSticky:!1,stickyTop:0,elId:uni.$u.guid(),left:0,width:"auto",height:"auto",fixed:!1}},computed:{style:function(){var t={};return this.disabled?t.position="static":this.cssSticky?(t.position="sticky",t.zIndex=this.uZindex,t.top=uni.$u.addUnit(this.stickyTop)):t.height=this.fixed?this.height+"px":"auto",t.backgroundColor=this.bgColor,uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},stickyContent:function(){var t={};return this.cssSticky||(t.position=this.fixed?"fixed":"static",t.top=this.stickyTop+"px",t.left=this.left+"px",t.width="auto"==this.width?"auto":this.width+"px",t.zIndex=this.uZindex),t},uZindex:function(){return this.zIndex?this.zIndex:uni.$u.zIndex.sticky}},mounted:function(){this.init()},methods:{init:function(){this.getStickyTop(),this.checkSupportCssSticky(),this.cssSticky||!this.disabled&&this.initObserveContent()},initObserveContent:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height,t.left=e.left,t.width=e.width,t.$nextTick((function(){t.observeContent()}))}))},observeContent:function(){var t=this;this.disconnectObserver("contentObserver");var e=uni.createIntersectionObserver({thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe("#".concat(this.elId),(function(e){t.setFixed(e.boundingClientRect.top)})),this.contentObserver=e},setFixed:function(t){var e=t<=this.stickyTop;this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()},getStickyTop:function(){this.stickyTop=uni.$u.getPx(this.offsetTop)+uni.$u.getPx(this.customNavHeight)},checkSupportCssSticky:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.checkCssStickyForH5()&&(t.cssSticky=!0),"android"===uni.$u.os()&&Number(uni.$u.sys().system)>8&&(t.cssSticky=!0),"ios"===uni.$u.os()&&(t.cssSticky=!0);case 3:case"end":return e.stop()}}),e)})))()},checkComputedStyle:function(){},checkCssStickyForH5:function(){for(var t=["","-webkit-","-ms-","-moz-","-o-"],e=t.length,i=document.createElement("div"),n=0;n<e;n++)if(i.style.position=t[n]+"sticky",""!==i.style.position)return!0;return!1}},beforeDestroy:function(){this.disconnectObserver("contentObserver")}};e.default=o},"84ab":function(t,e,i){"use strict";(function(t){i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("e966"),i("c9b5"),i("bf0f"),i("ab80"),i("5c47"),i("a1c1"),i("c223");i("8f59");var n={computed:{},methods:{isMoreOneTime:function(t){var e=new Date(t).getTime(),i=(new Date).getTime(),n=parseInt(e-i);return n>36e5},getUnixTime:function(t){var e=new Date(t),i=e.getTime().toString();return i.substr(0,10)},ReverseRankingDate:function(t,e){if(t){for(var i=0;i<t.length-1;i++)for(var n=0;n<t.length-1-i;n++)if(Date.parse(t[n][e])>Date.parse(t[n+1][e])){var a=t[n];t[n]=t[n+1],t[n+1]=a}return t}},getTime:function(t){var e=new Date(t.replace(/-/g,"/"));e=Date.parse(e);var i=new Date(parseInt(e)),n=parseInt((e-(new Date).getTime())/864e5),a=(new Date).getDate(),s=i.getMonth()+1,r=i.getDate(),o=i.getHours()<10?"0"+i.getHours():i.getHours(),c=i.getMinutes()<10?"0"+i.getMinutes():i.getMinutes(),u=Math.abs(r-a),l={month:"".concat(s,"月").concat(r,"日"),date:"",time:o+":"+c};return n<3&&u<3?0===u?l.date="今天":1===u?l.date="明天":2===u&&(l.date="后天"):l.date=s+"月"+r+"日",l},openLocation:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:+this.cinemaData.latitude,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:+this.cinemaData.longitude;t.log(e,i),uni.openLocation({latitude:e,longitude:i,success:function(){t.log("success")}})}}};e.default=n}).call(this,i("ba7c")["default"])},8851:function(t,e,i){"use strict";i.r(e);var n=i("dc57"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},9696:function(t,e,i){var n=i("6999");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("5c87abb3",n,!0,{sourceMap:!1,shadowMode:!1})},aa25:function(t,e,i){"use strict";i.r(e);var n=i("b348"),a=i("8851");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("0c5c");var r=i("828b"),o=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"617def0d",null,!1,n["a"],void 0);e["default"]=o.exports},ac84:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"u-sticky",style:[this.style],attrs:{id:this.elId}},[e("v-uni-view",{staticClass:"u-sticky__content",style:[this.stickyContent]},[this._t("default")],2)],1)},a=[]},b348:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"film-list"},[i("v-uni-view",{staticClass:"times"},[i("v-uni-view",{staticClass:"film-time"},[t._v(t._s(t.filmList.showTime.substring(11,16)))]),i("v-uni-view",{staticClass:"film-end"},[t._v(t._s(t.filmList.stopSellTime.substring(11,16))+"散场")])],1),i("v-uni-view",{staticClass:"size"},[i("v-uni-view",{staticClass:"film-type"},[t._v(t._s(t.filmList.showVersionType))]),i("v-uni-view",{staticClass:"film-end"},[t._v(t._s(t.filmList.hallName))])],1),i("v-uni-view",{staticClass:"price"},[i("v-uni-view",{staticClass:"film-price"},[i("v-uni-text",{staticClass:"del-price"},[t._v("¥"+t._s(t.filmList.showPrice))]),i("v-uni-text",[t._v("¥")]),t._v(t._s(Math.round(100*(parseFloat(t.filmList.pay_price)-parseFloat(t.filmList.deduction_price)))/100))],1),i("v-uni-view",{staticClass:"film-card"},[t._v("消费卡补贴:"+t._s(t.filmList.deduction_price))])],1),i("v-uni-view",{staticClass:"film-buy",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buyBill(t.filmList.showTime)}}},[t._v("购票")])],1)},a=[]},c410:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getFilmpPlaceOrder=e.getFilmYuan=e.getFilmTimeSeat=e.getFilmTime=e.getFilmOrderListDetail=e.getFilmOrderList=e.getFilmList=e.getFilmCity=e.getCityId=e.getCancelPay=void 0;var a=n(i("706a"));e.getFilmList=function(t){return a.default.Request({url:"/card.ticket/filmQuery",parameters:t})};e.getFilmCity=function(t){return a.default.Request({url:"/card.ticket/cityQuery",parameters:t})};e.getFilmYuan=function(t){return a.default.Request({url:"/card.ticket/cinemaQuery",parameters:t})};e.getFilmTime=function(t){return a.default.Request({url:"/card.ticket/showPreferentialQuery",parameters:t})};e.getFilmTimeSeat=function(t){return a.default.Request({url:"/card.ticket/seatQuery",parameters:t})};e.getFilmOrderList=function(t){return a.default.Request({url:"/card.ticket/orderList",parameters:t})};e.getFilmOrderListDetail=function(t){return a.default.Request({url:"/card.ticket/orderInfo",parameters:t})};e.getFilmpPlaceOrder=function(t){return a.default.Request({url:"/card.ticket/createOrder",parameters:t})};e.getCityId=function(t){return a.default.Request({url:"/card.ticket/getCityRegions",parameters:t})};e.getCancelPay=function(t){return a.default.Request({url:"/card.ticket/caleOrder",parameters:t})}},c753:function(t,e,i){"use strict";i.r(e);var n=i("ac84"),a=i("4530");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("f8da");var r=i("828b"),o=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"4c72cf65",null,!1,n["a"],void 0);e["default"]=o.exports},dbcc:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("9c4e");var n={props:{offsetTop:{type:[String,Number],default:uni.$u.props.sticky.offsetTop},customNavHeight:{type:[String,Number],default:44},disabled:{type:Boolean,default:uni.$u.props.sticky.disabled},bgColor:{type:String,default:uni.$u.props.sticky.bgColor},zIndex:{type:[String,Number],default:uni.$u.props.sticky.zIndex},index:{type:[String,Number],default:uni.$u.props.sticky.index}}};e.default=n},dc57:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("d4b5");var a=n(i("80e1")),s=n(i("84ab")),r={mixins:[a.default,s.default],data:function(){return{}},props:{filmList:{type:Object,default:{}},filmData:{type:Object,default:{}},cinemaData:{type:Object,default:{}}},methods:{buyBill:function(){uni.navigateTo({url:"../../pages/film/filmSeat?cinemaData=".concat(encodeURIComponent(JSON.stringify(this.cinemaData)),"&filmList=").concat(encodeURIComponent(JSON.stringify(this.filmList)),"&filmData=").concat(encodeURIComponent(JSON.stringify(this.filmData)))})}}};e.default=r},dd38:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.skeleton[data-v-617def0d]{background-color:#f1f2f4!important;color:#f1f2f4!important;margin:var(--skeleton)}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.film-list[data-v-617def0d]{width:100%;display:flex;justify-content:space-between;align-items:center;margin:%?22?% %?0?%}.film-list .times[data-v-617def0d]{width:20%;height:%?80?%;display:flex;flex-direction:column;justify-content:space-between;margin-right:%?24?%}.film-list .times .film-time[data-v-617def0d]{font-size:%?40?%;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:%?52?%}.film-list .times .film-end[data-v-617def0d]{font-size:%?24?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:%?32?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.film-list .size[data-v-617def0d]{width:25%;display:flex;flex-direction:column;justify-content:space-between}.film-list .size .film-end[data-v-617def0d]{font-size:%?24?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#666;line-height:%?32?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.film-list .size .film-type[data-v-617def0d]{font-size:%?26?%;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#333;line-height:%?60?%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.film-list .price[data-v-617def0d]{width:35%}.film-list .price .film-price[data-v-617def0d]{font-size:%?32?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:900;color:#fc4b5c;line-height:%?60?%;text-align:right}.film-list .price .film-price uni-text[data-v-617def0d]{font-size:%?24?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fc4b5c;line-height:%?32?%}.film-list .price .film-price .del-price[data-v-617def0d]{font-size:%?24?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:%?32?%;text-decoration:line-through}.film-list .price .film-card[data-v-617def0d]{font-size:%?24?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;line-height:%?32?%;text-align:right}.film-list .film-buy[data-v-617def0d]{width:%?170?%;height:%?80?%;background:linear-gradient(136deg,#fc4b5c,#fd8d3d);box-shadow:%?0?% %?2?% %?8?% %?0?% rgba(0,0,0,.1);border-radius:%?40?%;text-align:center;color:#fff;font-size:%?24?%;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#fff;line-height:%?80?%;margin-left:%?16?%}.film-list .dontBuy[data-v-617def0d]{background:linear-gradient(136deg,#646464,#121212)}',""]),t.exports=e},f8da:function(t,e,i){"use strict";var n=i("9696"),a=i.n(n);a.a}}]); |