shop-php/public/static/js/pages-users-user_coupon-index.7e5a689a.js

1 line
19 KiB
JavaScript
Raw Normal View History

2024-03-02 11:28:35 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_coupon-index"],{"104c":function(t,e,n){"use strict";n.r(e);var i=n("89ff"),o=n("5bfe");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("f882");var s=n("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"bb72e0c6",null,!1,i["a"],void 0);e["default"]=u.exports},"4fb0":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("99af");var o=n("ece0"),a=n("26cb"),s=i(n("104c")),u=n("5315"),r=n("3093"),c=(getApp(),{components:{authorize:s.default},data:function(){return{domain:r.HTTP_REQUEST_URL,tabIndex:1,couponsList:[],loading:!1,isAuto:!1,isShowAuth:!1,isUsed:0,tabList:[{title:"未使用"},{title:"已使用/已过期"}],limit:15,page:1,isScroll:!0,moneyBg:"/static/images/couponBg"}},computed:(0,u.configMap)(["hide_mer_status"],(0,a.mapGetters)(["isLogin","viewColor","keyColor"])),filters:{timeYMD:function(t){if(t){var e=/\d{4}-\d{1,2}-\d{1,2}/g.exec(t);return e[0]}}},onLoad:function(){this.isLogin?this.getUseCoupons():(this.isAuto=!0,this.isShowAuth=!0)},mounted:function(){},methods:{onLoadFun:function(){this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},bindTab:function(t){this.tabIndex=t+1,this.page=1,this.isScroll=!0,this.couponsList=[],this.getUseCoupons()},goStore:function(t){1!=this.hide_mer_status&&0==t.status&&uni.navigateTo({url:"/pages/store/home/index?id=".concat(t.mer_id)})},getUseCoupons:function(){var t=this;this.isScroll&&(0,o.getUserCoupons)({statusTag:this.tabIndex,page:this.page,limit:this.limit}).then((function(e){t.loading=!0,t.couponsList=t.couponsList.concat(e.data.list),t.isScroll=t.couponsList.length<e.data.count,t.page++}))}},onReachBottom:function(){this.getUseCoupons()}});e.default=c},"5bfe":function(t,e,n){"use strict";n.r(e);var i=n("e40c"),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},"6f10":function(t,e,n){"use strict";n.r(e);var i=n("fa0e"),o=n("c289");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("8262");var s=n("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"71f6b56e",null,!1,i["a"],void 0);e["default"]=u.exports},"773b":function(t,e,n){var i=n("24fb");e=i(!1),e.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/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.navTabBox[data-v-71f6b56e]{background:#fff;height:%?90?%}.longTab[data-v-71f6b56e]{display:flex;text-align:center}.tab-item[data-v-71f6b56e]{width:50%;display:inline-block;line-height:%?90?%}.tab-item uni-text[data-v-71f6b56e]{position:relative;display:inline-block}.tab-item.on[data-v-71f6b56e]{color:var(--view-theme)}.tab-item.on uni-text[data-v-71f6b56e]:after{content:"";display:inline-block;width:90%;height:%?3?%;background-color:var(--view-theme);position:absolute;left:5%;bottom:0}.b-color[data-v-71f6b56e]{background-color:var(--view-theme)}.pic-num[data-v-71f6b56e]{color:#fff;font-size:%?20?%}.coupon-list .item .text .condition[data-v-71f6b56e]{display: