(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-my-coupon-log-my-coupon-log"],{"5fee":function(t,e,n){"use strict";n.r(e);var i=n("bd93"),a=n("7440");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var c,s=n("f0c5"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"8a146c5a",null,!1,i["a"],c);e["default"]=u.exports},"622a":function(t,e,n){"use strict";n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{phoneHeight:0,scrollviewHigh:0,state_active:0,DataList:{},no_more:!1,loading:!1,data_type:"all",transfer_setting:!0}},mounted:function(){this.init(),this.getData()},methods:{init:function(){var t=this;uni.getSystemInfo({success:function(e){t.phoneHeight=e.windowHeight;var n=uni.createSelectorQuery().select(".top-tabbar");n.boundingClientRect((function(e){var n=t.phoneHeight-e.height;t.scrollviewHigh=n})).exec()}})},getData:function(){var t=this;uni.showLoading({title:"加载中"});var e=t.data_type;t._get("user.coupon/couponLogList",{data_type:e},(function(e){uni.hideLoading(),console.log(e),t.DataList=e.data.list}))},stateFunc:function(t){var e=this;e.state_active!=t&&(0==t&&(e.data_type="all"),1==t&&(e.data_type="transfer"),2==t&&(e.data_type="receive"),e.state_active=t,e.getData())},scrolltoupperFunc:function(){console.log("滚动视图区域到顶")},scrolltolowerFunc:function(){console.log("滚动视图区域到底")},lookRule:function(t){t.rule=!0},closeRule:function(t){t.rule=!1},transfer:function(){var t=this;if(0==t.DataList.length)return uni.showModal({title:"提示",content:"您还没有优惠券",showCancel:!1}),!1;uni.navigateTo({url:"/pages/user/my-coupon-transfer/my-coupon-transfer"})},log:function(){uni.navigateTo({url:"/pages/user/my-coupon-log/my-coupon-log"})}}};e.default=i},7440:function(t,e,n){"use strict";n.r(e);var i=n("622a"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},bd93:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"top-tabbar"},[n("v-uni-view",{class:0==t.state_active?"tab-item active":"tab-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.stateFunc(0)}}},[t._v("全部")]),n("v-uni-view",{class:1==t.state_active?"tab-item active":"tab-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.stateFunc(1)}}},[t._v("转让")]),n("v-uni-view",{class:2==t.state_active?"tab-item active":"tab-item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.stateFunc(2)}}},[t._v("接收")])],1),n("v-uni-scroll-view",{staticClass:"scroll-Y",style:"height:"+t.scrollviewHigh+"px;",attrs:{"scroll-y":"true","lower-threshold":"50"},on:{scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltoupperFunc.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolowerFunc.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"p30"},[t._l(t.DataList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item-wrap mb20",staticStyle:{"background-color":"#FFFFFF",height:"3rem"}},[n("v-uni-view",{staticStyle:{float:"left",width:"40%","text-align":"center","margin-top":".5rem"}},[n("v-uni-view",[t._v(t._s(e.coupon_name))]),n("v-uni-view",[t._v(t._s(e.transfer_time))])],1),n("v-uni-view",{staticStyle:{float:"left","text-align":"center",width:"40%","margin-top":".5rem"}},[n("v-uni-view",[1==e.type?n("v-uni-view",[t._v("转让给")]):t._e(),0==e.type?n("v-uni-view",[t._v("接收于")]):t._e()],1),n("v-uni-view",[1==e.type?n("v-uni-view",[t._v(t._s(e.receive_name))]):t._e(),0==e.type?n("v-uni-view",[t._v(t._s(e.transfer_name))]):t._e()],1)],1),n("v-uni-view",{staticStyle:{float:"right",width:"15%","text-align":"center","line-height":"3rem"}},[t._v("x"+t._s(e.count)+"张")]),n("v-uni-view",{staticStyle:{clear:"both"}})],1)})),n("v-uni-view",{},[n("v-uni-view",{staticClass:"bottom-refresh"},[t.loading?n("v-uni-view",{staticClass:"d-c-c p30"},[n("v-uni-text",{staticClass:"gray3"},[t._v("加载中...")])],1):t._e(),t.no_more?n("v-uni-view",{staticClass:"d-c-c p30"},[n("v-uni-text",{staticClass:"gray3"},[t._v("~~加载完成~~")])],1):t._e()],1)],1),0!=t.DataList.length||t.loading?t._e():n("v-uni-view",{staticClass:"d-c-c p30"},[n("v-uni-text",{staticClass:"iconfont icon-wushuju"}),n("v-uni-text",{staticClass:"cont"},[t._v("亲，暂无相关记录哦")])],1)],2)],1)],1)},o=[]}}]);