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.

562 lines
14 KiB

4 months ago
1 month ago
4 months 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
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
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
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
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">XXXX成为VIP会员</view>
  9. <view class="tag">一次搞定</view>
  10. <view class="tag">五大特权</view>
  11. <view class="tag">最低仅需xx元/</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.day}}</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, day: 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. .allVip {
  281. transform: translateY(-96rpx);
  282. position: relative;
  283. z-index: 99;
  284. // top: -96rpx;
  285. .vipItem {
  286. width: 28%;
  287. height: 180rpx;
  288. background: #FFFFFF;
  289. border-radius: 10rpx;
  290. border: 2px solid #FDD5B7;
  291. &.active {
  292. transform: scale(1.3);
  293. background-color: #FDF5E4;
  294. border: 4px solid #EAA270;
  295. border-radius: 10px;
  296. }
  297. .lab {
  298. height: 96rpx;
  299. line-height: 96rpx;
  300. text-align: center;
  301. font-size: 28rpx;
  302. font-weight: 500;
  303. }
  304. .redT {
  305. padding-top: 16rpx;
  306. text-align: center;
  307. width: 100%;
  308. justify-content: center;
  309. border-top: 1px solid #eee;
  310. .price {
  311. color: #DA492D;
  312. font-size: 24rpx;
  313. text {
  314. font-size: 36rpx;
  315. }
  316. }
  317. .day {
  318. font-size: 24rpx;
  319. color: #9E492D;
  320. }
  321. }
  322. }
  323. }
  324. .btnBox.flex-b {
  325. width: 100%;
  326. height: 100rpx;
  327. background: #3776FF;
  328. border-radius: 50rpx;
  329. padding: 10rpx 10rpx 10rpx 32rpx;
  330. margin-top: -50rpx;
  331. .whiteT.flex {
  332. color: #fff;
  333. .price {
  334. font-size: 24rpx;
  335. text {
  336. font-size: 36rpx;
  337. font-weight: 700;
  338. }
  339. }
  340. .day {
  341. font-size: 24rpx;
  342. }
  343. }
  344. .upgra {
  345. width: 230rpx;
  346. height: 80rpx;
  347. // background: linear-gradient(0deg, #F7D0A5 0%, #FCEDD1 100%);
  348. background: url('../../../static/images/vipbtn.png') no-repeat;
  349. background-size: 100% 100%;
  350. border-radius: 40rpx;
  351. font-size: 36rpx;
  352. line-height: 80rpx;
  353. text-align: center;
  354. font-weight: 500;
  355. }
  356. }
  357. .h1_row {
  358. height: 118rpx;
  359. }
  360. .card {
  361. background: #FFFFFF;
  362. box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.04);
  363. border-radius: 20px;
  364. padding: 30rpx 20rpx;
  365. .tit_row.flex {
  366. width: 100%;
  367. justify-content: center;
  368. .round {
  369. width: 24rpx;
  370. height: 24rpx;
  371. }
  372. .tit {
  373. font-size: 28rpx;
  374. color: #333;
  375. padding: 0 20rpx;
  376. }
  377. }
  378. .tps {
  379. font-size: 24rpx;
  380. color: #ccc;
  381. padding: 20rpx 0 32rpx 0;
  382. text-align: center;
  383. }
  384. .ul {
  385. display: flex;
  386. .li {
  387. width: 20%;
  388. display: flex;
  389. flex-direction: column;
  390. align-items: center;
  391. justify-content: center;
  392. .icon {
  393. width: 84rpx;
  394. height: 84rpx;
  395. }
  396. .txt {
  397. font-size: 28rpx;
  398. margin-top: 14rpx;
  399. }
  400. }
  401. }
  402. }
  403. .learning {
  404. .h1_box {
  405. padding: 20rpx 0;
  406. }
  407. .h1 {
  408. }
  409. .blueBg {
  410. background: linear-gradient(180deg, #E3FEFF 0%, #F2FEFF 100%);
  411. border-radius: 20px;
  412. padding: 0 20rpx 20rpx 20rpx;
  413. margin-top: 20rpx;
  414. .blueTxt {
  415. line-height: 68rpx;
  416. text-align: center;
  417. font-size: 30rpx;
  418. font-weight: 700;
  419. color: $themC;
  420. }
  421. .ul {
  422. width: 100%;
  423. background: #FFFFFF;
  424. border-radius: 20px;
  425. .li {
  426. width: 100%;
  427. padding: 30rpx 0rpx;
  428. border-bottom: 1px solid #F4F4F4;
  429. .flex {
  430. .step {
  431. width: 125rpx;
  432. height: 50rpx;
  433. font-size: 28rpx;
  434. // background: #3776FF;
  435. // border-radius: 0px 0px 30rpx 0px;
  436. line-height: 42rpx;
  437. color: #fff;
  438. text-align: center;
  439. background: url('../../../static/images/vip/stepTag.png') no-repeat;
  440. background-size: 100% 100%;
  441. }
  442. .unit {
  443. font-family: PingFang SC;
  444. font-weight: bold;
  445. font-size: 36rpx;
  446. color: #333333;
  447. margin-left: 20rpx;
  448. }
  449. }
  450. .flex-b {
  451. padding-top: 30rpx;
  452. padding: 30rpx 20rpx 0 20rpx;
  453. .leftImg {
  454. width: 360rpx;
  455. height: 200rpx;
  456. background: #F4EED8;
  457. border-radius: 20rpx;
  458. overflow: hidden;
  459. }
  460. .rightTxt {
  461. padding-left: 20rpx;
  462. flex: 1;
  463. width: 0;
  464. .lab {
  465. font-weight: bold;
  466. font-size: 28rpx;
  467. color: #333333;
  468. line-height: 66rpx;
  469. }
  470. .txt {
  471. font-weight: 500;
  472. font-size: 24rpx;
  473. color: #666666;
  474. line-height: 34rpx;
  475. }
  476. }
  477. }
  478. }
  479. }
  480. }
  481. }
  482. }
  483. .comment {
  484. margin-top: 20rpx;
  485. }
  486. .commentbox {
  487. position: relative;
  488. .tit {
  489. height: 94rpx;
  490. line-height: 94rpx;
  491. position: absolute;
  492. left: 0;
  493. top: 0;
  494. border-bottom: 1px solid #F4F4F4;
  495. width: 100%;
  496. padding-left: 40rpx;
  497. font-weight: 700;
  498. background-color: #fff;
  499. z-index: 2;
  500. }
  501. .popComment {
  502. max-height: calc(100vh - 400rpx);
  503. overflow-y: auto;
  504. padding: 134rpx 40rpx 40rpx 40rpx;
  505. }
  506. }
  507. .u-popup__content__close {
  508. z-index: 2;
  509. }
  510. :deep .u-popup__content__close--top-right {
  511. z-index: 20;
  512. }
  513. </style>