(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-coupon-index"],{"17a5":function(t,i,e){"use strict";var n=e("d58c"),a=e.n(n);a.a},2928:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={props:{value:{type:[Boolean],default:!0},isGoHome:{type:[Boolean],default:!1},isBack:{type:[Boolean],default:!1}},data:function(){return{platformAgent:null}},mounted:function(){this.platformAgent=this.$utils.platformAgent()},methods:{login:function(){uni.navigateTo({url:"/pages/public/login"})},close:function(){if(this.$emit("input",!this.value),this.isGoHome)uni.switchTab({url:"/pages/index/index"});else{if(!this.isBack)return;var t=getCurrentPages(),i=t[t.length-1];if("pages/ucenter/index"==i.route)return;if(t.length<=1)return void uni.switchTab({url:"/pages/index/index"});uni.navigateBack()}}}};i.default=n},"30ea":function(t,i,e){t.exports=e.p+"static/img/coupon-circle.97d33892.png"},"3aeb":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return n}));var n={navbar:e("2445").default,mescrollBody:e("adc6").default,authorize:e("5841").default},a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("navbar",{attrs:{"title-color":"#ffffff",background:"#c30d24",iSimmersive:!1,placeholder:!0,title:"领劵中心"},model:{value:t.screenHeight,callback:function(i){t.screenHeight=i},expression:"screenHeight"}}),e("mescroll-body",{ref:"mescrollRef",attrs:{down:t.downOption,up:t.upOption,height:t.screenHeight+"px"},on:{init:function(i){arguments[0]=i=t.$handleEvent(i),t.mescrollInit.apply(void 0,arguments)},down:function(i){arguments[0]=i=t.$handleEvent(i),t.downCallback.apply(void 0,arguments)},up:function(i){arguments[0]=i=t.$handleEvent(i),t.upCallback.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"list-wrap"},[e("v-uni-view",{staticClass:"list-box"},t._l(t.result,(function(i,n){return e("v-uni-view",{key:n,staticClass:"list-item"},[e("v-uni-view",{staticClass:"l"},[e("v-uni-view",[t._v("¥"),e("v-uni-text",[t._v(t._s(i.amount))])],1),i.price>0?e("v-uni-view",[t._v("满"+t._s(i.price)+"可用")]):e("v-uni-view",[t._v("无门槛")])],1),e("v-uni-view",{staticClass:"m"},[e("v-uni-text",[t._v(t._s(i.name))]),e("v-uni-text",[t._v("到期:"+t._s(i.end_time))])],1),e("v-uni-view",{staticClass:"r",class:{active:1==i.is_receive,disable:2==i.is_receive}},[e("v-uni-text",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onReceive(n)}}},[t._v(t._s(i.is_receive?1==i.is_receive?"已领":"领完":"领劵"))])],1)],1)})),1)],1)],1),e("authorize",{model:{value:t.isAuthShow,callback:function(i){t.isAuthShow=i},expression:"isAuthShow"}})],1)},o=[]},"43b8":function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,'@charset "UTF-8";\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/* 文章场景相关 */.popup-box[data-v-271940cd]{width:%?500?%;background-color:#fff;position:fixed;top:50%;left:50%;margin-left:%?-250?%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:311220}.popup-box .title[data-v-271940cd]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%}.popup-box .tip[data-v-271940cd]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%}.popup-box .bottom .item[data-v-271940cd]{width:50%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;font-size:%?24?%;color:#666;margin-top:%?54?%}.popup-box .bottom .item.on[data-v-271940cd]{width:100%}.flex[data-v-271940cd]{display:flex}.popup-box .bottom .item.grant[data-v-271940cd]{font-size:%?28?%;color:#fff;font-weight:700;background-color:#c30d24;border-radius:0;padding:0}.mask[data-v-271940cd]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.3);z-index:311110}',""]),t.exports=i},5841:function(t,i,e){"use strict";e.r(i);var n=e("6cc4"),a=e("8ef3");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("17a5");var r=e("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"271940cd",null,!1,n["a"],void 0);i["default"]=s.exports},"6cc4":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[t.value?e("v-uni-view",{staticClass:"popup-box"},[e("v-uni-view",{staticClass:"title"},[t._v("申请授权")]),null!=t.platformAgent&&t.platformAgent.isWechat?e("v-uni-view",{staticClass:"tip"},[t._v("获得你的公开信息(昵称、头像等),以便为您提供更好的服务")]):t._e(),null==t.platformAgent||t.platformAgent.isWechat?t._e():e("v-uni-view",{staticClass:"tip"},[t._v("您还没有登录,请登录后在继续操作。")]),e("v-uni-view",{staticClass:"bottom flex"},[e("v-uni-view",{staticClass:"item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),null!=t.platformAgent&&t.platformAgent.isWechat?e("v-uni-button",{staticClass:"item grant",attrs:{type:"primary"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.login.apply(void 0,arguments)}}},[t._v("去授权")]):t._e(),null==t.platformAgent||t.platformAgent.isWechat?t._e():e("v-uni-button",{staticClass:"item grant",attrs:{type:"primary"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.login.apply(void 0,arguments)}}},[t._v("去登录")])],1)],1):t._e(),t.value?e("v-uni-view",{staticClass:"mask",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.close.apply(void 0,arguments)}}}):t._e()],1)},a=[]},"84f0":function(t,i,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("99af");var a=n(e("d220")),o=n(e("2445")),r=n(e("5841")),s={mixins:[a.default],components:{navbar:o.default,authorize:r.default},data:function(){return{screenHeight:0,isAuthShow:!1,scrollNum:0,downOption:{auto:!1},upOption:{use:!0,auto:!1,isLock:!1,isBoth:!0,page:{num:0,size:10,time:null},noMoreSize:3,offset:80,bgColor:"transparent",textColor:"gray",textLoading:"加载中 ...",textNoMore:"-- END --"},result:[]}},onPageScroll:function(t){this.scrollNum=t.scrollTop},onShow:function(){var t=this;this.$store.dispatch("usersStatus").then((function(){t.isAuthShow=!1,t.downCallback()})).catch((function(){t.isAuthShow=!0,t.mescroll.showEmpty()}))},methods:{downCallback:function(){var t=this;setTimeout((function(){t.mescroll.resetUpScroll()}),200)},triggerDownScroll:function(){this.mescroll.triggerDownScroll()},onReceive:function(t){var i=this;this.$utils.in_array(this.result[t].is_receive,[1,2])||this.$http.getCouponList({id:this.result[t].id}).then((function(e){e.status,i.$utils.msg(e.info),i.result[t].is_receive=e.data})).catch((function(t){i.$utils.msg("网络出错,请检查是否已连接")}))},upCallback:function(t){var i=this;this.$http.getCouponLoad({page:t.num}).then((function(e){i.mescroll.endByPage(e.data.list.length,e.data.total),1==e.status?(1==t.num&&(i.result=[]),i.result=i.result.concat(e.data.list)):-1==e.status&&i.mescroll.endErr()})).catch((function(t){i.mescroll.endErr()}))}}};i.default=s},"8ef3":function(t,i,e){"use strict";e.r(i);var n=e("2928"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},b23b:function(t,i,e){"use strict";var n=e("dd2d"),a=e.n(n);a.a},d2e8:function(t,i,e){"use strict";e.r(i);var n=e("3aeb"),a=e("f28f");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("b23b");var r=e("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"2c584082",null,!1,n["a"],void 0);i["default"]=s.exports},d58c:function(t,i,e){var n=e("43b8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("4f06").default;a("01d31ef1",n,!0,{sourceMap:!1,shadowMode:!1})},dd2d:function(t,i,e){var n=e("eb8c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("4f06").default;a("c3cbd49c",n,!0,{sourceMap:!1,shadowMode:!1})},eb8c:function(t,i,e){var n=e("24fb"),a=e("1de5"),o=e("30ea");i=n(!1);var r=a(o);i.push([t.i,'@charset "UTF-8";\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/* 文章场景相关 */.list-wrap[data-v-2c584082]{width:100%;margin-top:%?20?%}.list-wrap .list-item[data-v-2c584082]{width:92%;height:%?200?%;border-radius:%?10?%;background-color:#fff;margin:0 auto %?20?% auto;font-size:%?26?%;position:relative}.list-wrap .list-item .l[data-v-2c584082]{position:absolute;width:%?220?%;height:%?160?%;top:%?20?%;left:0;border-right:1px dashed #ccc}.list-wrap .list-item .l uni-view[data-v-2c584082]{color:#c30d24;display:block;text-align:center;height:%?60?%;line-height:%?40?%}.list-wrap .list-item .l uni-view[data-v-2c584082]:first-child{font-size:%?32?%;height:%?100?%;line-height:%?120?%;color:#c30d24}.list-wrap .list-item .l uni-view:first-child uni-text[data-v-2c584082]{font-size:%?50?%;font-style:normal;font-weight:700}.list-wrap .list-item .m[data-v-2c584082]{padding:0 %?110?% 0 %?220?%;height:%?160?%;text-align:center}.list-wrap .list-item .m uni-text[data-v-2c584082]{display:block}.list-wrap .list-item .m uni-text[data-v-2c584082]:first-child{padding-top:%?50?%;line-height:%?50?%;font-size:%?32?%;color:#333}.list-wrap .list-item .m uni-text[data-v-2c584082]:last-child{height:%?50?%;line-height:%?50?%;font-size:%?25?%;color:#999}.list-wrap .list-item .r[data-v-2c584082]{z-index:1;position:absolute;right:0;top:0;width:%?110?%;height:%?200?%;line-height:%?200?%;float:right;text-align:center;background-color:#c30d24;background-image:url('+r+');background-repeat:repeat-y;background-position:%?-4?% 50%;background-size:%?12?%}.list-wrap .list-item .r[data-v-2c584082]:before{z-index:11;content:" ";position:absolute;top:%?-16?%;left:%?-16?%;width:%?32?%;height:%?32?%;background-color:#f6f6f6;border-radius:%?100?%}.list-wrap .list-item .r[data-v-2c584082]:after{z-index:11;content:" ";position:absolute;bottom:%?-16?%;left:%?-16?%;width:%?32?%;height:%?32?%;background-color:#f6f6f6;border-radius:%?100?%}.list-wrap .list-item .r uni-text[data-v-2c584082]{font-size:%?30?%;color:#fff;display:block;text-align:center}.list-wrap .list-item .active[data-v-2c584082]{background-color:#6b8df9}.list-wrap .list-item .disable[data-v-2c584082]{background-color:#dbdadd}',""]),t.exports=i},f28f:function(t,i,e){"use strict";e.r(i);var n=e("84f0"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a}}]);