face-pay-face-pay-result.91f517cd.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["face-pay-face-pay-result"],{"00da":function(t,e,i){"use strict";i.r(e);var n=i("2fea"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"219d":function(t,e,i){var n=i("f7f0");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("9394ae28",n,!0,{sourceMap:!1,shadowMode:!1})},"2fea":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2ba3")),o={components:{Shenhe:a.default},data:function(){return{store_info:{},optionsData:{},coupon_list:[],status:"-1",timer:null,requestCount:0}},onLoad:function(t){var e,i;this.optionsData=t,null!==(e=this.optionsData)&&void 0!==e&&e.store_info&&(this.store_info=JSON.parse(this.optionsData.store_info)),null!==(i=this.optionsData)&&void 0!==i&&i.order_id&&this.getPayStatus();var n=this.$store.getters.stores;n.douyin_url&&uni.setClipboardData({data:n.douyin_url,success:function(){setTimeout((function(){uni.showToast({title:"抖口令已复制到剪贴板,打开抖音访问我们的抖音号!",icon:"none",duration:2e3})}),1e3)}})},filters:{},methods:{gotoHome:function(){this.$utils.toUrl("/pages/home/home","switchtab")},gotoDetail:function(){this.$utils.toUrl("/order/order/order?status=3","redirectTo")},getPayStatus:function(){var t=this;uni.showLoading({title:this.$t("facePay.result"),mask:!0}),this.$allrequest.facePay.getPayStatus({order_id:this.optionsData.order_id}).then((function(e){if(!e.code&&e.data)if(t.status=e.data.status,3!=e.data.status){if(t.timer&&clearTimeout(t.timer),t.requestCount++,t.requestCount>=5)return uni.hideLoading(),void(t.coupon_list=e.data.coupon_list);t.timer=setTimeout((function(){t.getPayStatus()}),1e3)}else t.timer&&clearTimeout(t.timer),uni.hideLoading(),t.coupon_list=e.data.coupon_list}))},updateCounponList:function(){var t=this;this.$allrequest.facePay.getPayStatus({order_id:this.optionsData.order_id}).then((function(e){!e.code&&e.data&&(t.coupon_list=e.data.coupon_list)}))},receiveCoupon:function(t){var e=this;1!=t.is_receive&&this.$allrequest.facePay.receiveCoupon({id:t.id,store_id:t.store_id}).then((function(t){!t.code&&t.data&&(uni.showToast({title:e.$t("coupon.success"),icon:"none",duration:2e3}),e.updateCounponList())}))}}};e.default=o},5751:function(t,e,i){"use strict";var n=i("219d"),a=i.n(n);a.a},6552:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return 0==t.shenheStatus?i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"page-header"},[3==t.status?i("v-uni-view",{staticClass:"result-status"},[i("v-uni-image",{attrs:{src:t.asyncImgs.images.done_icon}}),i("v-uni-text",[t._v(t._s(t.$t("order.paySuc")))])],1):t._e(),3==t.status?i("v-uni-view",{staticClass:"result-price"},[t._v(t._s(t.$t("admin.actual"))+"¥"+t._s(t.optionsData.payPrice))]):t._e(),3==t.status?i("v-uni-view",{staticClass:"result-btns"},[i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.gotoHome.apply(void 0,arguments)}}},[t._v(t._s(t.$t("facePay.toHome")))]),i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.gotoDetail.apply(void 0,arguments)}}},[t._v(t._s(t.$t("facePay.viewOrders")))])],1):t._e()],1),i("v-uni-view",{staticClass:"page-content"},[i("v-uni-view",{staticClass:"order-info"},[i("v-uni-view",{staticClass:"row-list"},[i("v-uni-view",{staticClass:"row-label"},[t._v(t._s(t.$t("facePay.business")))]),i("v-uni-view",{staticClass:"row-container text-grey"},[t._v(t._s(t.store_info.name))])],1),i("v-uni-view",{staticClass:"row-list"},[i("v-uni-view",{staticClass:"row-label"},[t._v(t._s(t.$t("facePay.discount")))]),i("v-uni-view",{staticClass:"row-container info-list"},[i("v-uni-view",{staticClass:"info-item"},[i("v-uni-text",[t._v(t._s(t.$t("facePay.coupon")))]),i("v-uni-text",[t._v(t._s(t.optionsData.sub_price))])],1)],1)],1),i("v-uni-view",{staticClass:"row-list"},[i("v-uni-view",{staticClass:"row-label"},[t._v(t._s(t.$t("facePay.payInfo")))]),i("v-uni-view",{staticClass:"row-container content-aside"},[i("v-uni-text",[t._v(t._s(t.$t("common.payMethod4")))]),i("v-uni-text",[t._v(t._s(t.optionsData.payPrice+t.optionsData.sub_price))])],1)],1)],1),i("v-uni-view",{staticClass:"hold-line"},[t._v(t._s(t.$t("facePay.get")))]),i("v-uni-view",{staticClass:"coupon-list"},t._l(t.coupon_list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"coupon-item"},[i("v-uni-view",{staticClass:"title"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"subtitle"},[t._v(t._s(e.content))]),i("v-uni-view",{staticClass:"line-box"},[i("v-uni-view",{staticClass:"line"})],1),i("v-uni-view",{staticClass:"btn",class:{receivedBtn:1==e.is_receive},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.receiveCoupon(e)}}},[t._v(t._s(e.receive_content))])],1)})),1)],1)],1):1==t.shenheStatus?i("Shenhe"):t._e()},a=[]},f7f0:function(t,e,i){var n=i("c86c");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/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-35b2b176] .u-form-item--right__content__slot > uni-view,[data-v-35b2b176] .u-form-item--right__content__slot > div,[data-v-35b2b176] .u-form-item--right__content__slot > span,[data-v-35b2b176] .u-form-item--right__content__slot > uni-text{width:100%}.page[data-v-35b2b176]{width:100%;min-height:100vh;background-color:#fff}.page .page-header[data-v-35b2b176]{width:100%;height:%?470?%;background:#0af;color:#fff;font-family:PingFang SC;position:relative;z-index:11}.page .page-header .result-status[data-v-35b2b176]{display:flex;justify-content:center;align-items:center;font-size:%?44?%;font-family:PingFang SC;font-weight:500}.page .page-header .result-status uni-image[data-v-35b2b176]{width:%?50?%;height:%?50?%;display:block;margin-right:%?18?%}.page .page-header .result-price[data-v-35b2b176]{font-size:%?32?%;font-weight:500;color:#fff;line-height:%?36?%;opacity:.9;text-align:center;margin-top:%?24?%}.page .page-header .result-btns[data-v-35b2b176]{display:flex;justify-content:center;align-items:center;margin-top:%?49?%}.page .page-header .result-btns uni-view[data-v-35b2b176]{width:%?180?%;height:%?60?%;background:transparent;border:%?1?% solid #fff;border-radius:%?30?%;text-align:center;line-height:%?60?%;font-size:%?26?%;font-weight:500}.page .page-header .result-btns uni-view[data-v-35b2b176]:last-child{margin-left:%?60?%}.page .page-content[data-v-35b2b176]{width:100%;background-color:#fff;border-radius:%?24?% %?24?% 0 0;position:relative;z-index:111;top:%?-220?%}.page .page-content .order-info[data-v-35b2b176]{padding:%?50?% %?24?% %?20?% %?24?%}.page .page-content .order-info .row-list[data-v-35b2b176]{display:flex;margin-bottom:%?50?%}.page .page-content .order-info .row-list .row-label[data-v-35b2b176]{width:%?160?%;font-size:%?28?%;font-weight:400;color:#000}.page .page-content .order-info .row-list .row-container[data-v-35b2b176]{flex:1}.page .page-content .order-info .row-list .text-grey[data-v-35b2b176]{font-size:%?28?%;font-weight:400;color:#999;display:flex;align-items:center}.page .page-content .order-info .row-list .content-aside[data-v-35b2b176]{display:flex;justify-content:space-between;align-items:center;font-size:%?28?%;color:#000}.page .page-content .order-info .row-list .content-aside uni-text[data-v-35b2b176]:first-child{color:#999}.page .page-content .order-info .row-list .info-list[data-v-35b2b176]{font-size:%?28?%;color:#fc6266}.page .page-content .order-info .row-list .info-list .info-item[data-v-35b2b176]{display:flex;justify-content:space-between;align-items:center;margin-bottom:%?20?%}.page .page-content .order-info .row-list .info-list .info-item[data-v-35b2b176]:last-child{margin-bottom:0}.page .page-content .hold-line[data-v-35b2b176]{text-align:center;font-size:%?28?%;font-weight:400;color:#999;position:relative}.page .page-content .hold-line[data-v-35b2b176]::before{content:"";width:%?220?%;height:%?1?%;background:#eee;position:absolute;left:%?39.6?%;top:%?15?%;z-index:11}.page .page-content .hold-line[data-v-35b2b176]::after{right:%?39.6?%;content:"";width:%?220?%;height:%?1?%;background:#eee;position:absolute;top:%?15?%;z-index:11}.page .page-content .coupon-list[data-v-35b2b176]{display:flex;flex-wrap:wrap;padding:%?29?% %?12.5?% 0 %?12.5?%}.page .page-content .coupon-list .coupon-item[data-v-35b2b176]{width:%?220?%;height:%?280?%;background-color:#fff5f3;margin:0 %?11.5?% %?21?% %?11.5?%;text-align:center;border-radius:%?6?%}.page .page-content .coupon-list .coupon-item .title[data-v-35b2b176]{font-size:%?32?%;font-weight:500;color:#fe5339;margin-top:%?39?%;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 %?10?%}.page .page-content .coupon-list .coupon-item .subtitle[data-v-35b2b176]{font-size:%?22?%;font-family:PingFang SC;font-weight:400;color:#999;max-width:%?155?%;margin:%?23?% auto 0;line-height:%?30?%;word-break:break-all;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;\n /* 这里是超出几行省略 */overflow:hidden}.page .page-content .coupon-list .coupon-item .line-box[data-v-35b2b176]{width:100%;margin-top:%?32?%;position:relative;display:flex;justify-content:center}.page .page-content .coupon-list .coupon-item .line-box .line[data-v-35b2b176]{width:%?180?%;height:%?1?%;border:%?1?% dashed #fe5339;opacity:.1}.page .page-content .coupon-list .coupon-item .line-box[data-v-35b2b176]::before{content:"";width:%?30?%;height:%?30?%;position:absolute;background-color:#fff;left:%?-22?%;top:%?-15?%;z-index:11;border-radius:50%}.page .page-content .coupon-list .coupon-item .line-box[data-v-35b2b176]::after{content:"";width:%?30?%;height:%?30?%;position:absolute;background-color:#fff;right:%?-22?%;top:%?-15?%;z-index:11;border-radius:50%}.page .page-content .coupon-list .coupon-item .btn[data-v-35b2b176]{width:%?140?%;height:%?52?%;background:#fe5339;border-radius:%?6?%;text-align:center;line-height:%?52?%;font-size:%?24?%;font-weight:500;color:#fff;margin:%?18?% auto 0}.page .page-content .coupon-list .coupon-item .receivedBtn[data-v-35b2b176]{background:#fff5f3;border:%?2?% solid #fe5339;color:#fe5339;font-weight:400}',""]),t.exports=e},fce1:function(t,e,i){"use strict";i.r(e);var n=i("6552"),a=i("00da");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("5751");var s=i("828b"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"35b2b176",null,!1,n["a"],void 0);e["default"]=r.exports}}]);