index.vue 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097
  1. <template>
  2. <view class="vip-container">
  3. <view class="heard-box" :class="`active${selectedPrice}`">
  4. <!-- 自定义头部 -->
  5. <PageHeader title="" class="PageHeader">
  6. <template slot="right">
  7. <view class="more-options" @tap="toggleDropdown">
  8. <text class="fa fa-ellipsis-h"></text>
  9. <view class="dropdown-menu" v-if="showDropdown">
  10. <view class="dropdown-item" @tap="handleOption('vipRecord')">VIP记录</view>
  11. <view class="dropdown-item" @tap="handleOption('contact')">联系客服</view>
  12. </view>
  13. </view>
  14. </template>
  15. </PageHeader>
  16. <view class="reserveASeat"></view>
  17. <view class="vip-card-box">
  18. <!-- 顶部会员信息 -->
  19. <view class="vip-header">
  20. <view class="vip-info">
  21. <CircleAvatar class="vip-info-left" v-if="userInfo.avator" :src="userInfo.avator">
  22. </CircleAvatar>
  23. <view class="vip-info-right">
  24. <view class="vip-nickname">{{ userInfo.nickname }}</view>
  25. <view class="vip-expire" v-if="userInfo.is_vip">VIP到期时间: {{ userInfo.vip_date }}</view>
  26. <view class="vip-expire" v-else>暂未开通</view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="vip-content">
  33. <!-- 会员价格选择 -->
  34. <view class="vip-price-options">
  35. <view class="price-option" v-for="(item, index) in priceOptions" :key="index"
  36. :class="{ active: selectedPrice === index }" @tap="selectPrice(index)">
  37. <view class="price-left-img" v-if="item.limitedTimeGift">
  38. 限时优惠M币{{ item.limitedTimeGift }}
  39. </view>
  40. <view class="price-tag" v-if="item.tag">{{ item.tag }}</view>
  41. <view class="duration">{{ item.name }}</view>
  42. <view class="price"><text style="font-size: 40rpx;">¥</text>{{ item.price }}</view>
  43. <view class="originalPrice">¥{{ item.originalPrice }}</view>
  44. </view>
  45. </view>
  46. <uv-notice-bar direction="column" speed="250" color="#333"
  47. :text="memberInformation"></uv-notice-bar>
  48. <!-- 会员特权列表 -->
  49. <view class="vip-privileges">
  50. <view class="privileges-title">尊享特权</view>
  51. <view class="privileges-list">
  52. <view class="privilege-item" v-for="(item, index) in privileges" :key="index">
  53. <image class="privilege-icon" v-if="item.icon" :src="item.icon" mode="aspectFit"></image>
  54. <view class="privilege-info">
  55. <view class="privilege-name">{{ item.name }}</view>
  56. <view class="privilege-desc">{{ item.desc }}</view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="agree">
  62. <view class="agree2" @click="agreeChk()">
  63. <image mode="widthFix" src="../../static/icon/wd_icon_gouxuan04.png" v-if="is_agree == 0"></image>
  64. <image mode="widthFix" src="../../static/icon/wd_icon_gouxuan05.png" v-if="is_agree == 1"></image>
  65. </view>
  66. <view>
  67. 同意
  68. <text class="xy" @click="goPage('/pages/AboutUs/pay_xy')">
  69. 《充值服务协议》
  70. </text>,充值M币仅【萌创星球】使用点击查看
  71. <text class="xy" @click="goPage('yszc')">
  72. 充值记录
  73. </text>
  74. </view>
  75. </view>
  76. <view class="bottom-pay-btn-bottom"
  77. v-if="priceOptions && priceOptions[selectedPrice] && priceOptions[selectedPrice].price"
  78. @tap="showPaymentOptions">
  79. <text>¥{{ priceOptions[selectedPrice].price }}</text> 立即购买
  80. </view>
  81. </view>
  82. <!-- 支付方式选择弹窗 -->
  83. <uni-popup ref="paymentPopup" type="bottom">
  84. <view class="payment-popup">
  85. <view class="popup-header">
  86. <view class="popup-title">选择支付方式</view>
  87. <!-- <view class="popup-close" @tap="closePaymentPopup">×</view> -->
  88. </view>
  89. <view class="payment-options">
  90. <view class="payment-option" @tap="selectPayment('alipay')">
  91. <image class="payment-icon" src="../../static/icon/pay_ali.png" mode="aspectFit"></image>
  92. <view class="payment-name">支付宝支付</view>
  93. <image class="payment-select"
  94. :src="paymentMethod === 'alipay' ? '../../static/icon/wd_icon_gouxuan05.png' : '../../static/icon/wd_icon_gouxuan04.png'"
  95. mode="aspectFit"></image>
  96. </view>
  97. <view v-if="false" class="payment-option" @tap="selectPayment('wechat')">
  98. <image class="payment-icon" src="../../static/icon/pay_wx.png" mode="aspectFit"></image>
  99. <view class="payment-name">微信支付</view>
  100. <image class="payment-select"
  101. :src="paymentMethod === 'wechat' ? '../../static/icon/wd_icon_gouxuan05.png' : '../../static/icon/wd_icon_gouxuan04.png'"
  102. mode="aspectFit"></image>
  103. </view>
  104. </view>
  105. <view class="confirm-payment" @tap="confirmPayment">立即支付</view>
  106. </view>
  107. </uni-popup>
  108. <CustomerServicePopup ref="customerServicePopup"></CustomerServicePopup>
  109. </view>
  110. </template>
  111. <script>
  112. export default {
  113. data() {
  114. return {
  115. userInfo: {
  116. is_vip: false,
  117. vip_date: '2023-10-23'
  118. },
  119. memberInformation:[
  120. '墨色** 于10分钟前开通了月会员',
  121. '雾散时** 于24分钟前开通了季会员',
  122. 'Jox** 于17分钟前开通了月会员',
  123. '漂亮的** 于19分钟前开通了年会员',
  124. 'Ri** 于30分钟前开通了季会员',
  125. '山桃** 于15分钟前开通了月会员',
  126. 'zx** 于19分钟前开通了年会员',
  127. '** 于13分钟前开通了年会员',
  128. 'CarrollSo** 于21分钟前开通了季会员',
  129. 'Nanng** 于17分钟前开通了月会员',
  130. '芭比B** 于9分钟前开通了年会员',
  131. '小周不是** 于29分钟前开通了季会员',
  132. '落雪_** 于26分钟前开通了月会员',
  133. '雾岛听蝉9** 于19分钟前开通了年会员',
  134. '如** 于19分钟前开通了季会员',
  135. '言川Art** 于25分钟前开通了月会员',
  136. '兔子君mrbun** 于30分钟前开通了月会员',
  137. '呼哧Hac** 于6分钟前开通了年会员',
  138. 'alxe_不爱吹** 于17分钟前开通了季会员',
  139. '飞清** 于25分钟前开通了月会员',
  140. ],
  141. // memberInformation:[
  142. // '墨色轨迹于10分钟前开通了月会员',
  143. // '雾散时见山于24分钟前开通了季会员',
  144. // 'Joxin于17分钟前开通了月会员',
  145. // '漂亮的倾城于19分钟前开通了年会员',
  146. // 'Rick于30分钟前开通了季会员',
  147. // '山桃始华于15分钟前开通了月会员',
  148. // 'zx浊酒于19分钟前开通了年会员',
  149. // '桥九于13分钟前开通了年会员',
  150. // 'CarrollSong于21分钟前开通了季会员',
  151. // 'Nanngua于17分钟前开通了月会员',
  152. // '芭比Box于9分钟前开通了年会员',
  153. // '小周不是小粥于29分钟前开通了季会员',
  154. // '落雪_桃桃于26分钟前开通了月会员',
  155. // '雾岛听蝉999于19分钟前开通了年会员',
  156. // '如青稞于19分钟前开通了季会员',
  157. // '言川Artie于25分钟前开通了月会员',
  158. // '兔子君mrbunny于30分钟前开通了月会员',
  159. // '呼哧Hachi于6分钟前开通了年会员',
  160. // 'alxe_不爱吹泡泡于17分钟前开通了季会员',
  161. // '飞清云淡于25分钟前开通了月会员',
  162. // ],
  163. priceOptions: [
  164. ],
  165. selectedPrice: 1, // 默认选中的价格选项索引
  166. privileges: [{
  167. name: 'VIP专属通道',
  168. icon: '../../static/vip/hy_icon_quanyi01.png',
  169. desc: '创作加速,更快生成'
  170. },
  171. {
  172. name: '专属星源礼包',
  173. icon: '../../static/vip/hy_icon_quanyi02.png',
  174. desc: '每日登录领更多星源'
  175. },
  176. {
  177. name: '记忆增强',
  178. icon: '../../static/vip/hy_icon_quanyi03.png',
  179. desc: '创作加速,更快生成'
  180. },
  181. {
  182. name: '升级语言模型',
  183. icon: '../../static/vip/hy_icon_quanyi04.png',
  184. desc: '深度思考,提升50%'
  185. },
  186. {
  187. name: 'VIP专属通道',
  188. icon: '../../static/vip/hy_icon_quanyi05.png',
  189. desc: '创作加速,更快生成'
  190. },
  191. {
  192. name: '免广告',
  193. icon: '../../static/vip/hy_icon_quanyi06.png',
  194. desc: '无广告免费体验'
  195. }
  196. ],
  197. paymentMethod: 'alipay', // 默认支付方式
  198. privilegesHeight: 0, // 添加存储特权区域高度的变量
  199. showDropdown: false, // 控制下拉菜单显示状态
  200. is_agree: 0,
  201. linkid: '',
  202. }
  203. },
  204. onLoad() {
  205. // 获取用户信息,检查是否为VIP
  206. this.getUserInfo();
  207. },
  208. onReady() {
  209. // 页面渲染完成后获取vip-privileges的高度
  210. this.getPrivilegesHeight();
  211. },
  212. methods: {
  213. // 获取用户信息
  214. getUserInfo() {
  215. // 这里添加获取用户信息的API调用
  216. uni.request({
  217. url: this.$apiHost + "/User/getinfo",
  218. data: {
  219. uuid: getApp().globalData.uuid,
  220. skey: getApp().globalData.skey,
  221. },
  222. header: {
  223. "content-type": "application/json",
  224. sign: getApp().globalData.headerSign,
  225. },
  226. success: (res) => {
  227. if (res) {
  228. console.log("获取到用户信息", res.data);
  229. this.userInfo = res.data
  230. }
  231. },
  232. complete: (com) => {
  233. },
  234. fail: (e) => {
  235. console.log("----e:", e);
  236. },
  237. });
  238. uni.request({
  239. url: this.$apiHost + "/Member/vipList",
  240. data: {
  241. uuid: getApp().globalData.uuid,
  242. skey: getApp().globalData.skey,
  243. },
  244. header: {
  245. "content-type": "application/json",
  246. sign: getApp().globalData.headerSign,
  247. },
  248. success: (res) => {
  249. console.log("作品列表数据:", res.data);
  250. // 确保在任何情况下都完成加载
  251. if (
  252. res.data.success == "yes" &&
  253. res.data.list &&
  254. res.data.list.length > 0
  255. ) {
  256. console.log(res.data.list, "会员列表数据");
  257. res.data.list.reverse()
  258. res.data.list.forEach(v => {
  259. this.priceOptions.push({
  260. id: v.id,
  261. limitedTimeGift: v.price_market - v.price,
  262. name: v.name,
  263. price: v.price,
  264. originalPrice: v.price_market,
  265. tag: v.tag,
  266. numDay: v.num_day,
  267. numSong: v.num_song,
  268. })
  269. });
  270. this.priceOptions[1].tag = "推荐"
  271. console.log(this.priceOptions, "会员列表数据");
  272. } else {
  273. // priceOptions: [{
  274. // name: '月度VIP',
  275. // price: '98',
  276. // originalPrice: '168',
  277. // tag: '',
  278. // limitedTimeGift: ""
  279. // },
  280. // {
  281. // name: '季度VIP',
  282. // price: '198',
  283. // originalPrice: '268',
  284. // tag: '推荐',
  285. // limitedTimeGift: "100"
  286. // },
  287. // {
  288. // name: '年度VIP',
  289. // price: '398',
  290. // originalPrice: '498',
  291. // tag: '',
  292. // limitedTimeGift: "1500"
  293. // }
  294. // ],
  295. }
  296. },
  297. complete: () => {
  298. },
  299. fail: (e) => {
  300. console.log("请求关注列表失败:", e);
  301. },
  302. });
  303. },
  304. // 选择价格选项
  305. selectPrice(index) {
  306. this.selectedPrice = index;
  307. },
  308. // 显示支付方式选择弹窗
  309. showPaymentOptions() {
  310. if (this.is_agree == 0) {
  311. uni.showToast({
  312. title: "请确认并选择协议",
  313. icon: "none",
  314. });
  315. return;
  316. }
  317. this.$refs.paymentPopup.open();
  318. },
  319. // 关闭支付方式选择弹窗
  320. closePaymentPopup() {
  321. this.$refs.paymentPopup.close();
  322. },
  323. // 选择支付方式
  324. selectPayment(method) {
  325. this.paymentMethod = method;
  326. },
  327. // 确认支付
  328. confirmPayment() {
  329. if (!this.priceOptions || !this.priceOptions[this.selectedPrice]) {
  330. uni.showToast({
  331. title: '请选择会员套餐',
  332. icon: 'none'
  333. });
  334. return;
  335. }
  336. if (this.is_agree == 0) {
  337. uni.showToast({
  338. title: "请确认并选择协议",
  339. icon: "none",
  340. });
  341. return;
  342. }
  343. this.submitPayment();
  344. },
  345. // 提交支付
  346. submitPayment() {
  347. let that = this;
  348. uni.showLoading({
  349. title: '创建订单中...'
  350. });
  351. uni.request({
  352. url: this.$apiHost + '/Order/submit',
  353. data: {
  354. uuid: getApp().globalData.uuid,
  355. skey: getApp().globalData.skey,
  356. product_id: this.priceOptions[this.selectedPrice].id,
  357. type: 'buyVip',
  358. payType: this.paymentMethod
  359. },
  360. header: {
  361. 'content-type': 'application/json',
  362. sign: getApp().globalData.headerSign
  363. },
  364. success: (res) => {
  365. console.log("支付订单创建结果:", res.data);
  366. if (res.data.success == 'yes') {
  367. this.linkid = res.data.linkid;
  368. this.$refs.paymentPopup.close();
  369. // 根据支付方式调用不同的支付接口
  370. if (this.paymentMethod === 'wechat') {
  371. uni.requestPayment({
  372. provider: "wxpay",
  373. orderInfo: {
  374. appid: res.data.wepay.appid,
  375. partnerid: res.data.wepay.partnerid,
  376. prepayid: res.data.wepay.prepayid,
  377. package: "Sign=WXPay",
  378. noncestr: res.data.wepay.noncestr,
  379. timestamp: res.data.wepay.timestamp,
  380. sign: res.data.wepay.sign
  381. },
  382. success: (payRes) => {
  383. console.log("微信支付成功:", payRes);
  384. that.checkPayStatus();
  385. },
  386. fail: (err) => {
  387. console.log("微信支付失败:", err);
  388. uni.hideLoading();
  389. uni.showToast({
  390. title: '支付取消',
  391. icon: 'none'
  392. });
  393. }
  394. });
  395. } else if (this.paymentMethod === 'alipay') {
  396. uni.requestPayment({
  397. provider: "alipay",
  398. orderInfo: res.data.ali_pay,
  399. success: (payRes) => {
  400. console.log("支付宝支付成功:", payRes);
  401. that.checkPayStatus();
  402. },
  403. fail: (err) => {
  404. console.log("支付宝支付失败:", err);
  405. uni.hideLoading();
  406. uni.showToast({
  407. title: '支付取消',
  408. icon: 'none'
  409. });
  410. }
  411. });
  412. }
  413. } else {
  414. uni.hideLoading();
  415. uni.showToast({
  416. title: res.data.msg || '创建订单失败',
  417. icon: "error"
  418. });
  419. }
  420. },
  421. fail: (err) => {
  422. console.log("创建订单失败:", err);
  423. uni.hideLoading();
  424. uni.showToast({
  425. title: '网络错误,请稍后重试',
  426. icon: "error"
  427. });
  428. }
  429. });
  430. },
  431. // 检查支付状态
  432. checkPayStatus() {
  433. let that = this;
  434. uni.request({
  435. url: this.$apiHost + "/Order/getstatus",
  436. data: {
  437. uuid: getApp().globalData.uuid,
  438. linkid: this.linkid,
  439. },
  440. header: {
  441. "content-type": "application/json",
  442. 'sign': getApp().globalData.headerSign
  443. },
  444. success: (res) => {
  445. if (res.data.success == "yes") {
  446. uni.hideLoading();
  447. uni.showToast({
  448. title: "充值成功",
  449. icon: "none",
  450. });
  451. // 支付成功后刷新用户信息
  452. this.getUserInfo();
  453. } else {
  454. setTimeout(function () {
  455. that.checkPayStatus();
  456. }, 1000);
  457. }
  458. },
  459. fail: (err) => {
  460. console.log("检查支付状态失败:", err);
  461. uni.hideLoading();
  462. uni.showToast({
  463. title: "网络错误,请重试",
  464. icon: "none"
  465. });
  466. }
  467. });
  468. },
  469. // 获取特权列表区域的高度
  470. getPrivilegesHeight() {
  471. const query = uni.createSelectorQuery().in(this);
  472. query.select('.vip-privileges').boundingClientRect(data => {
  473. if (data) {
  474. this.privilegesHeight = data.height;
  475. console.log('特权区域高度:', this.privilegesHeight);
  476. } else {
  477. console.log('未能获取到特权区域元素');
  478. // 如果首次获取失败,可以添加延迟重试
  479. setTimeout(() => {
  480. this.getPrivilegesHeight();
  481. }, 100);
  482. }
  483. }).exec();
  484. },
  485. // 如果需要在某些数据变化后重新获取高度
  486. updatePrivilegesHeight() {
  487. this.$nextTick(() => {
  488. this.getPrivilegesHeight();
  489. });
  490. },
  491. // 切换下拉菜单显示状态
  492. toggleDropdown() {
  493. this.showDropdown = !this.showDropdown;
  494. },
  495. // 处理下拉菜单选项点击
  496. handleOption(type) {
  497. this.showDropdown = false;
  498. switch (type) {
  499. case 'vipRecord':
  500. uni.navigateTo({
  501. url: '/pages/vip/record?type=vip'
  502. });
  503. break;
  504. case 'help':
  505. uni.navigateTo({
  506. url: '/pages/help/index'
  507. });
  508. break;
  509. case 'contact':
  510. this.openCustomPopup();
  511. break;
  512. }
  513. },
  514. openCustomPopup() {
  515. this.$refs.customerServicePopup.open();
  516. },
  517. goPage(page) {
  518. uni.navigateTo({
  519. url: page,
  520. })
  521. }, agreeChk() {
  522. if (this.is_agree == 0) {
  523. this.is_agree = 1;
  524. } else {
  525. this.is_agree = 0;
  526. }
  527. },
  528. }
  529. }
  530. </script>
  531. <style lang="scss">
  532. // 导入FontAwesome
  533. @import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
  534. .vip-container {
  535. min-height: 100vh;
  536. padding-bottom: 100rpx;
  537. .heard-box {
  538. .PageHeader {
  539. background-image: url("@/static/vip/hy_bg_01.png");
  540. background-size: 100% auto;
  541. background-repeat: no-repeat;
  542. background-position-y: -var(--status-bar-height);
  543. ::v-deep .uni-icons {
  544. color: #fff !important;
  545. }
  546. .fa {
  547. color: #fff;
  548. }
  549. }
  550. .vip-card-box {
  551. width: 100%;
  552. padding: 0 36rpx;
  553. height: 300rpx;
  554. padding-top: 50rpx;
  555. .vip-header {
  556. width: 100%;
  557. height: 210rpx;
  558. padding-left: 28rpx;
  559. padding-top: 110rpx;
  560. .vip-info {
  561. display: flex;
  562. .vip-info-left {
  563. width: 60rpx;
  564. height: 60rpx;
  565. border: #fff solid 2rpx;
  566. margin-right: 10rpx;
  567. }
  568. .vip-info-right {
  569. .vip-nickname {
  570. font-size: 24rpx;
  571. font-weight: 400;
  572. font-family: 'PingFang SC-Bold';
  573. }
  574. .vip-expire {
  575. font-size: 20rpx;
  576. font-family: 'PingFang SC-Medium';
  577. }
  578. }
  579. }
  580. }
  581. }
  582. &.active0 {
  583. background: url("@/static/vip/hy_bg_01.png") center/100% 100% no-repeat;
  584. .PageHeader {
  585. background-image: url("@/static/vip/hy_bg_01.png");
  586. }
  587. .vip-card-box {
  588. .vip-header {
  589. background: url("@/static/vip/hy_card_01.png") top center/100% auto no-repeat;
  590. .vip-info {
  591. .vip-nickname {
  592. color: #1f1f1f;
  593. }
  594. .vip-expire {
  595. color: rgba(31, 31, 31, 0.7);
  596. }
  597. }
  598. }
  599. }
  600. }
  601. &.active1 {
  602. background: url("@/static/vip/hy_bg_02.png") center/100% 100% no-repeat;
  603. .PageHeader {
  604. background-image: url("@/static/vip/hy_bg_02.png");
  605. }
  606. .vip-card-box {
  607. .vip-header {
  608. background: url("@/static/vip/hy_card_02.png") top center/100% auto no-repeat;
  609. .vip-info {
  610. .vip-nickname {
  611. color: #FFE590;
  612. }
  613. .vip-expire {
  614. color: rgba(255, 229, 144, 0.35);
  615. }
  616. }
  617. }
  618. }
  619. }
  620. &.active2 {
  621. background: url("@/static/vip/hy_bg_03.png") center/100% 100% no-repeat;
  622. .PageHeader {
  623. background-image: url("@/static/vip/hy_bg_03.png");
  624. }
  625. .vip-card-box {
  626. .vip-header {
  627. background: url("@/static/vip/hy_card_03.png") top center/100% auto no-repeat;
  628. .vip-info {
  629. .vip-nickname {
  630. color: #FFFFFF;
  631. }
  632. .vip-expire {
  633. color: rgba(255, 255, 255, 0.35);
  634. }
  635. }
  636. }
  637. }
  638. }
  639. .reserveASeat {
  640. width: 100%;
  641. background: transparent;
  642. height: calc(var(--status-bar-height) + 90rpx);
  643. }
  644. }
  645. .vip-content {
  646. background: #fff;
  647. border-top-left-radius: 32rpx;
  648. border-top-right-radius: 32rpx;
  649. .vip-price-options {
  650. display: flex;
  651. justify-content: space-between;
  652. padding: 32rpx;
  653. margin-top: -60rpx;
  654. .price-option {
  655. width: 218rpx;
  656. height: 250rpx;
  657. background-color: #fff;
  658. border-radius: 20rpx;
  659. display: flex;
  660. flex-direction: column;
  661. justify-content: center;
  662. align-items: center;
  663. position: relative;
  664. transition: all 0.3s;
  665. border-radius: 20rpx;
  666. border: 4rpx solid #E9E9E9;
  667. padding-top: 48rpx;
  668. padding-bottom: 34rpx;
  669. .price-left-img {
  670. min-width: 160rpx;
  671. height: 48rpx;
  672. padding: 6rpx 12rpx 14rpx 12rpx;
  673. position: absolute;
  674. left: -6rpx;
  675. top: -4rpx;
  676. background: url("../../static/vip/hy_biaoqian_02.png") center/100% 100% no-repeat;
  677. font-weight: 400;
  678. font-size: 10px;
  679. color: #898888;
  680. display: flex;
  681. align-items: center;
  682. justify-content: center;
  683. }
  684. .price-tag {
  685. position: absolute;
  686. bottom: -4rpx;
  687. right: -4rpx;
  688. font-family: 'PingFang SC-Bold';
  689. font-weight: 400;
  690. background-color: #4A4A4A;
  691. color: #ffffff;
  692. font-size: 24rpx;
  693. width: 86rpx;
  694. height: 36rpx;
  695. border-top-left-radius: 20rpx;
  696. border-bottom-right-radius: 20rpx;
  697. display: flex;
  698. align-items: center;
  699. justify-content: center;
  700. }
  701. .duration {
  702. font-family: 'PingFang SC-Bold';
  703. font-weight: 400;
  704. font-size: 32rpx;
  705. color: #1F1F1F;
  706. }
  707. .price {
  708. font-size: 68rpx;
  709. font-weight: bold;
  710. color: #4A4A4A;
  711. padding-top: 10rpx;
  712. padding-bottom: 5rpx;
  713. }
  714. .originalPrice {
  715. font-size: 28rpx;
  716. color: #999999;
  717. text-decoration: line-through;
  718. }
  719. &.active {
  720. background: linear-gradient(to bottom, #F0FFD9, rgba(0, 0, 0, 0));
  721. border-color: #1f1f1f;
  722. transform: scale(1.05);
  723. .price-left-img {
  724. background: url("../../static/vip/hy_biaoqian_01.png") center/100% no-repeat;
  725. color: #ACF934;
  726. }
  727. .price {
  728. color: #7CCB00;
  729. }
  730. }
  731. }
  732. }
  733. .vip-privileges {
  734. padding: 0 30rpx;
  735. .privileges-title {
  736. font-family: 'PingFang SC-Bold';
  737. font-weight: 400;
  738. font-size: 16px;
  739. color: #1F1F1F;
  740. padding-top: 36rpx;
  741. padding-bottom: 22rpx;
  742. }
  743. .privileges-list {
  744. display: flex;
  745. flex-wrap: wrap;
  746. justify-content: space-between;
  747. }
  748. .privilege-item {
  749. width: 330rpx;
  750. height: 136rpx;
  751. flex-grow: 0;
  752. background-color: #F7F7F7;
  753. border-radius: 16rpx;
  754. padding: 26rpx;
  755. padding-right: 0;
  756. // padding-left: 20rpx;
  757. margin-bottom: 26rpx;
  758. display: flex;
  759. align-items: center;
  760. }
  761. .privilege-icon {
  762. width: 84rpx;
  763. height: 84rpx;
  764. margin-right: 20rpx;
  765. }
  766. .privilege-name {
  767. font-size: 28rpx;
  768. font-weight: 400;
  769. color: #1C2C00;
  770. margin-bottom: 10rpx;
  771. }
  772. .privilege-desc {
  773. font-size: 20rpx;
  774. color: #999999;
  775. }
  776. }
  777. .bottom-pay-btn-bottom {
  778. width: 626rpx;
  779. height: 88rpx;
  780. background: linear-gradient(90deg, #1F1F1F 0%, #444444 100%);
  781. border-radius: 76rpx;
  782. margin: 0 auto;
  783. margin-top: 70rpx;
  784. color: #ACF934;
  785. display: flex;
  786. align-items: center;
  787. justify-content: center;
  788. font-size: 32rpx;
  789. line-height: 0;
  790. text {
  791. font-size: 44rpx;
  792. display: inline-block;
  793. margin-right: 10rpx;
  794. }
  795. }
  796. }
  797. .uv-notice-bar {
  798. background-color: #F2F6F2 !important;
  799. border-radius: 108rpx;
  800. width: calc(100% - 64rpx);
  801. margin: 0 auto;
  802. ::v-deep.uvicon-volume {
  803. color: #333 !important;
  804. }
  805. }
  806. .bottom-pay-btn {
  807. position: fixed;
  808. bottom: 0;
  809. left: 0;
  810. right: 0;
  811. display: flex;
  812. align-items: center;
  813. justify-content: space-between;
  814. background-color: #242424;
  815. padding: 30rpx 40rpx;
  816. box-sizing: border-box;
  817. .total-price {
  818. color: #cccccc;
  819. font-size: 28rpx;
  820. }
  821. .price-value {
  822. color: #ffffff;
  823. font-size: 40rpx;
  824. font-weight: bold;
  825. }
  826. .pay-button {
  827. background: linear-gradient(to right, #9758DE, #5F17DD);
  828. color: #ffffff;
  829. padding: 20rpx 60rpx;
  830. border-radius: 50rpx;
  831. font-size: 32rpx;
  832. }
  833. }
  834. /* 支付方式选择弹窗样式 */
  835. .payment-popup {
  836. background-color: #ffffff;
  837. border-radius: 24rpx 24rpx 0 0;
  838. padding: 40rpx;
  839. .popup-header {
  840. display: flex;
  841. justify-content: center;
  842. align-items: center;
  843. margin-bottom: 40rpx;
  844. position: relative;
  845. }
  846. .popup-title {
  847. font-size: 32rpx;
  848. color: #333;
  849. font-weight: 500;
  850. text-align: center;
  851. }
  852. .popup-close {
  853. position: absolute;
  854. right: 0;
  855. top: 50%;
  856. transform: translateY(-50%);
  857. font-size: 48rpx;
  858. color: #999999;
  859. line-height: 1;
  860. }
  861. .payment-options {
  862. margin-bottom: 40rpx;
  863. }
  864. .payment-option {
  865. display: flex;
  866. align-items: center;
  867. padding: 32rpx 0;
  868. border-bottom: 1rpx solid #EEEEEE;
  869. &:last-child {
  870. border-bottom: none;
  871. }
  872. }
  873. .payment-icon {
  874. width: 72rpx;
  875. height: 72rpx;
  876. margin-right: 24rpx;
  877. }
  878. .payment-name {
  879. flex: 1;
  880. color: #333;
  881. font-size: 32rpx;
  882. }
  883. .payment-select {
  884. width: 40rpx;
  885. height: 40rpx;
  886. }
  887. .confirm-payment {
  888. background: #333333;
  889. color: #ACF934;
  890. text-align: center;
  891. padding: 28rpx 0;
  892. border-radius: 76rpx;
  893. font-size: 32rpx;
  894. margin-top: 60rpx;
  895. font-weight: 500;
  896. }
  897. }
  898. ::v-deep .uni-popup .uni-popup__wrapper {
  899. border-radius: 24rpx 24rpx 0 0;
  900. }
  901. ::v-deep .uni-popup .uni-popup__wrapper-box {
  902. border-radius: 24rpx 24rpx 0 0;
  903. }
  904. .more-options {
  905. position: relative;
  906. display: inline-block;
  907. .fa {
  908. font-size: 40rpx;
  909. padding: 0 20rpx;
  910. }
  911. .dropdown-menu {
  912. position: absolute;
  913. top: calc(100% + 10rpx);
  914. right: 20rpx;
  915. background-color: #ffffff;
  916. border-radius: 20rpx;
  917. padding: 0;
  918. width: 200rpx;
  919. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  920. z-index: 100;
  921. transform-origin: top right;
  922. animation: dropdownAnimation 0.2s ease-out;
  923. .dropdown-item {
  924. padding: 24rpx 0;
  925. color: #333333;
  926. font-size: 28rpx;
  927. position: relative;
  928. text-align: center;
  929. &:not(:last-child)::after {
  930. content: '';
  931. position: absolute;
  932. left: 0;
  933. right: 0;
  934. bottom: 0;
  935. height: 1rpx;
  936. background-color: #EEEEEE;
  937. }
  938. &:active {
  939. background-color: #f8f8f8;
  940. }
  941. }
  942. }
  943. }
  944. @keyframes dropdownAnimation {
  945. 0% {
  946. opacity: 0;
  947. transform: scale(0.95) translateY(-5rpx);
  948. }
  949. 100% {
  950. opacity: 1;
  951. transform: scale(1) translateY(0);
  952. }
  953. }
  954. }
  955. .agree {
  956. width: 90%;
  957. margin: 0 auto;
  958. color: #666666;
  959. font-size: 24rpx;
  960. margin-top: 40rpx;
  961. display: flex;
  962. align-items: center;
  963. text-align: left;
  964. line-height: 32rpx;
  965. .agree2 {
  966. display: flex;
  967. flex-direction: row;
  968. justify-content: flex-start;
  969. align-items: center;
  970. padding-right: 8rpx;
  971. flex-shrink: 0;
  972. }
  973. .xy {
  974. color: #0084FF;
  975. display: inline;
  976. }
  977. image {
  978. width: 32rpx;
  979. height: 32rpx;
  980. }
  981. }
  982. </style>