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

1 line
16 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.payment-status[data-v-5c5e381f]{background-color:#fff;margin:%?92?% %?30?% %?30?%;border-radius:%?10?%;padding:%?1?% 0 %?28?% 0}.payment-status .icon[data-v-5c5e381f]{font-size:%?70?%;width:%?140?%;height:%?140?%;border-radius:50%;color:#fff;text-align:center;line-height:%?140?%;border:%?6?% solid #f5f5f5;margin:%?-76?% auto 0 auto;background-color:#999}.payment-status .icon.icon-duihao2[data-v-5c5e381f]{background-color:var(--view-theme)}.payment-status .icon.fail[data-v-5c5e381f]{text-shadow:0 4px 0 #7a7a7a}.payment-status .status[data-v-5c5e381f]{font-size:%?32?%;font-weight:700;text-align:center;margin:%?25?% 0 %?37?% 0}.payment-status .wrapper[data-v-5c5e381f]{border:1px solid #eee;margin:0 %?30?% %?47?% %?30?%;padding:%?35?% 0;border-left:0;border-right:0}.payment-status .wrapper .item[data-v-5c5e381f]{font-size:%?28?%;color:#282828}.payment-status .wrapper .item ~ .item[data-v-5c5e381f]{margin-top:%?20?%}.payment-status .wrapper .item .itemCom[data-v-5c5e381f]{color:#666}.payment-status .returnBnt[data-v-5c5e381f]{width:%?630?%;height:%?86?%;border-radius:%?50?%;color:#fff;font-size:%?30?%;text-align:center;line-height:%?86?%;margin:0 auto %?20?% auto}.payment-status .returnBnt.gColor[data-v-5c5e381f]{background-color:var(--view-theme)}.payment-status .returnBnt.s-Color[data-v-5c5e381f]{color:var(--view-theme);border:1px solid var(--view-theme)}.t-color[data-v-5c5e381f]{color:var(--view-theme)!important}.coupon-wrapper .hd[data-v-5c5e381f]{display:flex;align-items:center;justify-content:center;margin:%?30?% 0;color:#999;font-size:%?24?%}.coupon-wrapper .hd .line[data-v-5c5e381f]{width:%?70?%;height:1px;background:#dcdcdc}.coupon-wrapper .hd .txt[data-v-5c5e381f]{margin:0 %?20?%}.coupon-wrapper .coupon-box[data-v-5c5e381f]{height:%?356?%;padding:0 %?20?%;overflow:hidden}.coupon-wrapper .coupon-box.on[data-v-5c5e381f]{height:auto}.coupon-wrapper .coupon-box .coupon-item[data-v-5c5e381f]{width:100%;margin-bottom:%?20?%;box-shadow:0 2px 10px 0 rgba(0,0,0,.06)}.coupon-wrapper .coupon-box .coupon-item .left-bg[data-v-5c5e381f]{display:flex;align-items:center;justify-content:center;width:%?236?%;height:%?160?%;color:#fff;font-size:%?64?%}.coupon-wrapper .coupon-box .coupon-item .left-bg uni-text[data-v-5c5e381f]{margin-top:%?26?%;font-size:%?36?%}.coupon-wrapper .coupon-box .coupon-item .info[data-v-5c5e381f]{display:flex;flex-direction:column;justify-content:space-between;margin-left:%?20?%;padding:%?20?% 0}.coupon-wrapper .coupon-box .coupon-item .info .title[data-v-5c5e381f]{color:#282828;font-size:%?30?%}.coupon-wrapper .coupon-box .coupon-item .info .des[data-v-5c5e381f]{font-size:%?24?%;color:#999}.coupon-wrapper .more[data-v-5c5e381f]{display:flex;align-items:center;justify-content:center;padding-top:%?24?%;font-size:%?24?%;color:#999}.coupon-wrapper .more .iconfont[data-v-5c5e381f]{margin-top:%?6?%;margin-left:%?10?%;font-size:%?20?%}',""]),e.exports=t},5676:function(e,t,r){"use strict";r("6a54");var n=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.applyInvoiceApi=function(e,t){return i.default.post("order/receipt/".concat(e),t)},t.cartDel=function(e){return i.default.post("user/cart/delete",e)},t.cartProductAttr=function(e){return i.default.get("store/product/get_attr_value/".concat(e))},t.changeCartNum=function(e,t){return i.default.post("user/cart/change/"+e,t)},t.createOrder=function(e){return i.default.post("v2/order/create",e,{noAuth:!0})},t.develiveryDetail=function(e){return i.default.get("order/delivery/".concat(e))},t.express=function(e){return i.default.post("order/express/"+e)},t.expressList=function(){return i.default.get("common/express")},t.getCallBackUrlApi=function(e){return i.default.get("common/pay_key/"+e,{},{noAuth:!0})},t.getCartCounts=function(){return i.default.get("user/cart/count")},t.getCartList=function(){return i.default.get("user/cart/lst")},t.getCouponsOrderPrice=function(e,t){return i.default.get("coupons/order/"+e,t)},t.getOrderConfirm=function(e){return i.default.post("v2/order/check",e)},t.getOrderDetail=function(e){return i.default.get("order/detail/"+e)},t.getOrderList=function(e){return i.default.get("order/list",e)},t.getPayOrder=function(e){return i.default.get("order/status/"+e)},t.getReceiptOrder=function(e){return i.default.get("user/receipt/order/"+e)},t.groupOrderDetail=function(e){return i.default.get("order/group_order_detail/"+e)},t.groupOrderList=function(e){return i.default.get("order/group_order_list",e,{noAuth:!0})},t.integralOrderPay=function(e,t){return i.default.post("order/points/pay/"+e,t)},t.ordeRefundReason=function(){return i.default.get("order/refund/reason")},t.orderAgain=function(e){return i.default.post("user/cart/again",e)},t.orderComment=function(e,t){return i.default.post("reply/"+e,t)},t.orderConfirm=function(e){return i.default.post("order/check",e)},t.orderCreate=function(e){return i.default.post("order/create",e,{noAuth:!0})},t.orderData=function(){return i.default.get("order/number")},t.orderDel=function(e){return i.default.post("order/del/"+e)},t.orderPay=function(e,t){return i.default.post("order/pay/"+e,t)},t.orderProduct=function(e){return i.default.get("reply/product/"+e)},t.orderRefundVerify=function(e){return i.default.post("order/refund/verify",e)},t.orderTake=function(e){return i.default.post("order/take/"+e)},t.postOrderComputed=function(e,t){return i.default.post("/order/computed/"+e,t)},t.presellOrderPay=function(e,t){return i.default.post("presell/pay/"+e,t)},t.receiptOrder=function(e){return i.default.get("user/receipt/order",e)},t.refundApply=function(e,t){return i.default.post("refund/apply/"+e,t,{noAuth:!0})},t.refundBackGoods=function(e,t){return i.default.post("refund/back_goods/"+e,t,{noAuth:!0})},t.refundBatch=function(e){return i.default.get("refund/batch_product/"+e,{noAuth:!0})},t.refundCancelApi=function(e){return i.default.post("refund/cancel/".concat(e))},t.refundDel=function(e){return i.default.post("refund/del/"+e,{noAuth:!0})},t.refundDetail=function(e){return i.default.get("refund/detail/"+e,{noAuth:!0})},t.refundExpress=function(e){return i.default.get("refund/express/"+e,{noAuth:!0})},t.refundList=function(e){return i.default.get("refund/list",e,{noAuth:!0})},t.refundMessage=function(){return i.default.get("common/refund_message",{noAuth:!0})},t.refundOrderExpress=function(e,t){return i.default.get("server/".concat(e,"/refund/express/").concat(t))},t.refundProduct=function(e,t){return i.default.get("refund/product/"+e,t,{noAuth:!0})},t.unOrderCancel=function(e){return i.default.post("order/cancel/"+e)},t.verifyCode=function(e){return i.default.get("order/verify_code/"+e)},r("c223");var i=n(r("fea3"))},de8c:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{style:e.viewColor},[r("v-uni-view",{staticClass:"payment-status"},[0!=e.order_pay_info.paid?r("v-uni-view",{staticClass:"iconfont icon-duihao2 icon"}):r("v-uni-view",{staticClass:"iconfont icon-iconfontguanbi icon"}),r("v-uni-view",{staticClass:"status"},[e._v(e._s(e.payResult))]),r("v-uni-view",{staticClass:"wrapper"},[20==e.order_type?r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[e._v("订单编号")]),r("v-uni-view",{staticClass:"itemCom"},[e._v(e._s(e.order_pay_info.group_order_sn))])],1):e._e(),r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[e._v(e._s(20==e.order_type?"兑换时间":"下单时间"))]),r("v-uni-view",{staticClass:"itemCom"},[e._v(e._s(e.order_pay_info.create_time))])],1),20==e.order_type?r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[e._v("兑换方式")]),r("v-uni-view",{staticClass:"itemCom"},[e._v("积分兑换")])],1):r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[e._v("支付方式")]),1==e.order_pay_info.pay_type||2==e.order_pay_info.pay_type||3==e.order_pay_info.pay_type?r("v-uni-view",{staticClass:"itemCom"},[e._v("微信")]):4==e.order_pay_info.pay_type||5==e.order_pay_info.pay_type?r("v-uni-view",{staticClass:"itemCom"},[e._v("支付宝")]):r("v-uni-view",{staticClass:"itemCom"},[e._v("余额")])],1),20==e.order_type?r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[e._v("支付积分")]),r("v-uni-view",{staticClass:"itemCom"},[e._v(e._s(e.order_pay_info.integral))])],1):e._e(),r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[e._v("支付金额")]),r("v-uni-view",{staticClass:"itemCom"},[e._v(e._s(e.order_pay_info.pay_price))])],1),e.order_pay_info.give_integral>0&&e.order_pay_info.paid?r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[e._v("赠送积分")]),r("v-uni-view",{staticClass:"itemCom t-color"},[e._v(e._s(e.order_pay_info.give_integral))])],1):e._e(),0==e.order_pay_info.paid&&"offline"!=e.order_pay_info.pay_type&&"success"!=e.msg?r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[e._v("失败原因")]),r("v-uni-view",{staticClass:"itemCom"},[e._v(e._s(0==e.order_pay_info.pay_type?"余额不足":e.msg))])],1):e._e()],1),r("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goOrderDetails.apply(void 0,arguments)}}},[r("v-uni-button",{staticClass:"returnBnt gColor",attrs:{formType:"submit","hover-class":"none"}},[e._v("查看订单")])],1),4==e.order_pay_info.activity_type&&e.order_pay_info.paid?r("v-uni-button",{staticClass:"returnBnt s-Color",attrs:{formType:"submit","hover-class":"none"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goPink(e.order_pay_info.activity_id)}}},[e._v("邀请好友参团")]):e._e(),e.order_pay_info.paid&&4==e.order_pay_info.activity_type?e._e():r("v-uni-button",{staticClass:"returnBnt s-Color",attrs:{formType:"submit","hover-class":"none"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goIndex.apply(void 0,arguments)}}},[e._v("返回首页")]),e.couponList.length>0&&e.order_pay_info.paid?r("v-uni-view",{staticClass:"coupon-wrapper"},[r("v-uni-view",{staticClass:"hd"},[r("v-uni-view",{staticClass:"line"}),r("v-uni-view",{staticClass:"txt"},[e._v("赠送优惠券")]),r("v-uni-view",{staticClass:"line"})],1),r("v-uni-view",{staticClass:"coupon-box",class:{on:e.isOpen}},[e._l(e.couponList,(function(t,n){return[r("v-uni-view",{key:n+"_0",staticClass:"coupon-item flex"},[r("v-uni-view",{staticClass:"left-bg",style:{"background-image":"url("+e.domain+"/static/diy/couponBg"+e.keyColor+".png)"}},[r("v-uni-text",[e._v("¥")]),e._v(e._s(t.coupon_price))],1),r("v-uni-view",{staticClass:"info"},[r("v-uni-view",{staticClass:"title"},[e._v(e._s(t.title))]),r("v-uni-view",{staticClass:"des"},[e._v("满"+e._s(t.use_min_price)+"元可用")]),1==t.coupon_type?[r("v-uni-view",{staticClass:"des"},[e._v("有效期:"+e._s(e._f("timeYMD")(t.use_start_time))+"-"+e._s(e._f("timeYMD")(t.use_end_time)))])]:e._e(),0==t.coupon_type?[r("v-uni-view",{staticClass:"des"},[e._v("领取后"+e._s(t.coupon_time)+"天内可用")])]:e._e()],2)],1)]}))],2),e.couponList.length>2?r("v-uni-view",{staticClass:"more",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.bindMore.apply(void 0,arguments)}}},[e._v(e._s(e.text)),e.isOpen?r("v-uni-text",{staticClass:"iconfont icon-xiangshang"}):r("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1):e._e()],1):e._e()],1)],1)},i=[]},f452:function(e,t,r){var n=r("54c8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=r("967d").default;i("31754a0c",n,!0,{sourceMap:!1,shadowMode:!1})},f6fb:function(e,t,r){"use strict";r.r(t);var n=r("44b4"),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},fbbb:function(e,t,r){"use strict";r.r(t);var n=r("de8c"),i=r("f6fb");for(var o in i)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(o);r("03cb");var a=r("828b"),u=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"5c5e381f",null,!1,n["a"],void 0);t["default"]=u.exports}}]);