(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/vip"],{"516d":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=(this._self._c,this.couponList.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},r=[]},"59a4":function(t,e,n){"use strict";n.r(e);var a=n("516d"),r=n("7a71");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("9eca");var o=n("828b"),c=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"a6544d8a",null,!1,a["a"],void 0);e["default"]=c.exports},"6f62":function(t,e,n){},"7a71":function(t,e,n){"use strict";n.r(e);var a=n("ef49"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a},"9eca":function(t,e,n){"use strict";var a=n("6f62"),r=n.n(a);r.a},c9c2:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("a346");a(n("3240"));var r=a(n("59a4"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ef49:function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("7ca3")),i=n("8f59");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}var c={data:function(){return{payCardList:[],currentIndex:0,selectedPayCard:{description:"",dayNum:0},couponList:[],buyLock:!1}},onLoad:function(e){var n=this;e.shareId&&(t.setStorageSync("shareId",e.shareId),console.log(e.shareId)),this.$api.request("vip.template","list").then((function(e){n.payCardList=e.data,0===n.payCardList.length&&t.showModal({title:"提示",content:"商户未添加会员任何套餐",confirmText:"确定",success:function(){t.navigateBack()}}),n.selectedPayCard=n.payCardList[0],t.setStorageSync("payCard",n.selectedPayCard),n.getVipCoupon()}))},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,i.mapState)(["comfirmUser"])),onShareAppMessage:function(){return{title:"Unimall",path:"/pages/index/index"}},onShareTimeline:function(){return{title:"Unimall",path:"/pages/index/index"}},methods:{goDetail:function(e){t.navigateTo({url:"/pages/product/detail?id="+e})},getVipCoupon:function(){var t=this;this.$api.request("coupon","getVipCoupons").then((function(e){t.couponList=e.data}))},handleActive:function(e){this.currentIndex=e,this.selectedPayCard=this.payCardList[e],t.setStorageSync("payCard",this.selectedPayCard)},doBuy:function(){t.navigateTo({url:"/pages/pay/pay?templateid="+this.payCardList[this.currentIndex].id+"&type=vip&price="+this.payCardList[this.currentIndex].price})},obtainCoupon:function(t){var e=this;e.$api.request("coupon","obtainCoupon",{couponId:t.id}).then((function(t){e.$api.msg("领取成功!")}))}}};e.default=c}).call(this,n("df3c")["default"])}},[["c9c2","common/runtime","common/vendor"]]]);
|