(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-verification-index"],{"02b4":function(e,t,o){"use strict";o.r(t);var i=o("0951"),n=o("651b");for(var a in n)"default"!==a&&function(e){o.d(t,e,(function(){return n[e]}))}(a);o("3745");var s,r=o("f0c5"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"1238e038",null,!1,i["a"],s);t["default"]=d.exports},"0951":function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return i}));var i={uToast:o("4d12").default},n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",{staticClass:"Verification"},[o("v-uni-image",{staticClass:"top-img",attrs:{src:"/static/images/hexiao_bg.png",mode:"widthFix"}}),o("v-uni-view",{staticClass:"txt"},[o("v-uni-view",{staticClass:"title"},[e._v("扫描券码和权证 一键核销")]),o("v-uni-view",{staticClass:"des"},[e._v("降低核销门槛"),o("span",{staticClass:"dian"},[e._v("·")]),e._v("低成本留存优质客户")])],1),o("v-uni-view",{staticClass:"btn"},[o("v-uni-view",{staticClass:"goods",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.scanCode("goods","get")}}},[e._v("权证核销")]),o("v-uni-view",{staticClass:"coupons",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.scanCode("coupons","get")}}},[e._v("优惠券核销")])],1),o("v-uni-view",{staticClass:"history",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goHistory.apply(void 0,arguments)}}},[e._v("核销记录")]),o("u-toast",{ref:"uToast"}),e.showCode?o("v-uni-view",{staticClass:"showCode "},[o("v-uni-view",{staticClass:"showCodeBg",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showCode=!1}}}),o("v-uni-view",{class:["showCodeContent",e.showCode?"showCodeContentSelect":"showCodeContentSelectNo"]},[o("v-uni-view",{staticClass:"showCodeTitle"},[e._v(e._s("goods"===e.scanType?"确认核销该权证":"确认核销该优惠券"))]),"goods"===e.scanType?o("v-uni-view",{staticClass:"goodsInfo"},[o("v-uni-image",{staticClass:"left",attrs:{src:e.info.goods.cover,mode:"widthFix"}}),o("v-uni-view",{staticClass:"right"},[o("v-uni-view",{staticClass:"title ellipsis-2"},[e._v(e._s(e.info.goods.goods_name))]),o("v-uni-view",{staticClass:"number"},[e._v("核销数量: X "+e._s(e.info.qty))])],1)],1):o("v-uni-view",{staticClass:"goodsInfo"},[o("v-uni-view",{staticClass:"right"},[o("v-uni-view",{staticClass:"title ellipsis-2"},[e._v("优惠券名称:‘ "+e._s(e.info.coupon.title)+" ’")]),o("v-uni-view",{staticClass:"number"},[e._v("优惠券类型:"+e._s(e.info.coupon.type.text)),o("span",{staticStyle:{"padding-left":"20rpx"}},[e._v("数量:1")])]),o("v-uni-view",{staticClass:"number"},[e._v("备注:"+e._s(e.info.coupon.remark))])],1)],1),o("v-uni-view",{staticClass:"sureVer",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.scanInfo(e.code,"post")}}},[e._v("确认核销")]),o("v-uni-view",{staticClass:"showCodeDes"},[e._v("请谨慎核销,操作成功后无法撤回")])],1)],1):e._e()],1)},a=[]},"1f88":function(e,t,o){var i=o("bbf1");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=o("4f06").default;n("665e3c9d",i,!0,{sourceMap:!1,shadowMode:!1})},3745:function(e,t,o){"use strict";var i=o("1f88"),n=o.n(i);n.a},"651b":function(e,t,o){"use strict";o.r(t);var i=o("e56f"),n=o.n(i);for(var a in i)"default"!==a&&function(e){o.d(t,e,(function(){return i[e]}))}(a);t["default"]=n.a},"77ed":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanList=t.scanInfo=void 0;var i=o("89d9"),n=function(e,t,o){return(0,i.request)({url:e,method:o,data:t})};t.scanInfo=n;var a=function(e,t){return(0,i.request)({url:e,method:"GET",data:t})};t.scanList=a},bbf1:function(e,t,o){var i=o("24fb");t=i(!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 * Web唐明明\n * 匆匆数载恍如梦,岁月迢迢华发增。\n * 碌碌无为枉半生,一朝惊醒万事空。\n */.ios-bottom[data-v-1238e038]{padding-bottom:env(safe-area-inset-bottom);padding-bottom:constant(safe-area-inset-bottom)}.ios-left[data-v-1238e038]{padding-left:env(safe-area-inset-left);padding-left:constant(safe-area-inset-left)}.ios-right[data-v-1238e038]{padding-right:env(safe-area-inset-right);padding-right:constant(safe-area-inset-right)}.ios-top[data-v-1238e038]{padding-top:0}.vertical[data-v-1238e038]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-pack:center}.nowrap[data-v-1238e038]{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ellipsis[data-v-1238e038]{max-width:100%;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.ellipsis-3[data-v-1238e038]{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:3}.ellipsis-4[data-v-1238e038]{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:4}.ellipsis-5[data-v-1238e038]{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:5}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.Verification[data-v-1238e038]{width:100%;min-height:100vh;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}.Verification .top-img[data-v-1238e038]{margin-top:%?100?%}.Verification .txt[data-v-1238e038]{padding-top:%?120?%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}.Verification .txt .title[data-v-1238e038]{font-size:%?42?%;font-weight:500}.Verification .txt .des[data-v-1238e038]{font-size:%?34?%;color:rgba(37,90,124,.4);padding-top:%?20?%;font-weight:700}.Verification .txt .des .dian[data-v-1238e038]{color:#039bfe;padding:0 %?10?%}.Verification .btn[data-v-1238e038]{display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;margin-top:%?140?%}.Verification .btn .goods[data-v-1238e038],\n.Verification .btn .coupons[data-v-1238e038]{width:%?310?%;height:%?90?%;display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;border-radius:%?8?%;border:solid %?1?% #039bfe;color:#039bfe;font-size:%?34?%;font-weight:700}.Verification .btn .coupons[data-v-1238e038]{background-color:#039bfe;color:#fff;margin-left:%?30?%}.Verification .history[data-v-1238e038]{text-align:center;padding:%?30?%;width:100%;color:#cacaca}.showCode[data-v-1238e038]{width:100%;height:100vh;position:fixed;top:0;display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;z-index:1}.showCode .showCodeBg[data-v-1238e038]{background-color:rgba(0,0,0,.3);width:100%;height:100%;position:absolute;top:0;left:0;z-index:2}.showCode .showCodeContentSelect[data-v-1238e038]{-webkit-animation:sk-foldCubeAngle-data-v-1238e038 .6s linear both;animation:sk-foldCubeAngle-data-v-1238e038 .6s linear both}.showCode .showCodeContentSelectNo[data-v-1238e038]{-webkit-animation:sk-foldCubeAngleNo-data-v-1238e038 .6s linear both;animation:sk-foldCubeAngleNo-data-v-1238e038 .6s linear both}.showCode .showCodeContent[data-v-1238e038]{padding:%?50?% %?30?% %?30?% %?30?%;width:%?640?%;min-height:%?500?%;background-color:#fff;border-radius:%?20?%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:%?30?%;position:relative;z-index:199}.showCode .showCodeContent uni-image[data-v-1238e038]{width:60%}.showCode .showCodeContent .showCodeTitle[data-v-1238e038]{font-weight:700;padding-bottom:%?20?%;font-size:%?40?%;margin-bottom:%?20?%;margin-top:%?30?%}.showCode .showCodeContent .goodsInfo[data-v-1238e038]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;box-sizing:border-box;margin:%?30?%}.showCode .showCodeContent .goodsInfo .left[data-v-1238e038]{width:%?200?%;height:%?200?%;margin-right:%?20?%;border-radius:%?2?%}.showCode .showCodeContent .goodsInfo .right[data-v-1238e038]{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;box-sizing:border-box}.showCode .showCodeContent .goodsInfo .right .title[data-v-1238e038]{font-size:%?30?%;font-weight:700}.showCode .showCodeContent .goodsInfo .right .number[data-v-1238e038]{padding-top:%?10?%;color:#999}.showCode .showCodeContent .sureVer[data-v-1238e038]{background-color:#039bfe;width:%?500?%;height:%?90?%;border-radius:%?8?%;color:#fff;margin:%?30?% 0;font-size:%?40?%;font-weight:700;text-align:center;line-height:%?90?%}.showCode .showCodeContent .showCodeDes[data-v-1238e038]{padding:%?20?% 0 %?20?% 0;color:grey;font-size:%?24?%}@-webkit-keyframes sk-foldCubeAngle-data-v-1238e038{0%{-webkit-transform:perspective(140px) rotateX(-180deg);transform:perspective(140px) rotateX(-180deg);opacity:0}100%{-webkit-transform:perspective(140px) rotateX(0deg);transform:perspective(140px) rotateX(0deg);opacity:1}}@keyframes sk-foldCubeAngle-data-v-1238e038{0%{-webkit-transform:perspective(140px) rotateX(-180deg);transform:perspective(140px) rotateX(-180deg);opacity:0}100%{-webkit-transform:perspective(140px) rotateX(0deg);transform:perspective(140px) rotateX(0deg);opacity:1}}@-webkit-keyframes sk-foldCubeAngleNo-data-v-1238e038{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}25%{-webkit-transform:scale(0);transform:scale(0);opacity:0}}@keyframes sk-foldCubeAngleNo-data-v-1238e038{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}25%{-webkit-transform:scale(0);transform:scale(0);opacity:0}}@-webkit-keyframes turn-data-v-1238e038{0%{-webkit-transform:rotate(0deg);opacity:1}25%{-webkit-transform:rotate(90deg);opacity:.9}50%{-webkit-transform:rotate(180deg);opacity:.8}75%{-webkit-transform:rotate(270deg);opacity:.9}100%{-webkit-transform:rotate(1turn);opacity:1}}@keyframes turn-data-v-1238e038{0%{-webkit-transform:rotate(0deg);opacity:1}25%{-webkit-transform:rotate(90deg);opacity:.9}50%{-webkit-transform:rotate(180deg);opacity:.8}75%{-webkit-transform:rotate(270deg);opacity:.9}100%{-webkit-transform:rotate(1turn);opacity:1}}',""]),e.exports=t},e56f:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o("77ed"),n={data:function(){return{scanType:"goods",showCode:!1,info:"",code:""}},onLoad:function(){uni.hideLoading()},methods:{scanCode:function(e){var t=this;console.log(e),this.scanType=e,uni.scanCode({success:function(e){console.log("条码类型:"+e.scanType),console.log("条码内容:"+e.result),t.code=e.result,t.scanInfo(e.result,"get")}})},scanInfo:function(e,t){var o=this;console.log(e,this.scanType);var n="",a={code:e};"goods"===this.scanType?(console.log("权证核销"),n="manages/warrants/verification"):(console.log("优惠券核销!"),n="coupons/verify/coupon"),(0,i.scanInfo)(n,a,t).then((function(e){"goods"===o.scanType?(uni.hideLoading(),"post"===t?(o.showCode=!1,o.$refs.uToast.show({title:"权证核销成功",type:"error",icon:!1,duration:3e3})):(o.showCode=!0,o.info=e)):(console.log("优惠券核销 有商品跳转优惠券详情页面,没有商品直接弹出核销页面!"),console.log(e,"res"),"post"===t?(o.showCode=!1,o.$refs.uToast.show({title:"优惠券核销成功",type:"error",icon:!1,duration:3e3})):e.goods.length>0?uni.showModal({title:"温馨提示",content:"该优惠券下绑定了商品,是否勾选相应商品",success:function(t){t.confirm?uni.navigateTo({url:"/pages/property/coupon/canUseList?code="+o.code}):(o.showCode=!0,o.info=e.info)}}):(o.showCode=!0,o.info=e.info))})).catch((function(e){o.$refs.uToast.show({title:e.message,type:"error",icon:!1,duration:3e3}),o.showCode=!1}))},goHistory:function(){this.$Router.push({name:"verificationHistory"})}}};t.default=n}}]);