12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f55f6af"],{"0661":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("b101");function o(t){function e(){this.binded||(t.call(this,n["b"],!0),this.binded=!0)}function i(){this.binded&&(t.call(this,n["a"],!1),this.binded=!1)}return{mounted:e,activated:e,deactivated:i,beforeDestroy:i}}},"196d":function(t,e,i){},"23c4":function(t,e,i){"use strict";function n(){return n=Object.assign||function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},n.apply(this,arguments)}var o=["attrs","props","domProps"],s=["class","style","directives"],a=["on","nativeOn"],r=function(t){return t.reduce((function(t,e){for(var i in e)if(t[i])if(-1!==o.indexOf(i))t[i]=n({},t[i],e[i]);else if(-1!==s.indexOf(i)){var r=t[i]instanceof Array?t[i]:[t[i]],u=e[i]instanceof Array?e[i]:[e[i]];t[i]=r.concat(u)}else if(-1!==a.indexOf(i))for(var l in e[i])if(t[i][l]){var h=t[i][l]instanceof Array?t[i][l]:[t[i][l]],d=e[i][l]instanceof Array?e[i][l]:[e[i][l]];t[i][l]=h.concat(d)}else t[i][l]=e[i][l];else if("hook"==i)for(var f in e[i])t[i][f]=t[i][f]?c(t[i][f],e[i][f]):e[i][f];else t[i]=e[i];else t[i]=e[i];return t}),{})},c=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=r},"38d4":function(t,e,i){"use strict";var n=i("23c4"),o=i.n(n),s=i("af43"),a=i("de74"),r=i("c041"),c=Object(s["a"])("info"),u=c[0],l=c[1];function h(t,e,i,n){var s=e.dot,c=e.info,u=Object(a["b"])(c)&&""!==c;if(s||u)return t("div",o()([{class:l({dot:s})},Object(r["a"])(n,!0)]),[s?"":e.info])}h.props={dot:Boolean,info:[Number,String]},e["a"]=u(h)},"4bc8":function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return u})),i.d(e,"b",(function(){return l})),i.d(e,"a",(function(){return h}));var n=i("de74"),o=Date.now();function s(t){var e=Date.now(),i=Math.max(0,16-(e-o)),n=setTimeout(t,i);return o=e+i,n}var a=n["e"]?t:window,r=a.requestAnimationFrame||s,c=a.cancelAnimationFrame||a.clearTimeout;function u(t){return r.call(a,t)}function l(t){u((function(){u(t)}))}function h(t){c.call(a,t)}}).call(this,i("5243"))},"4bf1":function(t,e,i){},7515:function(t,e,i){},"77b8":function(t,e,i){},8673:function(t,e,i){},8683:function(t,e,i){"use strict";function n(t){return t===window}i.d(e,"d",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"b",(function(){return c})),i.d(e,"g",(function(){return u})),i.d(e,"a",(function(){return l})),i.d(e,"e",(function(){return h})),i.d(e,"f",(function(){return d}));var o=/scroll|auto/i;function s(t,e){void 0===e&&(e=window);var i=t;while(i&&"HTML"!==i.tagName&&1===i.nodeType&&i!==e){var n=window.getComputedStyle(i),s=n.overflowY;if(o.test(s)){if("BODY"!==i.tagName)return i;var a=window.getComputedStyle(i.parentNode),r=a.overflowY;if(o.test(r))return i}i=i.parentNode}return e}function a(t){return"scrollTop"in t?t.scrollTop:t.pageYOffset}function r(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function c(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function u(t){r(window,t),r(document.body,t)}function l(t){return n(t)?0:t.getBoundingClientRect().top+c()}function h(t){return n(t)?t.innerHeight:t.getBoundingClientRect().height}function d(t){return n(t)?0:t.getBoundingClientRect().top}},"883d":function(t,e,i){},"993e":function(t,e,i){"use strict";var n=i("de74");function o(t){return/^\d+(\.\d+)?$/.test(t)}function s(t){if(Object(n["b"])(t))return t=String(t),o(t)?t+"px":t}i.d(e,"a",(function(){return s}))},a25a:function(t,e,i){},af43:function(t,e,i){"use strict";var n="__",o="--";function s(t,e,i){return e?t+i+e:t}function a(t,e){if("string"===typeof e)return s(t,e,o);if(Array.isArray(e))return e.map((function(e){return a(t,e)}));var i={};return e&&Object.keys(e).forEach((function(n){i[t+o+n]=e[n]})),i}function r(t){return function(e,i){return e&&"string"!==typeof e&&(i=e,e=""),e=s(t,e,n),i?[e,a(e,i)]:e}}var c=i("de74"),u=/-(\w)/g;function l(t){return t.replace(u,(function(t,e){return e.toUpperCase()}))}var h=i("0261"),d=h["default"].extend({methods:{slots:function(t,e){void 0===t&&(t="default");var i=this.$slots,n=this.$scopedSlots,o=n[t];return o?o(e):i[t]}}});function f(t){var e=this.name;t.component(e,this),t.component(l("-"+e),this)}function v(t){var e=t.scopedSlots||t.data.scopedSlots||{},i=t.slots();return Object.keys(i).forEach((function(t){e[t]||(e[t]=function(){return i[t]})})),e}function p(t){return{functional:!0,props:t.props,model:t.model,render:function(e,i){return t(e,i.props,v(i),i)}}}function m(t){return function(e){return Object(c["c"])(e)&&(e=p(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(d)),e.name=t,e.install=f,e}}var g=Object.prototype.hasOwnProperty;function b(t,e,i){var n=e[i];Object(c["b"])(n)&&(g.call(t,i)&&Object(c["d"])(n)?t[i]=y(Object(t[i]),e[i]):t[i]=n)}function y(t,e){return Object.keys(e).forEach((function(i){b(t,e,i)})),t}var w={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}},O=h["default"].prototype,S=h["default"].util.defineReactive;S(O,"$vantLang","zh-CN"),S(O,"$vantMessages",{"zh-CN":w});var C={messages:function(){return O.$vantMessages[O.$vantLang]},use:function(t,e){var i;O.$vantLang=t,this.add((i={},i[t]=e,i))},add:function(t){void 0===t&&(t={}),y(O.$vantMessages,t)}};function x(t){var e=l(t)+".";return function(t){for(var i=C.messages(),n=Object(c["a"])(i,e+t)||Object(c["a"])(i,t),o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return Object(c["c"])(n)?n.apply(void 0,s):n}}function j(t){return t="van-"+t,[m(t),r(t),x(t)]}i.d(e,"a",(function(){return j}))},b101:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return r})),i.d(e,"c",(function(){return u}));var n=i("de74"),o=!1;if(!n["e"])try{var s={};Object.defineProperty(s,"passive",{get:function(){o=!0}}),window.addEventListener("test-passive",null,s)}catch(l){}function a(t,e,i,s){void 0===s&&(s=!1),n["e"]||t.addEventListener(e,i,!!o&&{capture:!1,passive:s})}function r(t,e,i){n["e"]||t.removeEventListener(e,i)}function c(t){t.stopPropagation()}function u(t,e){("boolean"!==typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&c(t)}},bed5:function(t,e,i){},c041:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return c}));var n=i("f39a"),o=i("0261"),s=["ref","style","class","attrs","nativeOn","directives","staticClass","staticStyle"],a={nativeOn:"on"};function r(t,e){var i=s.reduce((function(e,i){return t.data[i]&&(e[a[i]||i]=t.data[i]),e}),{});return e&&(i.on=i.on||{},Object(n["a"])(i.on,t.data.on)),i}function c(t,e){var i=new o["default"]({el:document.createElement("div"),props:t.props,render:function(i){return i(t,Object(n["a"])({props:this.$props},e))}});return document.body.appendChild(i.$el),i}},c2e8:function(t,e,i){},c494:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("0261"),o=i("b101"),s=10;function a(t,e){return t>e&&t>s?"horizontal":e>t&&e>s?"vertical":""}var r=n["default"].extend({data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e=t.touches[0];this.deltaX=e.clientX-this.startX,this.deltaY=e.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||a(this.offsetX,this.offsetY)},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this,i=e.onTouchStart,n=e.onTouchMove,s=e.onTouchEnd;Object(o["b"])(t,"touchstart",i),Object(o["b"])(t,"touchmove",n),s&&(Object(o["b"])(t,"touchend",s),Object(o["b"])(t,"touchcancel",s))}}})},de74:function(t,e,i){"use strict";i.d(e,"e",(function(){return o})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return r})),i.d(e,"a",(function(){return c}));var n=i("0261"),o=n["default"].prototype.$isServer;function s(t){return void 0!==t&&null!==t}function a(t){return"function"===typeof t}function r(t){return null!==t&&"object"===typeof t}function c(t,e){var i=e.split("."),n=t;return i.forEach((function(t){n=s(n[t])?n[t]:""})),n}},ea8f:function(t,e,i){},edc3:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"evaluateWtapper"},t._l(t.reply,(function(e,n){return i("div",{key:n,staticClass:"evaluateItem"},[i("div",{staticClass:"pic-text acea-row row-middle"},[i("div",{staticClass:"pictrue"},[i("img",{staticClass:"image",attrs:{src:e.avatar}})]),i("div",{staticClass:"acea-row row-middle"},[i("div",{staticClass:"name line1"},[t._v(t._s(e.nickname))]),i("div",{staticClass:"start",class:"star"+e.star})])]),i("div",{staticClass:"time"},[t._v(t._s(e.add_time)+" "+t._s(e.suk))]),i("div",{staticClass:"evaluate-infor"},[t._v(t._s(e.comment))]),i("div",{staticClass:"imgList acea-row"},t._l(e.pics,(function(n,o){return i("div",{key:o,staticClass:"pictrue",on:{click:function(i){return t.openIview(e.pics,o)}}},[i("img",{staticClass:"image",attrs:{src:n}})])})),0),e.merchant_reply_content?i("div",{staticClass:"reply"},[i("span",{staticClass:"font-color-red"},[t._v("店小二")]),t._v(":"+t._s(e.merchant_reply_content)+"\n ")]):t._e()])})),0)},o=[],s=(i("196d"),i("77b8"),i("c2e8"),i("bed5"),i("8673"),i("a25a"),i("7515"),i("ea8f"),i("4bf1"),i("883d"),i("f39a")),a=i("0261"),r=i("af43");function c(t,e,i){return Math.min(Math.max(t,e),i)}var u=i("b101"),l={zIndex:2e3,lockCount:0,stack:[],get top(){return this.stack[this.stack.length-1]}},h=i("23c4"),d=i.n(h),f=i("de74"),v=i("c041"),p=Object(r["a"])("overlay"),m=p[0],g=p[1];function b(t){Object(u["c"])(t,!0)}function y(t,e,i,n){var o=Object(s["a"])({zIndex:e.zIndex},e.customStyle);return Object(f["b"])(e.duration)&&(o.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",d()([{directives:[{name:"show",value:e.show}],style:o,class:[g(),e.className],on:{touchmove:b}},Object(v["a"])(n,!0)]),[i.default&&i.default()])])}y.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object};var w,O=m(y),S={className:"",customStyle:{}};function C(){if(l.top){var t=l.top.vm;t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}function x(){w=Object(v["b"])(O,{on:{click:C}})}function j(){if(w||x(),l.top){var t=l.top,e=t.vm,i=t.config,n=e.$el;n&&n.parentNode?n.parentNode.insertBefore(w.$el,n):document.body.appendChild(w.$el),Object(s["a"])(w,S,i,{show:!0})}else w.show=!1}function $(t,e){l.stack.some((function(e){return e.vm===t}))||(l.stack.push({vm:t,config:e}),j())}function T(t){var e=l.stack;e.length&&(l.top.vm===t?(e.pop(),j()):l.stack=e.filter((function(e){return e.vm!==t})))}function z(t){var e=t.parentNode;e&&e.removeChild(t)}var k=i("8683"),I=i("c494");function P(t){return"string"===typeof t?document.querySelector(t):t()}function E(t){var e=t.ref,i=t.afterPortal;return a["default"].extend({props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,n=this.getContainer,o=e?this.$refs[e]:this.$el;n?t=P(n):this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),i&&i.call(this)}}})}var M=i("0661"),Y=a["default"].extend({mixins:[Object(M["a"])((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{handlePopstate:function(t){if(!this.$isServer&&this.bindStatus!==t){this.bindStatus=t;var e=t?u["b"]:u["a"];e(window,"popstate",this.close)}}}}),L={value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function N(t){return void 0===t&&(t={}),{mixins:[I["a"],Y,E({afterPortal:function(){this.overlay&&j()}})],props:L,data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var i=e?"open":"close";this.inited=this.inited||this.value,this[i](),t.skipToggleEvent||this.$emit(i)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){this.close(),this.getContainer&&z(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(l.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.lockScroll&&(Object(u["b"])(document,"touchstart",this.touchStart),Object(u["b"])(document,"touchmove",this.onTouchMove),l.lockCount||document.body.classList.add("van-overflow-hidden"),l.lockCount++))},close:function(){this.opened&&(this.lockScroll&&(l.lockCount--,Object(u["a"])(document,"touchstart",this.touchStart),Object(u["a"])(document,"touchmove",this.onTouchMove),l.lockCount||document.body.classList.remove("van-overflow-hidden")),this.opened=!1,T(this),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",i=Object(k["d"])(t.target,this.$el),n=i.scrollHeight,o=i.offsetHeight,s=i.scrollTop,a="11";0===s?a=o>=n?"00":"01":s+o>=n&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||Object(u["c"])(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?$(t,{zIndex:l.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):T(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++l.zIndex+t}}}}var B=i("993e"),X=i("38d4"),A=Object(r["a"])("icon"),D=A[0],_=A[1];function R(t){return!!t&&-1!==t.indexOf("/")}var Z={medel:"medal","medel-o":"medal-o"};function W(t){return t&&Z[t]||t}function H(t,e,i,n){var o=W(e.name),s=R(o);return t(e.tag,d()([{class:[e.classPrefix,s?"":e.classPrefix+"-"+o],style:{color:e.color,fontSize:Object(B["a"])(e.size)}},Object(v["a"])(n,!0)]),[i.default&&i.default(),s&&t("img",{class:_("image"),attrs:{src:o}}),t(X["a"],{attrs:{dot:e.dot,info:e.info}})])}H.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:_()}};var F=D(H),q=Object(r["a"])("image"),J=q[0],U=q[1],V=J({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"warning-o"},loadingIcon:{type:String,default:"photo-o"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(f["b"])(this.width)&&(t.width=Object(B["a"])(this.width)),Object(f["b"])(this.height)&&(t.height=Object(B["a"])(this.height)),Object(f["b"])(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(B["a"])(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){var e=t.el;e===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){var e=t.el;e!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:U("loading")},[this.slots("loading")||t(F,{attrs:{name:this.loadingIcon},class:U("loading-icon")})]):this.error&&this.showError?t("div",{class:U("error")},[this.slots("error")||t(F,{attrs:{name:this.errorIcon},class:U("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:U("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",d()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",d()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:U({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder()])}}),G=i("4bc8"),K=Object(r["a"])("swipe"),Q=K[0],tt=K[1],et=Q({mixins:[I["a"],Object(M["a"])((function(t,e){t(window,"resize",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{computedWidth:0,computedHeight:0,offset:0,active:0,deltaX:0,deltaY:0,swipes:[],swiping:!1}},watch:{swipes:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.swipes.length},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t,e=this.vertical?"height":"width",i=this.vertical?"width":"height";return t={},t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":"",t.transitionDuration=(this.swiping?0:this.duration)+"ms",t.transform="translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)",t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){var t=this.$el.getBoundingClientRect();return(this.vertical?t.height:t.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),clearTimeout(this.timer),this.$el){var e=this.$el.getBoundingClientRect();this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height}this.swiping=!0,this.active=t,this.offset=this.count>1?-this.size*this.active:0,this.swipes.forEach((function(t){t.offset=0})),this.autoPlay()},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(u["c"])(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){if(this.delta&&this.isCorrectDirection){var t=this.vertical?this.offsetY:this.offsetX;this.move({pace:t>0?this.delta>0?-1:1:0,emitChange:!0})}this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count;return t?this.loop?c(e+t,-1,i):c(e+t,0,i-1):e},getTargetOffset:function(t,e){var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=Math.round(e-i);return this.loop||(n=c(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,o=void 0===n?0:n,s=t.emitChange,a=this.loop,r=this.count,c=this.active,u=this.swipes,l=this.trackSize,h=this.minOffset;if(!(r<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,o);if(a){if(u[0]){var v=f<h;u[0].offset=v?l:0}if(u[r-1]){var p=f>0;u[r-1].offset=p?-l:0}}this.active=d,this.offset=f,s&&d!==c&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(G["b"])((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(G["b"])((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(G["b"])((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?Object(G["b"])((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:n-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,o=this.slots("indicator");return o||(this.showIndicators&&i>1?e("div",{class:tt("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,o){return e("i",{class:tt("indicator",{active:o===n}),style:o===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:tt()},[t("div",{ref:"track",style:this.trackStyle,class:tt("track")},[this.slots()]),this.genIndicator()])}}),it=Object(r["a"])("loading"),nt=it[0],ot=it[1];function st(t,e){if("spinner"===e.type){for(var i=[],n=0;n<12;n++)i.push(t("i"));return i}return t("svg",{class:ot("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function at(t,e,i){if(i.default){var n=e.textSize&&{fontSize:Object(B["a"])(e.textSize)};return t("span",{class:ot("text"),style:n},[i.default()])}}function rt(t,e,i,n){var o=e.color,s=e.size,a=e.type,r={color:o};if(s){var c=Object(B["a"])(s);r.width=c,r.height=c}return t("div",d()([{class:ot([a,{vertical:e.vertical}])},Object(v["a"])(n,!0)]),[t("span",{class:ot("spinner",a),style:r},[st(t,e)]),at(t,e,i)])}rt.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],type:{type:String,default:"circular"}};var ct=nt(rt),ut=Object(r["a"])("swipe-item"),lt=ut[0],ht=ut[1],dt=lt({data:function(){return{offset:0}},beforeCreate:function(){this.$parent.swipes.push(this)},destroyed:function(){this.$parent.swipes.splice(this.$parent.swipes.indexOf(this),1)},render:function(){var t=arguments[0],e=this.$parent,i=e.vertical,n=e.computedWidth,o=e.computedHeight,a={width:n+"px",height:i?o+"px":"100%",transform:"translate"+(i?"Y":"X")+"("+this.offset+"px)"};return t("div",{class:ht(),style:a,on:Object(s["a"])({},this.$listeners)},[this.slots()])}}),ft=Object(r["a"])("image-preview"),vt=ft[0],pt=ft[1];function mt(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var gt,bt=vt({mixins:[N({skipToggleEvent:!0}),I["a"]],props:{className:null,lazyLoad:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:500},overlay:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},startPosition:{type:[Number,String],default:0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},overlayClass:{type:String,default:pt("overlay")}},data:function(){return{scale:1,moveX:0,moveY:0,active:0,moving:!1,zooming:!1,doubleClickTimer:null}},computed:{imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};return 1!==t&&(e.transform="scale3d("+t+", "+t+", 1) translate("+this.moveX/t+"px, "+this.moveY/t+"px)"),e}},watch:{value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})},startPosition:function(t){this.setActive(t)},shouldRender:{handler:function(t){var e=this;t&&this.$nextTick((function(){var t=e.$refs.swipe.$el;Object(u["b"])(t,"touchstart",e.onWrapperTouchStart),Object(u["b"])(t,"touchmove",u["c"]),Object(u["b"])(t,"touchend",e.onWrapperTouchEnd),Object(u["b"])(t,"touchcancel",e.onWrapperTouchEnd)}))},immediate:!0}},methods:{onWrapperTouchStart:function(){this.touchStartTime=new Date},onWrapperTouchEnd:function(t){var e=this;Object(u["c"])(t);var i=new Date-this.touchStartTime,n=this.$refs.swipe||{},o=n.offsetX,s=void 0===o?0:o,a=n.offsetY,r=void 0===a?0:a;i<300&&s<10&&r<10&&(this.doubleClickTimer?(clearTimeout(this.doubleClickTimer),this.doubleClickTimer=null,this.toggleScale()):this.doubleClickTimer=setTimeout((function(){e.asyncClose||e.$emit("input",!1),e.doubleClickTimer=null}),300))},startMove:function(t){var e=t.currentTarget,i=e.getBoundingClientRect(),n=window.innerWidth,o=window.innerHeight;this.touchStart(t),this.moving=!0,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.maxMoveX=Math.max(0,(i.width-n)/2),this.maxMoveY=Math.max(0,(i.height-o)/2)},startZoom:function(t){this.moving=!1,this.zooming=!0,this.startScale=this.scale,this.startDistance=mt(t.touches)},onImageTouchStart:function(t){var e=t.touches,i=this.$refs.swipe||{},n=i.offsetX,o=void 0===n?0:n;1===e.length&&1!==this.scale?this.startMove(t):2!==e.length||o||this.startZoom(t)},onImageTouchMove:function(t){var e=t.touches;if((this.moving||this.zooming)&&Object(u["c"])(t,!0),this.moving){this.touchMove(t);var i=this.deltaX+this.startMoveX,n=this.deltaY+this.startMoveY;this.moveX=c(i,-this.maxMoveX,this.maxMoveX),this.moveY=c(n,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var o=mt(e),s=this.startScale*o/this.startDistance;this.setScale(s)}},onImageTouchEnd:function(t){if(this.moving||this.zooming){var e=!0;this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.moving=!1,this.zooming=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale()),e&&Object(u["c"])(t,!0)}},setActive:function(t){this.resetScale(),t!==this.active&&(this.active=t,this.$emit("change",t))},setScale:function(t){this.scale=c(t,+this.minZoom,+this.maxZoom)},resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:pt("index")},[this.slots("index")||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:pt("cover")},[e])},genImages:function(){var t=this,e=this.$createElement,i={loading:function(){return e(ct,{attrs:{type:"spinner"}})}};return e(et,{ref:"swipe",attrs:{loop:this.loop,indicatorColor:"white",duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators},class:pt("swipe"),on:{change:this.setActive}},[this.images.map((function(n,o){return e(dt,[e(V,{attrs:{src:n,fit:"contain",lazyLoad:t.lazyLoad},class:pt("image"),scopedSlots:i,style:o===t.active?t.imageStyle:null,nativeOn:{touchstart:t.onImageTouchStart,touchmove:t.onImageTouchMove,touchend:t.onImageTouchEnd,touchcancel:t.onImageTouchEnd}})])}))])}},render:function(){var t=arguments[0];if(this.shouldRender)return t("transition",{attrs:{name:"van-fade"}},[t("div",{directives:[{name:"show",value:this.value}],class:[pt(),this.className]},[this.genImages(),this.genIndex(),this.genCover()])])}}),yt={loop:!0,images:[],value:!0,minZoom:1/3,maxZoom:3,className:"",onClose:null,onChange:null,lazyLoad:!1,showIndex:!0,asyncClose:!1,startPosition:0,swipeDuration:500,showIndicators:!1,closeOnPopstate:!1},wt=function(){gt=new(a["default"].extend(bt))({el:document.createElement("div")}),document.body.appendChild(gt.$el),gt.$on("change",(function(t){gt.onChange&>.onChange(t)}))},Ot=function(t,e){if(void 0===e&&(e=0),!f["e"]){gt||wt();var i=Array.isArray(t)?{images:t,startPosition:e}:t;return Object(s["a"])(gt,yt,i),gt.$once("input",(function(t){gt.value=t})),i.onClose&&(gt.$off("close"),gt.$once("close",i.onClose)),gt}};Ot.install=function(){a["default"].use(bt)};var St=Ot;a["default"].use(St);var Ct={name:"UserEvaluation",props:{reply:{type:Array,default:function(){return[]}}},data:function(){return{}},mounted:function(){},methods:{openIview:function(t,e){St({images:t,startPosition:e,maxZoom:3,minZoom:1/3})}}},xt=Ct,jt=i("623f"),$t=Object(jt["a"])(xt,n,o,!1,null,null,null);e["a"]=$t.exports},f39a:function(t,e,i){"use strict";function n(){return n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},n.apply(this,arguments)}i.d(e,"a",(function(){return n}))}}]);
|