| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-write_off_card-card-list-get-card"],{"15f2":function(t,a,e){"use strict";e.r(a);var i=e("b87c"),o=e.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(n);a["default"]=o.a},"1deb":function(t,a,e){"use strict";e.r(a);var i=e("8d92"),o=e("15f2");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(a,t,(function(){return o[t]}))}(n);e("d3aa");var d=e("828b"),c=Object(d["a"])(o["default"],i["b"],i["c"],!1,null,"d1a884ca",null,!1,i["a"],void 0);a["default"]=c.exports},"2f98":function(t,a,e){var i=e("e5c3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("967d").default;o("e954cc24",i,!0,{sourceMap:!1,shadowMode:!1})},"8d92":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.detailData.verify_card_info&&0==t.shenheStatus?e("v-uni-view",{staticClass:"get-card"},[e("v-uni-image",{staticClass:"top-img",attrs:{src:t.asyncImgs.my_coupon.coupon_bg,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"getBox"},[e("v-uni-view",{staticClass:"cardBox"},[e("v-uni-view",{staticClass:"top"},[e("v-uni-view",{staticClass:"name"},[e("v-uni-text",[t._v(t._s(t.detailData.verify_card_info.name))]),e("v-uni-text",[t._v(t._s(t._f("dateText")(t.detailData.verify_card_info)))])],1),e("v-uni-view",{staticClass:"price"},[e("v-uni-view",{staticClass:"money"},[e("v-uni-text",[t._v("¥")]),e("v-uni-text",[t._v(t._s(t.detailData.verify_card_info.price))])],1),e("v-uni-text",{staticClass:"title"},[t._v("卡券价值")])],1)],1),e("v-uni-view",{staticClass:"bottom",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.showDetail=!t.showDetail}}},[t.showDetail?e("v-uni-view",{staticClass:"detailInfo",domProps:{innerHTML:t._s(t.detailData.verify_card_info.content)}}):t._e(),e("v-uni-view",{staticClass:"detail"},[t.showDetail?[e("v-uni-text",[t._v("收起")]),e("v-uni-text",{staticClass:"iconfont icon-arrow-up"})]:[e("v-uni-text",[t._v("详细信息")]),e("v-uni-text",{staticClass:"iconfont icon-arrow-down"})]],2)],1)],1),e("v-uni-view",{class:["getBtn",t.disabled?"disabled":""]},[1==t.detailData.is_can_give&&0==t.detailData.is_trans_send?e("v-uni-text",{on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.getCardBt.apply(void 0,arguments)}}},[t._v("立即领取")]):t._e(),0==t.detailData.is_can_give?e("v-uni-text",[t._v("已失效")]):t._e(),1==t.detailData.is_trans_send?e("v-uni-text",[t._v("已领取")]):t._e()],1)],1)],1):1==t.shenheStatus?e("Shenhe"):t._e()},o=[]},b87c:function(t,a,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=i(e("2634")),n=i(e("2fdc"));e("c223");var d=i(e("2ba3")),c={components:{Shenhe:d.default},data:function(){return{modalShow:!1,id:"",detailData:"",showDetail:!1,isDisabled:!1}},onLoad:function(t){this.id=t.id,this.getDetail()},filters:{dateText:function(t){if(t)return 1==t.date_type?t.expire_day>0?"领取后".concat(t.expire_day,"天有效"):"领取后永久天有效":2==t.date_type?"".concat(t.begin_time,"~").concat(t.end_time):""}},methods:{getDetail:function(){var t=this;return(0,n.default)((0,o.default)().mark((function a(){var e;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.$allrequest.coupon.verifyDetail({sale_id:t.id},!0);case 2:e=a.sent,0==e.code&&(t.detailData=e.data.list,0==t.detailData.is_can_give&&(uni.showToast({title:"卡券已失效",icon:"none"}),setTimeout((function(){t.$utils.toUrl("/pages/home/home","reLaunch")}),2e3)),1==t.detailData.is_trans_send&&(uni.showToast({title:"卡券已领取",icon:"none"}),setTimeout((function(){t.$utils.toUrl("/pages/home/home","reLaunch")}),2e3)));case 4:case"end":return a.stop()}}),a)})))()},getCardBt:function(){var t=this;return(0,n.default)((0,o.default)().mark((function a(){var e;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.$allrequest.coupon.verifyReceive({sale_id:t.id});case 2:e=a.sent,0==e.code&&(uni.showToast({title:"领取成功",icon:"none"}),t.isDisabled=!0,setTimeout((function(){t.$utils.toUrl("/pages/home/home","reLaunch")}),2e3));case 4:case"end":return a.stop()}}),a)})))()},toView:function(){this.$utils.toUrl("/user/write_off_card/card-list/detail-card?id="+this.id)}},computed:{disabled:function(){var t=!1;return 0==this.detailData.is_can_give&&(t=!0),1==this.detailData.is_trans_send&&(t=!0),this.isDisabled&&(t=!0),t}}};a.default=c},d3aa:function(t,a,e){"use strict";var i=e("2f98"),o=e.n(i);o.a},e5c3:function(t,a,e){var i=e("c86c");a=i(!1),a.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/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-d1a884ca] .u-form-item--right__content__slot > uni-view,[data-v-d1a884ca] .u-form-item--right__content__slot > div,[data-v-d1a884ca] .u-form-item--right__content__slot > span,[data-v-d1a884ca] .u-form-item--right__content__slot > uni-text{width:100%}.get-card[data-v-d1a884ca]{display:flex;flex-direction:column;height:100vh;background:#f86741}.get-card[data-v-d1a884ca] .u-model__footer{justify-content:center;margin-bottom:%?48?%}.get-card[data-v-d1a884ca] .u-model__footer__button{flex:initial;width:%?244?%;height:%?84?%;line-height:%?84?%;border-radius:%?42?%;border:1px solid #999}.get-card[data-v-d1a884ca] .u-model__footer__button:nth-child(2){margin-left:%?14?%;color:#fff!important;background:#f0250e;border:0}.top-img[data-v-d1a884ca]{width:100%;display:block;height:%?684?%}.bottom-scroll[data-v-d1a884ca]{flex:1;height:0;padding-bottom:env(safe-area-inset-bottom)}.bottom-scroll .item[data-v-d1a884ca]{position:relative;margin:%?28?% auto;border-radius:%?10?%;width:%?702?%;height:%?206?%}.bottom-scroll .item > uni-image[data-v-d1a884ca]{position:absolute;left:0;top:0;width:100%;height:100%}.bottom-scroll .item > uni-view[data-v-d1a884ca]{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 %?36?%}.bottom-scroll .item > uni-view .left-image[data-v-d1a884ca]{margin-right:%?15?%;width:%?116?%;height:%?116?%;background:#c78744;opacity:1;border-radius:%?12?%}.bottom-scroll .item > uni-view .right-box[data-v-d1a884ca]{flex:1;width:0}.bottom-scroll .item > uni-view .right-box .right-content[data-v-d1a884ca]{flex:1;width:0}.bottom-scroll .item > uni-view .right-box .right-content > uni-view[data-v-d1a884ca]:nth-child(1){line-height:%?40?%;font-size:%?28?%;font-weight:700;color:#46270f}.bottom-scroll .item > uni-view .right-box .right-content > uni-view[data-v-d1a884ca]:nth-child(2){margin-top:%?18?%;height:%?28?%;font-size:%?20?%;color:#46270f;text-shadow:%?0?% %?3?% %?6?% rgba(0,0,0,.16)}.bottom-scroll .item > uni-view .right-box .right-price-bt[data-v-d1a884ca]{display:flex;flex-direction:column;align-items:center}.bottom-scroll .item > uni-view .right-box .right-price-bt > uni-view[data-v-d1a884ca]:nth-child(1){height:%?48?%;font-size:%?34?%;font-weight:700;color:#8b521e}.bottom-scroll .item > uni-view .right-box .right-price-bt > uni-view[data-v-d1a884ca]:nth-child(2){margin-top:%?8?%;width:%?128?%;line-height:%?48?%;text-align:center;background:#ff4b33;border-radius:%?60?%;font-size:%?22?%;color:#fff}.getBox[data-v-d1a884ca]{width:%?702?%;padding:%?24?%;background-color:#fef1d9;border-radius:%?20?%;position:fixed;top:%?420?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.getBox .cardBox[data-v-d1a884ca]{width:100%}.getBox .cardBox .top[data-v-d1a884ca]{position:relative;border-radius:%?20?% %?20?% 0 0;border-bottom:1px dashed #ededed;background-color:#fff;padding:%?28?%;display:flex;align-items:center;justify-content:space-between}.getBox .cardBox .top[data-v-d1a884ca] ::before{content:"";position:absolute;width:%?20?%;height:%?20?%;border-radius:50%;background-color:#fef1d9;bottom:%?-10?%;left:%?-10?%}.getBox .cardBox .top[data-v-d1a884ca] ::after{content:"";position:absolute;width:%?20?%;height:%?20?%;border-radius:50%;background-color:#fef1d9;bottom:%?-10?%;right:%?-10?%}.getBox .cardBox .top .name[data-v-d1a884ca]{display:flex;flex-direction:column}.getBox .cardBox .top .name uni-text[data-v-d1a884ca]:nth-child(1){font-size:%?30?%;color:#262626;font-weight:600}.getBox .cardBox .top .name uni-text[data-v-d1a884ca]:nth-child(2){font-size:%?22?%;color:#8c8c8c;margin-top:%?10?%}.getBox .cardBox .top .price .money[data-v-d1a884ca]{display:flex;align-items:baseline;color:#f0250e;font-weight:600}.getBox .cardBox .top .price .money uni-text[data-v-d1a884ca]:nth-child(1){font-size:%?28?%}.getBox .cardBox .top .price .money uni-text[data-v-d1a884ca]:nth-child(2){font-size:%?56?%}.getBox .cardBox .top .price .title[data-v-d1a884ca]{font-size:%?22?%;color:#8c8c8c}.getBox .cardBox .bottom[data-v-d1a884ca]{border-radius:0 0 %?20?% %?20?%;background-color:#fff;padding:%?24?% %?28?%}.getBox .cardBox .bottom .detailInfo[data-v-d1a884ca]{font-size:%?24?%;color:#8c8c8c;padding-bottom:%?10?%}.getBox .cardBox .bottom .detail[data-v-d1a884ca]{display:flex;align-items:center;font-size:%?24?%;color:#8c8c8c}.getBox .getBtn[data-v-d1a884ca]{width:%?574?%;height:%?100?%;border-radius:99px;margin:%?40?% auto %?16?% auto;background:linear-gradient(180deg,#ffa356,#ff3640)}.getBox .getBtn uni-text[data-v-d1a884ca]{width:100%;height:100%;border-radius:99px;display:flex;align-items:center;justify-content:center;font-size:%?36?%;font-weight:600;color:#fff}.getBox .disabled[data-v-d1a884ca]{background:#c2c2c2}',""]),t.exports=a}}]);
|