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.
 
 
 
 
high-mini/unpackage/dist/build/mp-weixin/pages/user/mineCouponsDestails/mineCouponsDestails.js

1 lines
2.4 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/mineCouponsDestails/mineCouponsDestails"],{1989:function(t,n,e){"use strict";var o=e("4625"),u=e.n(o);u.a},"3a15":function(t,n,e){"use strict";e.r(n);var o=e("f07d"),u=e("f3aa");for(var a in u)"default"!==a&&function(t){e.d(n,t,(function(){return u[t]}))}(a);e("1989");var i,c=e("f0c5"),s=Object(c["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);n["default"]=s.exports},4625:function(t,n,e){},a0cd:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("53e0"),u=getApp(),a={data:function(){return{minecoupones:[],imageUrl:u.globalData.imgUrl,pageNum:1,pageSize:10,isNoMoreData:!1,couponsDetails:"",salesEndTime:"",couponId:""}},filters:{formatDate:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",e=new Date(t),o=e.getFullYear(),u=e.getMonth()+1,a=e.getDate(),i=e.getHours(),c=e.getMinutes(),s=e.getSeconds();return u=u>10?u:"0"+u,a=a>10?a:"0"+a,i=i>10?i:"0"+i,c=c>10?c:"0"+c,s=s>10?s:"0"+s,"".concat(o).concat(n).concat(u).concat(n).concat(a)}},onLoad:function(t){this.couponId=t.id,this.getDiscountByUserDiscountId()},methods:{getDiscountByUserDiscountId:function(){var t=this,n={userDiscountId:this.couponId};(0,o.getDiscountByUserDiscountId)(n).then((function(n){"000000"==n.return_code&&(t.couponsDetails=n.return_data,t.salesEndTime=n.return_data.highDiscount.salesEndTime,t.getCouponByDiscount(n.return_data.highDiscount.id))}))},getCouponByDiscount:function(t){var n=this,e={discountId:t};(0,o.getCouponByDiscount)(e).then((function(t){"000000"==t.return_code&&(n.minecoupones=t.return_data)}))},toGoods:function(n){t.navigateTo({url:"../../goods/goods?id="+n})}}};n.default=a}).call(this,e("543d")["default"])},bd92:function(t,n,e){"use strict";(function(t){e("e5b1");o(e("66fd"));var n=o(e("3a15"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},f07d:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var u=function(){var t=this,n=t.$createElement,e=(t._self._c,t._f("formatDate")(t.salesEndTime,"-"));t.$mp.data=Object.assign({},{$root:{f0:e}})},a=[]},f3aa:function(t,n,e){"use strict";e.r(n);var o=e("a0cd"),u=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=u.a}},[["bd92","common/runtime","common/vendor"]]]);