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