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/goods/coupons-info-details/coupons-info-details.js

1 lines
2.7 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/coupons-info-details/coupons-info-details"],{"0610":function(t,n,e){"use strict";e.r(n);var o=e("cb60"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"0def":function(t,n,e){"use strict";(function(t){e("eba6");o(e("66fd"));var n=o(e("73bb"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},3244:function(t,n,e){"use strict";var o=e("fead"),i=e.n(o);i.a},"73bb":function(t,n,e){"use strict";e.r(n);var o=e("76dc"),i=e("0610");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("3244");var u,c=e("f0c5"),r=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=r.exports},"76dc":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var i=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=[]},cb60:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("b528"),i=getApp(),a={data:function(){return{minecoupones:[],imageUrl:i.globalData.imgUrl,pageNum:1,pageSize:10,isNoMoreData:!1,couponsDetails:"",salesEndTime:"",codes:""}},filters:{formatDate:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",e=new Date(t),o=e.getFullYear(),i=e.getMonth()+1,a=e.getDate(),u=e.getHours(),c=e.getMinutes(),r=e.getSeconds();return i=i>10?i:"0"+i,a=a>10?a:"0"+a,u=u>10?u:"0"+u,c=c>10?c:"0"+c,r=r>10?r:"0"+r,"".concat(o).concat(n).concat(i).concat(n).concat(a)}},onLoad:function(t){this.codes=t.id,this.getDiscountByQrCode()},methods:{getDiscountByQrCode:function(){var t=this,n={code:this.codes};(0,o.getDiscountByQrCode)(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)}))},receiveDiscount:function(){t.showLoading({title:"领取中..."});var n={discountAgentId:this.couponsDetails.id};(0,o.receiveDiscount)(n).then((function(n){"000000"==n.return_code?(t.hideLoading(),t.showToast({icon:"none",title:n.return_data,duration:2e3})):(t.hideLoading(),t.showToast({icon:"none",title:n.return_msg,duration:2e3}))}))},toGoods:function(n){t.navigateTo({url:"../goods?id="+n})}}};n.default=a}).call(this,e("543d")["default"])},fead:function(t,n,e){}},[["0def","common/runtime","common/vendor"]]]);