1 line
6.8 KiB
JavaScript
Executable File
1 line
6.8 KiB
JavaScript
Executable File
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages_tool-pay-index"],{"1a8f":function(t,e,o){"use strict";var n=o("c668"),a=o.n(n);a.a},"57c5":function(t,e,o){"use strict";o.r(e);var n=o("a184"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},"66b8":function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var n={pageMeta:o("7854").default,loadingCover:o("c003").default},a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[o("page-meta",{attrs:{"page-style":t.themeColor}}),o("v-uni-scroll-view",{staticClass:"pay-container",attrs:{"scroll-y":"true"}},[o("v-uni-view",{staticClass:"payment-amount"},[o("v-uni-text",{staticClass:"amount-tit"},[t._v(t._s(t.$lang("paymentAmount")))]),o("v-uni-view",{staticClass:"amount-num"},[t._v(t._s(t.$lang("common.currencySymbol"))),o("v-uni-text",[t._v(t._s(t.payInfo.pay_money))])],1),o("v-uni-view",{staticClass:"payment-name"},[t._v(t._s(t.payInfo.pay_body))])],1),o("loading-cover",{ref:"loadingCover"})],1)],1)},i=[]},7854:function(t,e,o){"use strict";o.r(e);var n=o("8ba8"),a=o("f48d");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);var r=o("828b"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},"7c57":function(t,e,o){"use strict";o.r(e);var n=o("66b8"),a=o("57c5");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("1a8f");var r=o("828b"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"23e01b38",null,!1,n["a"],void 0);e["default"]=u.exports},"8ba8":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticStyle:{display:"none"}},[this._t("default")],2)},a=[]},a184:function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={components:{},data:function(){return{isIphoneX:!1,payInfo:{},outTradeNo:""}},onLoad:function(t){t.code&&(this.outTradeNo=t.code),this.isIphoneX=this.$util.uniappIsIPhoneX()},onShow:function(){this.storeToken?this.getPayInfo():this.$util.redirectTo("/pages_tool/login/index")},methods:{getPayInfo:function(){var t=this;this.$api.sendRequest({url:"/api/pay/info",data:{out_trade_no:this.outTradeNo},success:function(e){e.code>=0&&e.data?(t.payInfo=e.data,t.$refs.loadingCover&&t.$refs.loadingCover.hide()):(t.$util.showToast({title:"未获取到支付信息!"}),setTimeout((function(){t.$util.redirectTo("/pages/index/index")}),1500))},fail:function(e){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})}}};e.default=n},c668:function(t,e,o){var n=o("e3df");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=o("967d").default;a("7b19015a",n,!0,{sourceMap:!1,shadowMode:!1})},cc1b:function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("5ef2"),o("64aa"),o("5c47"),o("a1c1"),o("e838");var n={type:"scrolldone",target:{id:"",offsetLeft:0,offsetTop:0,dataset:{}},currentTarget:{id:"",offsetLeft:0,offsetTop:0,dataset:{}},detail:{}},a={props:{backgroundTextStyle:{type:String,default:"dark",validator:function(t){return-1!==["dark","light"].indexOf(t)}},backgroundColor:{type:String,default:"#ffffff"},backgroundColorTop:{type:String,default:"#ffffff"},backgroundColorBottom:{type:String,default:"#ffffff"},scrollTop:{type:String,default:""},scrollDuration:{type:Number,default:300},pageStyle:{type:String,default:""},enablePullDownRefresh:{type:[Boolean,String],default:!1},rootFontSize:{type:String,default:""}},created:function(){var t=this,e=getCurrentPages()[0];this.$pageVm=e.$vm||e,uni.onWindowResize((function(e){t.$emit("resize",e)})),this.$pageVm.$on("hook:onPageScroll",(function(e){t.$emit("scroll",e)})),this.$watch("backgroundTextStyle",(function(){t.setBackgroundTextStyle()})),this.$watch((function(){return[t.rootFontSize,t.pageStyle]}),(function(){t.setPageMeta()})),this.$watch((function(){return[t.backgroundColor,t.backgroundColorTop,t.backgroundColorBottom]}),(function(){t.setBackgroundColor()})),this.$watch((function(){return[t.scrollTop,t.scrollDuration]}),(function(){t.pageScrollTo()}))},beforeMount:function(){this.setBackgroundColor(),(this.rootFontSize||this.pageStyle)&&this.setPageMeta(),this.backgroundTextStyle&&this.setBackgroundTextStyle()},mounted:function(){this.scrollTop&&this.pageScrollTo()},methods:{setPullDownRefresh:function(t,e){t.setStyle({pullToRefresh:{support:e,style:"Android"===plus.os.name?"circle":"default"}})},setPageMeta:function(){uni.setPageMeta({pageStyle:this.pageStyle,rootFontSize:this.rootFontSize})},setBackgroundTextStyle:function(){},setBackgroundColor:function(){},pageScrollTo:function(){var t=this,e=String(this.scrollTop);if(-1!==e.indexOf("rpx")&&(e=uni.upx2px(e.replace("rpx",""))),e=parseFloat(e),!isNaN(e)){var o=function o(a){a.scrollTop===e&&(t.$pageVm.$off("hook:onPageScroll",o),t.$emit("scrolldone",n))};uni.pageScrollTo({scrollTop:e,duration:this.scrollDuration,success:function(){t.$pageVm.$on("hook:onPageScroll",o)}})}}}};e.default=a},e3df:function(t,e,o){var n=o("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n * 建议使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n */.pay-container[data-v-23e01b38]{width:100vw;height:100vh}.payment-amount[data-v-23e01b38]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:%?20?% %?30?%;border-radius:%?8?%;padding:%?20?% 0 %?58?% 0;background-color:#fff}.payment-amount .amount-tit[data-v-23e01b38]{font-size:%?28?%;color:#838383;line-height:1;margin-top:%?44?%}.payment-amount .amount-num[data-v-23e01b38]{color:#000;margin-top:%?36?%;line-height:1}.payment-amount .amount-num uni-text[data-v-23e01b38]{font-size:%?32?%;color:#000}.payment-amount .amount-desc[data-v-23e01b38]{font-size:%?24?%;color:#838383;padding:0 %?40?%;width:100%;box-sizing:border-box;text-align:center;line-height:1}.payment-amount .amount-desc uni-text[data-v-23e01b38]{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.payment-amount .payment-name[data-v-23e01b38]{width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#838383;margin-top:%?30?%;text-align:center;line-height:1}',""]),t.exports=e},f48d:function(t,e,o){"use strict";o.r(e);var n=o("cc1b"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a}}]); |