(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_cashier-index"],{"0a0f":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={uModal:a("98f3").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-button",{class:t.triggerName,staticStyle:{cursor:"pointer",display:"none"},attrs:{"data-clipboard-text":t.alipayLink}}),a("u-modal",{attrs:{show:t.show,title:"支付宝支付"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.handleConfirm.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"slot-content"},[t._v("链接已复制,请到外部浏览器完成支付")])],1)],1)},o=[]},"10ce":function(t,e,a){"use strict";a.r(e);var n=a("7873"),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},2580:function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("acd8");var i=n(a("a4cd")),o=n(a("2cfd")),r=n(a("8007")),s=a("b68d"),c=n(a("f136")),u={components:{countDown:i.default,numberScroll:o.default,AlipayLinkCopy:r.default},data:function(){return{cancelPayModalShow:!1,backPayModalShow:!0,alipayShow:!1,alipayLink:"",checked:!1,isClickGiveUpBtn:!0,cartArr:[{name:"微信支付",icon:"icon-weixin2",value:"WXPAY",title:"使用微信快捷支付",payStatus:1},{name:"支付宝支付",icon:"icon-zhifubao",value:"ALIPAY",title:"使用支付宝支付",payStatus:1}],paytype:"WXPAY",orderId:0,active:0,payPrice:10,payPriceShow:10,invalidTime:1684836534,jumpData:{orderId:"",msg:""},formContent:""}},onLoad:function(t){t.order_id&&(this.orderId=t.order_id),this.getCashierOrder()},onShow:function(){wx.getEnterOptionsSync();window.history.pushState(null,null,document.url),window.addEventListener("popstate",this.backShowPayModal)},onHide:function(){window.removeEventListener("popstate",this.backShowPayModal)},onUnload:function(){window.removeEventListener("popstate",this.backShowPayModal)},methods:{backShowPayModal:function(){this.isClickGiveUpBtn=!1,this.cancelPayModalShow=this.backPayModalShow},onGiveUpPay:function(){this.isClickGiveUpBtn&&window.history.back(),this.cancelPayModalShow=!1,uni.navigateBack({delta:1})},getCashierOrder:function(){var t=this;uni.showLoading({title:"加载中"}),(0,s.getOrderDetail)(this.orderId).then((function(e){var a=e.data;t.invalidTime=new Date(e.data.endTime).getTime(),t.payPrice=parseFloat(a.proTotalPrice).toFixed(2),t.payPriceShow=parseFloat(a.proTotalPrice).toFixed(2)})).catch((function(e){return t.$util.Tips({title:e})})).finally(uni.hideLoading)},payType:function(t,e){this.active=e,this.paytype=t},onConfirm:function(){var t=this;uni.showModal({title:"提示",content:"您是否已支付?",cancelText:"未支付",confirmText:"已支付",success:function(e){e.confirm?(t.backPayModalShow=!1,window.history.back(),setTimeout((function(){uni.redirectTo({url:"/pages/users/order_list/index"})}),200)):e.cancel}})},goPay:function(){var t=this;if(!t.orderId)return t.$util.Tips({title:"请选择要支付的订单"});uni.showLoading({title:"支付中"}),(0,c.default)({payInfo:{orderNo:t.orderId},payType:t.paytype,createOrderFun:s.wechatOrderPay,payResultHandle:function(t){return{jsapiResult:t.jsapiConfig,body:t.body}},wxPaySuccess:function(){uni.redirectTo({url:"/pages/users/order_list/index"})},aliPaySuccess:function(e){t.alipayLink=e,setTimeout((function(){document.querySelector(".clipboard").click(),t.alipayShow=!0}),500)}})}}};e.default=u},"2a9f":function(t,e,a){var n=a("87ef");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("419a9ddd",n,!0,{sourceMap:!1,shadowMode:!1})},"2cfd":function(t,e,a){"use strict";a.r(e);var n=a("6530"),i=a("10ce");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("f504");var r=a("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"e3248744",null,!1,n["a"],void 0);e["default"]=s.exports},"2d9c":function(t,e,a){var n=a("4aff");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("22b895c4",n,!0,{sourceMap:!1,shadowMode:!1})},"4aff":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".time[data-v-18474c41]{display:flex;justify-content:center}.red[data-v-18474c41]{color:var(--view-theme);margin:0 %?4?%}",""]),t.exports=e},"5b19":function(t,e,a){"use strict";var n=a("2d9c"),i=a.n(n);i.a},"5e98":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",{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(),t.isShowHour?[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()]: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()],2)},i=[]},6530: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",{staticClass:"number-box"},[t._l(t.indexArr,(function(e,n){return[a("v-uni-swiper",{key:n+"_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)},i=[]},"6ec5":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/* 文章场景相关 */.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},"6f6a":function(t,e,a){"use strict";var n=a("2a9f"),i=a.n(n);i.a},7873: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 n={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),n=t.toString().length,i=e.toString().length;if(n>i){for(var o=0;o0?(a=!0===t.isDay?Math.floor(e/86400):0,n=Math.floor(e/3600)-24*a,i=Math.floor(e/60)-24*a*60-60*n,o=Math.floor(e)-24*a*60*60-60*n*60-60*i,n<=9&&(n="0"+n),i<=9&&(i="0"+i),o<=9&&(o="0"+o),t.day=a,t.hour=n,t.minute=i,t.second=o):(t.day="00",t.hour="00",t.minute="00",t.second="00")}e(),setInterval(e,1e3)}}};e.default=n},f37c: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={uModal:a("98f3").default,uButton:a("b4f3").default},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:"title"},[t._v("实付金额")]),a("v-uni-view",{staticClass:"price"},[a("v-uni-text",{staticClass:"unit"},[t._v("¥")]),a("numberScroll",{attrs:{num:t.payPriceShow,color:"#F12A65",width:"30",height:"50",fontSize:"50"}})],1),a("v-uni-view",{staticClass:"count-down"},[t._v("支付剩余时间"),a("countDown",{attrs:{"is-day":!1,"is-show-hour":!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._l(t.cartArr,(function(e,n){return a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.payStatus,expression:"item.payStatus"}],key:n,staticClass:"item acea-row row-between-wrapper",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.payType(e.value,n)}}},[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(e.name))]),"yue"==e.value?a("v-uni-view",{staticClass:"info"},[t._v(t._s(e.title)),a("span",{staticClass:"money"},[t._v("¥"+t._s(e.number))])]):t._e()],1)],1),a("v-uni-view",{staticClass:"iconfont",class:t.active==n?"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 pay-button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPay.apply(void 0,arguments)}}},[t._v("确认支付")]),a("v-uni-view",{staticClass:"wait-pay",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelPayModalShow=!0}}},[t._v("暂不支付")])],1),a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],domProps:{innerHTML:t._s(t.formContent)}}),a("u-modal",{attrs:{show:t.cancelPayModalShow,width:"519rpx"}},[a("v-uni-view",{staticClass:"modal-wrap"},[a("v-uni-view",{staticClass:"count-down"},[t._v("支付剩余时间"),a("countDown",{attrs:{"is-day":!1,"is-show-hour":!1,"tip-text":"","day-text":"","hour-text":"","minute-text":" : ","second-text":" ",datatime:t.invalidTime}})],1),a("v-uni-view",{staticClass:"model-content"},[t._v("确认要放弃付款吗?")])],1),a("v-uni-view",{attrs:{slot:"confirmButton"},slot:"confirmButton"},[a("v-uni-view",{staticClass:"modal-btn-wrap"},[a("u-button",{staticClass:"give-up-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onGiveUpPay.apply(void 0,arguments)}}},[t._v("放弃")]),a("u-button",{staticClass:"continue-btn"},[t._v("继续支付")])],1)],1)],1),a("alipay-link-copy",{attrs:{show:t.alipayShow,alipayLink:t.alipayLink},on:{"update:show":function(e){arguments[0]=e=t.$handleEvent(e),t.alipayShow=e},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}})],1):t._e()},o=[]},f504:function(t,e,a){"use strict";var n=a("95e2"),i=a.n(n);i.a}}]);