mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 13:22:51 +00:00
1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_coupon-index"],{"05f2":function(t,e,i){t.exports=i.p+"static/img/noCoupon.cca04173.png"},"0aff":function(t,e,i){"use strict";var n=i("eb2d"),o=i.n(n);o.a},1731:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".pictrueBox[data-v-a68dde36]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-a68dde36]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-a68dde36]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-a68dde36]{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:var(--view-theme)!important}.home .homeCon .iconfont[data-v-a68dde36]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-a68dde36]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-a68dde36]{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},"27e1":function(t,e,i){"use strict";var n=i("d2b9"),o=i.n(n);o.a},"3b53":function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i("f44a"),a=i("858e"),s=i("26cb"),c=n(i("c872")),r=n(i("2d3a")),u={components:{home:c.default},mixins:[r.default],data:function(){return{couponsList:[],loading:!1,isAuto:!1,isShowAuth:!1,navOn:1,page:1,limit:15,finished:!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)()},onReachBottom:function(){this.getUseCoupons()},methods:{onNav:function(t){this.navOn=t,this.couponsList=[],this.page=1,this.finished=!1,this.getUseCoupons()},useCoupon:function(t){var e="";if(0==t.category_id&&""==t.product_id&&(e="/pages/goods_list/index?title=默认"),0!=t.category_id&&(e=1==t.category_type?"/pages/goods_list/index?cid="+t.category_id+"&title="+t.category_name:"/pages/goods_list/index?sid="+t.category_id+"&title="+t.category_name),""!=t.product_id){var i=t.product_id.split(","),n=i.length;e=1==n?"/pages/goods_details/index?id="+t.product_id:"/pages/goods_list/index?productId="+t.product_id+"&title=默认"}uni.navigateTo({url:e})},onLoadFun:function(){this.getUseCoupons()},authColse:function(t){this.isShowAuth=t},getUseCoupons:function(){var t=this;t.loading||t.finished||(t.loading=!0,uni.showLoading({title:"正在加载…"}),(0,o.getUserCoupons)(this.navOn,{page:this.page,limit:this.limit}).then((function(e){t.loading=!1,uni.hideLoading(),t.couponsList=t.couponsList.concat(e.data),t.finished=e.data.length<t.limit,t.page+=1})).catch((function(e){t.loading=!1,uni.showToast({title:e,icon:"none"})})))}}};e.default=u},"3b99":function(t,e,i){"use strict";i.r(e);var n=i("3b53"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"4a05":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADg0lEQVRYR72X34uUZRTHP+d5cUnzx0YmoRGVQXXTOq4GFVOB3uTOtF140S5Um0J4k5nQbQhBUFSsSEgUOl2k1FXjOP4BK0kXOzob1YWFxSq6FILuoG22z3PifXffcXb2/TXs5Hv1wvM93/N9zjnP85wjZPy0zCorFETIC/QpPALcF5gLf6ryu8CEEcawVGW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(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"9cc8":function(t,e,i){var n=i("d8e1");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("0251d067",n,!0,{sourceMap:!1,shadowMode:!1})},"9d97":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".money[data-v-6b4573c0]{display:flex;flex-direction:column;justify-content:center}.pic-num[data-v-6b4573c0]{color:#fff;font-size:%?24?%}.coupon-list .item .text .condition[data-v-6b4573c0]{display:flex;align-items:center}.coupon-list .item .text .condition .name[data-v-6b4573c0]{font-size:%?26?%;font-weight:500;display:flex;align-items:center}.coupon-list .item .text .condition .pic[data-v-6b4573c0]{width:%?30?%;height:%?30?%;display:block;margin-right:%?10?%;display:inline-block;vertical-align:middle}.condition .line-title[data-v-6b4573c0]{width:%?70?%;height:%?32?%!important;line-height:%?30?%;text-align:center;box-sizing:border-box;background:#fff7f7;border:1px solid var(--view-theme);opacity:1;border-radius:%?20?%;font-size:%?18?%!important;color:var(--view-theme);margin-right:%?12?%;text-align:center;display:inline-block;vertical-align:middle}.condition .line-title.bg-color-huic[data-v-6b4573c0]{border-color:#bbb!important;color:#bbb!important;background-color:#f5f5f5!important}",""]),t.exports=e},"9f7b":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.colorStyle},[i("v-uni-view",{staticStyle:{"touch-action":"none"}},[i("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?i("v-uni-view",{staticClass:"homeCon bg-color",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?"/static/images/close.gif":"/static/images/open.gif"}})],1)],1)],1)],1)],1)},a=[]},a50e:function(t,e,i){"use strict";i.r(e);var n=i("f7b2"),o=i("3b99");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("0aff"),i("ec35");var s,c=i("f0c5"),r=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"6b4573c0",null,!1,n["a"],s);e["default"]=r.exports},c6df:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i("26cb"),a=n(i("2d3a")),s={name:"Home",props:{},mixins:[a.default],data:function(){return{top:"545"}},computed:(0,o.mapGetters)(["homeActive"]),methods:{setTouchMove:function(t){var e=this;t.touches[0].clientY<545&&t.touches[0].clientY>66&&(e.top=t.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};e.default=s},c872:function(t,e,i){"use strict";i.r(e);var n=i("9f7b"),o=i("8b7a");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("27e1");var s,c=i("f0c5"),r=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"a68dde36",null,!1,n["a"],s);e["default"]=r.exports},d2b9:function(t,e,i){var n=i("1731");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("e30c159e",n,!0,{sourceMap:!1,shadowMode:!1})},d8e1:function(t,e,i){var n=i("24fb");e=n(!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-6b4573c0]{position:fixed;top:0;left:0;width:100%;height:%?90?%;background-color:#fff;z-index:9}.navbar .item[data-v-6b4573c0]{border-top:%?5?% solid transparent;border-bottom:%?5?% solid transparent;font-size:%?30?%;color:#999}.navbar .item.on[data-v-6b4573c0]{border-bottom-color:var(--view-theme);color:#282828}.coupon-list[data-v-6b4573c0]{margin-top:%?122?%}.noCommodity[data-v-6b4573c0]{margin-top:%?300?%}',""]),t.exports=e},eb2d:function(t,e,i){var n=i("9d97");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("50592026",n,!0,{sourceMap:!1,shadowMode:!1})},ec35:function(t,e,i){"use strict";var n=i("9cc8"),o=i.n(n);o.a},f7b2:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.colorStyle},[n("v-uni-view",{staticClass:"navbar acea-row row-around"},[n("v-uni-view",{staticClass:"item acea-row row-center-wrapper",class:{on:1===t.navOn},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onNav(1)}}},[t._v("未使用")]),n("v-uni-view",{staticClass:"item acea-row row-center-wrapper",class:{on:2===t.navOn},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onNav(2)}}},[t._v("已使用/过期")])],1),t.couponsList.length?n("v-uni-view",{staticClass:"coupon-list"},t._l(t.couponsList,(function(e,o){return n("v-uni-view",{key:o,staticClass:"item acea-row row-center-wrapper",class:{svip:4===e.receive_type},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.useCoupon(e)}}},[n("v-uni-view",{staticClass:"moneyCon acea-row row-center-wrapper"},[n("v-uni-view",{staticClass:"money",class:0==e._type?"moneyGray":""},[n("v-uni-view",[t._v("¥"),n("v-uni-text",{staticClass:"num"},[t._v(t._s(e.coupon_price))])],1),e.use_min_price>0?n("v-uni-view",{staticClass:"pic-num"},[t._v("满"+t._s(e.use_min_price)+"元可用")]):n("v-uni-view",{staticClass:"pic-num"},[t._v("无门槛券")])],1)],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"condition"},[n("v-uni-view",{staticClass:"name line2"},[0===e.applicable_type?n("v-uni-view",{staticClass:"line-title",class:0===e._type?"bg-color-huic":"bg-color-check"},[t._v("通用劵")]):1===e.applicable_type?n("v-uni-view",{staticClass:"line-title",class:0===e._type?"bg-color-huic":"bg-color-check"},[t._v("品类券")]):n("v-uni-view",{staticClass:"line-title",class:0===e._type?"bg-color-huic":"bg-color-check"},[t._v("商品券")]),4===e.receive_type?n("v-uni-image",{staticClass:"pic",attrs:{src:i("4a05")}}):t._e(),n("v-uni-text",[t._v(t._s(e.coupon_title))])],1)],1),n("v-uni-view",{staticClass:"data acea-row row-between-wrapper"},[n("v-uni-view",[t._v(t._s(e.add_time)+"-"+t._s(e.end_time))]),0==e._type?n("v-uni-view",{staticClass:"bnt gray"},[t._v(t._s(e._msg))]):n("v-uni-view",{staticClass:"bnt bg-color"},[t._v(t._s(e._msg))])],1)],1)],1)})),1):t._e(),t.couponsList.length||2!==t.page?t._e():n("v-uni-view",{staticClass:"noCommodity"},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:i("05f2")}})],1)],1),n("home")],1)},a=[]}}]); |