You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
13 KiB
1 lines
13 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_coupon-index"],{"03ff":function(t,i,e){"use strict";e.r(i);var n=e("344e"),o=e("1565");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("15bc");var s=e("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"5c721f6d",null,!1,n["a"],void 0);i["default"]=c.exports},1565:function(t,i,e){"use strict";e.r(i);var n=e("539e"),o=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},"15bc":function(t,i,e){"use strict";var n=e("c257"),o=e.n(n);o.a},"1fa9":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 o=e("d322"),a=e("666f"),s=e("26cb"),c=n(e("03ff")),r=n(e("66ca")),u=e("989b"),d={components:{home:c.default},mixins:[r.default],data:function(){return{imgHost:u.HTTP_REQUEST_URL,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,i){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){if(2!=this.navOn){var i="";if(0==t.category_id&&""==t.product_id&&(i="/pages/goods/goods_list/index?title=默认"),0!=t.category_id&&(i="/pages/goods/goods_list/index?title=".concat(t.coupon_title,"&coupon_category_id=").concat(t.category_id)),""!=t.product_id){var e=t.product_id.split(","),n=e.length;i=1==n?"/pages/goods_details/index?id="+t.product_id:"/pages/goods/goods_list/index?productId="+t.product_id+"&title=默认"}uni.navigateTo({url:i})}},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:t.$t("正在加载…")}),(0,o.getUserCoupons)(this.navOn,{page:this.page,limit:this.limit}).then((function(i){t.loading=!1,uni.hideLoading(),t.couponsList=t.couponsList.concat(i.data),t.finished=i.data.length<t.limit,t.page+=1})).catch((function(i){t.loading=!1,uni.showToast({title:i,icon:"none"})})))}}};i.default=d},"344e":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{style:t.colorStyle},[e("v-uni-view",{staticStyle:{"touch-action":"none"}},[e("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(i){i.stopPropagation(),i.preventDefault(),arguments[0]=i=t.$handleEvent(i),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?e("v-uni-view",{staticClass:"homeCon bg-color",class:!0===t.homeActive?"on":""},[e("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),e("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),e("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],1):t._e(),e("v-uni-view",{staticClass:"pictrueBox",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.open.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"pictrue"},[e("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?t.imgHost+"/statics/images/close.gif":t.imgHost+"/statics/images/open.gif"}})],1)],1)],1)],1)],1)},o=[]},4262:function(t,i,e){var n=e("4f18");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("595601f4",n,!0,{sourceMap:!1,shadowMode:!1})},"4f18":function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,".money[data-v-fb21cc42]{display:flex;flex-direction:column;justify-content:center}.pic-num[data-v-fb21cc42]{color:#fff;font-size:%?24?%}.coupon-list .item .text[data-v-fb21cc42]{padding:%?14?% %?10?%}.coupon-list .item .text .condition[data-v-fb21cc42]{display:flex}.coupon-list .item .text .condition .name[data-v-fb21cc42]{font-size:%?24?%;font-weight:500;line-height:%?44?%\n\t/* display: flex;\n\talign-items: center; */}.coupon-list .item .text .condition .pic[data-v-fb21cc42]{width:%?30?%;height:%?30?%;display:block;margin-right:%?10?%;display:inline-block;vertical-align:middle}.condition .line-title[data-v-fb21cc42]{\n\t/* width: 70rpx; */height:%?36?%!important;padding:0 5px;line-height:%?32?%;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-fb21cc42]{border-color:#bbb!important;color:#bbb!important;background-color:#f5f5f5!important}",""]),t.exports=i},"539e":function(t,i,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=e("26cb"),a=n(e("66ca")),s=e("989b"),c={name:"Home",props:{},mixins:[a.default],data:function(){return{top:"545",imgHost:s.HTTP_REQUEST_URL}},computed:(0,o.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(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};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1rslrheNzX65QBugYAgFf4QYjmNsHKJTuLMGwby0tKeL2rL/z3B8wZO/g8iGsZQkAHGWtVFDyZz41ipW+kQoS7KSOvOQxHxo9lcTXzShU75oKmxP8x5e27Sh9MyOSvsFQmG01T8vAO/kShZx6GeQRIvhKyE+M2rtRQE8gp9Ag83x3P4S5kfzw1jCFXZwXSWQv4PB8M8tp2+a6cAAAAASUVORK5CYII="},a035:function(t,i,e){var n=e("24fb");i=n(!1),i.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-fb21cc42]{position:fixed;top:0;left:0;width:100%;height:%?90?%;background-color:#fff;z-index:9}.navbar .item[data-v-fb21cc42]{border-top:%?5?% solid transparent;border-bottom:%?5?% solid transparent;font-size:%?30?%;color:#999}.navbar .item.on[data-v-fb21cc42]{border-bottom-color:var(--view-theme);color:#282828}.coupon-list[data-v-fb21cc42]{margin-top:%?122?%}.noCommodity[data-v-fb21cc42]{margin-top:%?300?%}',""]),t.exports=i},a3e6:function(t,i,e){"use strict";var n=e("daa0"),o=e.n(n);o.a},a798:function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,".pictrueBox[data-v-5c721f6d]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-5c721f6d]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-5c721f6d]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-5c721f6d]{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;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.home .homeCon .iconfont[data-v-5c721f6d]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-5c721f6d]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-5c721f6d]{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=i},ad86:function(t,i,e){"use strict";e.r(i);var n=e("f14b"),o=e("cddc");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("cb38"),e("a3e6");var s=e("f0c5"),c=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"fb21cc42",null,!1,n["a"],void 0);i["default"]=c.exports},c257:function(t,i,e){var n=e("a798");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("f61d2c94",n,!0,{sourceMap:!1,shadowMode:!1})},cb38:function(t,i,e){"use strict";var n=e("4262"),o=e.n(n);o.a},cddc:function(t,i,e){"use strict";e.r(i);var n=e("1fa9"),o=e.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},daa0:function(t,i,e){var n=e("a035");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("67db56b6",n,!0,{sourceMap:!1,shadowMode:!1})},f14b:function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,n=t._self._c||i;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(i){arguments[0]=i=t.$handleEvent(i),t.onNav(1)}}},[t._v(t._s(t.$t("未使用")))]),n("v-uni-view",{staticClass:"item acea-row row-center-wrapper",class:{on:2===t.navOn},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onNav(2)}}},[t._v(t._s(t.$t("已使用/过期")))])],1),t.couponsList.length?n("v-uni-view",{staticClass:"coupon-list"},t._l(t.couponsList,(function(i,o){return n("v-uni-view",{key:o,staticClass:"item acea-row row-center-wrapper",class:{svip:4===i.receive_type},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.useCoupon(i)}}},[n("v-uni-view",{staticClass:"moneyCon acea-row row-center-wrapper"},[n("v-uni-view",{staticClass:"money",class:0==i._type?"moneyGray":""},[n("v-uni-view",[t._v(t._s(t.$t("¥"))),n("v-uni-text",{staticClass:"num"},[t._v(t._s(i.coupon_price))])],1),i.use_min_price>0?n("v-uni-view",{staticClass:"pic-num"},[t._v(t._s(t.$t("满"))+t._s(i.use_min_price)+t._s(t.$t("元可用")))]):n("v-uni-view",{staticClass:"pic-num"},[t._v(t._s(t.$t("无门槛券")))])],1)],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"condition"},[n("v-uni-view",{staticClass:"name line2"},[0===i.applicable_type?n("v-uni-view",{staticClass:"line-title",class:0===i._type?"bg-color-huic":"bg-color-check"},[t._v(t._s(t.$t("通用劵")))]):1===i.applicable_type?n("v-uni-view",{staticClass:"line-title",class:0===i._type?"bg-color-huic":"bg-color-check"},[t._v(t._s(t.$t("品类券")))]):n("v-uni-view",{staticClass:"line-title",class:0===i._type?"bg-color-huic":"bg-color-check"},[t._v(t._s(t.$t("商品券")))]),4===i.receive_type?n("v-uni-image",{staticClass:"pic",attrs:{src:e("6c5d")}}):t._e(),t._v(t._s(t.$t(i.coupon_title)))],1)],1),n("v-uni-view",{staticClass:"data acea-row row-between-wrapper"},[n("v-uni-view",[t._v(t._s(i.add_time)+"-"+t._s(i.end_time))]),0==i._type?n("v-uni-view",{staticClass:"bnt gray"},[t._v(t._s(t.$t(i._msg)))]):n("v-uni-view",{staticClass:"bnt bg-color"},[t._v(t._s(t.$t(i._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:t.imgHost+"/statics/images/noCoupon.png"}})],1)],1),n("home")],1)},o=[]}}]); |