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.

564 lines
14 KiB

4 months ago
1 month ago
5 days ago
4 months ago
5 days ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
5 days ago
4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
1 week ago
3 months ago
5 days ago
3 months ago
3 months ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
4 months ago
1 month ago
1 month ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
1 month ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
5 days ago
4 months ago
3 months ago
5 days ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
  1. <template>
  2. <view class="content">
  3. <!-- <up-navbar leftText=" " title="什么东西?" :safeAreaInsetTop="true" :autoBack="true" :fixed="false" :bgColor="'transparent'" ></up-navbar> -->
  4. <up-navbar leftText=" " :leftIconColor="'#fff'" :safeAreaInsetTop="true" :autoBack="true" title=" " :fixed="true"
  5. :bgColor="'transparent'">
  6. </up-navbar>
  7. <view class="topBg" :class="{bigBg: curVipItem.type=='5'}">
  8. <view class="tag">朱XX成为VIP会员</view>
  9. <view class="tag">一次搞定</view>
  10. <view class="tag">五大特权</view>
  11. <view class="tag">最低仅需0.5/</view>
  12. <view class="tag" @click="$goPage('/pages/vip/vipQuestions/vipQuestions')">常见问题</view>
  13. <view class="allSubRow" v-if="curVipItem.type=='5'">
  14. <view class="allsbItem">
  15. <view class="icon">
  16. <image src="@/static/images/vip/allSbu1.png" mode=""></image>
  17. </view>
  18. <view class="text">科一VIP</view>
  19. </view>
  20. <view class="allsbItem">
  21. <view class="icon_arrow">
  22. <image src="@/static/images/vip/allsubR.png" mode=""></image>
  23. </view>
  24. </view>
  25. <view class="allsbItem">
  26. <view class="icon">
  27. <image src="@/static/images/vip/allSbu2.png" mode=""></image>
  28. </view>
  29. <view class="text">全科VIP</view>
  30. </view>
  31. <view class="allsbItem">
  32. <view class="icon_arrow">
  33. <image src="@/static/images/vip/allsubL.png" mode=""></image>
  34. </view>
  35. </view>
  36. <view class="allsbItem">
  37. <view class="icon">
  38. <image src="@/static/images/vip/allSbu3.png" mode=""></image>
  39. </view>
  40. <view class="text">科四VIP</view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="padding">
  45. <view class="allVip flex-b">
  46. <view class="vipItem" v-for="(item,index) in vipItemData" :key="index" :class="{active: curVipItem.name==item.name}" @click="chooseVip(item)" >
  47. <view class="lab">{{item.name}}</view>
  48. <view class="redT flex">
  49. <view class="price"><text>{{item.price}}/</text></view>
  50. <view class="day">{{item.days}}</view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="btnBox flex-b">
  55. <view class="whiteT flex">
  56. <view class="price"><text>{{ curVipItem.price }}/</text></view>
  57. <view class="day">{{curVipItem.days}}</view>
  58. </view>
  59. <view class="upgra" @click="goPaymentOrder()"></view>
  60. </view>
  61. <view class="h1_row flex-b">
  62. <view class="h1" ><text class="active">尊享权益</text></view>
  63. <view class="moreBox">
  64. <moreRight text="查看全部"/>
  65. </view>
  66. </view>
  67. <view class="card">
  68. <view class="tit_row flex">
  69. <view class="round">
  70. <image src="@/static/images/vip/leftq.png" mode=""></image>
  71. </view>
  72. <view class="tit">五大权益助力高效领证</view>
  73. <view class="round">
  74. <image src="@/static/images/vip/rightq.png" mode=""></image>
  75. </view>
  76. </view>
  77. <view class="tps">180天内无限使用</view>
  78. <view class="ul">
  79. <view class="li" v-for="(item,index) in tabData" :key="index">
  80. <view class="icon">
  81. <image :src="item.icon" mode=""></image>
  82. </view>
  83. <view class="txt">{{item.name}}</view>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="learning">
  88. <view class="h1_box">
  89. <view class="h1"> <text class="active">四步高效学习法</text> </view>
  90. </view>
  91. <view class="blueBg">
  92. <view class="blueTxt">拒绝费时费力 高效备考理论</view>
  93. <view class="ul">
  94. <view class="li" v-for="(item,index) in stepData" :key="index">
  95. <view class="flex">
  96. <view class="step">{{ item.num }}</view>
  97. <view class="unit">{{ item.oneTxt }}</view>
  98. </view>
  99. <view class="flex-b">
  100. <view class="leftImg">
  101. <image :src="item.icon" mode=""></image>
  102. </view>
  103. <view class="rightTxt">
  104. <view class="lab">精选试题</view>
  105. <view class="txt">提炼易错易考试题减少相似题目练习缩短备考时间</view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="comment">
  113. <view class="h1_row flex-b">
  114. <view class="h1" ><text class="active">VIP学员之声</text></view>
  115. <view class="moreBox" @click="lookMore">
  116. <moreRight text="查看全部" />
  117. </view>
  118. </view>
  119. <swiper next-margin="60rpx" previous-margin="20rpx">
  120. <swiper-item v-for="(item,index) in voiceList" :key="index">
  121. <view style="padding: 0 20rpx;">
  122. <commentItem :item="item"/>
  123. </view>
  124. </swiper-item>
  125. </swiper>
  126. </view>
  127. <up-popup v-model:show="show" mode="bottom" round="20rpx" @close="show=false" closeable>
  128. <view class="commentbox">
  129. <view class="tit">VIP学员之声</view>
  130. <view class="popComment">
  131. <commentItem v-for="(item,index) in voiceList" :item="item" :key="index"></commentItem>
  132. </view>
  133. </view>
  134. </up-popup>
  135. </view>
  136. </view>
  137. </template>
  138. <script setup>
  139. import { ref } from 'vue'
  140. import commentItem from './comp/commentItem.vue'
  141. import { memberGradelist, memberVoicePage } from '@/config/api.js'
  142. import carStore from '@/store/modules/car.js'
  143. let usecarStore = carStore()
  144. const tabData = ref([
  145. {name: '精选试题', icon: new URL('@/static/images/vip/vipicon2.png', import.meta.url).href, id: '1'},
  146. {name: '仿真考试', icon: new URL('@/static/images/vip/vipicon3.png', import.meta.url).href, id: '1'},
  147. {name: '考前密卷', icon: new URL('@/static/images/vip/vipicon4.png', import.meta.url).href, id: '1'},
  148. {name: '高频错题', icon: new URL('@/static/images/vip/vipicon5.png', import.meta.url).href, id: '1'},
  149. {name: '语音讲解', icon: new URL('@/static/images/vip/vipicon1.png', import.meta.url).href, id: '1'}
  150. ])
  151. const stepData = ref([
  152. {name: '精选试题', num: '一', oneTxt: '练', txt: '提炼易错、易考试题,减少相似题目练习,缩短备考时间', icon: new URL('@/static/images/vip/coveb.png', import.meta.url).href, id: '1'},
  153. {name: '还原真实考场', num: '二', oneTxt: '考', txt: '100%还原考试界面,磨练考试技巧、增强心理素质、提高考试成绩', icon: new URL('@/static/images/vip/covec.png', import.meta.url).href, id: '1'},
  154. {name: '考前秘卷', num: '三', oneTxt: '冲', txt: '考前精选 高频难题 直击考点 稳上高分', icon: new URL('@/static/images/vip/coved.png', import.meta.url).href, id: '1'},
  155. {name: '温故高频错题', num: '四', oneTxt: '复', txt: '汇总您的专属高频错题,全力攻破最后的难关', icon: new URL('@/static/images/vip/covea.png', import.meta.url).href, id: '1'},
  156. ])
  157. const curVipItem = ref({name: '全科VIP', price: 15, days: 180})
  158. const vipItemData = ref([
  159. // {name: '全科VIP', price: 15, day: 180},
  160. // {name: '科目一VIP', price: 10, day: 180},
  161. // {name: '科目四VIP', price: 10, day: 180},
  162. ])
  163. let show = ref(false)
  164. function lookMore() {
  165. show.value = true
  166. }
  167. function chooseVip(item) {
  168. curVipItem.value = item
  169. }
  170. async function memberGradelistFn() {
  171. const {data: res} = await memberGradelist(usecarStore.carInfo.carType)
  172. if(!res.length) return
  173. vipItemData.value = res
  174. console.log(res)
  175. }
  176. memberGradelistFn()
  177. let voiceList = ref([])
  178. async function memberVoicePageFn() {
  179. let obj = {
  180. "carType": usecarStore.carInfo.carType,
  181. "pageNum": 1,
  182. "pageSize": 6
  183. }
  184. const res = await memberVoicePage(obj)
  185. console.log(res)
  186. if(!res.rows.length) return
  187. voiceList.value = res.rows
  188. }
  189. memberVoicePageFn()
  190. function goPaymentOrder() {
  191. if(!curVipItem.value.id) return uni.$u.toast('请先选择要购买的类型')
  192. uni.navigateTo({
  193. url: `/pages/vip/paymentOrder/paymentOrder?name=${curVipItem.value.name}&id=${curVipItem.value.id}&price=${curVipItem.value.price}`
  194. })
  195. }
  196. </script>
  197. <style lang="scss" scoped>
  198. .allSubRow {
  199. display: flex;
  200. position: absolute;
  201. bottom: 160rpx;
  202. left: 0;
  203. width: 100%;
  204. padding: 0 30px;
  205. .allsbItem {
  206. flex: 1;
  207. display: flex;
  208. justify-content: center;
  209. flex-direction: column;
  210. align-items: center;
  211. .icon {
  212. width: 90rpx;
  213. height: 90rpx;
  214. }
  215. .icon_arrow {
  216. width: 38rpx;
  217. height: 36rpx;
  218. margin: 33rpx auto;
  219. }
  220. .text {
  221. margin-top: 18rpx;
  222. font-size: 28rpx;
  223. color: #fff;
  224. }
  225. }
  226. }
  227. image {
  228. display: block;
  229. width: 100%;
  230. height: 100%;
  231. }
  232. .content {
  233. width: 100%;
  234. .topBg {
  235. width: 100%;
  236. height: 550rpx;
  237. background: url('../../../static/images/bigImg/vipbg.png') no-repeat;
  238. background-size: 100% 100%;
  239. // padding-top: 88rpx;
  240. position: relative;
  241. &.bigBg {
  242. height: 794rpx;
  243. background: url('../../../static/images/bigImg/vipallBg.png') no-repeat;
  244. background-size: 100% 100%;
  245. }
  246. .tag {
  247. position: absolute;
  248. font-size: 24rpx;
  249. color: #FFF9F3;
  250. padding: 9rpx;
  251. background: url('../../../static/images/vip/tagbg.png') no-repeat;
  252. background-size: 100% 100%;
  253. &:nth-child(1) {
  254. left: 50rpx;
  255. top: 152rpx;
  256. }
  257. &:nth-child(2) {
  258. right: 78rpx;
  259. top: 182rpx;
  260. }
  261. &:nth-child(3) {
  262. left: 20rpx;
  263. top: 280rpx;
  264. }
  265. &:nth-child(4) {
  266. right: 20rpx;
  267. top: 406rpx;
  268. }
  269. &:nth-child(5) {
  270. right: 0;
  271. top: 215rpx;
  272. width: 48rpx;
  273. height: 176rpx;
  274. padding-top: 20rpx;
  275. background: url('../../../static/images/vip/qustr.png') no-repeat;
  276. background-size: 100% 100%;
  277. }
  278. }
  279. }
  280. .padding {
  281. position: relative;
  282. z-index: 99;
  283. }
  284. .allVip {
  285. transform: translateY(-96rpx);
  286. // top: -96rpx;
  287. .vipItem {
  288. width: 28%;
  289. height: 180rpx;
  290. background: #FFFFFF;
  291. border-radius: 10rpx;
  292. border: 2px solid #FDD5B7;
  293. &.active {
  294. transform: scale(1.3);
  295. background-color: #FDF5E4;
  296. border: 4px solid #EAA270;
  297. border-radius: 10px;
  298. }
  299. .lab {
  300. height: 96rpx;
  301. line-height: 96rpx;
  302. text-align: center;
  303. font-size: 28rpx;
  304. font-weight: 500;
  305. }
  306. .redT {
  307. padding-top: 16rpx;
  308. text-align: center;
  309. width: 100%;
  310. justify-content: center;
  311. border-top: 1px solid #eee;
  312. .price {
  313. color: #DA492D;
  314. font-size: 24rpx;
  315. text {
  316. font-size: 36rpx;
  317. }
  318. }
  319. .day {
  320. font-size: 24rpx;
  321. color: #9E492D;
  322. }
  323. }
  324. }
  325. }
  326. .btnBox.flex-b {
  327. width: 100%;
  328. height: 100rpx;
  329. background: #3776FF;
  330. border-radius: 50rpx;
  331. padding: 10rpx 10rpx 10rpx 32rpx;
  332. margin-top: -50rpx;
  333. .whiteT.flex {
  334. color: #fff;
  335. .price {
  336. font-size: 24rpx;
  337. text {
  338. font-size: 36rpx;
  339. font-weight: 700;
  340. }
  341. }
  342. .day {
  343. font-size: 24rpx;
  344. }
  345. }
  346. .upgra {
  347. width: 230rpx;
  348. height: 80rpx;
  349. // background: linear-gradient(0deg, #F7D0A5 0%, #FCEDD1 100%);
  350. background: url('../../../static/images/vipbtn.png') no-repeat;
  351. background-size: 100% 100%;
  352. border-radius: 40rpx;
  353. font-size: 36rpx;
  354. line-height: 80rpx;
  355. text-align: center;
  356. font-weight: 500;
  357. }
  358. }
  359. .h1_row {
  360. height: 118rpx;
  361. }
  362. .card {
  363. background: #FFFFFF;
  364. box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.04);
  365. border-radius: 20px;
  366. padding: 30rpx 20rpx;
  367. .tit_row.flex {
  368. width: 100%;
  369. justify-content: center;
  370. .round {
  371. width: 24rpx;
  372. height: 24rpx;
  373. }
  374. .tit {
  375. font-size: 28rpx;
  376. color: #333;
  377. padding: 0 20rpx;
  378. }
  379. }
  380. .tps {
  381. font-size: 24rpx;
  382. color: #ccc;
  383. padding: 20rpx 0 32rpx 0;
  384. text-align: center;
  385. }
  386. .ul {
  387. display: flex;
  388. .li {
  389. width: 20%;
  390. display: flex;
  391. flex-direction: column;
  392. align-items: center;
  393. justify-content: center;
  394. .icon {
  395. width: 84rpx;
  396. height: 84rpx;
  397. }
  398. .txt {
  399. font-size: 28rpx;
  400. margin-top: 14rpx;
  401. }
  402. }
  403. }
  404. }
  405. .learning {
  406. .h1_box {
  407. padding: 20rpx 0;
  408. }
  409. .h1 {
  410. }
  411. .blueBg {
  412. background: linear-gradient(180deg, #E3FEFF 0%, #F2FEFF 100%);
  413. border-radius: 20px;
  414. padding: 0 20rpx 20rpx 20rpx;
  415. margin-top: 20rpx;
  416. .blueTxt {
  417. line-height: 68rpx;
  418. text-align: center;
  419. font-size: 30rpx;
  420. font-weight: 700;
  421. color: $themC;
  422. }
  423. .ul {
  424. width: 100%;
  425. background: #FFFFFF;
  426. border-radius: 20px;
  427. .li {
  428. width: 100%;
  429. padding: 30rpx 0rpx;
  430. border-bottom: 1px solid #F4F4F4;
  431. .flex {
  432. .step {
  433. width: 125rpx;
  434. height: 50rpx;
  435. font-size: 28rpx;
  436. // background: #3776FF;
  437. // border-radius: 0px 0px 30rpx 0px;
  438. line-height: 42rpx;
  439. color: #fff;
  440. text-align: center;
  441. background: url('../../../static/images/vip/stepTag.png') no-repeat;
  442. background-size: 100% 100%;
  443. }
  444. .unit {
  445. font-family: PingFang SC;
  446. font-weight: bold;
  447. font-size: 36rpx;
  448. color: #333333;
  449. margin-left: 20rpx;
  450. }
  451. }
  452. .flex-b {
  453. padding-top: 30rpx;
  454. padding: 30rpx 20rpx 0 20rpx;
  455. .leftImg {
  456. width: 360rpx;
  457. height: 200rpx;
  458. background: #F4EED8;
  459. border-radius: 20rpx;
  460. overflow: hidden;
  461. }
  462. .rightTxt {
  463. padding-left: 20rpx;
  464. flex: 1;
  465. width: 0;
  466. .lab {
  467. font-weight: bold;
  468. font-size: 28rpx;
  469. color: #333333;
  470. line-height: 66rpx;
  471. }
  472. .txt {
  473. font-weight: 500;
  474. font-size: 24rpx;
  475. color: #666666;
  476. line-height: 34rpx;
  477. }
  478. }
  479. }
  480. }
  481. }
  482. }
  483. }
  484. }
  485. .comment {
  486. margin-top: 20rpx;
  487. }
  488. .commentbox {
  489. position: relative;
  490. .tit {
  491. height: 94rpx;
  492. line-height: 94rpx;
  493. position: absolute;
  494. left: 0;
  495. top: 0;
  496. border-bottom: 1px solid #F4F4F4;
  497. width: 100%;
  498. padding-left: 40rpx;
  499. font-weight: 700;
  500. background-color: #fff;
  501. z-index: 2;
  502. }
  503. .popComment {
  504. max-height: calc(100vh - 400rpx);
  505. overflow-y: auto;
  506. padding: 134rpx 40rpx 40rpx 40rpx;
  507. }
  508. }
  509. .u-popup__content__close {
  510. z-index: 2;
  511. }
  512. :deep .u-popup__content__close--top-right {
  513. z-index: 20;
  514. }
  515. </style>