(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-gift-index"],{1531:function(e,t,i){"use strict";var n=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(i("5530")),a=i("7a11"),r=i("2f62"),c=n(i("9a5c")),d={components:{Cart:c.default},data:function(){return{goodsList:[],cartVisible:!1,cartInfo:{},money:0}},computed:(0,o.default)({},(0,r.mapState)(["userinfo","gift"])),onShow:function(){this.getMyGiftBonus(),this.getGiftGoodsList()},methods:{toRecord:function(){uni.navigateTo({url:"./record"})},toGiftPay:function(){if(!this.userinfo.giftExchangeOpen)return uni.showModal({content:"不在兑换期",showCancel:!1}),!1;uni.navigateTo({url:"./pay"})},toGiftGoodInfo:function(e){if(!this.userinfo.giftExchangeOpen)return uni.showModal({content:"不在兑换期",showCancel:!1}),!1;uni.setStorage({key:"giftDetail",data:e,success:function(){uni.navigateTo({url:"./detail"})}})},toAddGiftCart:function(e){if(!this.userinfo.giftExchangeOpen)return uni.showModal({content:"不在兑换期",showCancel:!1}),!1;this.cartInfo=e,this.cartVisible=!0},getMyGiftBonus:function(){var e=this;uni.showLoading(),(0,a.myGiftBonus)().then((function(t){uni.hideLoading(),200===t.code?(t.data.giftExchangeOpen=Date.now()>new Date(t.data.start_time).getTime()&&Date.now() uni-text[data-v-cdc4e654]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-cdc4e654]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-cdc4e654]{width:100%;height:100%}.article-header[data-v-cdc4e654]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-cdc4e654]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-cdc4e654]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-cdc4e654]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-cdc4e654]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-cdc4e654]{color:#f76454}.article-footer[data-v-cdc4e654]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-cdc4e654]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-cdc4e654]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-cdc4e654]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-cdc4e654]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.giftContainer[data-v-cdc4e654]{width:100vw;min-height:100%;overflow-y:scroll;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.giftContainer .header[data-v-cdc4e654]{width:100%;height:%?462?%;background-image:url('+d+');background-position:50%;background-repeat:no-repeat;background-size:100%;position:relative}.giftContainer .header .recode[data-v-cdc4e654]{position:absolute;top:%?18?%;right:%?30?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.giftContainer .header .recode .text[data-v-cdc4e654]{color:#fff;font-size:%?28?%;line-height:%?40?%}.giftContainer .header .recode[data-v-cdc4e654]::after{content:"";display:inline-block;width:%?24?%;height:%?24?%;background-image:url('+s+');background-repeat:no-repeat;background-size:100%;background-position:50%}.giftContainer .header .headerMain[data-v-cdc4e654]{position:absolute;width:90%;margin:0 auto;top:%?88?%;left:%?55?%;right:%?64?%;padding:%?30?% %?20?%;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.giftContainer .header .headerMain .sum[data-v-cdc4e654]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:%?40?%}.giftContainer .header .headerMain .sum .fixed[data-v-cdc4e654]{color:#8f691f;font-size:%?28?%;margin:0 0 %?30?% %?15?%}.giftContainer .header .headerMain .sum .money[data-v-cdc4e654]{color:#855f18;font-size:%?90?%;font-weight:700}.giftContainer .header .headerMain .sum uni-image[data-v-cdc4e654]{width:%?84?%;height:%?76?%;margin:%?60?% %?20?% 0 %?20?%;-webkit-flex-shrink:0;flex-shrink:0}.giftContainer .header .headerMain .time[data-v-cdc4e654]{color:#6e4b08;font-size:%?28?%;line-height:%?44?%;-webkit-align-self:flex-start;align-self:flex-start}.giftContainer .numContainer[data-v-cdc4e654]{width:100%;background:-webkit-linear-gradient(316deg,#ec5254,#bf439c);background:linear-gradient(134deg,#ec5254,#bf439c);padding:%?20?% %?20?% %?46?% %?20?%;box-sizing:border-box;position:relative}.giftContainer .numContainer[data-v-cdc4e654]::after{content:"";display:block;width:%?622?%;height:%?176?%;background:hsla(0,0%,100%,.51);border-radius:%?24?%;position:absolute;bottom:%?32?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:2}.giftContainer .numContainer[data-v-cdc4e654]::before{content:"";display:block;width:%?562?%;height:%?176?%;background:hsla(0,0%,100%,.28);position:absolute;bottom:%?20?%;border-radius:%?24?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:1}.giftContainer .numContainer .main[data-v-cdc4e654]{width:100%;height:%?174?%;background-color:#fff;border-radius:%?24?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start;padding:%?30?%;box-sizing:border-box;position:relative;z-index:3}.giftContainer .numContainer .main .icon[data-v-cdc4e654]{width:%?112?%;height:%?112?%;border-radius:%?16?%;background:-webkit-linear-gradient(top,#f97c55,#f44545);background:linear-gradient(180deg,#f97c55,#f44545);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;margin-right:%?20?%}.giftContainer .numContainer .main .icon[data-v-cdc4e654]::before{content:"";display:block;width:%?68?%;height:%?68?%;background-image:url('+l+");background-position:50%;background-repeat:no-repeat;background-size:100%}.giftContainer .numContainer .main .name[data-v-cdc4e654]{color:#333;font-size:%?48?%;line-height:%?66?%;margin-right:%?20?%}.giftContainer .numContainer .main .num[data-v-cdc4e654]{height:%?50?%;line-height:%?50?%;color:#ea4a41;font-size:%?36?%;padding:0 %?16?%;background:#fff4f3}.giftContainer .numContainer .main .btn[data-v-cdc4e654]{margin-left:auto;width:%?188?%;height:%?72?%;line-height:%?72?%;border-radius:%?72?%;text-align:center;background:-webkit-linear-gradient(top,#fde76b,#f8c439);background:linear-gradient(180deg,#fde76b,#f8c439);color:#704b08;font-size:%?28?%;font-weight:700}.giftContainer .list[data-v-cdc4e654]{width:100%;padding:%?20?% %?30?%;box-sizing:border-box;-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;background-color:#f9f9fb}.giftContainer .list .item[data-v-cdc4e654]{width:100%;padding:%?30?%;box-sizing:border-box;background-color:#fff;margin-bottom:%?30?%;border-radius:%?24?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:stretch;-webkit-align-items:stretch;align-items:stretch;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.giftContainer .list .item[data-v-cdc4e654]:nth-last-of-type(1){margin-bottom:0}.giftContainer .list .item .avatar[data-v-cdc4e654]{width:%?208?%;height:%?166?%;border-radius:%?8?%;background-color:#f9f9fb;margin-right:%?20?%;background-position:50%;background-size:100%;background-repeat:no-repeat}.giftContainer .list .item .info[data-v-cdc4e654]{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.giftContainer .list .item .info .top[data-v-cdc4e654]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.giftContainer .list .item .info .top .name[data-v-cdc4e654]{color:#333;font-size:%?32?%;line-height:%?44?%;font-weight:700}.giftContainer .list .item .info .top .num[data-v-cdc4e654]{width:%?44?%;height:%?44?%;border-radius:50%;background:#fff4f3;line-height:%?44?%;text-align:center;color:#f76454;font-size:%?28?%;font-weight:700}.giftContainer .list .item .info .center[data-v-cdc4e654]{color:#999;font-size:%?24?%;height:%?46?%;line-height:%?46?%;border-radius:%?8?%;padding:0 %?10?%;background-color:#f8f8f8;width:-webkit-max-content;width:max-content}.giftContainer .list .item .info .footer[data-v-cdc4e654]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.giftContainer .list .item .info .footer .money[data-v-cdc4e654]{color:#ea4a41!important;font-size:%?28?%}.giftContainer .list .item .info .footer .money .spec[data-v-cdc4e654]{font-size:%?32?%!important;font-weight:700}.giftContainer .list .item .info .footer .addBtn[data-v-cdc4e654]{width:%?192?%;height:%?68?%;border-radius:%?68?%;line-height:%?68?%;text-align:center;color:#fff;font-size:%?28?%;background:-webkit-linear-gradient(309deg,#f97c55,#f44545);background:linear-gradient(141deg,#f97c55,#f44545)}",""]),e.exports=t},f7b2:function(e,t,i){"use strict";i.r(t);var n=i("1531"),o=i.n(n);for(var a in n)"default"!==a&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a}}]);