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.
shipin/public/static/js/pages-users-user_coupon-ind...

1 line
13 KiB

10 months ago
(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]{displa