You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/public/static/js/pages-goods-cashier-index.d...

1 lines
25 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-cashier-index"],{"0aad":function(t,e,a){"use strict";a.r(e);var i=a("fa43"),n=a("cf1f");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("6b80");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"19df9ae2",null,!1,i["a"],void 0);e["default"]=s.exports},"0b8d":function(t,e,a){"use strict";var i=a("6289"),n=a.n(i);n.a},1154:function(t,e,a){"use strict";a.r(e);var i=a("732b"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},3218:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"time",style:t.justifyLeft},[t.tipText?a("v-uni-text",{staticClass:"red"},[t._v(t._s(t.tipText))]):t._e(),!0===t.isDay?a("v-uni-text",{staticClass:"styleAll",style:"background-color:"+t.bgColor+";color:"+t.colors+";"},[t._v(t._s(t.day))]):t._e(),t.dayText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.dayText))]):t._e(),a("v-uni-text",{staticClass:"styleAll",style:"background-color:"+t.bgColor+";color:"+t.colors+";"},[t._v(t._s(t.hour))]),t.hourText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.hourText))]):t._e(),a("v-uni-text",{staticClass:"styleAll",style:"background-color:"+t.bgColor+";color:"+t.colors+";"},[t._v(t._s(t.minute))]),t.minuteText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.minuteText))]):t._e(),a("v-uni-text",{staticClass:"styleAll",style:"background-color:"+t.bgColor+";color:"+t.colors+";"},[t._v(t._s(t.second))]),t.secondText?a("v-uni-text",{staticClass:"timeTxt red"},[t._v(t._s(t.secondText))]):t._e()],1)},n=[]},"451d":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.adminExpress=function(t,e){return r.default.get("admin/order/express/"+t+"".concat(e?"/refund":""))},e.aliPay=function(t,e){return r.default.get("ali_pay",{key:t,quitUrl:e},{noAuth:!0})},e.cancelRefundOrder=function(t){return r.default.post("order/refund/cancel/"+t)},e.cartDel=function(t){"object"===(0,n.default)(t)&&(t=t.join(","));return r.default.post("cart/del",{ids:t})},e.changeCartNum=function(t,e){return r.default.post("cart/num",{id:t,number:e})},e.checkShipping=function(t,e){return r.default.post("order/check_shipping",{cartId:t,new:e})},e.express=function(t,e){return r.default.get("order/express/"+t+"".concat(e?"/refund":""))},e.getCartCounts=function(t){return r.default.get("cart/count",{numType:void 0===t?0:t})},e.getCartList=function(t){return r.default.get("cart/list",t)},e.getCashierOrder=function(t,e){return r.default.get("order/cashier/".concat(t,"/").concat(e))},e.getCouponsOrderPrice=function(t,e){return r.default.get("coupons/order/"+t,e)},e.getNewOrderList=function(t){return r.default.get("order/refund/list",t)},e.getOrderDetail=function(t,e){return r.default.get("order/detail/"+t+"".concat(e?"/".concat(e):""))},e.getOrderList=function(t){return r.default.get("order/list",t)},e.getRefundOrderDetail=function(t,e){return r.default.get("order/refund_detail/"+t+"".concat(e?"/".concat(e):""))},e.getResetCart=function(t){return r.default.post("v2/reset_cart",t)},e.offlineCheckPrice=function(t){return r.default.post("order/offline/check/price",t)},e.offlineCreate=function(t){return r.default.post("order/offline/create",t)},e.ordeRefundReason=function(){return r.default.get("order/refund/reason")},e.orderAgain=function(t){return r.default.post("order/again",{uni:t})},e.orderCancel=function(t){return r.default.post("order/cancel",{id:t})},e.orderComment=function(t){return r.default.post("order/comment",t)},e.orderConfirm=function(t,e,a,i){return r.default.post("order/confirm",{cartId:t,new:e,addressId:a,shipping_type:i})},e.orderCoupon=function(t){return r.default.post("v2/order/product_coupon/"+t)},e.orderCreate=function(t,e){return r.default.post("order/create/"+t,e)},e.orderData=function(){return r.default.get("order/data")},e.orderDel=function(t){return r.default.post("order/del",{uni:t})},e.orderInvoiceDetail=function(t){return r.default.get("v2/order/invoice_detail/".concat(t))},e.orderInvoiceList=function(t){return r.default.get("v2/order/invoice_list",t)},e.orderOfflinePayType=function(){return r.default.get("order/offline/pay/type")},e.orderPay=function(t){return r.default.post("order/pay",t)},e.orderProduct=function(t){return r.default.post("order/product",{unique:t})},e.orderRefundVerify=function(t){return r.default.post("order/refund/verify",t)},e.orderTake=function(t){return r.default.post("order/take",{uni:t})},e.postOrderComputed=function(t,e){return r.default.post("order/computed/"+t,e)},e.postRefundGoods=function(t){return r.default.post("order/refund/cart_info",t)},e.refundExpress=function(t){return r.default.post("order/refund/express",t)},e.refundGoodsList=function(t){return r.default.get("order/refund/cart_info/".concat(t))},e.refundOrderDel=function(t){return r.default.get("order/refund/del/"+t,{})},e.refundOrderDetail=function(t){return r.default.get("order/refund/detail/"+t)},e.returnGoodsSubmit=function(t,e){return r.default.post("order/refund/apply/".concat(t),e)},e.vcartList=function(){return r.default.get("v2/cart_list")},a("99af");var n=i(a("53ca")),r=i(a("3160"))},"46a1":function(t,e,a){"use strict";a.r(e);var i=a("3218"),n=a("1154");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("4bad");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"13279574",null,!1,i["a"],void 0);e["default"]=s.exports},"4bad":function(t,e,a){"use strict";var i=a("bcab"),n=a.n(i);n.a},6289:function(t,e,a){var i=a("7a4a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5e806d31",i,!0,{sourceMap:!1,shadowMode:!1})},"6b80":function(t,e,a){"use strict";var i=a("a13e"),n=a.n(i);n.a},"6d60":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"number-box"},[t._l(t.indexArr,(function(e,i){return[a("v-uni-swiper",{key:i+"_0",staticClass:"swiper",style:{color:t.color,width:10==e?"14rpx":1==e?"22rpx":t.width+"rpx",height:t.height+"rpx",lineHeight:t.fontSize+"rpx",fontSize:t.fontSize+"rpx",fontWeight:t.fontWeight},attrs:{vertical:"true",current:e,circular:"true"}},[a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("0")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("1")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("2")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("3")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("4")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("5")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("6")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("7")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("8")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v("9")])],1),a("v-uni-swiper-item",[a("v-uni-view",{staticClass:"swiper-item"},[t._v(".")])],1)],1)]}))],2)},n=[]},"732b":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3");var i={name:"countDown",props:{justifyLeft:{type:String,default:""},tipText:{type:String,default:"倒计时"},dayText:{type:String,default:"天"},hourText:{type:String,default:"时"},minuteText:{type:String,default:"分"},secondText:{type:String,default:"秒"},datatime:{type:Number,default:0},isDay:{type:Boolean,default:!0},bgColor:{type:String,default:""},colors:{type:String,default:""}},data:function(){return{day:"00",hour:"00",minute:"00",second:"00"}},created:function(){this.show_time()},mounted:function(){},methods:{show_time:function(){var t=this;function e(){var e=t.datatime-Date.parse(new Date)/1e3,a=0,i=0,n=0,r=0;e>0?(a=!0===t.isDay?Math.floor(e/86400):0,i=Math.floor(e/3600)-24*a,n=Math.floor(e/60)-24*a*60-60*i,r=Math.floor(e)-24*a*60*60-60*i*60-60*n,i<=9&&(i="0"+i),n<=9&&(n="0"+n),r<=9&&(r="0"+r),t.day=a,t.hour=i,t.minute=n,t.second=r):(t.day="00",t.hour="00",t.minute="00",t.second="00")}e(),setInterval(e,1e3)}}};e.default=i},"7a4a":function(t,e,a){var i=a("24fb");e=i(!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/* 文章场景相关 */.number-box[data-v-e3248744]{display:flex;flex-wrap:wrap;justify-content:center}.swiper[data-v-e3248744]{position:relative}.swiper[data-v-e3248744]:after{content:"";position:absolute;left:0;top:0;width:100%;height:100%}',""]),t.exports=e},8802:function(t,e,a){var i=a("24fb");e=i(!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/* 文章场景相关 */.page .pay-price[data-v-19df9ae2]{display:flex;justify-content:center;flex-direction:column;align-items:center;padding:%?50?% 0 %?40?% 0}.page .pay-price .price[data-v-19df9ae2]{color:#e93323;margin-bottom:%?20?%;display:flex;align-items:flex-end}.page .pay-price .price .unit[data-v-19df9ae2]{font-size:%?34?%;font-weight:500;line-height:%?41?%}.page .pay-price .price .num[data-v-19df9ae2]{font-size:%?50?%;font-weight:600}.page .pay-price .count-down[data-v-19df9ae2]{display:flex;align-items:center;background-color:#fff;padding:%?8?% %?28?%;border-radius:%?40?%;font-size:%?24?%;color:#e93323}.page .pay-price .count-down .time[data-v-19df9ae2]{margin-top:0!important}.page .pay-price .count-down[data-v-19df9ae2] .red{margin:0!important}.page .payment[data-v-19df9ae2]{width:%?690?%;border-radius:%?14?% %?14?%;background-color:#fff;z-index:999;margin:0 %?30?%}.page .payment .title[data-v-19df9ae2]{color:#666;font-size:%?26?%;padding:%?30?% 0 0 %?30?%}.page .payment .payMoney[data-v-19df9ae2]{font-size:%?28?%;color:#333;text-align:center;margin-top:%?50?%}.page .payment .payMoney .font-color[data-v-19df9ae2]{margin-left:%?10?%}.page .payment .payMoney .font-color .money[data-v-19df9ae2]{font-size:%?40?%}.page .payment.on[data-v-19df9ae2]{-webkit-transform:translateZ(0);transform:translateZ(0)}.page .icon-xuanzhong11[data-v-19df9ae2]{color:#e93323!important}.page .payment .item[data-v-19df9ae2]{border-bottom:%?1?% solid #eee;height:%?130?%;margin-left:%?30?%;padding-right:%?30?%}.page .payment .item[data-v-19df9ae2]:last-child{border-bottom:none}.page .payment .item .left[data-v-19df9ae2]{flex:1}.page .payment .item .left .text[data-v-19df9ae2]{flex:1}.page .payment .item .left .text .name[data-v-19df9ae2]{font-size:%?30?%;color:#333}.page .payment .item .left .text .info[data-v-19df9ae2]{font-size:%?22?%;color:#999}.page .payment .item .left .text .info .money[data-v-19df9ae2]{color:#f90}.page .payment .item .left .iconfont[data-v-19df9ae2]{font-size:%?50?%;color:#09bb07;margin-right:%?28?%}.page .payment .item .left .iconfont.icon-zhifubao[data-v-19df9ae2]{color:#00aaea}.page .payment .item .left .iconfont.icon-yuezhifu[data-v-19df9ae2]{color:#f90}.page .payment .item .left .iconfont.icon-yuezhifu1[data-v-19df9ae2]{color:#eb6623}.page .payment .item .left .iconfont.icon-tonglianzhifu1[data-v-19df9ae2]{color:#305fd8}.page .payment .item .iconfont[data-v-19df9ae2]{font-size:%?40?%;color:#ccc}.page .icon-haoyoudaizhifu[data-v-19df9ae2]{color:#f34c3e!important}.page .btn[data-v-19df9ae2]{position:fixed;left:%?30?%;display:flex;flex-direction:column;align-items:center;bottom:%?30?%;bottom:calc(%?30?% + constant(safe-area-inset-bottom));bottom:calc(%?30?% + env(safe-area-inset-bottom))}.page .wait-pay[data-v-19df9ae2]{color:#aaa;font-size:%?24?%;padding-top:%?20?%}.page .button[data-v-19df9ae2]{width:%?690?%;height:%?90?%;border-radius:%?45?%;color:#fff;background-color:#e93323}',""]),t.exports=e},"903e":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".time[data-v-13279574]{display:flex;justify-content:center}.red[data-v-13279574]{color:var(--view-theme);margin:0 %?4?%}",""]),t.exports=e},a13e:function(t,e,a){var i=a("8802");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("142c1e72",i,!0,{sourceMap:!1,shadowMode:!1})},b77c:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("d401"),a("d3b7"),a("25f0"),a("cb29"),a("fb6a"),a("14d9");var i={props:{num:[String,Number],color:{type:String,default:"#000000"},width:{type:String,default:"30"},height:{type:String,default:"30"},fontSize:{type:String,default:"30"},fontWeight:{type:[String,Number],default:500}},data:function(){return{indexArr:[]}},created:function(){var t=this.num,e=new Array(t.toString().length);e.fill(0),this.indexArr=e},watch:{num:function(t,e){var a=Array.prototype.slice.apply(this.indexArr),i=t.toString().length,n=e.toString().length;if(i>n){for(var r=0;r<i-n;r++)a.push(0);this.indexArr=a}if(i<n){for(var o=0;o<n-i;o++)a.pop();this.indexArr=a}this.numChange(t)}},mounted:function(){var t=this;this._time=setTimeout((function(){t.numChange(t.num),clearTimeout(t._time)}),50)},methods:{numChange:function(t){var e=this;this.$nextTick((function(){for(var a=e.indexArr,i=Array.prototype.slice.apply(a),n=t.toString(),r=0;r<n.length;r++)"."===n[r]?i[r]=10:i[r]=Number(n[r]);e.indexArr=i}))}}};e.default=i},bcab:function(t,e,a){var i=a("903e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("ea25ee38",i,!0,{sourceMap:!1,shadowMode:!1})},cb29:function(t,e,a){var i=a("23e7"),n=a("81d5"),r=a("44d2");i({target:"Array",proto:!0},{fill:n}),r("fill")},ce79:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("159b"),a("14d9"),a("99af"),a("a9e3"),a("acd8");var n=i(a("46a1")),r=i(a("fd65")),o=a("451d"),s=a("a9a5"),u={components:{countDown:n.default,numberScroll:r.default},data:function(){return{checked:!1,datatime:1676344056,cartArr:[{name:this.$t("微信支付"),icon:"icon-weixin2",value:"weixin",title:this.$t("使用微信快捷支付"),payStatus:1},{name:this.$t("支付宝支付"),icon:"icon-zhifubao",value:"alipay",title:this.$t("使用支付宝支付"),payStatus:1},{name:this.$t("余额支付"),icon:"icon-yuezhifu",value:"yue",title:this.$t("可用余额"),payStatus:1},{name:this.$t("线下支付"),icon:"icon-yuezhifu1",value:"offline",title:this.$t("使用线下付款"),payStatus:2},{name:this.$t("好友代付"),icon:"icon-haoyoudaizhifu",value:"friend",title:this.$t("找微信好友支付"),payStatus:1}],orderId:0,fromType:"",active:0,payPrice:0,payPriceShow:0,payPostage:0,offlinePostage:!1,invalidTime:0,initIn:!1,jumpData:{orderId:"",msg:""},formContent:""}},watch:{cartArr:{handler:function(t,e){var a=this,i=[];t.forEach((function(t,e){t.payStatus&&(t.index=e,i.push(t))})),this.$nextTick((function(t){a.active=i[0].index,a.paytype=i[0].value}))},immediate:!0,deep:!0}},onLoad:function(t){t.order_id&&(this.orderId=t.order_id),t.from_type&&(this.fromType=t.from_type),this.getBasicConfig()},onShow:function(){var t=wx.getEnterOptionsSync();if("1038"==t.scene&&"wxef277996acc166c3"==t.referrerInfo.appId&&this.initIn){var e=t.referrerInfo.extraData;this.initIn=!1,e?"success"==e.code?this.$util.Tips({title:this.$t("支付成功"),icon:"success"},{tab:5,url:"/pages/goods/order_pay_status/index?order_id=".concat(this.orderId,"&msg=").concat(this.jumpData.msg,"&type=3&totalPrice=").concat(this.payPriceShow)}):"cancel"==e.code?this.$util.Tips({title:this.$t("取消支付")},{tab:5,url:"/pages/goods/order_pay_status/index?order_id=".concat(this.orderId,"&msg=").concat(this.$t("取消支付"),"&type=3&totalPrice=").concat(this.payPriceShow,"&status=2")}):uni.reLaunch({url:"/pages/goods/order_pay_status/index?order_id=".concat(this.orderId,"&msg=").concat(this.$t("支付失败"),"&totalPrice=").concat(this.payPriceShow)}):this.$util.Tips({title:this.$t("取消支付")},{tab:5,url:"/pages/goods/order_pay_status/index?order_id=".concat(this.orderId,"&msg=").concat(this.$t("取消支付"),"&type=3&totalPrice=").concat(this.payPriceShow,"&status=2")})}},methods:{getBasicConfig:function(){var t=this;(0,s.basicConfig)().then((function(e){t.cartArr[0].payStatus=e.data.pay_weixin_open||0,t.cartArr[1].payStatus=e.data.ali_pay_status||0,t.cartArr[2].payStatus=e.data.yue_pay_status,e.data.offline_pay_status?t.cartArr[3].payStatus=1:t.cartArr[3].payStatus=0,t.cartArr[4].payStatus=e.data.friend_pay_status||0,t.getCashierOrder()})).catch((function(e){return uni.hideLoading(),t.$util.Tips({title:e})}))},getCashierOrder:function(){var t=this;uni.showLoading({title:this.$t("创建订单中")}),(0,o.getCashierOrder)(this.orderId,this.fromType).then((function(e){t.payPrice=t.payPriceShow=e.data.pay_price,t.payPostage=e.data.pay_postage,t.offlinePostage=e.data.offline_postage,t.invalidTime=e.data.invalid_time,t.cartArr[2].number=e.data.now_money,t.number=Number(e.data.now_money)||0,uni.hideLoading()})).catch((function(e){return uni.hideLoading(),t.$util.Tips({title:e})}))},payType:function(t,e,a){this.active=a,this.paytype=e,this.number=t,this.offlinePostage&&(this.payPriceShow="offline"==e?this.$util.$h.Sub(this.payPrice,this.payPostage):this.payPrice)},formpost:function(t,e){var a=document.createElement("form");for(var i in a.action=t,a.method="post",a.target="_self",a.style.display="none",e){var n=document.createElement("input");n.name=i,n.value=e[i],a.appendChild(n)}document.body.appendChild(a),this.$nextTick((function(t){a.submit()}))},waitPay:function(){uni.reLaunch({url:"/pages/goods/order_pay_status/index?order_id="+this.orderId+"&msg=取消支付&type=3&status=2&totalPrice="+this.payPriceShow})},goPay:function(t,e){var a=this,i=this;return i.orderId?"yue"==e&&parseFloat(t)<parseFloat(i.payPriceShow)?i.$util.Tips({title:i.$t("余额不足")}):(uni.showLoading({title:i.$t("支付中")}),"friend"==e&&i.orderId?(uni.hideLoading(),uni.navigateTo({url:"/pages/users/payment_on_behalf/index?order_id="+i.orderId+"&spread="+this.$store.state.app.uid,success:function(t){},fail:function(){},complete:function(){}})):void(0,o.orderPay)({uni:i.orderId,paytype:e,type:i.friendPay?1:0,quitUrl:location.port?location.protocol+"//"+location.hostname+":"+location.port+"/pages/goods/order_details/index?order_id="+this.orderId:location.protocol+"//"+location.hostname+"/pages/goods/order_details/index?order_id="+this.orderId}).then((function(t){var n=t.data.status,r=(t.data.result.order_id,t.data.result.jsConfig),o="/pages/goods/order_pay_status/index?order_id="+a.orderId+"&msg="+t.msg+"&type=3&totalPrice="+a.payPriceShow,s="/pages/users/payment_on_behalf/index?order_id="+a.orderId+"&spread="+a.$store.state.app.uid;switch(n){case"ORDER_EXIST":case"EXTEND_ORDER":return uni.hideLoading(),i.$util.Tips({title:t.msg},{tab:5,url:o});case"ALLINPAY_PAY":uni.hideLoading(),a.formpost(t.data.result.pay_url,r);break;case"PAY_ERROR":return uni.hideLoading(),i.$util.Tips({title:t.msg},{tab:5,url:o});case"SUCCESS":return uni.hideLoading(),"friend"!==e?i.$util.Tips({title:t.msg,icon:"success"},{tab:4,url:o}):i.$util.Tips({title:t.msg,icon:"success"},{tab:4,url:s});case"WECHAT_PAY":i.toPay=!0,a.$wechat.pay(t.data.result.jsConfig).then((function(t){return i.$util.Tips({title:i.$t("支付成功"),icon:"success"},{tab:5,url:o})})).catch((function(t){if(a.$wechat.isWeixin()||uni.redirectTo({url:o+"&msg="+i.$t("支付失败")+"&status=2"}),"chooseWXPay:cancel"==t.errMsg)return i.$util.Tips({title:i.$t("取消支付")},{tab:5,url:o+"&status=2"})}));break;case"PAY_DEFICIENCY":return uni.hideLoading(),i.$util.Tips({title:t.msg},{tab:5,url:o+"&status=1"});case"WECHAT_H5_PAY":uni.hideLoading(),i.$util.Tips({title:i.$t("等待支付中")},{tab:4,url:o+"&status=0"}),setTimeout((function(){location.href=t.data.result.jsConfig.h5_url}),1500);break;case"ALIPAY_PAY":uni.hideLoading(),i.$util.Tips({title:i.$t("等待支付中")},{tab:4,url:o+"&status=0"}),i.formContent=t.data.result.jsConfig,setTimeout((function(){document.getElementById("alipaysubmit").submit()}),1500);break}})).catch((function(t){return uni.hideLoading(),i.$util.Tips({title:t},(function(){i.$emit("onChangeFun",{action:"pay_fail"})}))}))):i.$util.Tips({title:i.$t("请选择要支付的订单")})}}};e.default=u},cf1f:function(t,e,a){"use strict";a.r(e);var i=a("ce79"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},f1ad:function(t,e,a){"use strict";a.r(e);var i=a("b77c"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},fa43:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.payPriceShow?a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"pay-price"},[a("v-uni-view",{staticClass:"price"},[a("v-uni-text",{staticClass:"unit"},[t._v(t._s(t.$t("¥")))]),a("numberScroll",{attrs:{num:t.payPriceShow,color:"#E93323",width:"30",height:"50",fontSize:"50"}})],1),a("v-uni-view",{staticClass:"count-down"},[t._v(t._s(t.$t("支付剩余时间"))+":"),a("countDown",{attrs:{"is-day":!1,"tip-text":" ","day-text":" ","hour-text":" : ","minute-text":" : ","second-text":" ",datatime:t.invalidTime}})],1)],1),a("v-uni-view",{staticClass:"payment"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("支付方式")))]),t._l(t.cartArr,(function(e,i){return a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.payStatus,expression:"item.payStatus"}],key:i,staticClass:"item acea-row row-between-wrapper",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.payType(e.number||0,e.value,i)}}},[a("v-uni-view",{staticClass:"left acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"iconfont",class:e.icon}),a("v-uni-view",{staticClass:"text"},[a("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t(e.name)))]),"yue"==e.value?a("v-uni-view",{staticClass:"info"},[t._v(t._s(t.$t(e.title))),a("span",{staticClass:"money"},[t._v(t._s(t.$t("¥"))+t._s(e.number))])]):a("v-uni-view",{staticClass:"info"},[t._v(t._s(t.$t(e.title)))])],1)],1),a("v-uni-view",{staticClass:"iconfont",class:t.active==i?"icon-xuanzhong11 font-num":"icon-weixuan"})],1)}))],2),a("v-uni-view",{staticClass:"btn"},[a("v-uni-view",{staticClass:"button acea-row row-center-wrapper",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPay(t.number,t.paytype)}}},[t._v(t._s(t.$t("确认支付")))]),a("v-uni-view",{staticClass:"wait-pay",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.waitPay.apply(void 0,arguments)}}},[t._v(t._s(t.$t("暂不支付")))])],1),a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],domProps:{innerHTML:t._s(t.formContent)}})],1):t._e()},n=[]},fd65:function(t,e,a){"use strict";a.r(e);var i=a("6d60"),n=a("f1ad");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("0b8d");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"e3248744",null,!1,i["a"],void 0);e["default"]=s.exports}}]);