text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-Coupon"],{"1c2c":function(t,e,i){"use strict";var a=i("1fab"),n=i.n(a);n.a},"1fab":function(t,e,i){var a=i("7eb3");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("46e7307c",a,!0,{sourceMap:!1,shadowMode:!1})},"6fbe":function(t,e,i){"use strict";i.r(e);var a=i("f9d7"),n=i.n(a);for(var c in a)"default"!==c&&function(t){i.d(e,t,(function(){return a[t]}))}(c);e["default"]=n.a},"7eb3":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */uni-page-body[data-v-98c33e6c]{background:#f7f7f7}.c-tab[data-v-98c33e6c]{height:%?76?%;background:#fff;padding:%?20?% %?27?% 0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;font-size:%?29?%}.c-tab .active[data-v-98c33e6c]{border-bottom:%?3?% solid #e50a79}.c-list[data-v-98c33e6c]{padding:0 %?27?%}.c-list .c-li[data-v-98c33e6c]{width:100%;height:%?253?%;margin:%?29?% 0 0}.c-list .bg1[data-v-98c33e6c]{background:url(/static/newimg/quan_y.png);background-size:100% 100%}.c-list .bg2[data-v-98c33e6c]{background:url(/static/newimg/quan_n.png);background-size:100% 100%}.c-list .c-li-top[data-v-98c33e6c]{color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:%?142?%;padding:0 %?30?% 0 %?26?%}.c-list .c-li-top .name[data-v-98c33e6c]{font-size:%?40?%;margin:%?20?% 0 0}.c-list .c-li-top .quota[data-v-98c33e6c]{font-size:%?28?%;line-height:%?50?%}.c-list .c-li-top .c-li-right[data-v-98c33e6c]{font-size:%?93?%;font-weight:700;padding:%?10?% 0 0}.c-list .c-li-top .c-li-right[data-v-98c33e6c]:before{content:"￥";font-size:%?28?%}.c-list .c-li-bottom[data-v-98c33e6c]{width:100%;font-size:%?28?%;color:#666;display:-webkit-box;display:-webkit-flex;display:flex;height:%?111?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?30?% 0 %?26?%}.c-list .c-li-bottom .touse[data-v-98c33e6c]{color:#ea4242;font-size:%?22?%;padding:%?4?% %?16?%;border:1px solid #ea4242;border-radius:%?8?%}uni-swiper[data-v-98c33e6c]{height:500vh}body.?%PAGE?%[data-v-98c33e6c]{background:#f7f7f7}',""]),t.exports=e},bc54:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"coupon"},[i("v-uni-view",{staticClass:"c-tab"},t._l(t.tablist,(function(e,a){return i("v-uni-view",{key:a,staticClass:"c-tabli",class:a==t.currenttab?"active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab(a)}}},[t._v(t._s(e))])})),1),i("v-uni-swiper",{attrs:{current:t.currenttab},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.tablist,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"c-list"},t._l(t.couponList,(function(e,a){return i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:0==t.currenttab||t.currenttab==e.status,expression:"currenttab==0||currenttab==item.status"}],key:a,staticClass:"c-li",class:0==t.currenttab?"bg1":"bg2"},[i("v-uni-view",{staticClass:"c-li-top"},[i("v-uni-view",{staticClass:"c-li-left"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.ticketDesci))]),i("v-uni-view",{staticClass:"quota"},[t._v(t._s(e.serialId))])],1),i("v-uni-view",{staticClass:"c-li-right"},[t._v(t._s(e.maxAmt))])],1),i("v-uni-view",{staticClass:"c-li-bottom"},[i("v-uni-view",{staticClass:"c-lib-left"},[t._v("有效期至:"+t._s(e.expiryDate))])],1)],1)})),1)})),1),i("v-uni-view",{staticClass:"c-list"},[i("v-uni-view",{staticClass:"c-li"})],1)],1)},c=[]},d5a7:function(t,e,i){"use strict";i.r(e);var a=i("bc54"),n=i("6fbe");for(var c in n)"default"!==c&&function(t){i.d(e,t,(function(){return n[t]}))}(c);i("1c2c");var s,o=i("f0c5"),r=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"98c33e6c",null,!1,a["a"],s);e["default"]=r.exports},f9d7:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{tablist:["未使用","已使用"],couponList:[],isbind:!1,quanlist:[{name:"通用红包",quota:"满100可用",size:10,time:"有效期至2019.05.01",status:1},{name:"通用红包",quota:"满100可用",size:10,time:"已过期",status:2},{name:"通用红包",quota:"满100可用",size:10,time:"已使用",status:2}],currenttab:0}},onLoad:function(t){this.getUserCoupon()},methods:{changeTab:function(t){var e;console.log(t),e=isNaN(t)?t.detail.current:t,this.currenttab=e,this.getUserCoupon()},getUserCoupon:function(){if(console.log(this.currenttab),0==this.currenttab){var t=uni.getStorageSync("userInfo");if(this.couponList=t.ticketsList,console.log(this.couponList),!t.vipCode)return void this.$api.msg("未与CRM相连");this.isbind=!0}else{var e=this;e.$http({method:"GET",url:e.global.target+"/wx/order/getOrderTicketsList"}).then((function(t){var i=t.data;console.log(t),0==i.errno&&(e.couponList=i.data.list)}),(function(t){}))}}}};e.default=a}}]);