1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_coupon-index"],{"1f4b":function(t,e,n){var i=n("24fb");e=i(!1),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/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.navbar[data-v-00d25646]{position:fixed;top:0;left:0;width:100%;height:%?106?%;background-color:#fff;z-index:9}.navbar .item[data-v-00d25646]{border-top:%?5?% solid transparent;border-bottom:%?5?% solid transparent;font-size:%?30?%;color:#999}.navbar .item.on[data-v-00d25646]{border-bottom-color:#e93323;color:#282828}.money[data-v-00d25646]{display:flex;flex-direction:column;justify-content:center}.pic-num[data-v-00d25646]{color:#fff;font-size:%?24?%}.coupon-list[data-v-00d25646]{margin-top:%?122?%}.coupon-list .item .text[data-v-00d25646]{height:100%}.coupon-list .item .text .condition[data-v-00d25646]{\n /* display: flex;\n\talign-items: center; */}.condition .line-title[data-v-00d25646]{width:%?90?%;height:%?40?%!important;line-height:%?40?%!important;padding:%?2?% %?10?%;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff7f7;border:1px solid #e83323;opacity:1;border-radius:%?20?%;font-size:%?18?%!important;color:#e83323;margin-right:%?12?%}.noCommodity[data-v-00d25646]{margin-top:%?300?%}',""]),t.exports=e},"21a0":function(t,e,n){"use strict";var i=n("c0b5"),o=n.n(i);o.a},2799:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".pictrueBox[data-v-47a70398]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-47a70398]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-47a70398]{border-radius:%?50?%;opacity:0;height:0;color:$theme-color;width:0}.home .homeCon.on[data-v-47a70398]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:#f44939!important}.home .homeCon .iconfont[data-v-47a70398]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-47a70398]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto}.home .pictrue .image[data-v-47a70398]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),t.exports=e},"40a7":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("bed0"),a=n("1939"),s=n("26cb"),r=i(n("b7f1")),c={components:{home:r.default},filters:{validStrFilter:function(t){return{usable:"可用",unusable:"已用",overdue:"过期",notStart:"未开始"}[t]}},data:function(){return{couponsList:[],loading:!1,loadend:!1,loadTitle:"加载更多",page:1,limit:20,navOn:"usable",isAuto:!1,isShowAuth:!1}},computed:(0,s.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&this.getUseCoupons()},deep:!0}},onLoad:function(){this.isLogin?this.getUseCoupons():(0,a.toLogin)()},methods:{onLoadFun:function(){this.getUseCoupons()},authColse:function(t){this.isShowAuth=t},onNav:function(t){this.navOn=t,this.couponsList=[],this.page=1,this.loadend=!1,this.getUseCoupons()},getUseCoupons:function(){var t=this;return!this.loadend&&(!this.loading&&void(0,o.getUserCoupons)({page:t.page,limit:t.limit,type:t.navOn}).then((function(e){var n=e.data?e.data.list:[],i=n.length<t.limit,o=t.$util.SplitArray(n,t.couponsList);t.$set(t,"couponsList",o),t.loadend=i,t.loadTitle=i?"我也是有底线的":"加载更多",t.page=t.page+1,t.loading=!1})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"})))}},onReachBottom:function(){this.getUseCoupons()}};e.default=c},6642:function(t,e,n){t.exports=n.p+"static/img/noCoupon.27891225.png"},7597:function(t,e,n){"use strict";n.r(e);var i=n("c249f"),o=n("ae13");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("21a0");var s=n("f0c5"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"00d25646",null,!1,i["a"],void 0);e["default"]=r.exports},"7b73":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticStyle:{"touch-action":"none"}},[n("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?n("v-uni-view",{staticClass:"homeCon bg-color-red",class:!0===t.homeActive?"on":""},[n("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),n("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),n("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):t._e(),n("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?"/static/images/close.gif":"/static/images/open.gif"}})],1)],1)],1)],1)},o=[]},9801:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("26cb"),o={name:"Home",props:{},data:function(){return{top:"500"}},computed:(0,i.mapGetters)(["homeActive"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){}};e.default=o},a3aa:function(t,e,n){"use strict";var i=n("f6b6"),o=n.n(i);o.a},ae13:function(t,e,n){"use strict";n.r(e);var i=n("40a7"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},b7f1:function(t,e,n){"use strict";n.r(e);var i=n("7b73"),o=n("f72c");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("a3aa");var s=n("f0c5"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"47a70398",null,!1,i["a"],void 0);e["default"]=r.exports},c0b5:function(t,e,n){var i=n("1f4b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("5355c253",i,!0,{sourceMap:!1,shadowMode:!1})},c249f:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"navbar acea-row row-around"},[i("v-uni-view",{staticClass:"item acea-row row-center-wrapper",class:{on:"usable"===t.navOn},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onNav("usable")}}},[t._v("未使用")]),i("v-uni-view",{staticClass:"item acea-row row-center-wrapper",class:{on:"unusable"===t.navOn},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onNav("unusable")}}},[t._v("已使用/过期")])],1),t.couponsList.length?i("v-uni-view",{staticClass:"coupon-list"},t._l(t.couponsList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item acea-row row-center-wrapper"},[i("v-uni-view",{staticClass:"money",class:"unusable"===e.validStr||"overdue"===e.validStr||"notStart"===e.validStr?"moneyGray":""},[i("v-uni-view",[t._v("¥"),i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.money?Number(e.money):""))])],1),i("v-uni-view",{staticClass:"pic-num"},[t._v("满"+t._s(e.minPrice?Number(e.minPrice):"")+"元可用")])],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"condition line2"},[1===e.useType?i("span",{staticClass:"line-title",class:"unusable"===e.validStr||"overdue"===e.validStr||"notStart"===e.validStr?"bg-color-huic":"bg-color-check"},[t._v("通用")]):2===e.useType?i("span",{staticClass:"line-title",class:"unusable"===e.validStr||"overdue"===e.validStr||"notStart"===e.validStr?"bg-color-huic":"bg-color-check"},[t._v("商品")]):3===e.useType?i("span",{staticClass:"line-title",class:"unusable"===e.validStr||"overdue"===e.validStr||"notStart"===e.validStr?"bg-color-huic":"bg-color-check"},[t._v("品类")]):t._e(),i("span",[t._v(t._s(e.name))])]),i("v-uni-view",{staticClass:"data acea-row row-between-wrapper"},[i("v-uni-view",[t._v(t._s(e.useStartTimeStr)+"~"+t._s(e.useEndTimeStr))]),i("v-uni-view",{staticClass:"bnt",class:"unusable"===e.validStr||"overdue"===e.validStr||"notStart"===e.validStr?"gray":"bg-color"},[t._v(t._s(t._f("validStrFilter")(e.validStr)))])],1)],1)],1)})),1):t._e(),t.couponsList.length?i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e(),t.couponsList.length?t._e():i("v-uni-view",{staticClass:"noCommodity"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:n("6642")}})],1)],1),i("home")],1)},o=[]},f6b6:function(t,e,n){var i=n("2799");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("2ff3027d",i,!0,{sourceMap:!1,shadowMode:!1})},f72c:function(t,e,n){"use strict";n.r(e);var i=n("9801"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a}}]); |