徐总多门店
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 line
5.4 KiB

2 months ago
(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.openPayS