1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-get_coupon-get_coupon"],{"0057":function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCouponList=a,e.getCoupon=o,e.getOrderCoupon=s,e.getMyCoupon=c,e.getActivityGoodsLists=u,e.getSeckillTime=l,e.getSeckillGoods=f,e.getGroupList=d,e.getUserGroup=p,e.getTeamInfo=g,e.teamKaiTuan=v,e.teamCheck=h,e.teamBuy=m,e.getBargainList=b,e.getBargainDetail=w,e.getBargainNumber=y,e.launchBargain=_,e.getBargainActivityList=S,e.getBargainActivityDetail=A,e.getBargainPost=x,e.helpBargain=C,e.closeBargainOrder=T,e.getSignLists=k,e.getSignRule=L,e.userSignIn=B,e.getIntegralGoods=O,e.getIntegralGoodsDetail=X,e.integralSettlement=z,e.integralSubmitOrder=R,e.getIntegralOrder=M,e.delIntegralOrder=I,e.getIntegralOrderDetail=P,e.cancelIntegralOrder=j,e.confirmIntegralOrder=E,e.getIntegralOrderTraces=V;var r=i(n("b175"));n("357b");function a(t){return r.default.get("coupon/getCouponList",{params:t})}function o(t){return r.default.post("coupon/getCoupon",{coupon_id:t})}function s(t){return r.default.post("coupon/getBuyCouponList",t)}function c(t){return r.default.get("coupon/myCouponList",{params:t})}function u(t){return r.default.get("activity_area/activityGoodsList",{params:t})}function l(){return r.default.get("seckill_goods/getSeckillTime")}function f(t){return r.default.get("seckill_goods/getSeckillGoods",{params:t})}function d(t){return r.default.get("team/activity",{params:t})}function p(t){return r.default.get("team/record",{params:t})}function g(t){return r.default.get("team/teamInfo",{params:t})}function v(t){return r.default.post("team/kaituan",t)}function h(t){return r.default.post("team/check",t)}function m(t){return r.default.post("team/buy",t)}function b(t){return r.default.get("bargain/lists",{params:t})}function w(t){return r.default.get("bargain/detail",{params:t})}function y(){return r.default.get("bargain/barginNumber")}function _(t){return r.default.post("bargain/sponsor",t)}function S(t){return r.default.get("bargain/orderList",{params:t})}function A(t){return r.default.get("bargain/bargainDetail",{params:t})}function x(t){return r.default.get("share/shareBargain",{params:t})}function C(t){return r.default.post("bargain/knife",t)}function T(t){return r.default.get("bargain/closeBargain",{params:t})}function k(){return r.default.get("sign/lists")}function L(){return r.default.get("sign/rule")}function B(){return r.default.get("sign/sign")}function O(t){return r.default.get("integral_goods/lists",{params:t})}function X(t){return r.default.get("integral_goods/detail",{params:t})}function z(t){return r.default.get("integral_order/settlement",{params:t})}function R(t){return r.default.post("integral_order/submitOrder",t)}function M(t){return r.default.get("integral_order/lists",{params:t})}function I(t){return r.default.post("integral_order/del",{id:t})}function P(t){return r.default.get("integral_order/detail",{params:{id:t}})}function j(t){return r.default.post("integral_order/cancel",{id:t})}function E(t){return r.default.post("integral_order/confirm",{id:t})}function V(t){return r.default.get("integral_order/orderTraces",{params:{id:t}})}},"045e":function(t,e,n){"use strict";var i=n("4ea4");n("d81d"),n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=i(n("ade3")),o=n("0057"),s=(r={data:function(){return{showTips:[]}},props:{list:{type:Array,default:function(){return[]}},btnType:{type:Number}},watch:{list:{handler:function(t){var e=t.map((function(t){return 0}));this.showTips=e},immediate:!0,deep:!0}},computed:{}},(0,a.default)(r,"computed",{getBtn:function(){var t="";switch(this.btnType){case 0:t="去使用";break;case 1:t="已使用";break;case 2:t="已过期";break;case 3:t="领取";break}return t}}),(0,a.default)(r,"methods",{onHandle:function(t){this.id=t;var e=this.btnType;switch(e){case 0:uni.switchTab({url:"/pages/index/index"});break;case 1:break;case 2:break;case 3:this.getCouponFun();break}},onShowTips:function(t){var e=this.showTips;this.showTips[t]=e[t]?0:1,this.showTips=Object.assign([],this.showTips)},getCouponFun:function(){var t=this;if(!this.isLogin)return this.$Router.push("/pages/login/login");(0,o.getCoupon)(this.id).then((function(e){1==e.code&&(t.$toast({title:e.msg}),setTimeout((function(){t.$emit("refresh")}),1500))}))}}),r);e.default=s},"07d7":function(t,e,n){"use strict";n.r(e);var i=n("09f5"),r=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},"09f5":function(t,e,n){"use strict";var i=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("0057"),a=i(n("9df2")),o={mixins:[a.default],data:function(){return{active:0,upOption:{empty:{icon:"/static/images/coupon_null.png",tip:"暂无优惠券"}},tabList:[{name:"全部",type:"all"},{name:"店铺券",type:"shop"},{name:"通用券",type:"platform"}],couponList:[]}},onLoad:function(t){},methods:{upCallback:function(t){var e=this,n=this.tabList,i=this.active;(0,r.getCouponList)({page_size:t.size,page_no:t.num,type:n[i].type}).then((function(n){var i=n.data;1==t.num&&(e.couponList=[]);var r=i.lists,a=r.length,o=!!i.more;e.couponList=e.couponList.concat(r),e.mescroll.endSuccess(a,o)})).catch((function(){e.mescroll.endErr()}))},changeActive:function(t){this.active=t,this.refresh()},refresh:function(){this.couponList=[],this.mescroll.resetUpScroll()}}};e.default=o},"0d00":function(t,e,n){"use strict";n.r(e);var i=n("aa0e"),r=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},"17ef":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".banner[data-v-c7a99dd2]{width:100%;height:%?340?%}.main[data-v-c7a99dd2]{border-radius:%?20?% %?20?% 0 0;margin-top:%?-20?%;overflow:hidden;position:relative}",""]),t.exports=e},"1de5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"409c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAr4AAADIBAMAAAD8Tf+zAAAAHlBMVEUAAADv7+/k5OTn5+fl5eXm5ubk5OTk5OTl5eX///8aoTc0AAAACHRSTlMAEDBAn6Dv8NSwICYAAAIkSURBVHja7dlREQIxDEXRAoMXpCABCUhAAhZwi4bM5G073bMSzsc2uRnfA77feb/Bly9fvnz58uVb9X3xjfpeP3yTvuPBN+p75xv1vfGN+l748vV/4Ot9M59tuF+8+SZ9n/ZjfYcvX758+fIt+urr4flXX7e/6Q989TP9ly9f/wfvm/mMb9d+oa9HffV1fYcvX758+fLlu5av+0V4v3C/sB/rO3z1yTm++jpf/we+3jfz2Y77hftF1Nf9Qt/hy5cvX758q776enj+1dftb/oDX/1M/+XL1//B+2Y+49u1X+jrUV99Xd/hy5cvX758+a7l634R3i/cL+zH+g5ffXKOr77O1/+Br/fNfLbjfuF+EfV1v9B3+PLly5cv36qvvh6ef/V1+5v+wFc/03/58vV/8L6Zz/h27Rf6etRXX9d3+PLly5cv36qvvh6ef/V1+5v+wFc/03/58vV/8L6Zz/h27Rf6etRXX9d3+PLly5cvX75r+bpfhPcL9wv7sb7DV5+c46uv8/V/4Ot9M5/tuF+4X0R93S/0Hb58+fLly7fqq6+H51993f6mP/DVz/Rfvnz9H7xv5jO+XfuFvh711df1Hb58+fLly5fvWr7uF+H9wv3Cfqzv8NUn5/jq63z9H/h638xnO+4X7hdRX/cLfYcvX758+fKt+urr4flXX7e/6Q989TP9ly9f/wfvm/mMb9d+oa9HffV1fYcvX758+fLly/dE3x8kOVDtActPQAAAAABJRU5ErkJggg=="},"5a93":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".price-format[data-v-0a5a34e0]{font-family:Avenir,SourceHanSansCN,PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif}",""]),t.exports=e},"65a7":function(t,e,n){var i=n("24fb"),r=n("1de5"),a=n("eeeb"),o=n("409c");e=i(!1);var s=r(a),c=r(o);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/* 行为相关颜色 */.coupon-list[data-v-52b336c6]{padding:0 %?24?%;overflow:hidden}.coupon-list .coupon-item[data-v-52b336c6]{position:relative;height:%?200?%;background-image:url('+s+");background-size:100% 100%}.coupon-list .coupon-item.gray[data-v-52b336c6]{background-image:url("+c+")}.coupon-list .coupon-item.gray .btn.plain[data-v-52b336c6]{color:#ccc}.coupon-list .coupon-item .price[data-v-52b336c6]{width:%?200?%}.coupon-list .coupon-item .btn[data-v-52b336c6]{line-height:%?52?%;height:%?52?%;position:absolute;right:%?20?%;bottom:%?20?%;width:%?120?%;text-align:center;padding:0}.coupon-list .coupon-item .btn.plain[data-v-52b336c6]{background-color:#fff;color:#ff2c3c;border:1px solid currentColor}.coupon-list .coupon-item .receive[data-v-52b336c6]{position:absolute;right:%?30?%;top:%?0?%;width:%?99?%;height:%?77?%}.coupon-list .icon[data-v-52b336c6]{transition:all .4s}.coupon-list .rotate[data-v-52b336c6]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}",""]),t.exports=e},7758:function(t,e,n){"use strict";n.r(e);var i=n("9baa"),r=n("b2c5");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("d8a5");var o,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"52b336c6",null,!1,i["a"],o);e["default"]=c.exports},"7eac":function(t,e,n){"use strict";var i=n("ab77"),r=n.n(i);r.a},8312:function(t,e,n){"use strict";n.r(e);var i=n("a126"),r=n("0d00");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("7eac");var o,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"0a5a34e0",null,!1,i["a"],o);e["default"]=c.exports},"9baa":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={priceFormat:n("8312").default,uIcon:n("4569").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"coupon-list"},t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"m-t-20"},[n("v-uni-view",{class:"coupon-item flex "+(1==t.btnType||2==t.btnType?"gray":"")},[n("v-uni-view",{staticClass:"price white flex-col col-center"},[n("v-uni-view",{staticClass:"xl"},[n("price-format",{attrs:{"first-size":60,"second-size":50,"subscript-size":34,price:e.money,weight:500}})],1),n("v-uni-view",{staticClass:"sm text-center"},[t._v(t._s(e.condition_type_desc))])],1),n("v-uni-view",{staticClass:"info m-l-20"},[n("v-uni-view",{staticClass:"lg m-b-20"},[t._v(t._s(e.coupon_name))]),n("v-uni-view",{staticClass:"xs lighter m-b-20"},[t._v(t._s(e.user_time_desc))]),n("v-uni-view",{staticClass:"xs lighter"},[t._v(t._s(e.use_scene_desc))])],1),n("v-uni-button",{class:"btn br60 white xs "+(3!=t.btnType?"plain":""),attrs:{type:"primary"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.onHandle(e.id)}}},[t._v(t._s(t.getBtn))]),e.is_get?n("v-uni-image",{staticClass:"receive",attrs:{src:"/static/images/coupon_receive.png"}}):t._e()],1),e.use_goods_desc?n("v-uni-view",{staticClass:"bg-white",staticStyle:{padding:"14rpx 20rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onShowTips(i)}}},[n("v-uni-view",{staticClass:"flex row-between"},[n("v-uni-view",{staticClass:"xs"},[t._v("使用说明")]),n("u-icon",{class:t.showTips[i]?"rotate":"",attrs:{name:"arrow-down"}})],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.showTips[i],expression:"showTips[index]"}],staticClass:"m-t-10 xs"},[t._v(t._s(e.use_goods_desc))])],1):t._e()],1)})),1)},a=[]},"9df2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{mescroll:null}},onPullDownRefresh:function(){this.mescroll&&this.mescroll.onPullDownRefresh()},onPageScroll:function(t){this.mescroll&&this.mescroll.onPageScroll(t)},onReachBottom:function(){this.mescroll&&this.mescroll.onReachBottom()},methods:{mescrollInit:function(t){console.log(t),this.mescroll=t,this.mescrollInitByRef()},mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef;t&&(this.mescroll=t.mescroll)}},downCallback:function(){var t=this;this.mescroll.optUp.use?this.mescroll.resetUpScroll():setTimeout((function(){t.mescroll.endSuccess()}),500)},upCallback:function(){var t=this;setTimeout((function(){t.mescroll.endErr()}),500)}},mounted:function(){this.mescrollInitByRef()}},r=i;e.default=r},a126:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-text",{class:(t.lineThrough?"line-through":"")+" price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?n("v-uni-text",{style:{"font-size":t.subscriptSize+"rpx","margin-right":"2rpx"}},[t._v("¥")]):t._e(),n("v-uni-text",{style:{"font-size":t.firstSize+"rpx","margin-right":"1rpx"}},[t._v(t._s(t.priceSlice.first))]),t.priceSlice.second?n("v-uni-text",{style:{"font-size":t.secondSize+"rpx"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()],1)},a=[]},aa0e:function(t,e,n){"use strict";n("a9e3"),n("acd8"),n("ac1f"),n("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:[String,Number],default:28},secondSize:{type:[String,Number],default:28},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:[String,Number],default:28},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&""!==t&&void 0!==t?(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e):this.priceSlice={first:0}}}};e.default=i},ab77:function(t,e,n){var i=n("5a93");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("0d47c85e",i,!0,{sourceMap:!1,shadowMode:!1})},aee0:function(t,e,n){var i=n("65a7");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("710d7483",i,!0,{sourceMap:!1,shadowMode:!1})},b2c5:function(t,e,n){"use strict";n.r(e);var i=n("045e"),r=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},b4de:function(t,e,n){"use strict";n.r(e);var i=n("d0bf"),r=n("07d7");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("bcba");var o,s=n("f0c5"),c=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"c7a99dd2",null,!1,i["a"],o);e["default"]=c.exports},bcba:function(t,e,n){"use strict";var i=n("dd4d"),r=n.n(i);r.a},d0bf:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={couponList:n("7758").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mescroll-body",{ref:"mescrollRef",attrs:{up:t.upOption},on:{init:function(e){arguments[0]=e=t.$handleEvent(e),t.mescrollInit.apply(void 0,arguments)},down:function(e){arguments[0]=e=t.$handleEvent(e),t.downCallback.apply(void 0,arguments)},up:function(e){arguments[0]=e=t.$handleEvent(e),t.upCallback.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"get-coupon"},[n("v-uni-view",[n("v-uni-image",{staticClass:"banner",attrs:{src:"/static/images/banner_coupon.jpg"}})],1),n("v-uni-view",{staticClass:"bg-body main"},[n("coupon-list",{attrs:{list:t.couponList,"btn-type":3},on:{refresh:function(e){arguments[0]=e=t.$handleEvent(e),t.refresh.apply(void 0,arguments)}}})],1)],1)],1)},a=[]},d8a5:function(t,e,n){"use strict";var i=n("aee0"),r=n.n(i);r.a},dd4d:function(t,e,n){var i=n("17ef");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("8d5ecfbe",i,!0,{sourceMap:!1,shadowMode:!1})},eeeb:function(t,e,n){t.exports=n.p+"static/img/coupon_bg.f1e66fff.png"}}]); |