1 |
- {"version":3,"sources":["webpack:///./src/assets/icon-97.png","webpack:///./src/assets/circle.png","webpack:///./src/assets/avatar.png","webpack:///./src/views/member.vue","webpack:///src/views/member.vue","webpack:///./src/views/member.vue?d15a","webpack:///./src/views/member.vue?37de","webpack:///./src/assets/circle-active.png","webpack:///./node_modules/core-js/modules/es6.function.name.js","webpack:///./src/assets/type-1.png","webpack:///./src/assets/type-2.png","webpack:///./src/components/is-login-vip.vue","webpack:///src/components/is-login-vip.vue","webpack:///./src/components/is-login-vip.vue?7e86","webpack:///./src/components/is-login-vip.vue?8ee0","webpack:///./src/components/is-login-vip.vue?10df","webpack:///./src/views/member.vue?a04f","webpack:///./src/assets/return.png"],"names":["module","exports","render","_vm","this","_c","_self","staticClass","attrs","require","on","$event","$router","back","userLevel","level_id","_v","userInfo","headimg","_s","name","end_date","push","_l","levelList","item","index","price","item2","index2","key","class","active","levelSelected","levelKey","time","payType","_m","isWeChat","createOrder","ref","staticRenderFns","components","IsLoginVip","data","isLogin","orderMap","loading","mounted","methods","getUserInfo","UserCenterService","localStorage","getUserLevelSet","ExpediteService","Toast","level_key","LevelOrderService","then","finally","pay","order_id","pay_type","div","document","timestamp","nonceStr","package","signType","paySign","success","console","setTimeout","fail","location","encodeURIComponent","component","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e","showOpenVip","zIndex","styleName","openVipTextShow","toOpenMember","_e","props","type","default","styleType","toLoginText","openVipText","isVip","toLoginTextShow","show","Dialog","message","confirmButtonText","next","isLoginFn","isVipFn"],"mappings":"mGAAAA,EAAOC,QAAU,81E,qBCAjBD,EAAOC,QAAU,soC,qBCAjBD,EAAOC,QAAU,IAA0B,2B,yGCAvCC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaC,MAAM,CAA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EACAuC,GACA,EACA,KACA,WACA,MAIa,OAAAmC,E,2CCnBf,W,kCCAA,W,mBCAA5E,EAAOC,QAAU","file":"js/chunk-731e3f59.557ea53a.js","sourcesContent":["module.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+ELCrF75ppmmvn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k+u627XeWoaSErZC2BEh7ZlWdsWGk3NHkJHXxAE73RKANAnhBitAo0B2E9EJ5PJ5PVmFS9GPpvNnmDmawAeCyG6KJPJbCSiCQA/LMuKNpr0FgNRu1YnzyAIigBWtLW1baJsNptkZglgVAjR16qNmtEjpdTXpZeIhAa6wczHASSEEPlmFLVKVkoZB5Ajopsa6CUz7wKwRwihc8OSDyllJ4BnRPSKpJS6nqxWSq2drbYsBV1Yrj4D+KqBdNVtd123PRaL/VoKgPo9CoXCslKpNAVgykggs1xm3KU2MezNSozGlY6w2ptTXI1sP4xr0LSVjGphq6ncqCZfQxn3DNJQRj0Ua95N5jylq1BGfTbU9ivGfMfUQhn1YVXf3enap5++/+tL7zfuJypjTGintwAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"img/avatar.0166dac5.png\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('div',{staticClass:\"header\"},[_c('img',{staticClass:\"return-img\",attrs:{\"src\":require(\"../assets/return.png\")},on:{\"click\":function($event){return _vm.$router.back()}}}),(_vm.userLevel.level_id > 0)?_c('p',{staticClass:\"header-title\"},[_vm._v(\"续费会员\")]):_c('p',{staticClass:\"header-title\"},[_vm._v(\"开通会员\")])]),(_vm.userLevel.level_id > 0)?_c('div',{staticClass:\"head\"},[_c('div',{staticClass:\"card-wrap\"},[_c('div',{staticClass:\"card\"},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.userInfo.headimg || require('../assets/avatar.png')}}),_c('div',{staticClass:\"card-sidebar\"},[_c('p',{staticClass:\"card-name\"},[_vm._v(_vm._s(_vm.userInfo.name || \"未登录\"))]),_c('p',{staticClass:\"card-msg\"},[_c('span',{staticClass:\"font-1\"},[_vm._v(_vm._s(_vm.userLevel.end_date))]),_vm._v(\"\\n 到期,购买后有效期将延长\\n \")])])])])]):_c('div',{staticClass:\"head\"},[_c('div',{staticClass:\"card-wrap2\",on:{\"click\":function($event){return _vm.$router.push('/login')}}},[_c('div',{staticClass:\"card\"},[_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.userInfo.headimg || require('../assets/avatar.png')}}),_c('div',{staticClass:\"card-sidebar\"},[_c('p',{staticClass:\"card-name\"},[_vm._v(_vm._s(_vm.userInfo.name || \"未登录\"))])])]),_c('span',{staticClass:\"card-tag\"},[_vm._v(\"未开通\")])])]),_c('div',{staticClass:\"module\"},[_c('div',{staticClass:\"choose-box\"},[_c('p',{staticClass:\"choose-title\"},[_vm._v(\"选择会员\")]),_vm._l((_vm.levelList),function(item,index){return _c('ul',{staticClass:\"choose-list\"},_vm._l((item.price),function(item2,index2){return _c('li',{key:index2,class:{ active: _vm.levelSelected === index && _vm.levelKey === index2 },on:{\"click\":function($event){_vm.levelSelected = index;\n _vm.levelKey = index2;}}},[_c('span',{staticClass:\"choose-name\"},[_vm._v(_vm._s(item.name))]),_c('p',{staticClass:\"choose-price\"},[_vm._v(\"\\n ¥\"),_c('span',[_vm._v(_vm._s(item2.price))])]),_c('span',{staticClass:\"choose-time\"},[_vm._v(_vm._s(item2.time)+\"个月\")])])}),0)})],2),_c('div',{staticClass:\"pay-box\"},[_c('p',{staticClass:\"pay-title\"},[_vm._v(\"支付方式\")]),_c('ul',{staticClass:\"pay-list\"},[_c('li',{on:{\"click\":function($event){_vm.payType = 2}}},[_vm._m(0),_c('div',{staticClass:\"pay-rightsidebar\"},[(_vm.payType === 2)?_c('img',{staticClass:\"circle-img\",attrs:{\"src\":require(\"../assets/circle-active.png\")}}):_c('img',{staticClass:\"circle-img\",attrs:{\"src\":require(\"../assets/circle.png\")}})])]),_c('li',{on:{\"click\":function($event){_vm.payType = _vm.isWeChat ? 5 : 1}}},[_vm._m(1),_c('div',{staticClass:\"pay-rightsidebar\"},[(_vm.payType === 5 || _vm.payType === 1)?_c('img',{staticClass:\"circle-img\",attrs:{\"src\":require(\"../assets/circle-active.png\")}}):_c('img',{staticClass:\"circle-img\",attrs:{\"src\":require(\"../assets/circle.png\")}})])])])]),_c('div',{staticClass:\"btn-box\"},[_c('button',{attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.createOrder()}}},[_vm._v(\"立即开通\")])])]),_c('is-login-vip',{ref:\"isLoginVip\",attrs:{\"type\":\"vip\",\"to-login-text\":\"VIP资料请登录后查看\",\"open-vip-text\":\"开通VIP查看本材料\"}})],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pay-leftsidebar\"},[_c('img',{staticClass:\"type-img\",attrs:{\"src\":require(\"../assets/type-1.png\")}}),_vm._v(\"支付宝支付\\n \")])\n},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pay-leftsidebar\"},[_c('img',{staticClass:\"type-img\",attrs:{\"src\":require(\"../assets/type-2.png\")}}),_vm._v(\"微信支付\\n \")])\n}]\n\nexport { render, staticRenderFns }","<!-- 会员 -->\r\n<template>\r\n <div class=\"wrap\">\r\n <div class=\"header\">\r\n <img\r\n src=\"../assets/return.png\"\r\n class=\"return-img\"\r\n @click=\"$router.back()\"\r\n />\r\n <p class=\"header-title\" v-if=\"userLevel.level_id > 0\">续费会员</p>\r\n <p class=\"header-title\" v-else>开通会员</p>\r\n </div>\r\n\r\n <!-- 已开通显示 -->\r\n <div class=\"head\" v-if=\"userLevel.level_id > 0\">\r\n <div class=\"card-wrap\">\r\n <div class=\"card\">\r\n <img\r\n :src=\"userInfo.headimg || require('../assets/avatar.png')\"\r\n class=\"avatar\"\r\n />\r\n <div class=\"card-sidebar\">\r\n <p class=\"card-name\">{{ userInfo.name || \"未登录\" }}</p>\r\n <p class=\"card-msg\">\r\n <span class=\"font-1\">{{ userLevel.end_date }}</span>\r\n 到期,购买后有效期将延长\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- 未开通显示 -->\r\n <div class=\"head\" v-else>\r\n <div class=\"card-wrap2\" @click=\"$router.push('/login')\">\r\n <div class=\"card\">\r\n <img\r\n :src=\"userInfo.headimg || require('../assets/avatar.png')\"\r\n class=\"avatar\"\r\n />\r\n <div class=\"card-sidebar\">\r\n <p class=\"card-name\">{{ userInfo.name || \"未登录\" }}</p>\r\n </div>\r\n </div>\r\n <span class=\"card-tag\">未开通</span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"module\">\r\n <div class=\"choose-box\">\r\n <p class=\"choose-title\">选择会员</p>\r\n <ul class=\"choose-list\" v-for=\"(item, index) in levelList\">\r\n <li\r\n :class=\"{ active: levelSelected === index && levelKey === index2 }\"\r\n v-for=\"(item2, index2) in item.price\"\r\n :key=\"index2\"\r\n @click=\"\r\n levelSelected = index;\r\n levelKey = index2;\r\n \"\r\n >\r\n <span class=\"choose-name\">{{ item.name }}</span>\r\n <p class=\"choose-price\">\r\n <!-- ¥<span>{{ parseFloat(item2.price) }}</span> -->\r\n ¥<span>{{ item2.price }}</span>\r\n </p>\r\n <span class=\"choose-time\">{{ item2.time }}个月</span>\r\n </li>\r\n </ul>\r\n </div>\r\n\r\n <div class=\"pay-box\">\r\n <p class=\"pay-title\">支付方式</p>\r\n <ul class=\"pay-list\">\r\n <li @click=\"payType = 2\">\r\n <div class=\"pay-leftsidebar\">\r\n <img src=\"../assets/type-1.png\" class=\"type-img\" />支付宝支付\r\n </div>\r\n <div class=\"pay-rightsidebar\">\r\n <img\r\n src=\"../assets/circle-active.png\"\r\n class=\"circle-img\"\r\n v-if=\"payType === 2\"\r\n />\r\n <img src=\"../assets/circle.png\" class=\"circle-img\" v-else />\r\n </div>\r\n </li>\r\n <li @click=\"payType = isWeChat ? 5 : 1\">\r\n <div class=\"pay-leftsidebar\">\r\n <img src=\"../assets/type-2.png\" class=\"type-img\" />微信支付\r\n </div>\r\n <div class=\"pay-rightsidebar\">\r\n <img\r\n src=\"../assets/circle-active.png\"\r\n class=\"circle-img\"\r\n v-if=\"payType === 5 || payType === 1\"\r\n />\r\n <img src=\"../assets/circle.png\" class=\"circle-img\" v-else />\r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n\r\n <div class=\"btn-box\">\r\n <button type=\"button\" @click=\"createOrder()\">立即开通</button>\r\n </div>\r\n </div>\r\n <!-- 显示开通vip -->\r\n <is-login-vip\r\n ref=\"isLoginVip\"\r\n type=\"vip\"\r\n to-login-text=\"VIP资料请登录后查看\"\r\n open-vip-text=\"开通VIP查看本材料\"\r\n />\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {\r\n ExpediteService,\r\n LevelOrderService,\r\n UserCenterService,\r\n} from \"@/common/service\";\r\nimport { Toast } from \"vant\";\r\nimport { isWeChatOpen } from \"@/common/util\";\r\nimport IsLoginVip from \"@/components/is-login-vip.vue\";\r\n\r\nexport default {\r\n components: { IsLoginVip },\r\n data() {\r\n const isWeChat = isWeChatOpen();\r\n return {\r\n isWeChat,\r\n isLogin: false,\r\n userInfo: {},\r\n userLevel: {\r\n level_id: 0,\r\n },\r\n levelList: [],\r\n levelSelected: 0,\r\n levelKey: 0,\r\n\r\n orderMap: {},\r\n\r\n loading: false,\r\n\r\n // 1 h5微信 2 h5支付宝 5 公众号\r\n payType: isWeChat ? 5 : 1,\r\n };\r\n },\r\n mounted() {\r\n this.getUserLevelSet();\r\n this.getUserInfo();\r\n },\r\n methods: {\r\n getUserInfo() {\r\n UserCenterService.getUserInfo().then(({ data }) => {\r\n this.isLogin = true;\r\n this.userInfo = data.detail;\r\n this.userLevel = data.user_level || this.userLevel;\r\n localStorage.setItem(\"user_info\", JSON.stringify(data.detail));\r\n localStorage.setItem(\"user_level\", JSON.stringify(data.user_level));\r\n });\r\n },\r\n getUserLevelSet() {\r\n ExpediteService.getUserLevelSet().then(({ data }) => {\r\n this.levelList = data.list.map((item) => ({\r\n ...item,\r\n price: JSON.parse(item.price),\r\n }));\r\n });\r\n },\r\n\r\n // 创建订单\r\n createOrder() {\r\n if (!this.isLogin) {\r\n Toast(\"请先登录\");\r\n // this.$refs.isLoginVip.next(false)\r\n this.$router.push(\"/login\");\r\n return;\r\n }\r\n if (this.loading) return;\r\n this.loading = true;\r\n Toast.loading(\"正在提交..\");\r\n const params = {\r\n level_id: this.levelList[this.levelSelected].id, // 会员等级\r\n level_key: this.levelKey, // 等级价格的key值\r\n };\r\n const key = `${params.level_id},${params.level_key}`;\r\n if (this.orderMap[key]) {\r\n return this.pay(this.orderMap[key]);\r\n }\r\n LevelOrderService.createOrder(params).then(({ data }) => {\r\n this.orderMap[key] = data.order_id;\r\n return this.pay(this.orderMap[key])\r\n .then()\r\n .finally(() => {\r\n this.loading = false;\r\n });\r\n });\r\n },\r\n\r\n // 支付\r\n pay(orderId) {\r\n const params = {\r\n order_id: orderId,\r\n pay_type: this.payType, // 1 h5微信 2 h5支付宝 5 公众号\r\n };\r\n return LevelOrderService.payOrder(params).then(({ data }) => {\r\n if (params.pay_type === 1) {\r\n const redirect_url = location.href.split(\"/dist/#\")[0] + `/#/my`;\r\n // const redirect_url = `https://ceshi.gyxqcdz.com/dist/#/my`;\r\n location.href = `${\r\n data.config.mweb_url\r\n }&redirect_url=${encodeURIComponent(redirect_url)}&paySign=${\r\n data.config.paySign\r\n }`;\r\n return;\r\n } else if (params.pay_type === 2) {\r\n const div = document.createElement(\"div\"); // 创建div\r\n div.innerHTML = data.ali_url; // 将返回的form 放入div\r\n document.body.appendChild(div);\r\n div.children.alipaysubmit.submit();\r\n } else if (params.pay_type === 5) {\r\n this.$wx.chooseWXPay({\r\n // 支付签名时间戳,注意微信 jssdk 中的所有使用 timestamp 字段均为小写。但最新版的支付后台生成签名使用的 timeStamp 字段名需大写其中的 S 字符\r\n timestamp: data.config.timestamp,\r\n // 支付签名随机串,不长于 32 位\r\n nonceStr: data.config.nonceStr,\r\n // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=\\*\\*\\*)\r\n package: data.config.package,\r\n // 微信支付V3的传入 RSA ,微信支付V2的传入格式与V2统一下单的签名格式保持一致\r\n signType: data.config.signType,\r\n // 支付签名\r\n paySign: data.config.paySign,\r\n success: (res) => {\r\n console.log(\"--------------支付结果start--------------\");\r\n console.log(res);\r\n console.log(\"--------------支付结果end--------------\");\r\n this.getUserInfo();\r\n Toast(\"开通成功!\");\r\n setTimeout(() => {\r\n this.$router.back();\r\n }, 1000);\r\n },\r\n fail: (err) => {\r\n console.log(\"--------------支付失败start--------------\");\r\n console.log(err);\r\n console.log(\"--------------支付失败end--------------\");\r\n },\r\n });\r\n }\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.wrap {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 54px 0 0;\r\n box-sizing: border-box;\r\n}\r\n\r\n/* 头部样式 */\r\n.header {\r\n width: 100%;\r\n height: 44px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n background-color: #ffffff;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n z-index: 999;\r\n}\r\n\r\n.return-img {\r\n position: absolute;\r\n left: 15px;\r\n top: 50%;\r\n transform: translate(0, -50%);\r\n width: 20px;\r\n}\r\n\r\n.header-title {\r\n color: #333333;\r\n font-size: 18px;\r\n font-weight: bold;\r\n}\r\n\r\n.btn-box {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 70px 15px;\r\n box-sizing: border-box;\r\n}\r\n\r\n.btn-box > button {\r\n width: 100%;\r\n height: 42px;\r\n line-height: 42px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color: #ffffff;\r\n font-size: 18px;\r\n font-weight: bold;\r\n border-radius: 100px;\r\n background-color: #2a63f3;\r\n}\r\n\r\n.head {\r\n width: 100%;\r\n height: 138px;\r\n background-color: #222126;\r\n padding: 40px 15px 0;\r\n box-sizing: border-box;\r\n}\r\n\r\n.card-wrap {\r\n width: 100%;\r\n height: 100px;\r\n background: linear-gradient(90deg, #fbf5d3, #f9e9c7, #f9c691);\r\n border-radius: 16px 16px 0 0;\r\n padding: 14px 10px 0;\r\n box-sizing: border-box;\r\n position: relative;\r\n}\r\n\r\n.card-wrap2 {\r\n width: 100%;\r\n height: 100px;\r\n background: linear-gradient(90deg, #fbf5d3, #f9e9c7, #f9c691);\r\n border-radius: 16px 16px 0 0;\r\n padding: 20px 10px 0;\r\n box-sizing: border-box;\r\n position: relative;\r\n}\r\n\r\n.card {\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.avatar {\r\n width: 40px;\r\n height: 40px;\r\n margin-right: 6px;\r\n border-radius: 50%;\r\n object-fit: cover;\r\n}\r\n\r\n.avatar2 {\r\n width: 37px;\r\n height: 37px;\r\n margin-right: 8px;\r\n border-radius: 50%;\r\n object-fit: cover;\r\n}\r\n\r\n.card-sidebar {\r\n flex: 1;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.card-name {\r\n width: 100%;\r\n color: #222222;\r\n font-size: 14px;\r\n margin-bottom: 2px;\r\n}\r\n\r\n.card-name2 {\r\n width: 100%;\r\n color: #222222;\r\n font-size: 18px;\r\n font-weight: bold;\r\n}\r\n\r\n.card-msg {\r\n width: 100%;\r\n color: #888888;\r\n font-size: 10px;\r\n}\r\n\r\n.font-1 {\r\n color: #c38912;\r\n}\r\n\r\n.card-tag {\r\n min-width: 48px;\r\n height: 20px;\r\n line-height: 20px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n color: #ffffff;\r\n font-size: 10px;\r\n background: linear-gradient(90deg, #f16b45, #f8515f);\r\n border-radius: 0 10px 0 10px;\r\n}\r\n\r\n.module {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n background-color: #ffffff;\r\n border-radius: 16px 16px 0 0;\r\n margin-top: -20px;\r\n z-index: 99;\r\n}\r\n\r\n.choose-box {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n padding: 20px 15px;\r\n box-sizing: border-box;\r\n border-bottom: 1px solid #f2f2f2;\r\n}\r\n\r\n.choose-title {\r\n width: 100%;\r\n color: #222222;\r\n font-size: 17px;\r\n font-weight: bold;\r\n margin-bottom: 30px;\r\n}\r\n\r\n.choose-list {\r\n width: 100%;\r\n display: flex;\r\n flex-wrap: wrap;\r\n}\r\n\r\n.choose-list > li {\r\n width: 32%;\r\n height: 120px;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n margin-right: 2%;\r\n background-color: #ffffff;\r\n border: 1px solid #faebcd;\r\n box-sizing: border-box;\r\n border-radius: 10px;\r\n}\r\n\r\n.choose-list > li:nth-child(3n) {\r\n margin-right: 0;\r\n}\r\n\r\n.choose-list > li.active {\r\n background: linear-gradient(90deg, #ffedc1, #ffdd99);\r\n border: none;\r\n}\r\n\r\n.choose-name {\r\n color: #222222;\r\n font-size: 12px;\r\n font-weight: bold;\r\n margin-bottom: 6px;\r\n}\r\n\r\n.choose-price {\r\n color: #222222;\r\n font-size: 12px;\r\n margin-bottom: 9px;\r\n}\r\n\r\n.choose-price > span {\r\n font-size: 20px;\r\n font-weight: bold;\r\n}\r\n\r\n.choose-time {\r\n width: 50px;\r\n height: 14px;\r\n line-height: 14px;\r\n border-radius: 7px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n background-color: #fcefdb;\r\n color: #222222;\r\n font-size: 10px;\r\n}\r\n\r\n.pay-box {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n padding: 16px 15px;\r\n box-sizing: border-box;\r\n}\r\n\r\n.pay-title {\r\n width: 100%;\r\n color: #222222;\r\n font-size: 14px;\r\n margin-bottom: 15px;\r\n}\r\n\r\n.pay-list {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.pay-list > li {\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n margin-bottom: 20px;\r\n}\r\n\r\n.pay-list > li:last-child {\r\n margin-bottom: 0;\r\n}\r\n\r\n.pay-leftsidebar {\r\n flex: 1;\r\n display: flex;\r\n align-items: center;\r\n color: #222222;\r\n font-size: 14px;\r\n}\r\n\r\n.type-img {\r\n width: 22px;\r\n margin-right: 14px;\r\n}\r\n\r\n.pay-rightsidebar {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.circle-img {\r\n width: 18px;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./member.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./member.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./member.vue?vue&type=template&id=64891033&scoped=true&\"\nimport script from \"./member.vue?vue&type=script&lang=js&\"\nexport * from \"./member.vue?vue&type=script&lang=js&\"\nimport style0 from \"./member.vue?vue&type=style&index=0&id=64891033&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"64891033\",\n null\n \n)\n\nexport default component.exports","module.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==\"","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABi1JREFUWEfNmQlsVFUUhr8zNBRpQQWKIQSD2ACyaQKdglgQMUZASESohrALBIUY7IBoiBsasLRTXBASIgKCRgQSCXUFBESMnYICKZUCbiA7FAutUFreNXdeh5lpZ+a912nVkzTT5J7zn//dd+5Z7hPikF45KimxCRkIA1wG3YHOCtooaKFhBS6juCBCiSEUAzsryviu+FUpr69bcW6oJN3LECVMwGAEQjOHGFeBzRis9s3hcxDlxN4R4fTFapRh8JJATydOoukqRZEI830eWW8XzxZht1d1RliKYrBdYId624HpPo8ctrKzJJzmVWMFlgHJVmBxrpeLi6cLnpU1sXBiEnZ71RvA3DiJODVf5PPwfLTYjko43auWK5jq1FsD6b/n8zAtEumIhP+jnQ1/VkWOb7Y8V3sD6hCuidmYcdRAu2gHZoLPIx+EKoYR9mcD2PsvHDA7ZHXlKTeq6LNnrpQEDMIJ56mt8aSujE7gqkG8VAk//WmPl4XWdp9HHqhDWBcFZWA7gUdysnsWJLjMlYOnYfJHDUIYJTxemCWfaLSa/VCS5mV/vBWssQgDRb4seiGi/ITTvWqogs/i3Y9GJKypDfd5JN9P2J2n1qHItCKc2gYWDo+u1eEWkJp3VlkNZy5H1133I2zYb+UxZF3Y4MuS0aJbxGbCeTtd1+23wqyBYCjz77oR/F8ftge7BB1cq4Yj54LrARujxia/GL4+ZJ+wgsqkZrSRtDz1sCi+sG8aWTO5KWybGVw7UQYjV8SLGm4vMEzSFqsFYvBCvNC1CZ+6BOPXgt7R6/qNBH5r3k69/AnZku5VmxSMcALw5kjo19GJRbjuQ0uhTLfxziVfE/5ZQVcntvrwtbQ5ZzRxwVsjQf9qOVYKo1c58Rame1jcuUofuNb1hrAw7JwCa8YFldYWwju76u2tVNK86qpAohOI1kmQkmSWndIKOBtjpJx2LzzZN4g+do2Z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DO3GdjDhnAQ6yei6uh0umYe2DuDq9h9RAZV7f3LocwAAAABJRU5ErkJggg==\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('van-overlay',{attrs:{\"show\":_vm.showOpenVip,\"z-index\":_vm.zIndex},on:{\"click\":function($event){_vm.showOpenVip = false}}},[(_vm.styleName === 's1')?_c('div',{staticClass:\"open-vip-wrap\"},[_c('div',{staticClass:\"open-vip\"},[_c('p',[_vm._v(\"仅支持VIP查看\")]),_c('p',[_vm._v(_vm._s(_vm.openVipTextShow))]),_c('button',{on:{\"click\":function($event){return _vm.toOpenMember()}}},[_vm._v(\"开通VIP会员\")])]),_c('button',{staticClass:\"open-vip-close-btn\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.showOpenVip = false}}},[_c('img',{attrs:{\"src\":require(\"@/assets/icon-97.png\"),\"alt\":\"\"}})])]):_vm._e(),(_vm.styleName === 's2')?_c('div',{staticClass:\"open-vip-s2\"},[_c('p',[_vm._v(_vm._s(_vm.openVipTextShow))]),_c('button',{on:{\"click\":function($event){return _vm.$router.push('/member')}}},[_vm._v(\"立即开通\")]),_c('button',{staticClass:\"cancel-btn\",on:{\"click\":function($event){_vm.showOpenVip = false}}},[_vm._v(\"取消\")])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <!-- 显示开通vip -->\r\n <van-overlay :show=\"showOpenVip\" @click=\"showOpenVip = false\" :z-index=\"zIndex\">\r\n\r\n <div class=\"open-vip-wrap\" v-if=\"styleName === 's1'\">\r\n <div class=\"open-vip\">\r\n <p>仅支持VIP查看</p>\r\n <p>{{ openVipTextShow }}</p>\r\n <button @click=\"toOpenMember()\">开通VIP会员</button>\r\n </div>\r\n <button type=\"button\" class=\"open-vip-close-btn\" @click=\"showOpenVip = false\">\r\n <img src=\"@/assets/icon-97.png\" alt=\"\">\r\n </button>\r\n </div>\r\n\r\n <div class=\"open-vip-s2\" v-if=\"styleName === 's2'\">\r\n <p>{{ openVipTextShow }}</p>\r\n <button @click=\"$router.push('/member')\">立即开通</button>\r\n <button class=\"cancel-btn\" @click=\"showOpenVip = false\">取消</button>\r\n </div>\r\n\r\n </van-overlay>\r\n</template>\r\n\r\n<script>\r\n\r\nimport {UserCenterService} from '@/common/service';\r\nimport {Dialog} from 'vant';\r\n\r\nexport default {\r\n name: 'is-login-vip',\r\n props: {\r\n // none 无需登录,无需VIP login 必须登录 vip 必须VIP\r\n type: {\r\n default: 'none',\r\n },\r\n styleType: {\r\n default: 's1',\r\n },\r\n // 登录提示内容\r\n toLoginText: {\r\n default: 'VIP内容请登录后查看',\r\n },\r\n // 开通vip提示内容\r\n openVipText: {\r\n default: '开通VIP查看本内容',\r\n },\r\n zIndex: {\r\n default: '99999'\r\n },\r\n },\r\n data() {\r\n return {\r\n // 显示开通vip\r\n showOpenVip: false,\r\n // 当前登录用户信息\r\n userInfo: {},\r\n // 是否登录\r\n isLogin: false,\r\n // 是否是vip\r\n isVip: false,\r\n\r\n styleName: 's1',\r\n openVipTextShow: '',\r\n toLoginTextShow: '',\r\n };\r\n },\r\n mounted() {\r\n this.styleName = this.styleType;\r\n this.openVipTextShow = this.openVipText;\r\n this.toLoginTextShow = this.toLoginText;\r\n if (this.type !== 'none') {\r\n this.getUserInfo();\r\n }\r\n },\r\n methods: {\r\n show(msg = '', type = 'login', style = 's1') {\r\n this.styleName = style;\r\n if (type === 'login') {\r\n this.toLoginTextShow = msg || 'VIP内容请登录后查看';\r\n Dialog.confirm({\r\n message: this.toLoginTextShow,\r\n confirmButtonText: '去登录'\r\n }).then(() => {\r\n this.$router.push('/login');\r\n });\r\n } else if (type === 'vip') {\r\n this.openVipTextShow = msg || '开通VIP查看本内容';\r\n this.showOpenVip = true;\r\n }\r\n },\r\n\r\n /**\r\n * 判断是否执行下一步\r\n * @param isVip\r\n * @param fn\r\n */\r\n next(isVip = true, fn = () => {}) {\r\n if (this.type === 'none' || !isVip) return fn();\r\n // 必须登录\r\n if (this.type === 'login' && this.isLoginFn()) return fn();\r\n // 登录且必须是vip\r\n if (this.type === 'vip' && this.isLoginFn() && this.isVipFn()) return fn();\r\n },\r\n\r\n isLoginFn() {\r\n if (!this.isLogin) {\r\n this.show(this.toLoginTextShow, 'login', this.style);\r\n }\r\n return this.isLogin;\r\n },\r\n\r\n isVipFn() {\r\n if (!this.isVip) {\r\n this.show(this.openVipTextShow, 'vip', this.style);\r\n }\r\n return this.isVip;\r\n },\r\n\r\n // 开通会员\r\n toOpenMember() {\r\n this.showOpenVip = false;\r\n this.$router.push('/member');\r\n },\r\n // 获取用户信息\r\n getUserInfo() {\r\n UserCenterService.getUserInfo(null, true).then(({ data }) => {\r\n this.userInfo = data.detail || {};\r\n this.isLogin = true;\r\n const userLevel = data.user_level;\r\n if (userLevel && userLevel.id > 0) {\r\n const currentTime = new Date().getTime();\r\n const endTime = new Date(userLevel.end_date.replace(/-/g, '/')).getTime();\r\n this.isVip = currentTime < endTime;\r\n }\r\n });\r\n // console.log('判断VIP里面获取的用户数据')\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.open-vip-wrap {\r\n width: 100%;\r\n position: fixed;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n}\r\n\r\n.open-vip-close-btn {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 20px 0 0;\r\n\r\n}\r\n\r\n.open-vip-close-btn > img {\r\n width: 36px;\r\n}\r\n.open-vip {\r\n width: calc(100% - 120px);\r\n height: 190px;\r\n background: #FFFFFF;\r\n border-radius: 16px;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n}\r\n\r\n.open-vip p {\r\n font-size: 16px;\r\n font-weight:bold;\r\n color: #222222;\r\n line-height: 35px;\r\n}\r\n\r\n.open-vip button {\r\n width: 165px;\r\n height: 42px;\r\n background: #EBD793;\r\n border-radius: 50px;\r\n font-size: 15px;\r\n font-weight: bold;\r\n color: #553D0E;\r\n margin-top: 30px;\r\n}\r\n\r\n.open-vip-s2 {\r\n width: calc(100% - 110px);\r\n background: #FFFFFF;\r\n border-radius: 16px;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n transform: translate(-50%, -50%);\r\n position: fixed;\r\n top: 50%;\r\n left: 50%;\r\n padding: 42px 0 14px;\r\n}\r\n\r\n.open-vip-s2 p {\r\n font-size: 16px;\r\n font-weight: bold;\r\n color: #222222;\r\n line-height: 35px;\r\n margin-bottom: 35px;\r\n}\r\n\r\n.open-vip-s2 button {\r\n width: 135px;\r\n height: 42px;\r\n background: #EBD793;\r\n border-radius: 20px;\r\n font-size: 16px;\r\n font-weight: bold;\r\n color: #553D0E;\r\n}\r\n\r\n.open-vip-s2 button.cancel-btn {\r\n color: #666666;\r\n margin-top: 4px;\r\n background: initial;\r\n font-weight: normal;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./is-login-vip.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./is-login-vip.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./is-login-vip.vue?vue&type=template&id=5b0dc4d6&scoped=true&\"\nimport script from \"./is-login-vip.vue?vue&type=script&lang=js&\"\nexport * from \"./is-login-vip.vue?vue&type=script&lang=js&\"\nimport style0 from \"./is-login-vip.vue?vue&type=style&index=0&id=5b0dc4d6&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5b0dc4d6\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./is-login-vip.vue?vue&type=style&index=0&id=5b0dc4d6&prod&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./member.vue?vue&type=style&index=0&id=64891033&prod&scoped=true&lang=css&\"","module.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=\""],"sourceRoot":""}
|