chunk-731e3f59.557ea53a.js 20 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-731e3f59"],{"083e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAABq1JREFUeF7tnF1sFFUUx/93dlNKAlagD9gQAyToC9LYSgKG1I17dyk+IJHUxKgvEkk1tkkLjcSG8JUmGktNxKiJNDyoMdig+GJs99asxvQFtZI+acBCQ+TBQosSYst0rznD7NJ2v+7s3NkddG7Sp86ce+a3536cj3sZytuMeDz+aCqVqmeMPSSlfFhKuY4xdh+A5fYfafQ3/Ukp/2KMjTPGfpVS/mYYxvmhoaFRAKlyqc287igWi9VJKXcDiAJ4AsD9LvucBvAdgGHG2JlEIvGHS3kFX/cEUCQSqQ6FQrsZYy8C4ABCHn3EHAAhpfx4bm7uTDKZ/Ed3P1oBRSKRZeFwuBVAJ4AHdCtbRN5VAH2maX6YTCZv6upbC6BIJBIOh8NtALoBrNKlXIlyrgHoMU3zRDKZNEuUkXnNNSDO+TYA7wN4xK0ymt8fA/CqEOIHN3JLBtTS0lI1NTXVK6V8jTFWshw3yhd7V0opGWPvrVixYv/AwMBssedz/b+kD4tGo+sBfM4Yayyl03K/I6X8CcCzw8PDvzvt2zGgeDz+ZCqV+gJAjdPOKvz8DcMwnhkaGvrWiR6OAMVisRZaUgEscdKJj56doa1HIpEYUNVJGRDn/GUAH3i4p1HV2e1ztHd6RQjxkYogJUC25Xz2H4CTZjLHGHtOxZKKArLnnK/v4WGVz1BmDMN4qticVBAQrVaMsZ/vwQlZZfTQMzeklA2FVre8gGifc/369ZF7ZSlXJbL4OdoCrFy58vF8+6S8gDjn7wIg9+H/0E4IIdqVN4rkPkgpv/frDln3L2bvuJtyuSVZFmQ7njTv+M230s1lsbwx0zQbFju4WYA45x0UNvBaG5/K7xRCvDNftwWA7HjOJR+ELCrF75ppmmvnx5MWAOKc7wfwdqW080m/XUKI3r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7ZlWdsWGk3NHkJHXxAE73RKANAnhBitAo0B2E9EJ5PJ5PVmFS9GPpvNnmDmawAeCyG6KJPJbCSiCQA/LMuKNpr0FgNRu1YnzyAIigBWtLW1baJsNptkZglgVAjR16qNmtEjpdTXpZeIhAa6wczHASSEEPlmFLVKVkoZB5Ajopsa6CUz7wKwRwihc8OSDyllJ4BnRPSKpJS6nqxWSq2drbYsBV1Yrj4D+KqBdNVtd123PRaL/VoKgPo9CoXCslKpNAVgykggs1xm3KU2MezNSozGlY6w2ptTXI1sP4xr0LSVjGphq6ncqCZfQxn3DNJQRj0Ua95N5jylq1BGfTbU9ivGfMfUQhn1YVXf3enap5++/+tL7zfuJypjTGintwAAAABJRU5ErkJggg=="},1195:function(t,e,i){t.exports=i.p+"img/avatar.0166dac5.png"},"2a70":function(t,e,i){},"474d":function(t,e,i){},4903:function(t,e,i){"use strict";i.r(e);i("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[e("div",{staticClass:"header"},[e("img",{staticClass:"return-img",attrs:{src:i("f5a4")},on:{click:function(e){return t.$router.back()}}}),t.userLevel.level_id>0?e("p",{staticClass:"header-title"},[t._v("续费会员")]):e("p",{staticClass:"header-title"},[t._v("开通会员")])]),t.userLevel.level_id>0?e("div",{staticClass:"head"},[e("div",{staticClass:"card-wrap"},[e("div",{staticClass:"card"},[e("img",{staticClass:"avatar",attrs:{src:t.userInfo.headimg||i("1195")}}),e("div",{staticClass:"card-sidebar"},[e("p",{staticClass:"card-name"},[t._v(t._s(t.userInfo.name||"未登录"))]),e("p",{staticClass:"card-msg"},[e("span",{staticClass:"font-1"},[t._v(t._s(t.userLevel.end_date))]),t._v("\n 到期,购买后有效期将延长\n ")])])])])]):e("div",{staticClass:"head"},[e("div",{staticClass:"card-wrap2",on:{click:function(e){return t.$router.push("/login")}}},[e("div",{staticClass:"card"},[e("img",{staticClass:"avatar",attrs:{src:t.userInfo.headimg||i("1195")}}),e("div",{staticClass:"card-sidebar"},[e("p",{staticClass:"card-name"},[t._v(t._s(t.userInfo.name||"未登录"))])])]),e("span",{staticClass:"card-tag"},[t._v("未开通")])])]),e("div",{staticClass:"module"},[e("div",{staticClass:"choose-box"},[e("p",{staticClass:"choose-title"},[t._v("选择会员")]),t._l(t.levelList,(function(i,s){return e("ul",{staticClass:"choose-list"},t._l(i.price,(function(n,a){return e("li",{key:a,class:{active:t.levelSelected===s&&t.levelKey===a},on:{click:function(e){t.levelSelected=s,t.levelKey=a}}},[e("span",{staticClass:"choose-name"},[t._v(t._s(i.name))]),e("p",{staticClass:"choose-price"},[t._v("\n ¥"),e("span",[t._v(t._s(n.price))])]),e("span",{staticClass:"choose-time"},[t._v(t._s(n.time)+"个月")])])})),0)}))],2),e("div",{staticClass:"pay-box"},[e("p",{staticClass:"pay-title"},[t._v("支付方式")]),e("ul",{staticClass:"pay-list"},[e("li",{on:{click:function(e){t.payType=2}}},[t._m(0),e("div",{staticClass:"pay-rightsidebar"},[2===t.payType?e("img",{staticClass:"circle-img",attrs:{src:i("7bcf")}}):e("img",{staticClass:"circle-img",attrs:{src:i("088b")}})])]),e("li",{on:{click:function(e){t.payType=t.isWeChat?5:1}}},[t._m(1),e("div",{staticClass:"pay-rightsidebar"},[5===t.payType||1===t.payType?e("img",{staticClass:"circle-img",attrs:{src:i("7bcf")}}):e("img",{staticClass:"circle-img",attrs:{src:i("088b")}})])])])]),e("div",{staticClass:"btn-box"},[e("button",{attrs:{type:"button"},on:{click:function(e){return t.createOrder()}}},[t._v("立即开通")])])]),e("is-login-vip",{ref:"isLoginVip",attrs:{type:"vip","to-login-text":"VIP资料请登录后查看","open-vip-text":"开通VIP查看本材料"}})],1)},n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pay-leftsidebar"},[e("img",{staticClass:"type-img",attrs:{src:i("9c6e")}}),t._v("支付宝支付\n ")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"pay-leftsidebar"},[e("img",{staticClass:"type-img",attrs:{src:i("ba18")}}),t._v("微信支付\n ")])}],a=(i("1c01"),i("58b2"),i("8e6e"),i("f3e2"),i("d25f"),i("ac6a"),i("456d"),i("28a5"),i("ade3")),o=(i("6d67"),i("f523")),r=i("d399"),c=i("325c"),A=i("bbe1");function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function p(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){Object(a["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var g={components:{IsLoginVip:A["a"]},data:function(){var t=Object(c["m"])();return{isWeChat:t,isLogin:!1,userInfo:{},userLevel:{level_id:0},levelList:[],levelSelected:0,levelKey:0,orderMap:{},loading:!1,payType:t?5:1}},mounted:function(){this.getUserLevelSet(),this.getUserInfo()},methods:{getUserInfo:function(){var t=this;o["v"].getUserInfo().then((function(e){var i=e.data;t.isLogin=!0,t.userInfo=i.detail,t.userLevel=i.user_level||t.userLevel,localStorage.setItem("user_info",JSON.stringify(i.detail)),localStorage.setItem("user_level",JSON.stringify(i.user_level))}))},getUserLevelSet:function(){var t=this;o["i"].getUserLevelSet().then((function(e){var i=e.data;t.levelList=i.list.map((function(t){return p(p({},t),{},{price:JSON.parse(t.price)})}))}))},createOrder:function(){var t=this;if(!this.isLogin)return Object(r["a"])("请先登录"),void this.$router.push("/login");if(!this.loading){this.loading=!0,r["a"].loading("正在提交..");var e={level_id:this.levelList[this.levelSelected].id,level_key:this.levelKey},i="".concat(e.level_id,",").concat(e.level_key);if(this.orderMap[i])return this.pay(this.orderMap[i]);o["m"].createOrder(e).then((function(e){var s=e.data;return t.orderMap[i]=s.order_id,t.pay(t.orderMap[i]).then().finally((function(){t.loading=!1}))}))}},pay:function(t){var e=this,i={order_id:t,pay_type:this.payType};return o["m"].payOrder(i).then((function(t){var s=t.data;if(1!==i.pay_type)if(2===i.pay_type){var n=document.createElement("div");n.innerHTML=s.ali_url,document.body.appendChild(n),n.children.alipaysubmit.submit()}else 5===i.pay_type&&e.$wx.chooseWXPay({timestamp:s.config.timestamp,nonceStr:s.config.nonceStr,package:s.config.package,signType:s.config.signType,paySign:s.config.paySign,success:function(t){console.log("--------------支付结果start--------------"),console.log(t),console.log("--------------支付结果end--------------"),e.getUserInfo(),Object(r["a"])("开通成功!"),setTimeout((function(){e.$router.back()}),1e3)},fail:function(t){console.log("--------------支付失败start--------------"),console.log(t),console.log("--------------支付失败end--------------")}});else{var a=location.href.split("/dist/#")[0]+"/#/my";location.href="".concat(s.config.mweb_url,"&redirect_url=").concat(encodeURIComponent(a),"&paySign=").concat(s.config.paySign)}}))}}},h=g,u=(i("e97b"),i("2877")),d=Object(u["a"])(h,s,n,!1,null,"64891033",null);e["default"]=d.exports},"7bcf":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA0tJREFUWEfNmEtoE0EYx//fpq+kLfVQr4JPLHgS9KClpCgbRa8FH3dtQcWDhaQIxYMmiIpYwcfZotKT2FK6PtCS9lLsQQQDWl94sj0opdmkTfaT2e22m1ezk00hc5z95vt+O99rZgiSQ72qb6eMEWJQJwgdxLyNQa1CDYEXmegXGJ8JHM9gRXsT2/JNxgS5Ee7pYd+/3XoPDFwA+JBp291ggKah4H7bF//IyAhlyy0rqzgU1o8yskMA7S2nbOPvnCD4Lk7E/K83kisJFBzkpobl1F2wcd4biHM1MYgeLzc0XX53jVLF9BYFOh5Z3Gqwb4zBB6oHs66JQDMKZU+MR1vn8/UXAAmYLHyTYPboojK/QpTwIduVD5UDJNzUmNYnN2tnCneDZtKN/i6n+3KA1Ij+sLox48LhpDzSov5eW3INyMom1gAum3kuzEiIEBNItbPPNG7WmZ36J2Bz44YZC4pCz8F8kAFHwlCibc6/T9QpE0gdSJ6CwU8lfktelOh7RqHut9f9P4ODXNeQTn4E0LGmSKHT2o3AMwsokoyD+bC8FZcrHDD2CjW89BLASUcxmNJigU46Ev67w4f6rxLtwCXFmtiPjE8Jip2xZ0IDejcbPAFwvUMZZ7Gyi0LhpV4GHshacSlfAHMsrAcN8CjAzUWKYh+p4eQTgM+6NCAjJgVjKaZhUiPJD2DeX2iJ7wHKNMCXAIgOLzMqgBE8NCtcNs9Ae641eq/FAkExZzbZdPKFiH2XRJXBWEG8IFyWArgxz9iUFmvutOckoCqGWXVZuhQQQNyvRVtuSUB5hDFjKF3CZeZHJhj9E7GW2y6gSsAYowAKsqmU6y2XlQxq11BVgbGSjGZdpP2GO7Unv+hZdUZuZxzVephC4VQvI1umMBaH8ut6+/jNwG9boTcYM8v6JFpHIZQzFrzCALBah1CqhpNxwE1zLQ5VBRgRQFZzNYGkjh/ETLjyKhq4I9ZWBwaA8/hRyQGNgTEw/hDRmSKF1WVRt8U40TbXvH5AE9M1dYS1OWvqkG830pq6Bgmomroo2q6rqat0TiM1Hxv4XPXuahU+NjhzdjX7hrzf2Tw+xzihPD1YEU2DqvhglV/hxLWpDvVq+Sc9JZ5BSvpJ7z8dYRRfFYgXpwAAAABJRU5ErkJggg=="},"7f7f":function(t,e,i){var s=i("86cc").f,n=Function.prototype,a=/^\s*function ([^ (]*)/,o="name";o in n||i("9e1e")&&s(n,o,{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},"9c6e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABi1JREFUWEfNmQlsVFUUhr8zNBRpQQWKIQSD2ACyaQKdglgQMUZASESohrALBIUY7IBoiBsasLRTXBASIgKCRgQSCXUFBESMnYICKZUCbiA7FAutUFreNXdeh5lpZ+a912nVkz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wkzuBJmhK+FcR0YARXMhMIzQlsl4E7zfUqWC0CLYDbbbhywAKXcUlSdU8DY3pDPj10HiAF/bODqitlVBXZ7lxfUZwJjEMZwm7j6iYYeD3KKJ3GcqGqJteQFfX/j24aO2BaXX2JKB85/Lb82T5JwBbNCWy3H5mp9Eik48ypC80JfxCT3bR1W0A5osYtheTvTVPExXYrHkjz6QE1dZK/kc7azRPZE1PxnDiFIdB2Kp5I3X2c6/+/PBCFJ4A0X7NG17QY7grNL5M46JNaNElRJgQbj5StKq/v7hiX/UtFL+iNHsi76X77f2FSdmuVSPypfhfblxn0YmktSSRNX1itPul31g1lhArafI2bklruB+Ak9vlDtcDFietiRSOPvrdrV5g18p7QPHxZjzvWEtFw9nKTyrz48PH1jR5wnaHlvEItKqlbGK/K9EuHCKluUeE0CGBSy1GEKA5ALryJyEGRgcI588PKpp4YFpdPFPHfl21u0Wve0jIHlrQqha1p2l+eonYWcLuuKRUwgyuaVYa6zMxHNBDSxi8OQ2nq/mxQYLtpagHE4RFmjfygQjBpwfnEMjGuteCRHvpGBZv4EU82CHCzHhXlgpqd3jqz6YiVe6tGhOLmafd/rGr3F4NvB2FGWyRxEx3oaJE1ArwQYDOEDhuMe5g4BGS6Ej+hSEbY0M77ZI/yjV2k7dIzixnuAnNxLUL9hSBogye5KrXzybUwefUNt82nHMHKV0ZwzlezY2jqkQc5dRhYMJ0Th23Xs+ZzvpAO2E6p64MEqZz6lKmd0K3iwsTrxY8NExbW+xDPmJ69ZpfeyV9OXcuFpOnzG5NLySubkGTLDhXtyMBDO3GdjDhnAQ6yei6uh0umYe2DuDq9h9RAZV7f3LocwAAAABJRU5ErkJggg=="},bbe1:function(t,e,i){"use strict";var s=function(){var t=this,e=t._self._c;return e("van-overlay",{attrs:{show:t.showOpenVip,"z-index":t.zIndex},on:{click:function(e){t.showOpenVip=!1}}},["s1"===t.styleName?e("div",{staticClass:"open-vip-wrap"},[e("div",{staticClass:"open-vip"},[e("p",[t._v("仅支持VIP查看")]),e("p",[t._v(t._s(t.openVipTextShow))]),e("button",{on:{click:function(e){return t.toOpenMember()}}},[t._v("开通VIP会员")])]),e("button",{staticClass:"open-vip-close-btn",attrs:{type:"button"},on:{click:function(e){t.showOpenVip=!1}}},[e("img",{attrs:{src:i("083e"),alt:""}})])]):t._e(),"s2"===t.styleName?e("div",{staticClass:"open-vip-s2"},[e("p",[t._v(t._s(t.openVipTextShow))]),e("button",{on:{click:function(e){return t.$router.push("/member")}}},[t._v("立即开通")]),e("button",{staticClass:"cancel-btn",on:{click:function(e){t.showOpenVip=!1}}},[t._v("取消")])]):t._e()])},n=[],a=(i("a481"),i("f523")),o=i("2241"),r={name:"is-login-vip",props:{type:{default:"none"},styleType:{default:"s1"},toLoginText:{default:"VIP内容请登录后查看"},openVipText:{default:"开通VIP查看本内容"},zIndex:{default:"99999"}},data:function(){return{showOpenVip:!1,userInfo:{},isLogin:!1,isVip:!1,styleName:"s1",openVipTextShow:"",toLoginTextShow:""}},mounted:function(){this.styleName=this.styleType,this.openVipTextShow=this.openVipText,this.toLoginTextShow=this.toLoginText,"none"!==this.type&&this.getUserInfo()},methods:{show:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"login",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s1";this.styleName=s,"login"===i?(this.toLoginTextShow=e||"VIP内容请登录后查看",o["a"].confirm({message:this.toLoginTextShow,confirmButtonText:"去登录"}).then((function(){t.$router.push("/login")}))):"vip"===i&&(this.openVipTextShow=e||"开通VIP查看本内容",this.showOpenVip=!0)},next:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"none"!==this.type&&t?"login"===this.type&&this.isLoginFn()||"vip"===this.type&&this.isLoginFn()&&this.isVipFn()?e():void 0:e()},isLoginFn:function(){return this.isLogin||this.show(this.toLoginTextShow,"login",this.style),this.isLogin},isVipFn:function(){return this.isVip||this.show(this.openVipTextShow,"vip",this.style),this.isVip},toOpenMember:function(){this.showOpenVip=!1,this.$router.push("/member")},getUserInfo:function(){var t=this;a["v"].getUserInfo(null,!0).then((function(e){var i=e.data;t.userInfo=i.detail||{},t.isLogin=!0;var s=i.user_level;if(s&&s.id>0){var n=(new Date).getTime(),a=new Date(s.end_date.replace(/-/g,"/")).getTime();t.isVip=n<a}}))}}},c=r,A=(i("c583"),i("2877")),l=Object(A["a"])(c,s,n,!1,null,"5b0dc4d6",null);e["a"]=l.exports},c583:function(t,e,i){"use strict";i("474d")},e97b:function(t,e,i){"use strict";i("2a70")},f5a4:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII="}}]);
  2. //# sourceMappingURL=chunk-731e3f59.557ea53a.js.map