1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/member"],{"67ac":function(t,e,n){"use strict";(function(t){n("630e");i(n("66fd"));var e=i(n("e6b7"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("5486")["createPage"])},"698c":function(t,e,n){},"7f1a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=u(n("a34a"));function u(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n,i,u,r,a){try{var o=t[r](a),s=o.value}catch(c){return void n(c)}o.done?e(s):Promise.resolve(s).then(i,u)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(i,u){var a=t.apply(e,n);function o(t){r(a,i,u,o,s,"next",t)}function s(t){r(a,i,u,o,s,"throw",t)}o(void 0)}))}}var o={onLoad:function(t){this.vip=t.vip||0,this.vuex_token&&this.getUserIndex(),this.getVipIndex()},computed:{itemStyle:function(){var t=this;return function(e){var n={height:"250rpx"};return e==t.selectIndex[t.current]&&(n.border="1px solid "+t.theme.bgColor,n.backgroundColor=t.lightColor),n}},isVipList:function(){var t=this;return function(e){return t.vipList.length>e}},nowLevel:function(){return this.isDisabled?"不可操作":this.vipInfo.level?this.vipList.length>0&&this.vipInfo.level==this.vipList[this.current].level?"我要续费":"我要升级":"立即购买"},isDisabled:function(){return!!(this.vipInfo.level&&this.vipList[this.current].level<this.vipInfo.level)},payList:function(){return[]}},filters:{expireRender:function(t){if(!t)return"请先购买会员吧!";var e=new Date(t),n=new Date,i=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate(),u=n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate();return i==u?"今天过期,尽快续费哦!":e-n<0?"会员已过期,请续费哦!":i+" 后过期"}},data:function(){return{vip:0,tabwidth:120,vipList:[],pricedata:[],rightdata:[],vipInfo:{},current:0,selectIndex:[],paytype:"wechat",paytypelist:[]}},methods:{getUserIndex:function(){var t=a(i.default.mark((function t(){var e;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$api.getUserIndex();case 2:if(e=t.sent,e.code){t.next=6;break}return this.$u.toast(e.msg),t.abrupt("return");case 6:this.$u.vuex("vuex_user",e.data.userInfo||{});case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),change:function(t){this.tabwidth=30*this.$util.strlen(this.vipList[t].name),this.current=t,this.setPriceData()},getIsDefault:function(t){return-1!=[!0,1,"1","yes","true"].indexOf(t)},getVipIndex:function(){var t=this;this.$api.getVipIndex().then((function(e){e.code&&(t.paytypelist=e.data.config.paytypelist,t.paytype=e.data.config.defaultpaytype,e.data.vipList.some((function(e,n){if(e.level==t.vip)return t.current=n,!0})),t.vipList=e.data.vipList||[],t.vipInfo=e.data.vipInfo||{},t.setPriceData())}))},setPriceData:function(){var t=this;if(this.vipList.length>this.current&&(this.pricedata=this.vipList[this.current].pricedata)&&(this.rightdata=this.vipList[this.current].rightdata),"undefined"==typeof this.selectIndex[this.current]){var e=0;this.pricedata.some((function(n,i){if(t.getIsDefault(n.default))return e=i,!0})),this.$set(this.selectIndex,this.current,e)}},selectVip:function(t,e){this.$set(this.selectIndex,this.current,e)},selectPayType:function(t){this.paytype=t},goBuy:function(t){!t&&this.isDisabled||this.$u.toast("未支持百度小程序支付!")}}};e.default=o},8816:function(t,e,n){"use strict";var i=n("698c"),u=n.n(i);u.a},a977:function(t,e,n){"use strict";n.r(e);var i=n("7f1a"),u=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=u.a},afbd:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={faNavbar:function(){return n.e("components/fa-navbar/fa-navbar").then(n.bind(null,"6858"))},uAvatar:function(){return n.e("uview-ui/components/u-avatar/u-avatar").then(n.bind(null,"3108"))},uTag:function(){return n.e("uview-ui/components/u-tag/u-tag").then(n.bind(null,"a8f0"))},uCountDown:function(){return n.e("uview-ui/components/u-count-down/u-count-down").then(n.bind(null,"2e2e"))},uButton:function(){return n.e("uview-ui/components/u-button/u-button").then(n.bind(null,"6829"))},faUTabs:function(){return Promise.all([n.e("common/vendor"),n.e("components/fa-u-tabs/fa-u-tabs")]).then(n.bind(null,"e0b8"))},uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,"ba52"))},uImage:function(){return n.e("uview-ui/components/u-image/u-image").then(n.bind(null,"9406"))},uRadioGroup:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-radio-group/u-radio-group")]).then(n.bind(null,"516b"))},uCellItem:function(){return n.e("uview-ui/components/u-cell-item/u-cell-item").then(n.bind(null,"e84c"))},uRadio:function(){return n.e("uview-ui/components/u-radio/u-radio").then(n.bind(null,"ed39"))},uGap:function(){return n.e("uview-ui/components/u-gap/u-gap").then(n.bind(null,"71a3"))}},u=function(){var t=this,e=t.$createElement,n=(t._self._c,t._f("expireRender")(t.vipInfo.expiredate)),i=t.isVipList(1),u=i?t.isVipList(4):null,r=t.__map(t.pricedata,(function(e,n){var i=t.__get_orig(e),u=t.__get_style([t.itemStyle(n)]);return{$orig:i,s0:u}})),a=t.__map(t.payList,(function(e,n){var i=t.__get_orig(e),u={color:"wechat"==e?"#40BA49":"#00AAEE"};return{$orig:i,a0:u}})),o={backgroundColor:t.isDisabled?"#ccc":t.theme.bgColor,color:t.theme.color};t.$mp.data=Object.assign({},{$root:{f0:n,m0:i,m1:u,l0:r,l1:a,a1:o}})},r=[]},e6b7:function(t,e,n){"use strict";n.r(e);var i=n("afbd"),u=n("a977");for(var r in u)"default"!==r&&function(t){n.d(e,t,(function(){return u[t]}))}(r);n("8816");var a,o=n("f0c5"),s=Object(o["a"])(u["default"],i["b"],i["c"],!1,null,"46b28e7b",null,!1,i["a"],a);e["default"]=s.exports}},[["67ac","common/runtime","common/vendor"]]]);
|