glhcp/server/public/mobile/static/js/bundle-pages-user_coupon-us...

1 line
16 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-user_coupon-user_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=u,e.getMyCoupon=s,e.getActivityGoodsLists=c,e.getSeckillTime=l,e.getSeckillGoods=f,e.getGroupList=d,e.getUserGroup=p,e.getTeamInfo=g,e.teamKaiTuan=v,e.teamCheck=b,e.teamBuy=h,e.getBargainList=m,e.getBargainDetail=y,e.getBargainNumber=w,e.launchBargain=_,e.getBargainActivityList=x,e.getBargainActivityDetail=S,e.getBargainPost=A,e.helpBargain=T,e.closeBargainOrder=C,e.getSignLists=O,e.getSignRule=k,e.userSignIn=B,e.getIntegralGoods=L,e.getIntegralGoodsDetail=X,e.integralSettlement=z,e.integralSubmitOrder=I,e.getIntegralOrder=M,e.delIntegralOrder=R,e.getIntegralOrderDetail=j,e.cancelIntegralOrder=N,e.confirmIntegralOrder=E,e.getIntegralOrderTraces=P;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 u(t){return r.default.post("coupon/getBuyCouponList",t)}function s(t){return r.default.get("coupon/myCouponList",{params:t})}function c(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 b(t){return r.default.post("team/check",t)}function h(t){return r.default.post("team/buy",t)}function m(t){return r.default.get("bargain/lists",{params:t})}function y(t){return r.default.get("bargain/detail",{params:t})}function w(){return r.default.get("bargain/barginNumber")}function _(t){return r.default.post("bargain/sponsor",t)}function x(t){return r.default.get("bargain/orderList",{params:t})}function S(t){return r.default.get("bargain/bargainDetail",{params:t})}function A(t){return r.default.get("share/shareBargain",{params:t})}function T(t){return r.default.post("bargain/knife",t)}function C(t){return r.default.get("bargain/closeBargain",{params:t})}function O(){return r.default.get("sign/lists")}function k(){return r.default.get("sign/rule")}function B(){return r.default.get("sign/sign")}function L(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 I(t){return r.default.post("integral_order/submitOrder",t)}function M(t){return r.default.get("integral_order/lists",{params:t})}function R(t){return r.default.post("integral_order/del",{id:t})}function j(t){return r.default.get("integral_order/detail",{params:{id:t}})}function N(t){return r.default.post("integral_order/cancel",{id:t})}function E(t){return r.default.post("integral_order/confirm",{id:t})}function P(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"),u=(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=u},"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},"17d8":function(t,e,n){"use strict";n.r(e);var i=n("870b"),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},"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 u=r(a),s=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('+u+");background-size:100% 100%}.coupon-list .coupon-item.gray[data-v-52b336c6]{background-image:url("+s+")}.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},"6f4a":function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{i:Number,index:{type:Number,default:function(){return 0}}},data:function(){return{downOption:{auto:!1},upOption:{auto:!1},isInit:!1}},watch:{index:function(t){this.i!==t||this.isInit||(this.isInit=!0,this.mescroll&&this.mescroll.triggerDownScroll())}},methods:{mescrollInitByRef:function(){if(!this.mescroll||!this.mescroll.resetUpScroll){var t=this.$refs.mescrollRef||this.$refs["mescrollRef"+this.i];t&&(this.mescroll=t.mescroll)}},mescrollInit:function(t){this.mescroll=t,this.mescrollInitByRef&&this.mescrollInitByRef(),this.i===this.index&&(this.isInit=!0,this.mescroll.triggerDownScroll())}}},r=i;e.default=r},7265:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{active:0,coupons:[{title:"可使用",btnType:0,type:"valid"},{title:"已使用",btnType:1,type:"used"},{title:"已过期",btnType:2,type:"expired"}]}},methods:{onChange:function(t){this.active=t}}};e.default=i},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,u=n("f0c5"),s=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"52b336c6",null,!1,i["a"],o);e["default"]=s.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,u=n("f0c5"),s=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"0a5a34e0",null,!1,i["a"],o);e["default"]=s.exports},"870b":function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("0057"),a=i(n("9df2")),o=i(n("6f4a")),u={mixins:[a.default,o.default],data:function(){return{couponList:[],downOption:{auto:!1},upOption:{auto:!1,noMoreSize:4,empty:{icon:"/static/images/coupon_null.png",tip:"暂无优惠券",fixed:!0}}}},props:{type:{type:String},btnType:{type:Number}},methods:{upCallback:function(t){var e=this,n=this.type,i=t.num,a=t.size;(0,r.getMyCoupon)({page_size:a,page_no:i,type:n}).then((function(n){var i=n.data,r=i.lists,a=r.length,o=!!i.more;1==t.num&&(e.couponList=[]),e.couponList=e.couponList.concat(r),e.mescroll.endSuccess(a,o)}))}}};e.default=u},"8b9c":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={mescrollUni:n("de4f").default,couponList:n("7758").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mescroll-uni",{ref:"mescrollRef",attrs:{top:"80rpx",down:t.downOption,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:"my-coupons"},[n("coupon-list",{attrs:{list:t.couponList,btnType:t.btnType}})],1)],1)},a=[]},"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=[]},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},bbc6:function(t,e,n){"use strict";n.r(e);var i=n("7265"),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},d8a5:function(t,e,n){"use strict";var i=n("aee0"),r=n.n(i);r.a},dcbd: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={tabs:n("a243").default,tab:n("201c").default,myCoupons:n("fca4").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"user-coupon"},[n("tabs",{attrs:{current:t.active,"is-scroll":!1},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onChange.apply(void 0,arguments)}}},t._l(t.coupons,(function(e,i){return n("tab",{key:i,attrs:{name:e.title}},[n("my-coupons",{attrs:{type:e.type,"btn-type":e.btnType,i:i,index:t.active}})],1)})),1)],1)},a=[]},eeeb:function(t,e,n){t.exports=n.p+"static/img/coupon_bg.f1e66fff.png"},fca4:function(t,e,n){"use strict";n.r(e);var i=n("8b9c"),r=n("17d8");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o,u=n("f0c5"),s=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"6c74c1a7",null,!1,i["a"],o);e["default"]=s.exports},fedb:function(t,e,n){"use strict";n.r(e);var i=n("dcbd"),r=n("bbc6");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o,u=n("f0c5"),s=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"71d4085d",null,!1,i["a"],o);e["default"]=s.exports}}]);