(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/hqs-popup/hqs-popup"],{894:function(t,n,e){"use strict";e.r(n);var o=e(895),i=e(897);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e(899);var r,u=e(46),c=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],r);c.options.__file="components/hqs-popup/hqs-popup.vue",n["default"]=c.exports},895:function(t,n,e){"use strict";e.r(n);var o=e(896);e.d(n,"render",(function(){return o["render"]})),e.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(n,"components",(function(){return o["components"]}))},896:function(t,n,e){"use strict";var o;e.r(n),e.d(n,"render",(function(){return i})),e.d(n,"staticRenderFns",(function(){return r})),e.d(n,"recyclableRender",(function(){return s})),e.d(n,"components",(function(){return o}));try{o={uniPopup:function(){return e.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(e.bind(null,578))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,811))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,n=t.$createElement;t._self._c},s=!1,r=[];i._withStripped=!0},897:function(t,n,e){"use strict";e.r(n);var o=e(898),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},898:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){e.e("components/hqs-popup/uni-popup").then(function(){return resolve(e(1128))}.bind(null,e)).catch(e.oe)},i={components:{UniPopup:o},props:{value:Boolean,from:{type:String,default:"bottom"},round:{type:Number,default:10},width:{type:String,default:"60vw"},height:{type:String,default:"50vh"},showHeader:{type:Boolean,default:!0},title:String,showBack:Boolean,showClose:{type:[Boolean,String],default:!0},maskClick:{type:Boolean,default:!0}},data:function(){return{scrollTop:0,panStyle:"",showPopup:!1}},computed:{closeIcon:function(){return"string"==typeof this.showClose&&this.showClose},isVertical:function(){return["bottom","top"].includes(this.from)},conStyle:function(){var t=this.panStyle||"",n=this.round;return n>0&&(n+="px",n="bottom"==this.from?[n,n,0,0]:"left"==this.from?[0,n,n,0]:"right"==this.from?[n,0,0,n]:[0,0,n,n],t+="border-radius: ".concat(n.join(" "),";")),t}},watch:{value:function(t){t!=this.showPopup&&(t?this.open():this.close())},showPopup:function(t){this.$emit("input",t)}},mounted:function(){this.value&&this.open()},methods:{onScroll:function(t){this.scrollTop=t.detail.scrollTop},onTouch:function(t){var n=this,e=t.changedTouches[0]||t,o=e.pageX,i=e.pageY;if(["touchstart","mousedown"].includes(t.type))this.startX=o,this.startY=i,this.startTime=t.timeStamp;else{if(!this.startTime)return;var s=this.isVertical?"Y":"X",r=i-this.startY;"left"==this.from?r=this.startX-o:"right"==this.from?r=o-this.startX:"top"==this.from&&(r=-r),this.maskClick||(r/=3);var u=t.timeStamp-this.startTime,c=r/u;if(["touchend","mouseup"].includes(t.type))return this.panStyle&&(this.maskClick&&(r>120||c>.25)?this.close():this.panStyle="transform: translate".concat(s,"(0); transition: all ease 200ms;"),setTimeout((function(){n.panStyle=""}),300)),void(this.startTime=0);r>0&&("left"!=this.from&&"top"!=this.from||(r*=-1),this.panStyle="transform: translate".concat(s,"(").concat(r,"px); transition: none;"))}},onChange:function(t){var n=t.show;this.showPopup=n},open:function(){this.$refs.popup.open(),this.showPopup=!0},close:function(){this.$refs.popup.close(),this.showPopup=!1},onBack:function(){this.$emit("back")}}};n.default=i},899:function(t,n,e){"use strict";e.r(n);var o=e(900),i=e.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},900:function(t,n,e){}}]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/components/hqs-popup/hqs-popup.js.map ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'components/hqs-popup/hqs-popup-create-component', { 'components/hqs-popup/hqs-popup-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('2')['createComponent'](__webpack_require__(894)) }) }, [['components/hqs-popup/hqs-popup-create-component']] ]);