index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <view class="">
  3. <view class="road">
  4. <view class="nav"
  5. ><view class="left">科目三真实考场</view
  6. ><view class="right" @click="goPath">
  7. 查找我的考场<van-icon color="#498EF5" name="arrow"
  8. /></view>
  9. </view>
  10. <view class="mark">
  11. <view class="button1">社会化驾驶人考场</view>
  12. <image mode="widthFix" class="play" :src="bottom_arrrow"></image>
  13. </view>
  14. <view class="nav2">
  15. <image
  16. mode="widthFix"
  17. class="left"
  18. src="https://ct.zzxcx.net/ctjk/mp-wx/teacherVideo/kemu3.png"
  19. ></image>
  20. <view class="right">
  21. <view>熟记考场</view>
  22. <view>考试不用慌</view>
  23. <view class="look">去看考场</view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="subject">
  28. <view v-for="(item, index) in kemu" :key="index" class="list">
  29. <navigator url="/otherPages/videoSubjectList/index">
  30. <image
  31. mode="widthFix"
  32. class="subject-bg"
  33. src="https://ct.zzxcx.net/ctjk/mp-wx/teacherVideo/kemubg1.png"
  34. ></image>
  35. <view class="text1"> 科目{{ item }} </view>
  36. <view class="text2"> 《视频讲解》 </view>
  37. </navigator>
  38. </view>
  39. </view>
  40. <view class="wxad">
  41. <ad
  42. ad-type="video"
  43. :ad-intervals="100"
  44. unit-id="adunit-8eb44bbd7e3147d4"
  45. ></ad>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import bottom_arrrow from "@/assets/img/bottom_arrrow.png";
  51. export default {
  52. data() {
  53. return {
  54. bottom_arrrow,
  55. query: {},
  56. kemu: ["一", "二", "三", "四"],
  57. };
  58. },
  59. methods: {
  60. goPath() {
  61. uni.navigateTo({
  62. url: "/otherPages/examRoadVideo/index",
  63. });
  64. },
  65. onLoad(query) {
  66. this.query = query;
  67. },
  68. },
  69. };
  70. </script>
  71. <style lang="scss" scoped>
  72. .road {
  73. width: 690rpx;
  74. margin: 0 auto;
  75. height: 478rpx;
  76. background: linear-gradient(
  77. 188deg,
  78. #edf4ff 0%,
  79. rgba(237, 244, 255, 0.43) 100%
  80. );
  81. border-radius: 20rpx 20rpx 20rpx 20rpx;
  82. opacity: 1;
  83. .nav {
  84. display: flex;
  85. width: 100%;
  86. justify-content: space-between;
  87. align-content: center;
  88. align-items: center;
  89. padding-left: 30rpx;
  90. padding-right: 30rpx;
  91. padding-top: 36rpx;
  92. .left {
  93. font-size: 36rpx;
  94. font-weight: bold;
  95. }
  96. .right {
  97. color: #498ef5;
  98. }
  99. }
  100. .mark {
  101. position: relative;
  102. padding-left: 30rpx;
  103. padding-right: 30rpx;
  104. margin-top: 22rpx;
  105. width: 328rpx;
  106. text-align: center;
  107. font-size: 0;
  108. .button1 {
  109. width: 268rpx;
  110. line-height: 64rpx;
  111. background: #498ef5;
  112. border-radius: 20rpx 20rpx 20rpx 20rpx;
  113. opacity: 1;
  114. color: #fff;
  115. font-size: 26rpx;
  116. text-align: center;
  117. }
  118. .play {
  119. width: 36rpx;
  120. margin-top: 4rpx;
  121. }
  122. }
  123. .nav2 {
  124. display: flex;
  125. width: 100%;
  126. padding-left: 30rpx;
  127. padding-right: 30rpx;
  128. justify-content: space-between;
  129. margin-top: 20rpx;
  130. .left {
  131. width: 408rpx;
  132. }
  133. .right {
  134. width: 200rpx;
  135. color: #498ef5;
  136. font-size: 30rpx;
  137. text-align: center;
  138. line-height: 1.5;
  139. .look {
  140. width: 200rpx;
  141. line-height: 92rpx;
  142. background: #498ef5;
  143. border-radius: 50rpx 50rpx 50rpx 50rpx;
  144. opacity: 1;
  145. font-size: 34rpx;
  146. color: #fff;
  147. margin-top: 10rpx;
  148. }
  149. }
  150. }
  151. }
  152. .subject {
  153. padding: 0 30rpx;
  154. display: flex;
  155. flex-direction: row;
  156. flex-wrap: wrap;
  157. justify-content: space-between;
  158. .list {
  159. position: relative;
  160. margin-bottom: 15rpx;
  161. .subject-bg {
  162. width: 334rpx;
  163. }
  164. .text1 {
  165. font-size: 42rpx;
  166. color: #fff;
  167. position: absolute;
  168. top: 30rpx;
  169. left: 60rpx;
  170. }
  171. .text2 {
  172. font-size: 42rpx;
  173. color: #fff;
  174. position: absolute;
  175. top: 88rpx;
  176. left: 40rpx;
  177. }
  178. }
  179. }
  180. .wxad {
  181. border: none;
  182. padding: 0 30rpx;
  183. }
  184. </style>