(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-coupon-coupon"],{"12af":function(t,i,n){var e=n("24fb");i=e(!1),i.push([t.i,".coupon-wrap[data-v-24ccca05]{padding:%?30?%}.item-wrap[data-v-24ccca05]{margin-bottom:%?20?%}",""]),t.exports=i},"23c6":function(t,i,n){"use strict";var e=n("cd90"),a=n.n(e);a.a},"662e":function(t,i,n){"use strict";n.r(i);var e=n("f27d"),a=n("d06b");for(var s in a)"default"!==s&&function(t){n.d(i,t,(function(){return a[t]}))}(s);n("23c6");var o,u=n("f0c5"),c=Object(u["a"])(a["default"],e["b"],e["c"],!1,null,"24ccca05",null,!1,e["a"],o);i["default"]=c.exports},cd90:function(t,i,n){var e=n("12af");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=n("4f06").default;a("a474fc64",e,!0,{sourceMap:!1,shadowMode:!1})},d06b:function(t,i,n){"use strict";n.r(i);var e=n("f709"),a=n.n(e);for(var s in e)"default"!==s&&function(t){n.d(i,t,(function(){return e[t]}))}(s);i["default"]=a.a},f27d:function(t,i,n){"use strict";var e;n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return s})),n.d(i,"a",(function(){return e}));var a=function(){var t=this,i=t.$createElement,n=t._self._c||i;return t.loadding?t._e():n("v-uni-view",{staticClass:"coupon-wrap bg-white"},[t.DataList.length>0?t._l(t.DataList,(function(i,e){return n("v-uni-view",{key:e,staticClass:"item-wrap"},[n("v-uni-view",{class:"coupon-item coupon-item-"+i.color.text,on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.lookRule(i)}}},[n("v-uni-view",{staticClass:"circles"},t._l(8,(function(t,i){return n("v-uni-text",{key:i})})),1),n("v-uni-view",{staticClass:"info"},[n("v-uni-view",[t._v(t._s(i.coupon_type.text))])],1),n("v-uni-view",{staticClass:"operation d-b-c w-b"},[n("v-uni-view",{staticClass:"flex-1 coupon-content"},[n("v-uni-view",{class:0==i.is_expire&&0==i.is_use?i.color.text:""},[10==i.coupon_type.value?[n("v-uni-view",{staticClass:"price"},[n("v-uni-text",[t._v("￥")]),n("v-uni-text",{staticClass:"f40 fb"},[t._v(t._s(i.reduce_price))])],1)]:t._e(),20==i.coupon_type.value?[n("v-uni-text",{staticClass:"f40 fb"},[t._v(t._s(i.discount))]),n("v-uni-text",[t._v("折")])]:t._e()],2),n("v-uni-view",{staticClass:"f30"},[t._v(t._s(i.name))]),n("v-uni-view",{staticClass:"f24"},[10==i.expire_type?[t._v("有效期：领取"+t._s(i.expire_day)+"天内有效")]:t._e(),20==i.expire_type?[t._v("有效期："+t._s(i.start_time.text)+"至"+t._s(i.end_time.text))]:t._e()],2)],1),n("v-uni-view",{staticClass:"btns d-c-c"},[i.state.value>0?n("v-uni-button",{class:"btn-"+i.color.text,attrs:{type:"default"},on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.receive(i.coupon_id)}}},[t._v("立即领取")]):n("v-uni-button",{staticClass:"btn-gray",attrs:{type:"default"},on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i)}}},[t._v(t._s(i.state.text))])],1)],1)],1),n("v-uni-view",{class:i.rule?"rule-wrap rule-wrap-auto":"rule-wrap"},[n("v-uni-view",{staticClass:"rule"},[n("v-uni-view",{staticClass:"d-b-c"},[n("v-uni-text",{staticClass:"f30"},[t._v("使用规则")]),n("v-uni-view",{staticClass:"btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.closeRule(i)}}},[n("v-uni-text",{staticClass:"icon iconfont icon-jiantoushang"})],1)],1),n("v-uni-view",{staticClass:"content f28 gray6"},[n("v-uni-view",{staticClass:"pt20"},[t._v("No:10928312314414")]),n("v-uni-view",{staticClass:"pt10 d-s-c d-c"},[n("v-uni-text",[t._v("1.优惠券的基本使用说明1、优惠券是仅限在乐融商城使用,按面值总额减免支付的优惠码。")]),n("v-uni-text",[t._v("2、优惠券分三种:满减券、免邮券、以旧换新优惠券。")]),n("v-uni-text",[t._v("3、优惠券获取方式:通过乐融商城的买赠、活动参与等形式获取。")])],1)],1)],1)],1)],1)})):[n("v-uni-view",{staticClass:"none-data-box"},[n("v-uni-image",{attrs:{src:"/static/none.png",mode:"widthFix"}}),n("v-uni-text",[t._v("暂无数据")])],1)]],2)},s=[]},f709:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={data:function(){return{loadding:!0,indicatorDots:!0,autoplay:!0,interval:2e3,duration:500,DataList:[],page:1,list_rows:10}},mounted:function(){uni.showLoading({title:"加载中"}),this.getData()},methods:{getData:function(){var t=this;t._get("coupon.coupon/lists",{page:t.page,list_rows:t.list_rows},(function(i){t.DataList=i.data.list,t.loadding=!1,uni.hideLoading()}))},lookRule:function(t){t.rule=!0},closeRule:function(t){t.rule=!1},receive:function(t){var i=this;uni.showLoading({title:"领取中"}),i._post("user.coupon/receive",{coupon_id:t},(function(t){uni.hideLoading(),uni.showToast({title:"领取成功",duration:2e3,icon:"success"})})),i.getData()}}};i.default=e}}]);