airportPickup-chooseCard~cinema-page-index~pages-index-pages-home~store-page-linkage-linkpage~system~c6f2f226.7693f9c7.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["airportPickup-chooseCard~cinema-page-index~pages-index-pages-home~store-page-linkage-linkpage~system~c6f2f226"],{"0c47":function(t,e,n){"use strict";n.r(e);var o=n("b5aa"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"13de":function(t,e,n){"use strict";n.r(e);var o=n("a674"),a=n("0c47");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("9f26");var s=n("828b"),c=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"32913ef2",null,!1,o["a"],void 0);e["default"]=c.exports},"2f0f":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("39d8"));n("bf0f");var i=n("262c"),s=n("a69d"),c={data:function(){return{}},methods:{checkHasPositionInfo:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(n,o){var a=(0,i.getLocationInfoFromCache)();console.log("获取定位2222"),e||!a||0===a.lat||0===a.lng||1===a.lat||1===a.lng?(console.log("获取定位3333"),t._checkHasSystemPositionAuthorization().then((function(){console.log("获取定位4444"),t._checkHasPositionAuthorization().then((function(){console.log("获取定位5555"),n()})).catch((function(){o({closeAppLocation:!0})}))})).catch((function(){o({closeSystemLocation:!0})}))):n()}))},_checkHasPositionAuthorization:function(){var t=this;return new Promise((function(e,n){t._getLocationInfo().then((function(){e()})).catch((function(){n()}))}))},_checkHasSystemPositionAuthorization:function(){return new Promise((function(t,e){var n=uni.getSystemInfoSync();if(!n.locationAuthorized||!n.locationEnabled)return t(),!1;t()}))},transformlat:function(t,e){var n=3.141592653589793,o=2*t-100+3*e+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return o+=2*(20*Math.sin(6*t*n)+20*Math.sin(2*t*n))/3,o+=2*(20*Math.sin(e*n)+40*Math.sin(e/3*n))/3,o+=2*(160*Math.sin(e/12*n)+320*Math.sin(e*n/30))/3,o},transformlng:function(t,e){var n=3.141592653589793,o=300+t+2*e+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t));return o+=2*(20*Math.sin(6*t*n)+20*Math.sin(2*t*n))/3,o+=2*(20*Math.sin(t*n)+40*Math.sin(t/3*n))/3,o+=2*(150*Math.sin(t/12*n)+300*Math.sin(t/30*n))/3,o},toGcj02:function(t,e){var n=3.141592653589793,o=.006693421622965943,a=6378245,i=this.transformlat(t-105,e-35),s=this.transformlng(t-105,e-35),c=e/180*n,r=Math.sin(c);r=1-o*r*r;var l=Math.sqrt(r);i=180*i/(a*(1-o)/(r*l)*n),s=180*s/(a/l*Math.cos(c)*n);var u=e+i,d=t+s;return[d,u]},_getLocationInfo:function(){return new Promise((function(t,e){var n;uni.getLocation((n={type:"gcj02"},(0,a.default)(n,"type","wgs84"),(0,a.default)(n,"altitude",!0),(0,a.default)(n,"success",(function(e){console.log("获取定位成功:",e);var n=e.latitude,o=e.longitude;(0,i.setLocationInfoToCache)({lat:n,lng:o}),t(e)})),(0,a.default)(n,"fail",(function(n){console.error("获取定位失败:",n),(0,s.locationByIpApi)().then((function(o){console.log("ip定位成功:",o),!1!==o.data?((0,i.setLocationInfoToCache)({lat:o.lat,lng:o.lng,address:o.address}),t(o)):e(n)})).catch((function(t){console.error("ip定位失败:",t),e(t)}))})),n))}))},_openScopeSettingPage:function(){return new Promise((function(t,e){uni.openSetting({success:function(t){},fail:function(t){console.error("设置定位权限失败",t),e()}})}))}}};e.default=c},4226:function(t,e,n){var o=n("4dd1");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("967d").default;a("21bec7a9",o,!0,{sourceMap:!1,shadowMode:!1})},4372:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.openModal?n("v-uni-view",{staticClass:"center-modal",style:[t.modalStyle]},[n("v-uni-view",{staticClass:"center-modal__mask",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.closeModal.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"center-modal__wrapper",class:[{"no-padding":t.contentNoPadding}],style:[t.wrapperStyle]},[t.closeBtn?n("v-uni-view",{staticClass:"center-modal__close-btn",style:[t.closeBtnStyle],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.closeModal.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"tn-icon-close"})],1):t._e(),t.showTitle?n("v-uni-view",{staticClass:"center-modal__title"},[t._v(t._s(t.title))]):t._e(),n("v-uni-view",{staticClass:"center-modal__content",class:[{"no-top":t.contentNoTop}]},[t._t("default")],2),t.showCancel||t.showConfirm?n("v-uni-view",{staticClass:"center-modal__operation-btn"},[t.showCancel?n("v-uni-view",{staticClass:"cancel-btn",attrs:{"hover-class":"tn-btn-hover-class","hover-stay-time":150},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.cancelEvent.apply(void 0,arguments)}}},[t._v(t._s(t.cancelText))]):t._e(),t.showConfirm?n("v-uni-view",{staticClass:"confirm-btn",style:[t.themeBtnStyle],attrs:{"hover-class":"tn-btn-hover-class","hover-stay-time":150},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.confirmEvent.apply(void 0,arguments)}}},[t._v(t._s(t.confirmText))]):t._e()],1):t._e()],1)],1):t._e()},a=[]},"495e":function(t,e,n){"use strict";n.r(e);var o=n("4372"),a=n("7d42");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("ff5b");var s=n("828b"),c=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"e21e205a",null,!1,o["a"],void 0);e["default"]=c.exports},"4dd1":function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.center-modal[data-v-e21e205a]{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:99998\n /* mask */\n /* wrapper */\n /* close-btn */\n /* 标题 */\n /* 内容区域 */\n /* 操作按钮 */}.center-modal__mask[data-v-e21e205a]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);opacity:0;-webkit-animation:showMask-data-v-e21e205a .25s ease .1s forwards;animation:showMask-data-v-e21e205a .25s ease .1s forwards}.center-modal__wrapper[data-v-e21e205a]{position:absolute;left:50%;top:50%;width:80%;background-color:#fff;border-radius:%?15?%;padding:%?40?%;-webkit-transform-origin:center center;transform-origin:center center;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);-webkit-animation:showWrapper-data-v-e21e205a .25s ease .1s forwards;animation:showWrapper-data-v-e21e205a .25s ease .1s forwards;z-index:99999}.center-modal__wrapper.no-padding[data-v-e21e205a]{padding:%?0?%}.center-modal__close-btn[data-v-e21e205a]{position:absolute;top:%?30?%;right:%?30?%;z-index:99999}.center-modal__title[data-v-e21e205a]{position:absolute;top:%?30?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);font-size:%?38?%}.center-modal__content[data-v-e21e205a]{position:relative;width:100%;margin-top:%?60?%}.center-modal__content.no-top[data-v-e21e205a]{margin-top:%?0?%}.center-modal__operation-btn[data-v-e21e205a]{margin-top:%?40?%;display:flex;align-items:center}.center-modal__operation-btn .cancel-btn[data-v-e21e205a], .center-modal__operation-btn .confirm-btn[data-v-e21e205a]{flex:1;padding:%?20?%;border-radius:%?15?%;display:flex;align-items:center;justify-content:center}.center-modal__operation-btn .cancel-btn[data-v-e21e205a]{margin-right:%?20?%;background-color:#f3f2f7}@-webkit-keyframes showMask-data-v-e21e205a{0%{opacity:0}100%{opacity:1}}@keyframes showMask-data-v-e21e205a{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes showWrapper-data-v-e21e205a{0%{-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0)}100%{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}}@keyframes showWrapper-data-v-e21e205a{0%{-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0)}100%{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}}',""]),t.exports=e},5157:function(t,e,n){var o=n("6961");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("967d").default;a("497ee3ef",o,!0,{sourceMap:!1,shadowMode:!1})},6961:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tips-content[data-v-32913ef2]{font-size:%?30?%;line-height:2em}',""]),t.exports=e},"7d42":function(t,e,n){"use strict";n.r(e);var o=n("98c1"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"98c1":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var a=o(n("dc1f")),i={props:{value:{type:Boolean,default:!1},title:{type:String,default:""},cancelText:{type:String,default:"取 消"},confirmText:{type:String,default:"确 认"},zIndex:{type:[String,Number],default:""},contentNoTop:{type:Boolean,default:!1},contentNoPadding:{type:Boolean,default:!1},wrapperWidth:{type:String,default:""},wrapperBgColor:{type:String,default:""},closeBtn:{type:Boolean,default:!0}},mixins:[a.default],data:function(){return{openModal:!1}},watch:{value:{handler:function(t){this.openModal=t},immediate:!0}},computed:{showTitle:function(){return" "!=this.title&&""!=this.title},showCancel:function(){return" "!=this.cancelText},showConfirm:function(){return" "!=this.confirmText},modalStyle:function(){var t={};return this.zIndex&&(t.zIndex=Number(this.zIndex-1)),t},closeBtnStyle:function(){var t={};return this.zIndex&&(t.zIndex=Number(this.zIndex)),t},wrapperStyle:function(){var t={};return this.zIndex&&(t.zIndex=Number(this.zIndex)),this.wrapperWidth&&(t.width=this.wrapperWidth),this.wrapperBgColor&&(t.backgroundColor=this.wrapperBgColor),t}},methods:{closeModal:function(){this.$emit("input",!1),this.$emit("close")},cancelEvent:function(){this.$emit("cancel")},confirmEvent:function(){this.$emit("confirm")}}};e.default=i},"9f26":function(t,e,n){"use strict";var o=n("5157"),a=n.n(o);a.a},a674:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("center-modal",{attrs:{title:"定位提示","confirm-text":t.confirmText},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.handleConfirmEvent.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCancelEvent.apply(void 0,arguments)}},model:{value:t.showAuthorizationLocationModal,callback:function(e){t.showAuthorizationLocationModal=e},expression:"showAuthorizationLocationModal"}},[n("v-uni-view",{staticClass:"tips-content"},[t._v(t._s(t.tipsContent))])],1)},a=[]},b5aa:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f");var a=o(n("2f0f")),i=o(n("495e")),s=n("419c"),c=n("262c"),r={props:{value:{type:Boolean,default:!1},currentLocation:{type:Boolean,default:!1}},components:{CenterModal:i.default},mixins:[a.default],data:function(){return{showAuthorizationLocationModal:!1,openSystemLocationScope:!0,openAppLocationScope:!0}},computed:{tipsContent:function(){return this.openAppLocationScope?this.openSystemLocationScope?" ":"若需使用平台,平台需要获取您的位置信息,请确认您的手机系统定位设置已经开启":"若需使用平台,平台需要获取您的位置信息,请授权当前小程序使用您的位置信息"},confirmText:function(){return this.openSystemLocationScope?this.openAppLocationScope?"确 认":"授 权":"选择地址"}},watch:{value:{handler:function(t){t&&this.checkLocationInfo()},immediate:!0}},created:function(){},methods:{checkLocationInfo:function(){var t=this;this.checkHasPositionInfo(this.currentLocation).then((function(){t._resetJudgeLocationModal(),t.successEmits()})).catch((function(e){null!==e&&void 0!==e&&e.closeSystemLocation?t.openSystemLocationScope=!1:t.openSystemLocationScope=!0,null!==e&&void 0!==e&&e.closeAppLocation?t.openAppLocationScope=!1:t.openAppLocationScope=!0,t.showAuthorizationLocationModal=!0}))},handleCancelEvent:function(){this.successEmits(),this._resetJudgeLocationModal()},handleConfirmEvent:function(){var t=this;if(!this.openSystemLocationScope)return this._resetJudgeLocationModal(),this.successEmits(),(0,s.navPage)("/system-page/choose-address/index");this.openAppLocationScope||this._openScopeSettingPage().then((function(){t.successEmits()})).catch((function(){t.$emit("fail")})).finally((function(){t._resetJudgeLocationModal()}))},successEmits:function(){var t=(0,c.getLocationInfoFromCache)();this.$emit("success",{lat:t.lat||1,lng:t.lng||1,address:t.address||[]})},_resetJudgeLocationModal:function(){this.openSystemLocationScope=!1,this.openAppLocationScope=!1,this.showAuthorizationLocationModal=!1,this.$emit("input",!1)}}};e.default=r},ff5b:function(t,e,n){"use strict";var o=n("4226"),a=n.n(o);a.a}}]);