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.
1 lines
5.4 KiB
1 lines
5.4 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/annex/vip_paid/index"],{2720:function(e,t,i){"use strict";i.r(t);var n=i("7c0f"),r=i("54c2");for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);i("a6f4");var a=i("828b"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"ce8a3300",null,!1,n["a"],void 0);t["default"]=c.exports},"4cd6":function(e,t,i){"use strict";(function(e,t){var n=i("47a9");i("7561");n(i("3240"));var r=n(i("2720"));e.__webpack_require_UNI_MP_PLUGIN__=i,t(r.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"54c2":function(e,t,i){"use strict";i.r(t);var n=i("63f0"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=r.a},"63f0":function(e,t,i){"use strict";(function(e){var n=i("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(i("cef6")),o=i("8f59"),a=i("77d7"),c=(i("152a"),i("7ba4"),i("6e47")),s=n(i("bc59")),m={components:{recommend:function(){Promise.all([i.e("common/vendor"),i.e("components/recommend/index")]).then(function(){return resolve(i("6af4"))}.bind(null,i)).catch(i.oe)},NavBar:function(){i.e("components/NavBar").then(function(){return resolve(i("5962"))}.bind(null,i)).catch(i.oe)}},mixins:[r.default],filters:{dateFormat:function(e){return(0,s.default)(1e3*e).format("YYYY-MM-DD")},moneyFormat:function(e){return parseFloat(e)}},data:function(){return{memberType:[],userInfo:{},memberRights:[],memberExplain:[],memberCoupons:[],isGetFree:null,account:"",password:"",goodsList:[],pay_order_id:"",totalPrice:"0",page:1,limit:15,finished:!1,memberEndTime:"",type:"",svip:{},isShowAuth:!1,iconColor:"#FFFFFF",isScrolling:!1}},computed:(0,o.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin&&this.onLunch()},onReachBottom:function(){this.groomList()},onPageScroll:function(t){e.$emit("scroll"),t.scrollTop>50?(this.isScrolling=!0,this.iconColor="#333333"):t.scrollTop<50&&(this.isScrolling=!1,this.iconColor="#FFFFFF")},methods:{onLunch:function(){this.memberCard(),this.groomList()},pay:function(){this.createMemberCard("weixin")},scrollToCard:function(){var t=e.createSelectorQuery().in(this);t.select("#card").boundingClientRect((function(t){e.pageScrollTo({scrollTop:t.top})})).exec()},goDetail:function(t){e.navigateTo({url:"/pages/goods_details/index?id=".concat(t)})},memberCard:function(){var t=this;e.showLoading({title:"正在加载…"}),(0,a.memberCard)().then((function(i){e.hideLoading();var n=i.data,r=n.is_get_free,o=n.member_coupons,c=n.member_explain,s=n.member_rights,m=n.member_type;t.isGetFree=r,t.userInfo=r.user_info,t.memberRights=s,t.memberType=m,t.memberCoupons=o,t.memberExplain=c,r.is_record&&(t.memberType=t.memberType.filter((function(e){return"free"!==e.type}))),t.totalPrice=parseFloat(t.memberType[0].pre_price),t.type=t.memberType[0].type,t.totalPrice=parseFloat(t.memberType[0].pre_price),t.svip=t.memberType[0],(0,a.memberOverdueTime)({member_type:t.svip.type,vip_day:t.svip.vip_day}).then((function(e){t.memberEndTime=e.data.data}))})).catch((function(t){e.showToast({title:t,icon:"none"})}))},groomList:function(){var t=this;this.finished||(e.showLoading({title:"加载中"}),(0,a.groomList)(5,{page:this.page,limit:this.limit}).then((function(i){e.hideLoading(),t.goodsList=t.goodsList.concat(i.data.list),t.finished=i.data.list.length<t.limit,t.page+=1})).catch((function(t){e.hideLoading()})))},checkType:function(e){this.type=e.type,this.svip=e,this.totalPrice=parseFloat(e.pre_price)},getMemberCard:function(){var e=this;(0,a.memberCard)().then((function(t){var i=t.data;e.memberType=i.member_type,e.memberRights=i.member_rights,e.isGetFree=i.is_get_free})).catch((function(e){}))},memberSelect:function(e){this.memberSelected=e},drawMemberCard:function(){e.navigateTo({url:"/pages/annex/vip_paid_active/index"})},createMemberCard:function(t){e.showLoading({title:"正在加载…"});var i={pay_type:t||this.payMode[0].value,type:"1",from:"routine",member_type:this.svip.id,price:this.svip.pre_price,money:this.svip.price};(0,c.openPaySubscribe)().then((function(){(0,a.memberCardCreate)(i).then((function(t){e.hideLoading(),e.redirectTo({url:"/pages/goods/cashier/index?order_id=".concat(t.data.order_id,"&from_type=vip")})})).catch((function(t){e.showToast({title:t})}))}))},goRightDetail:function(){e.navigateTo({url:"/pages/annex/vip_paid_rights/index"})}}};t.default=m}).call(this,i("df3c")["default"])},"7c0f":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=(e._self._c,!e.userInfo.is_ever_level&&e.userInfo.is_money_level?e._f("dateFormat")(e.userInfo.overdue_time):null),n=e.memberType.length&&!e.userInfo.is_ever_level,r=n?e.__map(e.memberType,(function(t,i){var n=e.__get_orig(t),r=e._f("moneyFormat")(t.pre_price),o=e._f("moneyFormat")(t.price),a=e.$util.$h.Sub(t.price,t.pre_price);return{$orig:n,f1:r,f2:o,g1:a}})):null,o=e.memberCoupons.length,a=o?e.__map(e.memberCoupons,(function(t,i){var n=e.__get_orig(t),r=1!=t.coupon_type?parseFloat(t.coupon_price):null,o="0.00"!=t.use_min_price?e._f("moneyFormat")(t.use_min_price):null;return{$orig:n,m0:r,f3:o}})):null,c=parseFloat(e.svip.price);e.$mp.data=Object.assign({},{$root:{f0:i,g0:n,l0:r,g2:o,l1:a,m1:c}})},r=[]},a6f4:function(e,t,i){"use strict";var n=i("c2d9"),r=i.n(n);r.a},c2d9:function(e,t,i){}},[["4cd6","common/runtime","common/vendor"]]]); |