学员端小程序
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.

558 lines
13 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="main pageBg">
  3. <view style="background-color: #2170FD; width: 100%;height: 20rpx;"></view>
  4. <!-- <u-navbar title=" " :bgColor="bgColor" :autoBack="false">
  5. <view class="" slot="left">
  6. <view class="flex">
  7. <view class="adrsIcon">
  8. <image src="@/static/images/index/dingwei.png" mode=""></image>
  9. </view>
  10. <view class="adr">{{ vuex_cityInfo.city }} </view>
  11. </view>
  12. </view>
  13. <view class="rightScan" slot="right">
  14. <view class="scan" @click="scanCodeFn">
  15. <image src="@/static/images/index/scan.png" mode=""></image>
  16. </view>
  17. </view>
  18. </u-navbar> -->
  19. <view class="TopCon">
  20. <view class="status_bar"></view>
  21. <!-- 地址扫一扫 -->
  22. <view class="flex-b">
  23. <view class="flex">
  24. <view class="adrsIcon">
  25. <image src="@/static/images/index/dingwei.png" mode=""></image>
  26. </view>
  27. <view class="adr">{{ vuex_cityInfo.city }} </view>
  28. </view>
  29. <view class="scan" @click="scanCodeFn">
  30. <image src="@/static/images/index/scan.png" mode=""></image>
  31. </view>
  32. </view>
  33. <!-- 搜索 -->
  34. <view class="searchCon">
  35. <searchRow placeholder="搜索驾校、教练…" @click.native="$goPage('/pages/indexEntry/findShcool/searchShcool/searchShcool')"></searchRow>
  36. </view>
  37. </view>
  38. <view class="pad">
  39. <!-- 精钢区 -->
  40. <view class="card traTop">
  41. <view class="ul">
  42. <view class="li" v-for="(item,index) in entrySection" :key="index" @click="goPageSection(item)">
  43. <view class="icon">
  44. <image :src="item.icon" mode=""></image>
  45. </view>
  46. <view class="name">{{ item.text }}</view>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 更多入口 -->
  51. <view class="card">
  52. <view class="ul3">
  53. <view class="li3" v-for="(item,index) in moreSection" :key="index" @click="goPageSection(item)">
  54. <view class="icon">
  55. <image :src="item.icon" mode=""></image>
  56. </view>
  57. <view class="name">{{ item.text }}</view>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- 行业资讯 -->
  62. <view class="card">
  63. <view class="information">
  64. <view class="flex-b border">
  65. <view class="h1">行业资讯</view>
  66. <view class="more" @click="$goPage('/pages/indexEntry/iIndustryInfo/iIndustryInfo')">
  67. <view class="text">更多</view>
  68. <view class="icon">
  69. <u-icon name="arrow-right"></u-icon>
  70. </view>
  71. </view>
  72. </view>
  73. <uni-swiper-dot class="uni-swiper-dot-box" @clickItem=clickItem :info="swiperInfo"
  74. :current="current" :mode="mode" style="height: 230rpx;" :dots-styles="dotsStyles"
  75. field="content">
  76. <swiper class="swiper-box" @change="change" :current="swiperDotIndex" style="height: 230rpx;">
  77. <swiper-item v-for="(item, index) in swiperInfo" :key="index" @click="$goPage('/pages/indexEntry/examines/newsDetail/newsDetail')">
  78. <view class="swiper-item" :class="'swiper-item' + index">
  79. <view class="flex-b">
  80. <view class="imgBox">
  81. <image src="../../../static/images/logo.png" mode=""></image>
  82. </view>
  83. <view class="rightText">
  84. <view class="text towRowText">{{ item.text }}</view>
  85. <view class="date">{{ item.date}}</view>
  86. </view>
  87. </view>
  88. </view>
  89. </swiper-item>
  90. </swiper>
  91. </uni-swiper-dot>
  92. </view>
  93. </view>
  94. <!-- 服务专区 -->
  95. <view class="card serviceCon">
  96. <view class="h1">服务专区</view>
  97. <view class="ul2">
  98. <view class="li2" v-for="(item,index) in serviceSector" :key="index" :class="'li2Bg' + index" @click="$goPage(item.url)">
  99. <view class="icon">
  100. <image :src="item.icon" mode=""></image>
  101. </view>
  102. <view class="textCon">
  103. <view class="text">{{ item.text }}</view>
  104. <view class="tps">{{ item.tps}}</view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <view style="height: 20rpx;width: 100%;"></view>
  110. </view>
  111. <u-popup :show="showPrivacy" mode="center" :round="20" >
  112. <privacyPopup @disagree="showPrivacy=false" @agree="showPrivacy=false"></privacyPopup>
  113. </u-popup>
  114. </view>
  115. </template>
  116. <script>
  117. export default {
  118. data() {
  119. return {
  120. showPrivacy: false,
  121. keywords: '',
  122. entrySection: [{
  123. text: '我要报名',
  124. icon: require('../../../static/images/index/ic_baoming.png'),
  125. url: '/pages/indexEntry/enroll/enroll'
  126. },
  127. {
  128. text: '找驾校',
  129. icon: require('../../../static/images/index/ic_jiaxiao.png'),
  130. url: '/pages/indexEntry/findShcool/findShcool'
  131. },
  132. {
  133. text: '找考场',
  134. icon: require('../../../static/images/index/ic_kaochang.png'),
  135. url: '/pages/indexEntry/examines/examines'
  136. },
  137. {
  138. text: '找陪练',
  139. icon: require('../../../static/images/index/ic_peilian.png'),
  140. },
  141. {
  142. text: '理论学习',
  143. icon: require('../../../static/images/index/ic_lilun.png'),
  144. url: '/pages/indexEntry/theory/theory'
  145. },
  146. ],
  147. moreSection: [{
  148. text: '摩托车业务',
  149. icon: require('../../../static/images/index/btn_motuoche.png'),
  150. url: '/pages/indexEntry/enroll/enroll'
  151. },
  152. {
  153. text: '考试预约',
  154. icon: require('../../../static/images/index/btn_yuyue.png'),
  155. url: '/pages/indexEntry/findShcool/findShcool'
  156. },
  157. {
  158. text: '交通求助',
  159. icon: require('../../../static/images/index/btn_jiuzhu.png'),
  160. url: '/pages/indexEntry/examines/examines'
  161. },
  162. {
  163. text: '学驾保险',
  164. icon: require('../../../static/images/index/btn_baoxian.png'),
  165. },
  166. {
  167. text: '更多',
  168. icon: require('../../../static/images/index/btn_gengduo.png'),
  169. url: '/pages/indexEntry/theory/theory'
  170. },
  171. ],
  172. serviceSector: [{
  173. text: '学车指南',
  174. tps: '政府平台 一站服务',
  175. icon: require('../../../static/images/index/img_1@2x.png'),
  176. url: ''
  177. },
  178. {
  179. text: '公益视频',
  180. tps: '立体呈现 学驾无忧',
  181. icon: require('../../../static/images/index/img_2@2x.png'),
  182. url: '/pages/indexEntry/publicVideo/publicVideo'
  183. },
  184. {
  185. text: '合格率排行',
  186. tps: '官方数据 阳光透明',
  187. icon: require('../../../static/images/index/img_3@2x.png'),
  188. url: '/pages/indexEntry/credit/credit?type=1'
  189. },
  190. {
  191. text: '行业政策',
  192. tps: '权威发布 精准解读',
  193. icon: require('../../../static/images/index/img_4@2x.png'),
  194. url: '/pages/indexEntry/industryPolicy/industryPolicy'
  195. },
  196. {
  197. text: '质量信誉排行',
  198. tps: '官方数据 阳光透明',
  199. icon: require('../../../static/images/index/img_5@2x.png'),
  200. url: '/pages/indexEntry/credit/credit'
  201. },
  202. {
  203. text: '咨询投诉',
  204. tps: '畅达沟通 听取民声',
  205. icon: require('../../../static/images/index/img_6@2x.png'),
  206. url: '/pages/indexEntry/consult/consult'
  207. },
  208. ],
  209. swiperDotIndex: 1,
  210. current: 1,
  211. mode: 'default',
  212. swiperInfo: [{
  213. img: require('../../../static/images/index/ic_lilun.png'),
  214. text: '2023年6月份江西省机动车驾驶培训机构考试合格率的通报',
  215. date: '2023/08/09'
  216. },
  217. {
  218. img: require('../../../static/images/index/ic_lilun.png'),
  219. text: '2023年6月份江西省机动车驾驶培训机构考试合格率的通报',
  220. date: '2023/08/10'
  221. },
  222. {
  223. img: require('../../../static/images/index/ic_lilun.png'),
  224. text: '2023年6月份江西省机动车驾驶培训机构考试合格率的通报',
  225. date: '2023/08/11'
  226. },
  227. ],
  228. dotsStyles: {
  229. backgroundColor: '#E8E9EC',
  230. border: '1px #E8E9EC solid',
  231. color: '#fff',
  232. selectedBackgroundColor: '#1989FA',
  233. selectedBorder: '1px #1989FA solid'
  234. },
  235. bgColor: 'transparent'
  236. }
  237. },
  238. async onLoad() {
  239. // await this.$store.dispatch('getCity')
  240. // console.log('有 啦')
  241. // console.log(this.$store.state.user.vuex_cityInfo.city)
  242. },
  243. onShow() {
  244. },
  245. computed: {
  246. // joe() {
  247. // return '我的名字'
  248. // }
  249. },
  250. methods: {
  251. close() {
  252. },
  253. goPageSection(item) {
  254. uni.navigateTo({
  255. url:item.url
  256. })
  257. },
  258. // 扫码
  259. scanCodeFn() {
  260. let _this = this
  261. uni.scanCode({
  262. success: function(res) {
  263. console.log('条码类型:' + res.scanType);
  264. console.log('条码内容:' + res.result);
  265. _this.$store.commit('updateWebVeiwUrl', res.result)
  266. uni.navigateTo({
  267. url: '/pages/other/webView/webView'
  268. })
  269. }
  270. });
  271. },
  272. clickItem(e) {
  273. this.swiperDotIndex = e
  274. },
  275. change(e) {
  276. this.current = e.detail.current
  277. },
  278. goPage() {
  279. uni.navigateTo({
  280. url: '/pages/userCenter/login/loginByPhone'
  281. })
  282. },
  283. initFn() {
  284. uni.requestSubscribeMessage({
  285. tmplIds: ['0yaIdyI9NlHvGYwb3IIaIQq6uBhulYGN-rGVnJk4hZ4'],
  286. success(res) {
  287. console.log('消息是否有权限呢')
  288. console.log(res)
  289. }
  290. })
  291. }
  292. }
  293. }
  294. </script>
  295. <style lang="scss" scoped>
  296. .main {
  297. width: 100%;
  298. .flex {
  299. .adrsIcon {
  300. width: 26rpx;
  301. height: 38rpx;
  302. margin-top: 4rpx;
  303. }
  304. .adr {
  305. padding-left: 14rpx;
  306. font-size: 28rpx;
  307. color: #fff;
  308. }
  309. }
  310. .rightScan {
  311. padding-right: 190rpx;
  312. }
  313. .scan {
  314. width: 64rpx;
  315. height: 64rpx;
  316. }
  317. .TopCon {
  318. width: 100%;
  319. height: 476rpx;
  320. // background: url('../../../static/images/bigImg/index_banner.png') no-repeat;
  321. background: url('http://192.168.1.20:81/zhili/image/20230809/e7086ccf82ed4aa09d156f2590a50fba.png') no-repeat;
  322. background-size: 100% 100%;
  323. position: relative;
  324. .flex-b {
  325. padding: 10rpx 212rpx 0 50rpx;
  326. }
  327. .searchCon {
  328. position: absolute;
  329. left: 0;
  330. bottom: 68rpx;
  331. padding: 0 28rpx;
  332. width: 100%;
  333. }
  334. }
  335. .card {
  336. background: #FFFFFF;
  337. border-radius: 16rpx;
  338. margin-bottom: 20rpx;
  339. &.traTop {
  340. // transform: translateY(-40rpx);
  341. margin-top: -40rpx;
  342. position: relative;
  343. z-index: 9;
  344. }
  345. .ul {
  346. height: 236rpx;
  347. display: flex;
  348. justify-content: space-between;
  349. align-items: center;
  350. padding: 0 20rpx;
  351. .li {
  352. flex: 1;
  353. display: flex;
  354. align-items: center;
  355. flex-direction: column;
  356. .icon {
  357. width: 92rpx;
  358. height: 92rpx;
  359. }
  360. .name {
  361. font-size: 26rpx;
  362. color: #333;
  363. padding-top: 20rpx;
  364. text-align: center;
  365. }
  366. }
  367. }
  368. .ul3 {
  369. height: 128rpx;
  370. display: flex;
  371. justify-content: space-between;
  372. align-items: center;
  373. padding: 0 30rpx;
  374. border: 2rpx solid #E8E9EC;
  375. border-radius: 16rpx;
  376. .li3 {
  377. // flex: 1;
  378. display: flex;
  379. align-items: center;
  380. flex-direction: column;
  381. .icon {
  382. width: 52rpx;
  383. height: 52rpx;
  384. }
  385. .name {
  386. font-size: 22rpx;
  387. color: #686B73;
  388. padding-top: 2rpx;
  389. text-align: center;
  390. }
  391. }
  392. }
  393. }
  394. .information {
  395. padding: 0 20rpx;
  396. height: 320rpx;
  397. .border {
  398. height: 86rpx;
  399. border-bottom: 2px dashed #E8E9EC;
  400. .h1 {
  401. font-size: 28rpx;
  402. color: #333;
  403. }
  404. .more {
  405. font-size: 24rpx;
  406. display: flex;
  407. .text {
  408. // margin-right: 8rpx;
  409. color: #686B73;
  410. }
  411. }
  412. }
  413. .swiper-item {
  414. height: 148rpx;
  415. .flex-b {
  416. padding: 30rpx 0 28rpx 0;
  417. .imgBox {
  418. width: 184rpx;
  419. height: 148rpx;
  420. background: linear-gradient(180deg, rgba(0, 122, 255, 0.5) 0%, #007AFF 100%);
  421. border-radius: 6rpx;
  422. overflow: hidden;
  423. }
  424. .rightText {
  425. flex: 1;
  426. padding: 0 0 0 30rpx;
  427. height: 148rpx;
  428. display: flex;
  429. flex-direction: column;
  430. justify-content: space-between;
  431. .text {
  432. font-size: 24rpx;
  433. color: #333;
  434. }
  435. .date {
  436. text-align: right;
  437. font-size: 20rpx;
  438. color: #686B73;
  439. }
  440. }
  441. }
  442. }
  443. }
  444. .serviceCon {
  445. width: 100%;
  446. padding: 0 20rpx 20rpx 20rpx;
  447. .h1 {
  448. font-size: 28rpx;
  449. color: #333;
  450. padding: 0 0 0 20rpx;
  451. font-weight: 500;
  452. line-height: 90rpx;
  453. }
  454. .ul2 {
  455. display: flex;
  456. flex-wrap: wrap;
  457. justify-content: space-between;
  458. .li2 {
  459. width: 48.8%;
  460. display: flex;
  461. align-items: center;
  462. padding: 14rpx 0 14rpx 14rpx;
  463. margin-bottom: 20rpx;
  464. border-radius: 16rpx;
  465. height: 160rpx;
  466. &.li2Bg0 {
  467. background: linear-gradient(180deg, #F7FBFF 0%, #EFF6FF 100%);
  468. }
  469. &.li2Bg1 {
  470. background: linear-gradient(180deg, #FFFAF3 0%, #FFF4EA 100%);
  471. }
  472. &.li2Bg2 {
  473. background: linear-gradient(180deg, #F4FFF5 0%, #F3FFED 100%);
  474. }
  475. &.li2Bg3 {
  476. background: linear-gradient(180deg, #EFFFF9 0%, #E3FFF5 100%);
  477. }
  478. &.li2Bg4 {
  479. background: linear-gradient(180deg, #FAF9FF 0%, #F9F5FF 100%);
  480. }
  481. &.li2Bg5 {
  482. background: linear-gradient(180deg, #FCF9FB 0%, #FFF5F8 100%);
  483. }
  484. .icon {
  485. width: 80rpx;
  486. height: 80rpx;
  487. }
  488. .textCon {
  489. // flex: 1;
  490. padding-left: 10rpx;
  491. .text {
  492. font-size: 32rpx;
  493. color: #333;
  494. font-weight: 500;
  495. }
  496. .tps {
  497. margin-top: 6rpx;
  498. font-size: 20rpx;
  499. color: #949494;
  500. }
  501. }
  502. }
  503. }
  504. }
  505. }
  506. </style>