cyywl_shop_app/dist/static/js/uni_modules-uni-pay-pages-s...

1 line
15 KiB
JavaScript
Raw Permalink 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([["uni_modules-uni-pay-pages-success-success"],{5583:function(t,e,a){"use strict";a.r(e);var n=a("9e18"),i=a("7f41");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("83c6");var r=a("f0c5"),c=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"4918ea8e",null,!1,n["a"],void 0);e["default"]=c.exports},"5a5d":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"uni-view[data-v-4918ea8e]{display:block}",""]),t.exports=e},6579:function(t,e,a){"use strict";var n=a("7c7a"),i=a.n(n);i.a},"74e87":function(t,e,a){"use strict";a.r(e);var n=a("8a7b"),i=a("957e");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("6579");var r=a("f0c5"),c=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"556d0ca2",null,!1,n["a"],void 0);e["default"]=c.exports},"7bc0":function(t,e,a){var n=a("5a5d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("1d85eb5b",n,!0,{sourceMap:!1,shadowMode:!1})},"7c7a":function(t,e,a){var n=a("8420");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("ae3b986e",n,!0,{sourceMap:!1,shadowMode:!1})},"7f41":function(t,e,a){"use strict";a.r(e);var n=a("b0ef"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"80e6":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("c975"),a("ac1f"),a("466d"),a("a9e3"),a("d401"),a("25f0"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e");var n={getWeixinCode:function(){return new Promise((function(t,e){}))},getAlipayCode:function(){},checkPlatform:function(){var t={win:!1,mac:!1,xll:!1},e=navigator.platform;if(t.win=0==e.indexOf("Win"),t.mac=0==e.indexOf("Mac"),t.x11="X11"==e||0==e.indexOf("Linux"),t.win||t.mac||t.xll){var a=navigator.userAgent.toLowerCase();return a.indexOf("micromessenger")>-1?"pc-weixin":"pc"}return e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1?"ios":"android"},getH5Env:function(){var t=window.navigator.userAgent.toLowerCase();return"micromessenger"==t.match(/MicroMessenger/i)&&"miniprogram"==t.match(/miniprogram/i)?"mp-weixin":"micromessenger"==t.match(/MicroMessenger/i)?"h5-weixin":"alipay"==t.match(/alipay/i)&&"miniprogram"==t.match(/miniprogram/i)?"mp-alipay":"alipay"==t.match(/alipay/i)?"h5-alipay":"h5"},timeFormat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;try{if(!t)return"";var n;"string"!==typeof t||isNaN(t)||(t=Number(t)),"number"===typeof t?(10==t.toString().length&&(t*=1e3),n=new Date(t)):n=t;var i=n.getTimezoneOffset(),o=60*i*1e3+60*a*60*1e3,r=n.getTime()+o;n=new Date(r);var c={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var d in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),c)new RegExp("("+d+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?c[d]:("00"+c[d]).substr((""+c[d]).length)));return e}catch(s){return t}}},i=n;e.default=i},"83c6":function(t,e,a){"use strict";var n=a("7bc0"),i=a.n(n);i.a},8420:function(t,e,a){var n=a("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/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.app[data-v-556d0ca2]{--bgcolor:#f3f3f3;background-color:var(--bgcolor);min-height:calc(100vh - var(--window-bottom) - var(--window-top))}.header[data-v-556d0ca2]{background-color:var(--main);text-align:center;color:#fff;padding:%?80?% %?30?% %?50?% %?30?%}.header .success-image[data-v-556d0ca2]{width:%?120?%;height:%?120?%}.header .success-title[data-v-556d0ca2]{font-size:%?34?%;margin-top:%?40?%;font-weight:700}.header .hr[data-v-556d0ca2]{margin-top:%?40?%;width:100%;height:%?30?%;border-radius:%?20?%;opacity:.1;background-color:#000}.info-box[data-v-556d0ca2]{width:calc(100% - %?100?%);margin:0 %?50?%;position:relative;margin-top:%?-64?%;background-color:#fff}.info-box .info-amount[data-v-556d0ca2]{height:%?150?%;line-height:%?150?%;text-align:center;color:var(--main);font-weight:700;font-size:%?60?%;border-bottom:%?4?% dashed #f3f3f3}.info-box .left-circle[data-v-556d0ca2]{background-color:var(--bgcolor);position:absolute;width:%?40?%;height:%?40?%;border-radius:50%;top:calc(%?150?% - %?20?%);left:%?-20?%}.info-box .right-circle[data-v-556d0ca2]{background-color:var(--bgcolor);position:absolute;width:%?40?%;height:%?40?%;border-radius:50%;top:calc(%?150?% - %?20?%);right:%?-20?%}.info-box .info-main[data-v-556d0ca2]{padding:%?30?%;font-size:%?26?%;color:#333}.info-box .info-main .info-cell[data-v-556d0ca2]{display:flex;line-height:%?50?%}.info-box .info-main .info-cell .left[data-v-556d0ca2]{width:%?200?%;text-align:left}.info-box .info-main .info-cell .right[data-v-556d0ca2]{flex:1;text-align:right}.uni-ad[data-v-556d0ca2]{margin-top:%?50?%;min-height:%?100?%}.uni-ad .ad-interactive[data-v-556d0ca2]{text-align:center}.button-query[data-v-556d0ca2]{background-color:var(--main);color:#fff;width:calc(100% - %?120?%);margin:%?50?% %?60?% 0 %?60?%;padding:%?20?% %?30?%;border-radius:%?50?%;text-align:center;box-sizing:border-box}.button-query[data-v-556d0ca2]:active{opacity:.7}.footer-hr[data-v-556d0ca2]{height:%?100?%;display:block}',""]),t.exports=e},"8a7b":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={adInteractive:a("5583").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"app",style:t.styleCom},[a("v-uni-view",{staticClass:"header"},[a("v-uni-image",{staticClass:"success-image",attrs:{src:t.images.success}}),a("v-uni-view",{staticClass:"success-title"},[t._v("支付成功")]),a("v-uni-view",{staticClass:"hr"})],1),a("v-uni-view",{staticClass:"info-box"},[a("v-uni-view",{staticClass:"info-amount"},[t._v("¥ "+t._s((t.options.total_fee/100).toFixed(2)))]),a("v-uni-view",{staticClass:"left-circle"}),a("v-uni-view",{staticClass:"right-circle"}),a("v-uni-view",{staticClass:"info-main"},[a("v-uni-view",{staticClass:"info-cell"},[a("v-uni-view",{staticClass:"left"},[t._v("订单编号")]),a("v-uni-view",{staticClass:"right"},[t._v(t._s(t.options.order_no))])],1),a("v-uni-view",{staticClass:"info-cell"},[a("v-uni-view",{staticClass:"left"},[t._v("付款时间")]),a("v-uni-view",{staticClass:"right"},[t._v(t._s(t.timeFormat(t.options.pay_date,"yyyy-MM-dd hh:mm:ss")))])],1)],1)],1),a("v-uni-view",{staticClass:"uni-ad"},[t.options.adpid?a("ad-interactive",{attrs:{adpid:t.options.adpid,"open-page-path":"/uni_modules/uni-pay/pages/ad-interactive-webview/ad-interactive-webview"},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.onaderror.apply(void 0,arguments)}},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.data;e.loading,e.error;return[n?a("v-uni-view",{staticClass:"ad-interactive"},[a("v-uni-image",{attrs:{src:n.imgUrl,mode:"widthFix"}})],1):t._e()]}}],null,!1,1455331858)}):t._e()],1),t.options.return_url?a("v-uni-view",{staticClass:"button-query",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.queryOrder.apply(void 0,arguments)}}},[t._v("查看订单")]):t._e(),a("v-uni-view",{staticClass:"footer-hr"})],1)},o=[]},"957e":function(t,e,a){"use strict";a.r(e);var n=a("ea58"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"9e18":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onclick.apply(void 0,arguments)}}},[t._t("default",null,{options:t.options,data:t.adData,loading:t.loading,error:t.errorMessage})],2)},i=[]},b0ef:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3");var n={load:"load",close:"close",error:"error"},i={name:"AdInteractive",props:{options:{type:[Object,Array],default:function(){return{}}},disabled:{type:[Boolean,String],default:!1},adpid:{type:[Number,String],default:""},openType:{type:String,default:"interactive"},openPagePath:{type:String,default:""}},data:function(){return{adData:null,loading:!1,errorMessage:""}},created:function(){this._uniAdPlugin=null,this._interactiveUrl=null,this.openPagePath&&this.getAdData()},methods:{show:function(){null===this._uniAdPlugin&&(this._uniAdPlugin=this.selectComponent(".uni-ad-plugin")),this._uniAdPlugin.show()},getAdData:function(){var t=this;this.loading=!0,uni.request({url:"https://wxac1.dcloud.net.cn/openPage/acs",method:"POST",data:{adpid:this.adpid||"",appid:uni.getAppBaseInfo().appId},timeout:5e3,dataType:"json",success:function(e){if(200===e.statusCode){var a=e.data;if(0===a.ret)t._interactiveUrl=a.data.adp_url,t.adData={imgUrl:a.data.icon_url,openPath:t.openPagePath+"?url="+encodeURIComponent(t._interactiveUrl)},t.$emit(n.load,t.adData);else{var i={errCode:a.ret,errMsg:a.msg};t.errorMessage=i,t.$emit(n.error,i)}}else t.$emit(n.error,{errCode:e.statusCode,errMsg:e.statusCode})},fail:function(e){t.$emit(n.error,{errCode:"",errMsg:e.errMsg})},complete:function(){t.loading=!1}})},onclick:function(){this.disabled||this._interactiveUrl&&(uni.navigateTo({url:this.adData.openPath}),this._report())},_report:function(){uni.request({url:"https://wxac1.dcloud.net.cn/openPage/acs",data:{adpid:this.adpid,t:"10019"},timeout:5e3,dataType:"json"})}}};e.default=i},ea58:function(t,e,a){"use strict";(function(t){a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("99af"),a("c975");var i=n(a("80e6")),o={data:function(){return{options:{adpid:"",main_color:"",order_no:"",out_trade_no:"",total_fee:"",pay_date:"",return_url:""},images:{success:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAEAYAAAD6+a2dAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAA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y+HBpC/8N3reGVRkHcwZ8g3hO3P8+VpbUVASc1zt8+ACtL4Fndu70DDxjsT2cv/k8U9iqlXRRbGrD27f45sfGogLwCSIVeB3mYPjE5+WvWSNdFJtaQooUrVzpLfCMj3fLfFd9+zZ04EDp8tnUxK1b0CFDeB7EW077kKiIgk8A6dcvYIdEMfjAFy/46Zl0UW2qY+5cXwPP1HqqE33K6dOoCHxQpI0sWVnediJZ4fdeQPd7g0OHoGlp0q6oXxw/Dp0xw9t6BisCdFh0w4YYb/MBB/aZwcHl0iW0wBMmiB0WzbgMIEWKxo2DcotgE1hycwMV+KDBXQNahq1bpR9/hDe8QCczExqG2/dh+Pjx0PryuLWufP4MnTxZOn4Brgi8jv7WLWkXhyY3b0Kr7pSKGFBAz5+NC9eNFXWFfzZuwQL2i3R8hCpE8+bQ9evdHRNp8Ba8detcB0bYuAPHNGkCRy1fDn3yRDp0/sErq5Yt43JJ+zdsgSP79HEfXTx6BJVavcvLqx8+5M2kSK9hzV2IEfZ9jmt9u/PUK4yTu3fHdVwcrvnn4/nM3Bp+Pp4UKeKHKiUlyF9Y6Dq4QiuttOfPx/NCk/Djf0hQD04eJaNOAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTEwLTI3VDE0OjAzOjAyKzA4OjAwisT1owAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0xMC0yN1QxNDowMzowMiswODowMPuZTR8AAABQdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX3ZwM212emVpcjcvemhpZnVjaGVuZ2dvbmcuc3ZntdPldAAAAABJRU5ErkJggg=="},color:{wxpay:"#01be6e",alipay:"#108ee9"}}},onLoad:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t},onReady:function(){},onShow:function(){},onHide:function(){},methods:{timeFormat:i.default.timeFormat,queryOrder:function(){var t=this.options.return_url+"?out_trade_no=".concat(this.options.out_trade_no,"&order_no=").concat(this.options.order_no);0!==t.indexOf("/")&&(t="/".concat(t)),uni.navigateTo({url:t})},onaderror:function(e){t.log("ad-error",e)}},watch:{mainColorCom:{immediate:!0,handler:function(t,e){setTimeout((function(){uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:t})}),0)}}},computed:{mainColorCom:function(){var t;return t=this.options.main_color||this.color.wxpay,t},styleCom:function(){return"--main:".concat(this.mainColorCom,";")}}};e.default=o}).call(this,a("5a52")["default"])}}]);