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"],{"0c16":function(t,n,e){"use strict";var o=e("df33"),u=e.n(o);u.a},"544f":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("b528"),u=getApp(),c={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,c=e.getDate(),a=e.getHours(),i=e.getMinutes(),r=e.getSeconds();return u=u>10?u:"0"+u,c=c>10?c:"0"+c,a=a>10?a:"0"+a,i=i>10?i:"0"+i,r=r>10?r:"0"+r,"".concat(o).concat(n).concat(u).concat(n).concat(c)}},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:"../../order/confirmation?id="+n})}}};n.default=c}).call(this,e("543d")["default"])},b4d4:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return c})),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}})},c=[]},df33:function(t,n,e){},e8c9:function(t,n,e){"use strict";(function(t){e("eba6");o(e("66fd"));var n=o(e("f833"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},ef3c:function(t,n,e){"use strict";e.r(n);var o=e("544f"),u=e.n(o);for(var c in o)"default"!==c&&function(t){e.d(n,t,(function(){return o[t]}))}(c);n["default"]=u.a},f833:function(t,n,e){"use strict";e.r(n);var o=e("b4d4"),u=e("ef3c");for(var c in u)"default"!==c&&function(t){e.d(n,t,(function(){return u[t]}))}(c);e("0c16");var a,i=e("f0c5"),r=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);n["default"]=r.exports}},[["e8c9","common/runtime","common/vendor"]]]);