徐总多门店
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.9 KiB

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_vip/index"],{"0c81":function(t,e,n){"use strict";n.r(e);var o=n("a27c"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"2c87":function(t,e,n){},"8b31":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("7561");o(n("3240"));var i=o(n("ae05"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"8e96":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.VipList.length),o=t.__map(t.VipList,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.gradeStyle(e)]),r=parseFloat(e.discount),a=t.__get_style([t.progressValue(e,n)]);return{$orig:o,s0:i,m0:r,s1:a}})),i=t.hostProduct.length;t.$mp.data=Object.assign({},{$root:{g0:n,l0:o,g1:i}})},i=[]},a27c:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7ca3")),r=n("77d7"),a=n("ce7e"),l=n("7ba4"),s=n("8f59"),c=n("bad7");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var f={components:{recommend:function(){Promise.all([n.e("common/vendor"),n.e("components/recommend/index")]).then(function(){return resolve(n("6af4"))}.bind(null,n)).catch(n.oe)},NavBar:function(){n.e("components/NavBar").then(function(){return resolve(n("5962"))}.bind(null,n)).catch(n.oe)}},data:function(){return{imgHost:c.HTTP_REQUEST_URL,reach_count:0,VipList:[],currentIndex:0,growthValue:!0,task:[],illustrate:"",level_id:0,hostProduct:[],grade:0,isAuto:!1,isShowAuth:!1,hotScroll:!1,hotPage:1,hotLimit:10,level_title:"",level_discount:"",levelInfo:{},task_list:[{real_name:"积分数",number:0},{real_name:"消费金额",number:0},{real_name:"优惠券",number:0}],userInfo:{},taskInfo:{},is_open_member:!1,iconColor:"#FFFFFF",isScrolling:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,s.mapGetters)(["isLogin"])),watch:{VipList:function(){var t=this;t.VipList.length>0&&t.VipList.forEach((function(e,n){!1===e.is_clear&&(t.activeIndex=n,t.grade=e.grade)}))},isLogin:{handler:function(t,e){},deep:!0}},onLoad:function(){this.get_host_product(),this.isLogin?(this.setLeveLComplete(),this.getlevelInfo(),this.getUserInfo()):(0,l.toLogin)();var t=this;setTimeout((function(){t.loading=!0}),500)},onShow:function(){t.removeStorageSync("form_type_cart")},onPageScroll:function(e){t.$emit("scroll"),e.scrollTop>50?(this.iconColor="#333333",this.isScrolling=!0):e.scrollTop<50&&(this.iconColor="#FFFFFF",this.isScrolling=!1)},methods:{gradeStyle:function(t){return{"background-image":'url("'.concat(t.icon,'")'),color:t.color}},progressValue:function(t,e){var n=100;return this.levelInfo.grade==t.grade&&this.VipList[e+1]&&(n=this.levelInfo.exp/this.VipList[e+1].exp_num*100),{width:"".concat(n,"%"),"background-color":t.color}},getUserInfo:function(){var t=this;(0,r.getUserInfo)().then((function(e){t.is_open_member=e.data.is_open_member,t.task_list=[{real_name:"积分数",number:e.data.integral},{real_name:"消费金额",number:e.data.orderStatusSum},{real_name:"优惠券",number:e.data.couponCount}]}))},getlevelInfo:function(){var t=this;(0,r.getlevelInfo)().then((function(e){var n=e.data,o=n.level_info,i=n.level_list,r=n.task,a=n.user;t.levelInfo=o,t.VipList=i,t.userInfo=a,t.taskInfo=r,t.levelInfo.exp=parseFloat(t.levelInfo.exp),t.levelInfo.rate=Math.floor(t.levelInfo.exp/t.levelInfo.exp_num*100),t.levelInfo.rate>100&&(t.levelInfo.rate=100);var l=i.findIndex((function(t){var e=t.grade;return e===o.grade}));-1!==l&&(t.currentIndex=l)}))},onLoadFun:function(){this.setLeveLComplete(),this.getlevelInfo(),this.getUserInfo(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},get_host_product:function(){var t=this;t.hotScroll||(0,a.getProductHot)(t.hotPage,t.hotLimit).then((function(e){t.hotPage++,t.hotScroll=e.data.length<t.hotLimit,t.hostProduct=t.hostProduct.concat(e.data)}))},swiperChange:function(t){var e=t.detail.current;this.currentIndex=e,this.level_id=this.VipList[e].id||0,this.level_title=this.VipList[e].name||"",this.level_discount=this.VipList[e].discount||""},growthValueClose:function(){this.growthValue=!0},opHelp:function(t){this.growthValue=!1,this.illustrate=this.task[t].illustrate},setLeveLComplete:function(){(0,r.userLevelDetection)().then((function(t){}))},getVipList:function(){var t=this;(0,r.userLevelGrade)().then((function(e){t.$set(t,"VipList",e.data.list),t.task=e.data.task.task,t.reach_count=e.data.task.reach_count,t.level_id=e.data.list.length&&e.data.list[0]?e.data.list[0].id:0,t.level_title=e.data.list.length&&e.data.list[0]?e.data.list[0].name:"",t.level_discount=e.data.list.length&&e.data.list[0]?e.data.list[0].discount:""}))},getTask:function(){var t=this;(0,r.userLevelTask)(t.level_id).then((function(e){t.task=e.data.task,t.reach_count=e.data.reach_count}))}},onReachBottom:function(){this.get_host_product()}};e.default=f}).call(this,n("df3c")["default"])},ae05:function(t,e,n){"use strict";n.r(e);var o=n("8e96"),i=n("0c81");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("fc6d");var a=n("828b"),l=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"cacb3c4c",null,!1,o["a"],void 0);e["default"]=l.exports},fc6d:function(t,e,n){"use strict";var o=n("2c87"),i=n.n(o);i.a}},[["8b31","common/runtime","common/vendor"]]]);