zx/public/static/js/pages-order_pay_status-inde...

1 line
16 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order_pay_status-index"],{"03cb":function(e,t,r){"use strict";var n=r("f452"),i=r.n(n);i.a},"3a60":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.arrivalSubscribe=function(){var e=i();return o([e.PRODUCT_INCREASE])},t.auth=i,t.openEextractSubscribe=function(){var e=i();return o([e.EXTRACT_NOTICE])},t.openExtrctSubscribe=function(){var e=i();return o([e.EXTRACT_NOTICE])},t.openOrderRefundSubscribe=function(){var e=i();return o([e.REFUND_CONFORM_CODE])},t.openOrderSubscribe=function(){var e=i();return o([e.ORDER_DELIVER_SUCCESS,e.DELIVER_GOODS_CODE])},t.openPaySubscribe=function(){var e=i();return o([e.DELIVER_GOODS_CODE,e.ORDER_DELIVER_SUCCESS,e.ORDER_PAY_SUCCESS])},t.openRechargeSubscribe=function(){var e=i();return o([e.USER_BALANCE_CHANGE])},t.subscribe=o,r("bf0f");var n=r("d838");function i(){var e,t=uni.getStorageSync(n.SUBSCRIBE_MESSAGE);return e=t||{},e}function o(e){wx;return new Promise((function(t,r){uni.requestSubscribeMessage({tmplIds:e,success:function(e){return t(e)},fail:function(e){return t(e)},complete:function(e){}})}))}},"44b4":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("5c47");var n=r("5676"),i=(r("3a60"),r("8f59")),o=r("e44d"),a=r("aa10"),u={components:{},filters:{timeYMD:function(e){if(e){var t=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e);return t[0]}}},data:function(){return{domain:a.HTTP_REQUEST_URL,orderId:"",order_type:"",order_pay_info:{},status:0,msg:"",couponList:[],isOpen:!1,moneyBg:"/static/images/couponBg",text:"展开更多",timer:null,payResult:"正在查询支付结果..."}},computed:(0,i.mapGetters)(["isLogin","viewColor","keyColor"]),onLoad:function(e){if(!e.order_id)return this.$util.Tips({title:"缺少参数无法查看订单支付状态"},{tab:3,url:1});this.orderId=e.order_id,this.order_type=e.order_type,this.status=e.status||0,this.msg=e.msg||"",this.isLogin?this.refreshData():(0,o.toLogin)()},onHide:function(){clearInterval(this.timer),this.timer=null},methods:{refreshData:function(){var e=this;this.timer=setInterval((function(){e.getOrderPayInfo()}),1e3)},bindMore:function(){this.isOpen=!this.isOpen,this.text="展开更多"==this.text?"收起":"展开更多"},getOrderPayInfo:function(){var e=this,t=this;(0,n.getPayOrder)(t.orderId).then((function(r){t.$set(t,"order_pay_info",r.data),t.couponList=r.data.give_coupon,20==t.order_type?t.payResult=1==r.data.paid?"商品兑换成功":"支付失败":t.payResult=1==r.data.paid?"支付成功":"支付失败",uni.setNavigationBarTitle({title:1==r.data.paid?"支付成功":"支付失败"}),1==r.data.paid&&(clearInterval(e.timer),e.timer=null)})).catch((function(e){uni.hideLoading()}))},goIndex:function(e){uni.switchTab({url:"/pages/index/index"})},goPink:function(e){uni.navigateTo({url:"/pages/activity/combination_status/index?id="+e})},goOrderDetails:function(e){20==this.order_type?uni.navigateTo({url:"/pages/points_mall/exchange_record?delte=1"}):0==this.order_pay_info.paid?uni.navigateTo({url:"/pages/users/order_list/index"}):this.order_pay_info&&2==this.order_pay_info.orderList[0]["is_virtual"]?uni.navigateTo({url:"/pages/users/order_list/index?status=3"}):uni.navigateTo({url:"/pages/users/order_list/index?status=1"})}},destroyed:function(){clearInterval(this.timer),this.timer=null},deactivated:function(){clearInterval(this.timer),this.timer=null}};t.default=u},"54c8":function(e,t,r){var n=r("c86c");t=n(!1),t.push([e.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开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题<EFBFBD>