glhcp/server/public/mobile/static/js/pages-payment-payment.9f895...

1 line
32 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-payment-payment"],{"0348":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.loading?i("v-uni-view",{style:{width:t.windowWinth+"px",height:t.windowHeight+"px",backgroundColor:t.bgColor,position:"absolute",left:t.left+"px",top:t.top+"px",zIndex:9998,overflow:"hidden"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}}},[t._l(t.RectNodes,(function(e,n){return i("v-uni-view",{key:t.$u.guid(),class:[t.animation?"skeleton-fade":""],style:{width:e.width+"px",height:e.height+"px",backgroundColor:t.elColor,position:"absolute",left:e.left-t.left+"px",top:e.top-t.top+"px"}})})),t._l(t.circleNodes,(function(e,n){return i("v-uni-view",{key:t.$u.guid(),class:t.animation?"skeleton-fade":"",style:{width:e.width+"px",height:e.height+"px",backgroundColor:t.elColor,borderRadius:e.width/2+"px",position:"absolute",left:e.left-t.left+"px",top:e.top-t.top+"px"}})})),t._l(t.filletNodes,(function(e,n){return i("v-uni-view",{key:t.$u.guid(),class:t.animation?"skeleton-fade":"",style:{width:e.width+"px",height:e.height+"px",backgroundColor:t.elColor,borderRadius:t.borderRadius+"rpx",position:"absolute",left:e.left-t.left+"px",top:e.top-t.top+"px"}})}))],2):t._e()},o=[]},"0760":function(t,e,i){"use strict";i.r(e);var n=i("55d5"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"0d00":function(t,e,i){"use strict";i.r(e);var n=i("aa0e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"1a3a":function(t,e,i){var n=i("24fb");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 */\n/* 颜色变量 */\n/* 行为相关颜色 */uni-page-body[data-v-b6669ed6]{height:100%;padding:0}.payment-pages[data-v-b6669ed6]{height:100%}.payment-pages .payment[data-v-b6669ed6]{display:flex;flex-direction:column;height:calc(100% - env(safe-area-inset-bottom))}.payment-pages .payment-header[data-v-b6669ed6]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:%?300?%;background:linear-gradient(270deg,#ff2c3c,#f95f2f);color:#fff}.payment-pages .payment-main[data-v-b6669ed6]{flex:1;margin-top:%?-40?%;padding:0 %?20?%;overflow:hidden}.payment-pages .payment-footer[data-v-b6669ed6]{display:flex;align-items:center;height:%?100?%;padding:0 %?20?%;background-color:#fff}.payment-pages .payment .payway-container[data-v-b6669ed6]{padding:0 %?20?%;border-radius:7px;background-color:#fff}.payment-pages .payment .payway-container .payway-empty[data-v-b6669ed6]{display:flex;justify-content:center;padding:%?20?% 0;font-size:%?26?%;color:#999}.payment-pages .payment .payway[data-v-b6669ed6]{width:100%}.payment-pages .payment .payway-item[data-v-b6669ed6]{display:flex;align-items:center;height:%?120?%}.payment-pages .payment .payway-item[data-v-b6669ed6]:nth-child(n+2){border-top:1px dashed #e5e5e5}.payment-pages .payment .payway-item-content[data-v-b6669ed6]{flex:1;display:flex;flex-direction:column;margin-left:%?16?%}.payment-pages .payment .payway-item-content-name[data-v-b6669ed6]{font-size:%?28?%;color:#101010}.payment-pages .payment .payway-item-content-tips[data-v-b6669ed6]{font-size:%?22?%;color:#999}.payment-pages .payment-count-down[data-v-b6669ed6]{display:flex;justify-content:center;align-items:center;padding:%?7?% %?25?%;border-radius:60px;margin-top:%?10?%;font-size:%?22?%;background-color:#fff;color:#333}.payment-pages .payment-submit[data-v-b6669ed6]{flex:1;position:relative;display:flex;justify-content:center;align-items:center;height:%?74?%;font-size:%?28?%;border-radius:60px;background:linear-gradient(270deg,#ff2c3c,#f95f2f);color:#fff}.payment-pages .payment-submit--disabled[data-v-b6669ed6]::before{position:absolute;top:0;bottom:0;left:0;right:0;height:100%;display:block;content:"";background:hsla(0,0%,100%,.3)!important}',""]),t.exports=e},"1b73":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-countdown"},[t.showDays&&(t.hideZeroDay||!t.hideZeroDay&&"00"!=t.d)?i("v-uni-view",{style:{fontSize:t.fontSize+"rpx"}},[t._v(t._s(t.d))]):t._e(),t.showDays&&(t.hideZeroDay||!t.hideZeroDay&&"00"!=t.d)?i("v-uni-view",{style:{fontSize:t.separatorSize+"rpx","margin-right":"6rpx"}},[t._v("天")]):t._e(),t.showHours?i("v-uni-view",{staticClass:"u-countdown-item",style:[t.itemStyle]},[i("v-uni-view",{staticClass:"u-countdown-time",style:{fontSize:t.fontSize+"rpx",color:t.color}},[t._v(t._s(t.h))])],1):t._e(),t.showHours?i("v-uni-view",{staticClass:"u-countdown-colon",style:{fontSize:t.separatorSize+"rpx",color:t.separatorColor,paddingBottom:"colon"==t.separator?"4rpx":0}},[t._v(t._s("colon"==t.separator?":":"时"))]):t._e(),t.showMinutes?i("v-uni-view",{staticClass:"u-countdown-item",style:[t.itemStyle]},[i("v-uni-view",{staticClass:"u-countdown-time",style:{fontSize:t.fontSize+"rpx",color:t.color}},[t._v(t._s(t.i))])],1):t._e(),t.showMinutes?i("v-uni-view",{staticClass:"u-countdown-colon",style:{fontSize:t.separatorSize+"rpx",color:t.separatorColor,paddingBottom:"colon"==t.separator?"4rpx":0}},[t._v(t._s("colon"==t.separator?":":"分"))]):t._e(),t.showSeconds?i("v-uni-view",{staticClass:"u-countdown-item",style:[t.itemStyle]},[i("v-uni-view",{staticClass:"u-countdown-time",style:{fontSize:t.fontSize+"rpx",color:t.color}},[t._v(t._s(t.s))])],1):t._e(),t.showSeconds&&"zh"==t.separator?i("v-uni-view",{staticClass:"u-countdown-colon",style:{fontSize:t.separatorSize+"rpx",color:t.separatorColor,paddingBottom:"colon"==t.separator?"4rpx":0}},[t._v("秒")]):t._e()],1)},o=[]},"24ed":function(t,e,i){"use strict";i.r(e);var n=i("9fac"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"259e":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-image",props:{src:{type:String,default:""},mode:{type:String,default:"aspectFill"},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"auto"},shape:{type:String,default:"square"},borderRadius:{type:[String,Number],default:0},lazyLoad:{type:Boolean,default:!0},showMenuByLongpress:{type:Boolean,default:!0},loadingIcon:{type:String,default:"photo"},errorIcon:{type:String,default:"error-circle"},showLoading:{type:Boolean,default:!0},showError:{type:Boolean,default:!0},fade:{type:Boolean,default:!0},webp:{type:Boolean,default:!1},duration:{type:[String,Number],default:500},bgColor:{type:String,default:"#f3f4f6"}},data:function(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{}}},watch:{src:{immediate:!0,handler:function(t){t?this.isError=!1:(this.isError=!0,this.loading=!1)}}},computed:{wrapStyle:function(){var t={};return t.width=this.$u.addUnit(this.width),t.height=this.$u.addUnit(this.height),t.borderRadius="circle"==this.shape?"50%":this.$u.addUnit(this.borderRadius),t.overflow=this.borderRadius>0?"hidden":"visible",this.fade&&(t.opacity=this.opacity,t.transition="opacity ".concat(Number(this.durationTime)/1e3,"s ease-in-out")),t}},methods:{onClick:function(){this.$emit("click")},onErrorHandler:function(t){this.loading=!1,this.isError=!0,this.$emit("error",t)},onLoadHandler:function(){var t=this;if(this.loading=!1,this.isError=!1,this.$emit("load"),!this.fade)return this.removeBgColor();this.opacity=0,this.durationTime=0,setTimeout((function(){t.durationTime=t.duration,t.opacity=1,setTimeout((function(){t.removeBgColor()}),t.durationTime)}),50)},removeBgColor:function(){this.backgroundStyle={backgroundColor:"transparent"}}}};e.default=n},"30ac":function(t,e,i){"use strict";i.r(e);var n=i("0348"),a=i("24ed");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7bf8");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"c1d2894e",null,!1,n["a"],r);e["default"]=c.exports},3603:function(t,e,i){"use strict";i.r(e);var n=i("959d"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"3bed":function(t,e,i){"use strict";var n=i("d060"),a=i.n(n);a.a},"3db7":function(t,e,i){"use strict";i.r(e);var n=i("fbe0"),a=i("72ef");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("3bed");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"b6669ed6",null,!1,n["a"],r);e["default"]=c.exports},"411c":function(t,e,i){"use strict";i.r(e);var n=i("1b73"),a=i("3603");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("53c8");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"ecc0ca30",null,!1,n["a"],r);e["default"]=c.exports},"4d7d":function(t,e,i){"use strict";var n=i("55c6"),a=i.n(n);a.a},"53c8":function(t,e,i){"use strict";var n=i("6dc5"),a=i.n(n);a.a},"55c6":function(t,e,i){var n=i("a00d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("16791d4e",n,!0,{sourceMap:!1,shadowMode:!1})},"55d5":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-loading",props:{mode:{type:String,default:"circle"},color:{type:String,default:"#c7c7c7"},size:{type:[String,Number],default:"34"},show:{type:Boolean,default:!0}},computed:{cricleStyle:function(){var t={};return t.width=this.size+"rpx",t.height=this.size+"rpx","circle"==this.mode&&(t.borderColor="#e4e4e4 #e4e4e4 #e4e4e4 ".concat(this.color?this.color:"#c7c7c7")),t}}};e.default=n},"5a93":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".price-format[data-v-0a5a34e0]{font-family:Avenir,SourceHanSansCN,PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif}",""]),t.exports=e},"5bb5":function(t,e,i){var n=i("24fb");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 */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-countdown[data-v-ecc0ca30]{display:inline-flex;align-items:center}.u-countdown-item[data-v-ecc0ca30]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:%?2?%;border-radius:%?6?%;white-space:nowrap;-webkit-transform:translateZ(0);transform:translateZ(0)}.u-countdown-time[data-v-ecc0ca30]{margin:0;padding:0}.u-countdown-colon[data-v-ecc0ca30]{display:flex;flex-direction:row;justify-content:center;padding:0 %?5?%;align-items:center;padding-bottom:%?4?%}.u-countdown-scale[data-v-ecc0ca30]{-webkit-transform:scale(.9);transform:scale(.9);-webkit-transform-origin:center center;transform-origin:center center}',""]),t.exports=e},"5c2f":function(t,e,i){var n=i("24fb");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 */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-image[data-v-5c6487b9]{position:relative;transition:opacity .5s ease-in-out}.u-image__image[data-v-5c6487b9]{width:100%;height:100%}.u-image__loading[data-v-5c6487b9], .u-image__error[data-v-5c6487b9]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:#f3f4f6;color:#909399;font-size:%?46?%}',""]),t.exports=e},"61c0":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("v-uni-view",{staticClass:"u-loading",class:"circle"==t.mode?"u-loading-circle":"u-loading-flower",style:[t.cricleStyle]}):t._e()},o=[]},"660b":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-image",style:[t.wrapStyle,t.backgroundStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.isError?t._e():i("v-uni-image",{staticClass:"u-image__image",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)},attrs:{src:t.src,mode:t.mode,"lazy-load":t.lazyLoad},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onErrorHandler.apply(void 0,arguments)},load:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadHandler.apply(void 0,arguments)}}}),t.showLoading&&t.loading?i("v-uni-view",{staticClass:"u-image__loading",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius),backgroundColor:this.bgColor}},[t.$slots.loading?t._t("loading"):i("u-icon",{attrs:{name:t.loadingIcon,width:t.width,height:t.height}})],2):t._e(),t.showError&&t.isError&&!t.loading?i("v-uni-view",{staticClass:"u-image__error",style:{borderRadius:"circle"==t.shape?"50%":t.$u.addUnit(t.borderRadius)}},[t.$slots.error?t._t("error"):i("u-icon",{attrs:{name:t.errorIcon,width:t.width,height:t.height}})],2):t._e()],1)},o=[]},"6b61":function(t,e,i){var n=i("be4c");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("9341a394",n,!0,{sourceMap:!1,shadowMode:!1})},"6c4a":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.wxpay=r,e.alipay=s;var a=n(i("5769")),o=i("357b");function r(t){if((0,o.isWeixinClient)())return a.default.wxPay(t);console.log(t),location.href=t}function s(t){var e=document.createElement("div");console.log(t),e.innerHTML=t,document.body.appendChild(e),document.forms[0].submit()}},"6dc5":function(t,e,i){var n=i("5bb5");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5e8887fb",n,!0,{sourceMap:!1,shadowMode:!1})},7171:function(t,e,i){"use strict";i.r(e);var n=i("660b"),a=i("cb4c");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7208");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"5c6487b9",null,!1,n["a"],r);e["default"]=c.exports},7208:function(t,e,i){"use strict";var n=i("774a"),a=i.n(n);a.a},"72ef":function(t,e,i){"use strict";i.r(e);var n=i("b36b"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"774a":function(t,e,i){var n=i("5c2f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("28f9c44e",n,!0,{sourceMap:!1,shadowMode:!1})},"778d":function(t,e,i){"use strict";i.r(e);var n=i("61c0"),a=i("0760");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("4d7d");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"60256ec8",null,!1,n["a"],r);e["default"]=c.exports},"7bf8":function(t,e,i){"use strict";var n=i("6b61"),a=i.n(n);a.a},"7eac":function(t,e,i){"use strict";var n=i("ab77"),a=i.n(n);a.a},8312:function(t,e,i){"use strict";i.r(e);var n=i("a126"),a=i("0d00");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7eac");var r,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"0a5a34e0",null,!1,n["a"],r);e["default"]=c.exports},"959d":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-count-down",props:{timestamp:{type:[Number,String],default:0},autoplay:{type:Boolean,default:!0},separator:{type:String,default:"colon"},separatorSize:{type:[Number,String],default:30},separatorColor:{type:String,default:"#303133"},color:{type:String,default:"#303133"},fontSize:{type:[Number,String],default:30},bgColor:{type:String,default:"#fff"},height:{type:[Number,String],default:"auto"},showBorder:{type:Boolean,default:!1},borderColor:{type:String,default:"#303133"},showSeconds:{type:Boolean,default:!0},showMinutes:{type:Boolean,default:!0},showHours:{type:Boolean,default:!0},showDays:{type:Boolean,default:!0},hideZeroDay:{type:Boolean,default:!1}},watch:{timestamp:function(t,e){this.clearTimer(),this.start()}},data:function(){return{d:"00",h:"00",i:"00",s:"00",timer:null,seconds:0}},computed:{itemStyle:function(){var t={};return this.height&&(t.height=this.height+"rpx",t.width=this.height+"rpx"),this.showBorder&&(t.borderStyle="solid",t.borderColor=this.borderColor,t.borderWidth="1px"),this.bgColor&&(t.backgroundColor=this.bgColor),t},letterStyle:function(){var t={};return this.fontSize&&(t.fontSize=this.fontSize+"rpx"),this.color&&(t.color=this.color),t}},mounted:function(){this.autoplay&&this.timestamp&&this.start()},methods:{start:function(){var t=this;this.clearTimer(),this.timestamp<=0||(this.seconds=Number(this.timestamp),this.formatTime(this.seconds),this.timer=setInterval((function(){if(t.seconds--,t.$emit("change",t.seconds),t.seconds<0)return t.end();t.formatTime(t.seconds)}),1e3))},formatTime:function(t){t<=0&&this.end();var e=0,i=0,n=0,a=0;e=Math.floor(t/86400),i=Math.floor(t/3600)-24*e;var o=null;o=this.showDays?i:Math.floor(t/3600),n=Math.floor(t/60)-60*i-24*e*60,a=Math.floor(t)-24*e*60*60-60*i*60-60*n,o=o<10?"0"+o:o,n=n<10?"0"+n:n,a=a<10?"0"+a:a,e=e<10?"0"+e:e,this.d=e,this.h=o,this.i=n,this.s=a},end:function(){this.clearTimer(),this.$emit("end",{})},reset:function(){this.clearTimer(),this.seconds=Number(this.timestamp),this.s=this.timestamp,console.log(this.s)},clearTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}},beforeDestroy:function(){clearInterval(this.timer),this.timer=null}};e.default=n},"9fac":function(t,e,i){"use strict";i("a9e3"),i("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-skeleton",props:{elColor:{type:String,default:"#e5e5e5"},bgColor:{type:String,default:"#ffffff"},animation:{type:Boolean,default:!1},borderRadius:{type:[String,Number],default:"10"},loading:{type:Boolean,default:!0}},data:function(){return{windowWinth:750,windowHeight:1500,filletNodes:[],circleNodes:[],RectNodes:[],top:0,left:0}},methods:{selecterQueryInfo:function(){var t=this,e="";e=uni.createSelectorQuery(),e.selectAll(".u-skeleton").boundingClientRect().exec((function(e){t.windowHeight=e[0][0].height,t.windowWinth=e[0][0].width,t.top=e[0][0].bottom-e[0][0].height,t.left=e[0][0].left})),this.getRectEls(),this.getCircleEls(),this.getFilletEls()},getRectEls:function(){var t=this,e="";e=uni.createSelectorQuery(),e.selectAll(".u-skeleton-rect").boundingClientRect().exec((function(e){t.RectNodes=e[0]}))},getFilletEls:function(){var t=this,e="";e=uni.createSelectorQuery(),e.selectAll(".u-skeleton-fillet").boundingClientRect().exec((function(e){t.filletNodes=e[0]}))},getCircleEls:function(){var t=this,e="";e=uni.createSelectorQuery(),e.selectAll(".u-skeleton-circle").boundingClientRect().exec((function(e){t.circleNodes=e[0]}))}},mounted:function(){var t=uni.getSystemInfoSync();this.windowHeight=t.windowHeight,this.windowWinth=t.windowWidth,this.selecterQueryInfo()}};e.default=n},a00d:function(t,e,i){var n=i("24fb");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 */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-loading-circle[data-v-60256ec8]{display:inline-flex;vertical-align:middle;width:%?28?%;height:%?28?%;background:0 0;border-radius:50%;border:2px solid;border-color:#e5e5e5 #e5e5e5 #e5e5e5 #8f8d8e;-webkit-animation:u-circle-data-v-60256ec8 1s linear infinite;animation:u-circle-data-v-60256ec8 1s linear infinite}.u-loading-flower[data-v-60256ec8]{width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:a 1s steps(12) infinite;animation:u-flower-data-v-60256ec8 1s steps(12) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;background-size:100%}@-webkit-keyframes u-flower-data-v-60256ec8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes u-flower-data-v-60256ec8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes u-circle-data-v-60256ec8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),t.exports=e},a126:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-text",{class:(t.lineThrough?"line-through":"")+" price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?i("v-uni-text",{style:{"font-size":t.subscriptSize+"rpx","margin-right":"2rpx"}},[t._v("¥")]):t._e(),i("v-uni-text",{style:{"font-size":t.firstSize+"rpx","margin-right":"1rpx"}},[t._v(t._s(t.priceSlice.first))]),t.priceSlice.second?i("v-uni-text",{style:{"font-size":t.secondSize+"rpx"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()],1)},o=[]},aa0e:function(t,e,i){"use strict";i("a9e3"),i("acd8"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:[String,Number],default:28},secondSize:{type:[String,Number],default:28},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:[String,Number],default:28},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&""!==t&&void 0!==t?(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e):this.priceSlice={first:0}}}};e.default=n},ab77:function(t,e,i){var n=i("5a93");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0d47c85e",n,!0,{sourceMap:!1,shadowMode:!1})},b36b:function(t,e,i){"use strict";i("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("6ab0"),a=i("6c4a"),o={name:"Payment",data:function(){return{from:"",order_id:"",amount:0,timeout:0,payway:"",paywayList:[],loadingSkeleton:!0,loadingPay:!1}},methods:{changePayway:function(t){this.$set(this,"payway",t)},initPageData:function(){var t=this;(0,n.getPayway)({from:this.from,order_id:this.order_id}).then((function(t){if(1!=t.code)throw new Error(t.msg);return t.data})).then((function(e){var i;t.loadingSkeleton=!1,t.amount=e.order_amount,t.paywayList=e.pay_way,t.payway=null===(i=t.paywayList[0])||void 0===i?void 0:i.pay_way;var n=(new Date).getTime(),a=e.cancel_time;t.timeout=a-n/1e3})).catch((function(t){throw new Error(t)}))},handlePrepay:function(){var t=this;this.loadingPay||(this.loadingPay=!0,(0,n.prepay)({from:this.from,order_id:this.order_id,pay_way:this.payway}).then((function(e){var i=e.code,n=e.data;switch(i){case 1:t.handleWechatPay(n);break;case 10001:t.handleAlipayPay(n);break;case 20001:t.handleWalletPay();break}})).catch((function(t){})).finally((function(){setTimeout((function(){t.loadingPay=!1}),500)})))},handleWechatPay:function(t){var e=this;(0,a.wxpay)(t).then((function(t){console.log(t),e.handPayResult(t)})).catch((function(t){console.log(t)}))},handleAlipayPay:function(t){var e=this;(0,a.alipay)(t).then((function(t){console.log(t),e.handPayResult(t)})).catch((function(t){console.log(t)}))},handleWalletPay:function(){console.log("支付成功"),this.handPayResult("success")},handPayResult:function(t){this.result=t,this.$Router.back(1)}},onLoad:function(){var t=this.$Route.query,e=(null===t||void 0===t?void 0:t.from)||"trade",i=null===t||void 0===t?void 0:t.order_id;try{if(!e&&!i)throw new Error("页面参数有误");this.from=e,this.order_id=i,this.initPageData()}catch(n){console.log(n),this.$Router.back()}},onUnload:function(){switch(this.result){case"success":uni.$emit("payment",{result:!0,order_id:this.order_id,from:this.from});break;case"fail":default:uni.$emit("payment",{result:!1,order_id:this.order_id,from:this.from})}}};e.default=o},be4c:function(t,e,i){var n=i("24fb");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 */\n/* 颜色变量 */\n/* 行为相关颜色 */.skeleton-fade[data-v-c1d2894e]{width:100%;height:100%;background:#c2cfd6;-webkit-animation-duration:1.5s;animation-duration:1.5s;-webkit-animation-name:blink-data-v-c1d2894e;animation-name:blink-data-v-c1d2894e;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes blink-data-v-c1d2894e{0%{opacity:1}50%{opacity:.4}100%{opacity:1}}@keyframes blink-data-v-c1d2894e{0%{opacity:1}50%{opacity:.4}100%{opacity:1}}',""]),t.exports=e},cb4c:function(t,e,i){"use strict";i.r(e);var n=i("259e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},d060:function(t,e,i){var n=i("1a3a");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("b4668498",n,!0,{sourceMap:!1,shadowMode:!1})},fbe0:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={priceFormat:i("8312").default,uCountDown:i("411c").default,uRadioGroup:i("9a0c4").default,uImage:i("7171").default,uRadio:i("d999").default,uLoading:i("778d").default,uSkeleton:i("30ac").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"payment-pages"},[i("v-uni-view",{staticClass:"payment u-skeleton"},[i("v-uni-view",{staticClass:"payment-header"},[i("price-format",{staticClass:"u-skeleton-fillet",attrs:{"subscript-size":40,"first-size":56,"second-size":40,price:t.amount,weight:500}}),t.timeout>0?[i("v-uni-view",{staticClass:"payment-count-down"},[i("v-uni-text",[t._v("支付剩余时间")]),i("u-count-down",{attrs:{timestamp:t.timeout,"show-days":!1,"show-hours":!1,"font-size":22}})],1)]:t._e()],2),i("v-uni-view",{staticClass:"payment-main"},[i("v-uni-view",{staticClass:"payway-container u-skeleton-fillet flex"},[i("u-radio-group",{staticClass:"flex-1",model:{value:t.payway,callback:function(e){t.payway=e},expression:"payway"}},[i("v-uni-view",{staticClass:"payway"},t._l(t.paywayList,(function(e,n){return i("v-uni-view",{key:e.id,staticClass:"payway-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.changePayway(e.pay_way)}}},[i("u-image",{attrs:{src:e.image,width:"48",height:"48",mode:"scaleToFill"}}),i("v-uni-view",{staticClass:"payway-item-content"},[i("v-uni-text",{staticClass:"payway-item-content-name"},[t._v(t._s(e.name))]),i("v-uni-text",{staticClass:"payway-item-content-tips"},[t._v(t._s(e.extra))])],1),i("u-radio",{attrs:{shape:"circle",name:e.pay_way,"active-color":t.colorConfig.primary}})],1)})),1)],1),t.paywayList.length?t._e():[i("v-uni-view",{staticClass:"payway-empty"},[t._v("暂无支付方式")])]],2)],1),i("v-uni-view",{staticClass:"payment-footer"},[i("v-uni-view",{class:["payment-submit",{"payment-submit--disabled":t.loadingPay}],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlePrepay.apply(void 0,arguments)}}},[i("u-loading",{attrs:{mode:"circle",show:t.loadingPay}}),i("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:!t.loadingPay,expression:"!loadingPay"}]},[t._v("立即支付")])],1)],1)],1),i("u-skeleton",{attrs:{loading:t.loadingSkeleton,animation:!0,bgColor:"#FFF"}})],1)},o=[]}}]);