1 line
5.6 KiB
JavaScript
1 line
5.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-808db868"],{"0707":function(t,e,i){"use strict";i("a6ae")},a6ae:function(t,e,i){var o=i("bbb0");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("77c768ee",o,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var o=document.documentElement,s=document.body,a={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&o.clientHeight?Math.min(s.clientHeight,o.clientHeight):Math.max(s.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},bbb0:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".divBox[data-v-2f453d6e]{position:relative;background:transparent}.divBox .minbox[data-v-2f453d6e]{background:#fff;border-radius:.63rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.divBox .minbox img[data-v-2f453d6e]{width:10.63rem;height:10.63rem;margin:0}.divBox .minbox .txt[data-v-2f453d6e]{margin-top:1rem}.divBox .posimg[data-v-2f453d6e]{height:1.5rem;margin-bottom:.94rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.divBox .posimg img[data-v-2f453d6e]{width:1.5rem;height:100%;margin:0}.minbox[data-v-2f453d6e]{width:15.63rem;height:15.19rem;background:hsla(0,0%,100%,.39)}.list[data-v-2f453d6e]{margin:0 .75rem}.list .lis[data-v-2f453d6e]{background:#fff;margin-top:.5rem;padding:.75rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-radius:.75rem}.list .lis .left[data-v-2f453d6e]{text-align:left;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:.88rem}.list .lis .right[data-v-2f453d6e]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;background:#28b2fa;border-radius:1.09rem;-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:2.63rem}.list .lis .right .btn[data-v-2f453d6e]{padding:.38rem 1.22rem;font-size:.75rem;color:#fff}.list .lis .dea[data-v-2f453d6e]{background:#fff}.list .lis .dea .btn[data-v-2f453d6e]{color:#d6d6dc}.list .lis .dea .cdea[data-v-2f453d6e]{color:#28b2fa}",""]),t.exports=e},ff1d:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"coffee_machine_verification"},[i("c-title",{attrs:{hide:!1,text:"核销码列表"}}),i("div",{staticClass:"list"},t._l(t.listInfo,(function(e,o){return i("div",{key:o,staticClass:"lis"},[i("div",{staticClass:"left"},[t._v(t._s(e.goods_name))]),1==e.status?i("div",{staticClass:"right"},[i("div",{staticClass:"btn",on:{click:function(i){return t.showTap(e.check_code,e.expire_time_str)}}},[t._v("核销码")])]):2==e.status?i("div",{staticClass:"right dea"},[i("div",{staticClass:"btn cdea"},[t._v("已使用")])]):-1==e.status||-2==e.status?i("div",{staticClass:"right dea"},[i("div",{staticClass:"btn"},[t._v("已失效")])]):t._e()])})),0),i("van-popup",{staticStyle:{background:"transparent"},on:{closed:t.closePopup},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("div",{staticClass:"divBox"},[i("div",{staticClass:"posimg"},[i("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images%2Ficon_cancle%402x.png",alt:""},on:{click:function(e){t.show=!1}}})]),i("div",{staticClass:"minbox"},[i("p",[t._v("核销码:"+t._s(t.imgShow.code))]),i("p",[t._v("核销码有效时间3分钟")]),i("div",{staticClass:"txt"},[t._v("兑换期限:"+t._s(t.imgShow.expire_time_str))])])])])],1)},s=[],a=i("ac0d"),n={mixins:[a["a"]],data:function(){return{show:!1,listInfo:[],imgShow:{code:"",expire_time_str:""}}},activated:function(){this.getData()},methods:{closePopup:function(){this.imgShow.src="",this.imgShow.expire_time_str=""},showTap:function(t,e){var i=this;$http.get("plugin.coffee-machine.frontend.buyer.autoCode",{check_code:t},"loading").then((function(t){1==t.result?(i.show=!i.show,i.imgShow.expire_time_str=e,i.imgShow.code=t.data.auto_code):i.$toast(t.msg)}))},getData:function(){var t=this,e={order_id:this.$route.params.order_id};$http.post("plugin.coffee-machine.frontend.buyer.codeList",e,"loading").then((function(e){1==e.result?t.listInfo=e.data:t.$toast(e.msg)}))}}},l=n,r=(i("0707"),i("2877")),c=Object(r["a"])(l,o,s,!1,null,"2f453d6e",null);e["default"]=c.exports}}]); |