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.

526 lines
13 KiB

3 months ago
4 weeks ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 weeks ago
4 weeks ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 weeks ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 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.name=='全科VIP'}">
  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.name=='全科VIP'">
  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.day}}</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"></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 6" :key="index">
  121. <view style="padding: 0 20rpx;">
  122. <commentItem/>
  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 10" :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. const tabData = ref([
  142. {name: '精选试题', icon: new URL('@/static/images/vip/vipicon2.png', import.meta.url).href, id: '1'},
  143. {name: '仿真考试', icon: new URL('@/static/images/vip/vipicon3.png', import.meta.url).href, id: '1'},
  144. {name: '考前密卷', icon: new URL('@/static/images/vip/vipicon4.png', import.meta.url).href, id: '1'},
  145. {name: '高频错题', icon: new URL('@/static/images/vip/vipicon5.png', import.meta.url).href, id: '1'},
  146. {name: '语音讲解', icon: new URL('@/static/images/vip/vipicon1.png', import.meta.url).href, id: '1'}
  147. ])
  148. const stepData = ref([
  149. {name: '精选试题', num: '一', oneTxt: '练', txt: '提炼易错、易考试题,减少相似题目练习,缩短备考时间', icon: new URL('@/static/images/vip/coveb.png', import.meta.url).href, id: '1'},
  150. {name: '还原真实考场', num: '二', oneTxt: '考', txt: '100%还原考试界面,磨练考试技巧、增强心理素质、提高考试成绩', icon: new URL('@/static/images/vip/covec.png', import.meta.url).href, id: '1'},
  151. {name: '考前秘卷', num: '三', oneTxt: '冲', txt: '考前精选 高频难题 直击考点 稳上高分', icon: new URL('@/static/images/vip/coved.png', import.meta.url).href, id: '1'},
  152. {name: '温故高频错题', num: '四', oneTxt: '复', txt: '汇总您的专属高频错题,全力攻破最后的难关', icon: new URL('@/static/images/vip/covea.png', import.meta.url).href, id: '1'},
  153. ])
  154. const curVipItem = ref({name: '全科VIP', price: 15, day: 180})
  155. const vipItemData = ref([
  156. {name: '全科VIP', price: 15, day: 180},
  157. {name: '科目一VIP', price: 10, day: 180},
  158. {name: '科目四VIP', price: 10, day: 180},
  159. ])
  160. let show = ref(false)
  161. function lookMore() {
  162. console.log('我是一个h5')
  163. }
  164. function chooseVip(item) {
  165. curVipItem.value = item
  166. }
  167. </script>
  168. <style lang="scss" scoped>
  169. .allSubRow {
  170. display: flex;
  171. position: absolute;
  172. bottom: 160rpx;
  173. left: 0;
  174. width: 100%;
  175. padding: 0 30px;
  176. .allsbItem {
  177. flex: 1;
  178. display: flex;
  179. justify-content: center;
  180. flex-direction: column;
  181. align-items: center;
  182. .icon {
  183. width: 90rpx;
  184. height: 90rpx;
  185. }
  186. .icon_arrow {
  187. width: 38rpx;
  188. height: 36rpx;
  189. margin: 33rpx auto;
  190. }
  191. .text {
  192. margin-top: 18rpx;
  193. font-size: 28rpx;
  194. color: #fff;
  195. }
  196. }
  197. }
  198. image {
  199. display: block;
  200. width: 100%;
  201. height: 100%;
  202. }
  203. .content {
  204. width: 100%;
  205. .topBg {
  206. width: 100%;
  207. height: 550rpx;
  208. background: url('../../../static/images/bigImg/vipbg.png') no-repeat;
  209. background-size: 100% 100%;
  210. // padding-top: 88rpx;
  211. position: relative;
  212. &.bigBg {
  213. height: 794rpx;
  214. background: url('../../../static/images/bigImg/vipallBg.png') no-repeat;
  215. background-size: 100% 100%;
  216. }
  217. .tag {
  218. position: absolute;
  219. font-size: 24rpx;
  220. color: #FFF9F3;
  221. padding: 9rpx;
  222. background: url('../../../static/images/vip/tagbg.png') no-repeat;
  223. background-size: 100% 100%;
  224. &:nth-child(1) {
  225. left: 50rpx;
  226. top: 152rpx;
  227. }
  228. &:nth-child(2) {
  229. right: 78rpx;
  230. top: 182rpx;
  231. }
  232. &:nth-child(3) {
  233. left: 20rpx;
  234. top: 280rpx;
  235. }
  236. &:nth-child(4) {
  237. right: 20rpx;
  238. top: 406rpx;
  239. }
  240. &:nth-child(5) {
  241. right: 0;
  242. top: 215rpx;
  243. width: 48rpx;
  244. height: 176rpx;
  245. padding-top: 20rpx;
  246. background: url('../../../static/images/vip/qustr.png') no-repeat;
  247. background-size: 100% 100%;
  248. }
  249. }
  250. }
  251. .allVip {
  252. transform: translateY(-96rpx);
  253. // position: relative;
  254. // top: -96rpx;
  255. .vipItem {
  256. width: 28%;
  257. height: 180rpx;
  258. background: #FFFFFF;
  259. border-radius: 10rpx;
  260. border: 2px solid #FDD5B7;
  261. &.active {
  262. transform: scale(1.3);
  263. background-color: #FDF5E4;
  264. border: 4px solid #EAA270;
  265. border-radius: 10px;
  266. }
  267. .lab {
  268. height: 96rpx;
  269. line-height: 96rpx;
  270. text-align: center;
  271. font-size: 28rpx;
  272. font-weight: 500;
  273. }
  274. .redT {
  275. padding-top: 16rpx;
  276. text-align: center;
  277. width: 100%;
  278. justify-content: center;
  279. border-top: 1px solid #eee;
  280. .price {
  281. color: #DA492D;
  282. font-size: 24rpx;
  283. text {
  284. font-size: 36rpx;
  285. }
  286. }
  287. .day {
  288. font-size: 24rpx;
  289. color: #9E492D;
  290. }
  291. }
  292. }
  293. }
  294. .btnBox.flex-b {
  295. width: 100%;
  296. height: 100rpx;
  297. background: #3776FF;
  298. border-radius: 50rpx;
  299. padding: 10rpx 10rpx 10rpx 32rpx;
  300. margin-top: -50rpx;
  301. .whiteT.flex {
  302. color: #fff;
  303. .price {
  304. font-size: 24rpx;
  305. text {
  306. font-size: 36rpx;
  307. font-weight: 700;
  308. }
  309. }
  310. .day {
  311. font-size: 24rpx;
  312. }
  313. }
  314. .upgra {
  315. width: 230rpx;
  316. height: 80rpx;
  317. // background: linear-gradient(0deg, #F7D0A5 0%, #FCEDD1 100%);
  318. background: url('../../../static/images/vipbtn.png') no-repeat;
  319. background-size: 100% 100%;
  320. border-radius: 40rpx;
  321. font-size: 36rpx;
  322. line-height: 80rpx;
  323. text-align: center;
  324. font-weight: 500;
  325. }
  326. }
  327. .h1_row {
  328. height: 118rpx;
  329. }
  330. .card {
  331. background: #FFFFFF;
  332. box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.04);
  333. border-radius: 20px;
  334. padding: 30rpx 20rpx;
  335. .tit_row.flex {
  336. width: 100%;
  337. justify-content: center;
  338. .round {
  339. width: 24rpx;
  340. height: 24rpx;
  341. }
  342. .tit {
  343. font-size: 28rpx;
  344. color: #333;
  345. padding: 0 20rpx;
  346. }
  347. }
  348. .tps {
  349. font-size: 24rpx;
  350. color: #ccc;
  351. padding: 20rpx 0 32rpx 0;
  352. text-align: center;
  353. }
  354. .ul {
  355. display: flex;
  356. .li {
  357. width: 20%;
  358. display: flex;
  359. flex-direction: column;
  360. align-items: center;
  361. justify-content: center;
  362. .icon {
  363. width: 84rpx;
  364. height: 84rpx;
  365. }
  366. .txt {
  367. font-size: 28rpx;
  368. margin-top: 14rpx;
  369. }
  370. }
  371. }
  372. }
  373. .learning {
  374. .h1_box {
  375. padding: 20rpx 0;
  376. }
  377. .h1 {
  378. }
  379. .blueBg {
  380. background: linear-gradient(180deg, #E3FEFF 0%, #F2FEFF 100%);
  381. border-radius: 20px;
  382. padding: 0 20rpx 20rpx 20rpx;
  383. margin-top: 20rpx;
  384. .blueTxt {
  385. line-height: 68rpx;
  386. text-align: center;
  387. font-size: 30rpx;
  388. font-weight: 700;
  389. color: $themC;
  390. }
  391. .ul {
  392. width: 100%;
  393. background: #FFFFFF;
  394. border-radius: 20px;
  395. .li {
  396. width: 100%;
  397. padding: 30rpx 0rpx;
  398. border-bottom: 1px solid #F4F4F4;
  399. .flex {
  400. .step {
  401. width: 125rpx;
  402. height: 50rpx;
  403. font-size: 28rpx;
  404. // background: #3776FF;
  405. // border-radius: 0px 0px 30rpx 0px;
  406. line-height: 42rpx;
  407. color: #fff;
  408. text-align: center;
  409. background: url('../../../static/images/vip/stepTag.png') no-repeat;
  410. background-size: 100% 100%;
  411. }
  412. .unit {
  413. font-family: PingFang SC;
  414. font-weight: bold;
  415. font-size: 36rpx;
  416. color: #333333;
  417. margin-left: 20rpx;
  418. }
  419. }
  420. .flex-b {
  421. padding-top: 30rpx;
  422. padding: 30rpx 20rpx 0 20rpx;
  423. .leftImg {
  424. width: 360rpx;
  425. height: 200rpx;
  426. background: #F4EED8;
  427. border-radius: 20rpx;
  428. overflow: hidden;
  429. }
  430. .rightTxt {
  431. padding-left: 20rpx;
  432. flex: 1;
  433. width: 0;
  434. .lab {
  435. font-weight: bold;
  436. font-size: 28rpx;
  437. color: #333333;
  438. line-height: 66rpx;
  439. }
  440. .txt {
  441. font-weight: 500;
  442. font-size: 24rpx;
  443. color: #666666;
  444. line-height: 34rpx;
  445. }
  446. }
  447. }
  448. }
  449. }
  450. }
  451. }
  452. }
  453. .comment {
  454. margin-top: 20rpx;
  455. }
  456. .commentbox {
  457. position: relative;
  458. .tit {
  459. height: 94rpx;
  460. line-height: 94rpx;
  461. position: absolute;
  462. left: 0;
  463. top: 0;
  464. border-bottom: 1px solid #F4F4F4;
  465. width: 100%;
  466. padding-left: 40rpx;
  467. font-weight: 700;
  468. background-color: #fff;
  469. z-index: 2;
  470. }
  471. .popComment {
  472. max-height: calc(100vh - 400rpx);
  473. overflow-y: auto;
  474. padding: 134rpx 40rpx 40rpx 40rpx;
  475. }
  476. }
  477. .u-popup__content__close {
  478. z-index: 2;
  479. }
  480. :deep .u-popup__content__close--top-right {
  481. z-index: 20;
  482. }
  483. </style>