| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-coupon-coupon~bundle-pages-coupon_get-coupon_get"],{"0de7":function(e,t,n){"use strict";var a=n("2951"),o=n.n(a);o.a},"187c":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("64aa"),n("aa9c");var a={name:"CouponCard",props:{mode:{type:String,default:"normal"},couponId:{type:Number|String,default:""},name:{type:String,default:""},money:{type:String|Number,default:0},condition:{type:String,default:""},time:{type:String,required:!0},scene:{type:String,default:""},button:{type:Object|Boolean,default:!1},gotten:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},desc:{type:Object|Boolean,default:!1},condition_type:{type:Number,default:1},discount_ratio:{type:String,default:0},discount_max_money:{type:String,default:0}},data:function(){return{showTips:!1}},computed:{id:function(){return this.couponId}},methods:{onButton:function(){this.isLogin?this.$emit("button",this.couponId):this.$Router.push("/pages/login/login")},onCardSelf:function(){"radio"===this.mode&&(this.$emit("change",!this.checked),this.$emit("update:checked",!this.checked))}}};t.default=a},2951:function(e,t,n){var a=n("2c1f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("967d").default;o("c19b445a",a,!0,{sourceMap:!1,shadowMode:!1})},"29a0":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("64aa"),n("aa9c"),n("fd3c");var a={name:"u-checkbox",props:{name:{type:[String,Number],default:""},shape:{type:String,default:""},value:{type:Boolean,default:!1},disabled:{type:[String,Boolean],default:""},labelDisabled:{type:[String,Boolean],default:""},activeColor:{type:String,default:""},iconSize:{type:[String,Number],default:""},labelSize:{type:[String,Number],default:""},size:{type:[String,Number],default:""}},data:function(){return{parentDisabled:!1,newParams:{}}},created:function(){this.parent=this.$u.$parent.call(this,"u-checkbox-group"),this.parent&&this.parent.children.push(this)},computed:{isDisabled:function(){return""!==this.disabled?this.disabled:!!this.parent&&this.parent.disabled},isLabelDisabled:function(){return""!==this.labelDisabled?this.labelDisabled:!!this.parent&&this.parent.labelDisabled},checkboxSize:function(){return this.size?this.size:this.parent?this.parent.size:34},checkboxIconSize:function(){return this.iconSize?this.iconSize:this.parent?this.parent.iconSize:20},elActiveColor:function(){return this.activeColor?this.activeColor:this.parent?this.parent.activeColor:"primary"},elShape:function(){return this.shape?this.shape:this.parent?this.parent.shape:"square"},iconStyle:function(){var e={};return this.elActiveColor&&this.value&&!this.isDisabled&&(e.borderColor=this.elActiveColor,e.backgroundColor=this.elActiveColor),e.width=this.$u.addUnit(this.checkboxSize),e.height=this.$u.addUnit(this.checkboxSize),e},iconColor:function(){return this.value?"#ffffff":"transparent"},iconClass:function(){var e=[];return e.push("u-checkbox__icon-wrap--"+this.elShape),1==this.value&&e.push("u-checkbox__icon-wrap--checked"),this.isDisabled&&e.push("u-checkbox__icon-wrap--disabled"),this.value&&this.isDisabled&&e.push("u-checkbox__icon-wrap--disabled--checked"),e.join(" ")},checkboxStyle:function(){var e={};return this.parent&&this.parent.width&&(e.width=this.parent.width,e.flex="0 0 ".concat(this.parent.width)),this.parent&&this.parent.wrap&&(e.width="100%",e.flex="0 0 100%"),e}},methods:{onClickLabel:function(){this.isLabelDisabled||this.isDisabled||this.setValue()},toggle:function(){this.isDisabled||this.setValue()},emitEvent:function(){var e=this;this.$emit("change",{value:!this.value,name:this.name}),setTimeout((function(){e.parent&&e.parent.emitEvent&&e.parent.emitEvent()}),80)},setValue:function(){var e=0;if(this.parent&&this.parent.children&&this.parent.children.map((function(t){t.value&&e++})),1==this.value)this.emitEvent(),this.$emit("input",!this.value);else{if(this.parent&&e>=this.parent.max)return this.$u.toast("最多可选".concat(this.parent.max,"项"));this.emitEvent(),this.$emit("input",!this.value)}}}};t.default=a},"2c1f":function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-0b68f884]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.u-checkbox[data-v-0b68f884]{display:inline-flex;align-items:center;overflow:hidden;-webkit-user-select:none;user-select:none;line-height:1.8}.u-checkbox__icon-wrap[data-v-0b68f884]{color:#606266;flex:none;display:-webkit-flex;display:flex;flex-direction:row;align-items:center;justify-content:center;box-sizing:border-box;width:%?42?%;height:%?42?%;color:transparent;text-align:center;transition-property:color,border-color,background-color;font-size:20px;border:1px solid #c8c9cc;transition-duration:.2s}.u-checkbox__icon-wrap--circle[data-v-0b68f884]{border-radius:100%}.u-checkbox__icon-wrap--square[data-v-0b68f884]{border-radius:%?6?%}.u-checkbox__icon-wrap--checked[data-v-0b68f884]{color:#fff;background-color:#2979ff;border-color:#2979ff}.u-checkbox__icon-wrap--disabled[data-v-0b68f884]{background-color:#ebedf0;border-color:#c8c9cc}.u-checkbox__icon-wrap--disabled--checked[data-v-0b68f884]{color:#c8c9cc!important}.u-checkbox__label[data-v-0b68f884]{word-wrap:break-word;margin-left:%?10?%;margin-right:%?24?%;color:#606266;font-size:%?30?%}.u-checkbox__label--disabled[data-v-0b68f884]{color:#c8c9cc}",""]),e.exports=t},"4ed2":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={price:n("5a21").default,uCheckbox:n("63e7").default,uIcon:n("adc7").default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{class:e.themeName},[n("v-uni-view",{staticClass:"coupon-card",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onCardSelf.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"coupon-card__aside"},[3!=e.condition_type?n("price",{attrs:{content:e.money,prec:2,mainSize:"60rpx",color:"#FFFFFF"}}):e._e(),3==e.condition_type?n("price",{attrs:{content:e.discount_ratio,prec:2,mainSize:"60rpx",color:"#FFFFFF",prefix:" "},scopedSlots:e._u([{key:"suffix",fn:function(){return[e._v("折")]},proxy:!0}],null,!1,6833106)}):e._e(),n("v-uni-text",{staticClass:"sm m-t-20"},[e._v(e._s(e.condition))])],1),n("v-uni-view",{staticClass:"coupon-card__main"},[n("v-uni-view",{staticClass:"coupon-card__main-section"},[n("v-uni-text",{staticClass:"md bold m-b-24"},[e._v(e._s(e.name))]),n("v-uni-text",{staticClass:"xxs lighter m-b-20"},[e._v(e._s(e.time))]),n("div",[n("v-uni-text",{staticClass:"xxs lighter"},[e._v(e._s(e.scene))])],1),Number(e.discount_max_money)?n("div",{staticClass:"xxs lighter"},[e._v("(最大优惠"+e._s(e.discount_max_money)+"元)")]):e._e()],1),"radio"===e.mode?[n("u-checkbox",{staticClass:"u-checkbox",attrs:{shape:"circle",name:e.id,disabled:!1,"active-color":e.themeColor},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})]:e._e(),"get"===e.mode?[e.gotten?n("v-uni-image",{staticClass:"pendant pendant--receive",attrs:{src:"/static/images/coupon_receive.png"}}):e._e()]:e._e(),e.button?[n("v-uni-view",{class:["pendant","pendant-button",e.button.disable?"pendant-button--disable":"pendant-button--"+e.button.theme],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onButton.apply(void 0,arguments)}}},[e._v(e._s(e.button.name))])]:e._e()],2)],1),""!=e.desc.content?n("v-uni-view",{staticClass:"instructions bg-white"},[""!=e.desc.content?n("v-uni-view",{staticClass:"flex row-between",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.showTips=!e.showTips}}},[n("v-uni-view",{staticClass:"xs normal"},[e._v(e._s(e.desc.title))]),n("u-icon",{attrs:{name:1==e.showTips?"arrow-up":"arrow-down",size:"24"}})],1):e._e(),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==e.showTips,expression:"showTips == true"}],staticClass:"xs muted m-t-20"},e._l(e.desc.content,(function(t){return n("v-uni-text",{key:t},[e._v(e._s(t))])})),1)],1):e._e()],1)},i=[]},"63e7":function(e,t,n){"use strict";n.r(t);var a=n("7bfe9"),o=n("70d5");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("0de7");var c=n("828b"),r=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"0b68f884",null,!1,a["a"],void 0);t["default"]=r.exports},"70d5":function(e,t,n){"use strict";n.r(t);var a=n("29a0"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},"7bfe9":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={uIcon:n("adc7").default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-checkbox",style:[e.checkboxStyle]},[n("v-uni-view",{staticClass:"u-checkbox__icon-wrap",class:[e.iconClass],style:[e.iconStyle],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggle.apply(void 0,arguments)}}},[n("u-icon",{staticClass:"u-checkbox__icon-wrap__icon",attrs:{name:"checkbox-mark",size:e.checkboxIconSize,color:e.iconColor}})],1),n("v-uni-view",{staticClass:"u-checkbox__label",style:{fontSize:e.$u.addUnit(e.labelSize)},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClickLabel.apply(void 0,arguments)}}},[e._t("default")],2)],1)},i=[]},8283:function(e,t,n){"use strict";var a=n("b7f7"),o=n.n(a);o.a},9966:function(e,t,n){"use strict";n.r(t);var a=n("187c"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},a944:function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/** S Font\'s size **/\n/** E Font\'s size **/[data-v-56863c51]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.coupon-card[data-v-56863c51]{display:flex;width:100%;height:%?200?%}.coupon-card__aside[data-v-56863c51]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:%?200?%;color:#fff}.red_theme .coupon-card__aside[data-v-56863c51]{background-image:linear-gradient(260deg,#f95f2f,#ff2c3c)}.orange_theme .coupon-card__aside[data-v-56863c51]{background-image:linear-gradient(260deg,#ffd200,#f7971e)}.pink_theme .coupon-card__aside[data-v-56863c51]{background-image:linear-gradient(260deg,#fd498f,#fa444d)}.gold_theme .coupon-card__aside[data-v-56863c51]{background-image:linear-gradient(260deg,#ebc389,#e0a356)}.blue_theme .coupon-card__aside[data-v-56863c51]{background-image:linear-gradient(260deg,#56ccf2,#2f80ed)}.green_theme .coupon-card__aside[data-v-56863c51]{background-image:linear-gradient(260deg,#3de650,#2ec840)}.coupon-card__main[data-v-56863c51]{position:relative;flex:1;display:flex;align-items:center;justify-content:space-between;padding-left:%?20?%;background-color:#fff}.coupon-card__main-section[data-v-56863c51]{display:flex;flex-direction:column}.coupon-card__main .u-checkbox[data-v-56863c51]{position:relative}.coupon-card__main .u-checkbox[data-v-56863c51]::after{position:absolute;top:0;bottom:0;left:0;right:0;display:block;content:"";width:100%;height:100%}.coupon-card__main .pendant[data-v-56863c51]{position:absolute}.coupon-card__main .pendant-button[data-v-56863c51]{right:%?20?%;bottom:%?20?%;padding:%?8?% %?40?%;border-radius:60px;font-size:%?28?%}.coupon-card__main .pendant-button--primary[data-v-56863c51]{color:#fff}.red_theme .coupon-card__main .pendant-button--primary[data-v-56863c51]{background-color:#ff2c3c}.orange_theme .coupon-card__main .pendant-button--primary[data-v-56863c51]{background-color:#f7971e}.pink_theme .coupon-card__main .pendant-button--primary[data-v-56863c51]{background-color:#fa444d}.gold_theme .coupon-card__main .pendant-button--primary[data-v-56863c51]{background-color:#e0a356}.blue_theme .coupon-card__main .pendant-button--primary[data-v-56863c51]{background-color:#2f80ed}.green_theme .coupon-card__main .pendant-button--primary[data-v-56863c51]{background-color:#2ec840}.coupon-card__main .pendant-button--normal[data-v-56863c51]{border-width:1px;border-style:solid}.red_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{border-color:#ff2c3c}.orange_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{border-color:#f7971e}.pink_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{border-color:#fa444d}.gold_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{border-color:#e0a356}.blue_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{border-color:#2f80ed}.green_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{border-color:#2ec840}.red_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{color:#ff2c3c}.orange_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{color:#f7971e}.pink_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{color:#fa444d}.gold_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{color:#e0a356}.blue_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{color:#2f80ed}.green_theme .coupon-card__main .pendant-button--normal[data-v-56863c51]{color:#2ec840}.coupon-card__main .pendant-button--muted[data-v-56863c51]{border:1px solid #e5e5e5;color:#999}.coupon-card__main .pendant-button--disable[data-v-56863c51]{background-color:#f4f4f4;color:#666}.coupon-card__main .pendant--receive[data-v-56863c51]{height:%?78?%;width:%?100?%;top:0;right:%?20?%}.instructions[data-v-56863c51]{padding:%?14?% %?20?%}',""]),e.exports=t},b7f7:function(e,t,n){var a=n("a944");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("967d").default;o("4e24720a",a,!0,{sourceMap:!1,shadowMode:!1})},bc0e:function(e,t,n){"use strict";n.r(t);var a=n("4ed2"),o=n("9966");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("8283");var c=n("828b"),r=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"56863c51",null,!1,a["a"],void 0);t["default"]=r.exports}}]);
|