Browse Source

接口调用完杀青

master
unknown 8 months ago
parent
commit
cf2173ad37
  1. 32
      src/api/herbalMedicine.js
  2. 2
      src/components/dstributiondMap.vue
  3. 4
      src/components/swiper.vue
  4. 2
      src/components/swiperSchool.vue
  5. 19
      src/views/contact/index.vue
  6. 3
      src/views/driveDetail/index.scss
  7. 75
      src/views/driveDetail/index.vue
  8. 13
      src/views/drivingMap/index.vue
  9. 33
      src/views/home/index.vue
  10. 2
      src/views/instructor/index.scss
  11. 15
      src/views/instructor/index.vue
  12. 141
      src/views/layout/Wrapper.vue
  13. 2
      src/views/recruitment/index.vue

32
src/api/herbalMedicine.js

@ -18,23 +18,15 @@ const queryGetLawDetails = params => api('/index/getLawDetails.do', params, 'get
/** 查询驾校列表||首页驾校查询 */ /** 查询驾校列表||首页驾校查询 */
// const queryTrainingSchoolList = params => api('/index/queryTrainingSchoolList.do', params) // const queryTrainingSchoolList = params => api('/index/queryTrainingSchoolList.do', params)
/** 查询官网驾校信息 */
const queryGetSchoolDetailById = params => api('/index/getSchoolDetailById.do', params, 'get')
/** 查询驾校场地图片列表 */
const queryGetSiteBySchoolId = params => api('/index/getSiteBySchoolId.do', params, 'get')
/** 查询驾校教练员详情 */ /** 查询驾校教练员详情 */
// const queryQueryList = params => api('/coach/manage/queryList.do', params, 'get') // const queryQueryList = params => api('/coach/manage/queryList.do', params, 'get')
/** 根据驾校查询班型列表 */
const queryTrainingClasss = params => api('/index/getTrainingClasss.do', params, 'get')
/** 地图驾校搜索 */
const queryGetSchoolByName = params => api('/index/getSchoolByName.do', params, 'get', false)
/** 创建投诉咨询 */
const queryCreateComplaint = params => api('/index/createComplaint.do', params)
/** 首页驾培统计 */ /** 首页驾培统计 */
// const queryIndexCollectList = params => api('/index/indexCollectList.do', params, 'post', false) // const queryIndexCollectList = params => api('/index/indexCollectList.do', params, 'post', false)
@ -45,8 +37,6 @@ const queryGetHospitalList = params => api('/index/getHospitalList.do', params,
/** 查询体检地址列表无loading */ /** 查询体检地址列表无loading */
const queryNoLoadingGetHospitalList = params => api('/index/getHospitalList.do', params, 'get', false) const queryNoLoadingGetHospitalList = params => api('/index/getHospitalList.do', params, 'get', false)
/** 根据区域分组查询驾校数量 */
const queryIndexSchoolGroupList = params => api('/index/indexSchoolGroupList.do', params, 'get')
/** 学车须知或者驾驶常识列表接口 */ /** 学车须知或者驾驶常识列表接口 */
const queryEssayList = params => api('/ar/essay/essayList.do', params, 'get') const queryEssayList = params => api('/ar/essay/essayList.do', params, 'get')
@ -100,6 +90,23 @@ const queryQueryList = params => api('/website/luoyang/getCoachListWebPage', par
const querySimpleIndustryDynamics = params => api('/website/luoyang/articlezcWebsite', params, 'get') const querySimpleIndustryDynamics = params => api('/website/luoyang/articlezcWebsite', params, 'get')
// 获得行业资讯-政策管理-详情 // 获得行业资讯-政策管理-详情
const queryIndustryDynamicDetails = params => api('/website/luoyang/getarticleWebsite', params, 'get') const queryIndustryDynamicDetails = params => api('/website/luoyang/getarticleWebsite', params, 'get')
/** 创建投诉咨询 */
const queryCreateComplaint = params => api('/website/luoyang/createconsultWebsite', params, 'post')
/** 根据区域分组查询驾校数量 */
const queryIndexSchoolGroupList = params => api('/website/luoyang/getDistricetSchoolList', params, 'post')
/** 驾校详情 */
const queryGetSchoolDetailById = params => api('/website/luoyang/getselectDetailOne', params, 'get')
/** 根据驾校查询班型列表 */
const queryTrainingClasss = params => api('/website/luoyang/getSchoolClassListWebPage', params, 'get')
/** 查询驾校场地图片列表 */
const queryGetSiteBySchoolId = params => api('/website/luoyang/getTrainingSitePage', params, 'post')
// 驾校详情里的统计车辆与教练数
const getWebsiteSchoolDetailRespVO = params => api('/website/luoyang/getWebsiteSchoolDetailRespVO', params, 'get')
/** 地图驾校搜索 */
const queryGetSchoolByName = params => api('/website/luoyang/getWebsiteSchoolMapList', params, 'get', )
@ -137,4 +144,5 @@ export {
recommendSchoolList1, recommendSchoolList1,
recommendCoachList, recommendCoachList,
getWebsiteSchoolDetailRespVO,
} }

2
src/components/dstributiondMap.vue

@ -163,8 +163,6 @@ export default {
type: Array, type: Array,
default: function () { default: function () {
return [ return [
// {name: 'xxx', value: [,]}
// ,
{ name: "老城区", LngAndLat: [112.477298,34.682945], num: 0 }, { name: "老城区", LngAndLat: [112.477298,34.682945], num: 0 },
{ name: "西工区", LngAndLat: [112.443232,34.667847], num: 0 }, { name: "西工区", LngAndLat: [112.443232,34.667847], num: 0 },
{ name: "瀍河回族区", LngAndLat: [112.491625, 34.684738], num: 0 }, { name: "瀍河回族区", LngAndLat: [112.491625, 34.684738], num: 0 },

4
src/components/swiper.vue

@ -35,10 +35,10 @@
></div> ></div>
<div class="swiper-search" v-show="$route.path == '/home'"> <div class="swiper-search" v-show="$route.path == '/home'">
<div class="search-title"> <div class="search-title">
<img
<!-- <img
class="search-img" class="search-img"
src="../assets/zlxcimgs/home_image-logoquan@2x.png" src="../assets/zlxcimgs/home_image-logoquan@2x.png"
>
> -->
<p class="search-circle"></p> <p class="search-circle"></p>
<p class="search-text">关爱生命 关注安全</p> <p class="search-text">关爱生命 关注安全</p>
</div> </div>

2
src/components/swiperSchool.vue

@ -63,7 +63,7 @@ export default {
this.$router.push({ this.$router.push({
name: 'Drivedetail', name: 'Drivedetail',
query: { query: {
id: item.trainingSchoolId
id: item.id
} }
}) })
} }

19
src/views/contact/index.vue

@ -19,9 +19,9 @@
</el-form-item> </el-form-item>
<el-form-item label="投诉类型" prop="complaint" v-if="ruleForm.type == '投诉'"> <el-form-item label="投诉类型" prop="complaint" v-if="ruleForm.type == '投诉'">
<div class="type-select"> <div class="type-select">
<p :class="['select-radio',{'is-action': ruleForm.complaint == '服务'}]" @click="tapChangeComplaint('服务')">服务</p>
<p :class="['select-radio',{'is-action': ruleForm.complaint == '教学质量'}]" @click="tapChangeComplaint('教学质量')">教学质量</p>
<p :class="['select-radio',{'is-action': ruleForm.complaint == '费用'}]" @click="tapChangeComplaint('费用')">费用</p>
<p :class="['select-radio',{'is-action': ruleForm.complaint == '1'}]" @click="tapChangeComplaint('1')">服务态度</p>
<p :class="['select-radio',{'is-action': ruleForm.complaint == '2'}]" @click="tapChangeComplaint('2')">教学质量</p>
<p :class="['select-radio',{'is-action': ruleForm.complaint == '3'}]" @click="tapChangeComplaint('3')">退费问题</p>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="投诉对象" prop="beau" v-if="ruleForm.type == '投诉'"> <el-form-item label="投诉对象" prop="beau" v-if="ruleForm.type == '投诉'">
@ -42,9 +42,9 @@
<el-form-item label="内容详情" prop="desc"> <el-form-item label="内容详情" prop="desc">
<el-input type="textarea" v-model="ruleForm.desc" placeholder="请输入您要咨询或投诉的内容"></el-input> <el-input type="textarea" v-model="ruleForm.desc" placeholder="请输入您要咨询或投诉的内容"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="上传图片">
<!-- <el-form-item label="上传图片">
<el-upload <el-upload
action="/api/index/uploadFile.do"
action="/app-api/infra/file/upload"
list-type="picture-card" list-type="picture-card"
name="file" name="file"
:limit="3" :limit="3"
@ -57,7 +57,7 @@
<el-dialog :visible.sync="dialogVisible"> <el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt=""> <img width="100%" :src="dialogImageUrl" alt="">
</el-dialog> </el-dialog>
</el-form-item>
</el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="submitForm('ruleForm')">提交</el-button> <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
<el-button @click="resetForm('ruleForm')">重置</el-button> <el-button @click="resetForm('ruleForm')">重置</el-button>
@ -126,13 +126,14 @@ export default {
// //
getQueryCreateComplaint () { getQueryCreateComplaint () {
queryCreateComplaint({ queryCreateComplaint({
complaintId: this.ruleForm.complaint,
complainType: this.ruleForm.complaint,
userType: this.ruleForm.beau=='驾校'?1:2 ,
content: this.ruleForm.desc, content: this.ruleForm.desc,
// image: this.dialogImageUrl, // image: this.dialogImageUrl,
coachName: this.ruleForm.coachName, coachName: this.ruleForm.coachName,
schoolName: this.ruleForm.schoolName, schoolName: this.ruleForm.schoolName,
phone: this.ruleForm.connect, phone: this.ruleForm.connect,
types: this.ruleForm.type == '咨询' ? 0 : 1
type: this.ruleForm.type == '咨询' ? 1 : 2
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$alert('提交成功', this.ruleForm.type, { this.$alert('提交成功', this.ruleForm.type, {
@ -149,7 +150,7 @@ export default {
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.showMessage("正在开发中!");
this.getQueryCreateComplaint()
} else { } else {
console.log('error submit!!'); console.log('error submit!!');
return false; return false;

3
src/views/driveDetail/index.scss

@ -203,9 +203,10 @@
height: 340px; height: 340px;
margin: 0 24px 22px 0; margin: 0 24px 22px 0;
.driving-imgz {
.driving-img {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: block;
} }
} }
} }

75
src/views/driveDetail/index.vue

@ -15,19 +15,19 @@
<div class="driving-demeanor" v-if="dataSheetDetail"> <div class="driving-demeanor" v-if="dataSheetDetail">
<div class="demeanor"> <div class="demeanor">
<div class="school-node"> <div class="school-node">
<div class="node-img">
<img class="driving-img" :src="dataSheetDetail.iconUrl" />
<div class="node-img" v-if="dataSheetDetail.schoolIntroduce">
<img class="driving-img" :src="dataSheetDetail.schoolIntroduce.iconPath" />
</div> </div>
<div class="node-info"> <div class="node-info">
<div class="info-title">{{ dataSheetDetail.schoolName }}</div>
<div class="info-title">{{ dataSheetDetail.name }}</div>
<div class="info-score"> <div class="info-score">
<el-rate <el-rate
class="score-rate" class="score-rate"
:value="dataSheetDetail.starLevel"
:value="dataSheetDetail.stars"
disabled disabled
text-color="#ff9900" text-color="#ff9900"
></el-rate> ></el-rate>
<p class="score-nub">{{ dataSheetDetail.starLevel }}</p>
<p class="score-nub">{{ dataSheetDetail.stars }}</p>
</div> </div>
<div class="info-address"> <div class="info-address">
<img <img
@ -43,48 +43,48 @@
class="phone-icon" class="phone-icon"
src="../../assets/zlxcimgs/home_icon_tell@2x.png" src="../../assets/zlxcimgs/home_icon_tell@2x.png"
/> />
<p class="phone-text">{{dataSheetDetail.commonPhone ? dataSheetDetail.commonPhone : dataSheetDetail.contactPhone}}</p>
<p class="phone-text">{{dataSheetDetail.phone}}</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="demeanor-btn">报名咨询</div>
<!-- <div class="demeanor-btn">报名咨询</div> -->
</div> </div>
<!-- 统计区域 --> <!-- 统计区域 -->
<div class="ul"> <div class="ul">
<div class="li"> <div class="li">
<div class="num_row"> <div class="num_row">
<div class="num">0</div>
<div class="num">{{ carCoachObj.entryFee }}</div>
<div class="unit"></div> <div class="unit"></div>
</div> </div>
<div class="lab">报名费</div> <div class="lab">报名费</div>
</div> </div>
<div class="li">
<div class="li" v-if=" carCoachObj.classPrice">
<div class="num_row"> <div class="num_row">
<div class="num">100</div>
<div class="num">{{ carCoachObj.classPrice }} </div>
<div class="unit"></div> <div class="unit"></div>
</div> </div>
<div class="lab">课时单价</div> <div class="lab">课时单价</div>
</div> </div>
<div class="li"> <div class="li">
<div class="num_row"> <div class="num_row">
<div class="num">100</div>
<div class="unit"></div>
<div class="num">{{ carCoachObj.carTotal }}</div>
<div class="unit"></div>
</div> </div>
<div class="lab">车辆数</div> <div class="lab">车辆数</div>
</div> </div>
<div class="li"> <div class="li">
<div class="num_row"> <div class="num_row">
<div class="num">100</div>
<div class="unit"></div>
<div class="num">{{ carCoachObj.coachTotal }}</div>
<div class="unit"></div>
</div> </div>
<div class="lab">教练数</div> <div class="lab">教练数</div>
</div> </div>
<div class="li">
<div class="li" v-if="carCoachObj.reserveTotal">
<div class="num_row"> <div class="num_row">
<div class="num">100</div>
<div class="unit"></div>
<div class="num">{{ carCoachObj.reserveTotal }}</div>
<div class="unit"></div>
</div> </div>
<div class="lab">预约数</div> <div class="lab">预约数</div>
</div> </div>
@ -92,13 +92,13 @@
<!-- 驾校详情 --> <!-- 驾校详情 -->
<div class="driving-detail"> <div class="driving-detail">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick"> <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="驾校简介" name="introduction">
<el-tab-pane label="驾校简介" name="introduction" v-if="dataSheetDetail.schoolIntroduce">
<div class="pane-title"> <div class="pane-title">
<p class="title-circle"></p> <p class="title-circle"></p>
<p class="title-text">驾校简介</p> <p class="title-text">驾校简介</p>
</div> </div>
<div class="pane-substance"> <div class="pane-substance">
<p class="sub-text">{{dataSheetDetail.introduce ? dataSheetDetail.introduce : ''}}</p>
<p class="sub-text">{{dataSheetDetail.schoolIntroduce.introduce}}</p>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="场地" name="space"> <el-tab-pane label="场地" name="space">
@ -108,11 +108,9 @@
</div> </div>
<div <div
class="pane-imgs" class="pane-imgs"
v-for="(item, index) in dataSpaceList"
:key="index + new Date().getTime()"
> >
<div class="imgs-context">
<img class="driving-img" :src="item" />
<div class="imgs-context" v-for="(item, index) in dataSpaceList" :key="index">
<img class="driving-img" :src="item.iconPath" v-if="item.iconPath"/>
</div> </div>
</div> </div>
</el-tab-pane> </el-tab-pane>
@ -120,9 +118,9 @@
<el-tab-pane label="班型" name="classtype"> <el-tab-pane label="班型" name="classtype">
<div class="pane-table"> <div class="pane-table">
<el-table :data="tableData" border style="width: 100%"> <el-table :data="tableData" border style="width: 100%">
<el-table-column prop="classModel" label="驾照类型" width="180">
<el-table-column prop="carType" label="驾照类型" width="180">
</el-table-column> </el-table-column>
<el-table-column prop="className" label="班型" width="180">
<el-table-column prop="name" label="班型" width="180">
</el-table-column> </el-table-column>
<el-table-column prop="totalPrice" label="套餐金额 (元)"> <el-table-column prop="totalPrice" label="套餐金额 (元)">
</el-table-column> </el-table-column>
@ -143,16 +141,16 @@
/> />
<p class="address-text">{{ dataSheetDetail.address }}</p> <p class="address-text">{{ dataSheetDetail.address }}</p>
</div> </div>
<div class="pane-title" style="margin-top: 40px;">
<!-- <div class="pane-title" style="margin-top: 40px;">
<p class="title-circle"></p> <p class="title-circle"></p>
<p class="title-text">报名咨询</p> <p class="title-text">报名咨询</p>
</div>
</div> -->
<div class="pane-phone"> <div class="pane-phone">
<img <img
class="phone-icon" class="phone-icon"
src="../../assets/zlxcimgs/home_icon_tell@2x.png" src="../../assets/zlxcimgs/home_icon_tell@2x.png"
/> />
<p class="phone-text">{{ dataSheetDetail.commonPhone ? dataSheetDetail.commonPhone : dataSheetDetail.contactPhone }}</p>
<p class="phone-text">{{ dataSheetDetail.phone }}</p>
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -167,6 +165,7 @@ import {
queryGetSchoolDetailById, queryGetSchoolDetailById,
queryGetSiteBySchoolId, queryGetSiteBySchoolId,
queryQueryList, queryQueryList,
getWebsiteSchoolDetailRespVO,
queryTrainingClasss queryTrainingClasss
} from "@/api/herbalMedicine"; } from "@/api/herbalMedicine";
import { formatTime } from "@/utils/common.js"; import { formatTime } from "@/utils/common.js";
@ -209,16 +208,18 @@ export default {
}, },
], ],
// //
dataSheetDetail: null,
dataSheetDetail: {},
// //
dataSpaceList: [], dataSpaceList: [],
// //
coachList: [], coachList: [],
carCoachObj: {}, //
}; };
}, },
created() { created() {
// //
this.getQueryGetSchoolDetailById(); this.getQueryGetSchoolDetailById();
this.getWebsiteSchoolDetailRespVOFn()
}, },
methods: { methods: {
handleClick(tab, event) { handleClick(tab, event) {
@ -234,7 +235,7 @@ export default {
// //
getQueryGetSchoolDetailById() { getQueryGetSchoolDetailById() {
queryGetSchoolDetailById({ queryGetSchoolDetailById({
schoolId: this.$route.query.id,
id: this.$route.query.id,
}).then((res) => { }).then((res) => {
this.dataSheetDetail = res.data; this.dataSheetDetail = res.data;
@ -243,12 +244,19 @@ export default {
} }
}); });
}, },
//
async getWebsiteSchoolDetailRespVOFn() {
const {data: res} = await getWebsiteSchoolDetailRespVO({ schoolId: this.$route.query.id,})
console.log('++++++++++')
this.carCoachObj = res
console.log(res)
},
// //
getQueryGetSiteBySchoolId() { getQueryGetSiteBySchoolId() {
queryGetSiteBySchoolId({ queryGetSiteBySchoolId({
schoolId: this.$route.query.id, schoolId: this.$route.query.id,
}).then((res) => { }).then((res) => {
this.dataSpaceList = res.data;
this.dataSpaceList = res.data.list;
}); });
}, },
// //
@ -264,10 +272,9 @@ export default {
queryTrainingClasss({ queryTrainingClasss({
schoolId: this.$route.query.id, schoolId: this.$route.query.id,
}).then((res) => { }).then((res) => {
this.tableData = res.data;
this.tableData = res.data.list;
for (var item of this.tableData ) { for (var item of this.tableData ) {
item.totalPrice = (item.totalPrice/100).toFixed(2);
item.totalPrice = (item.totalAmount/100).toFixed(2);
} }
}); });

13
src/views/drivingMap/index.vue

@ -5,7 +5,7 @@
<div class="map-select"> <div class="map-select">
<el-input placeholder="请输入您要搜索的驾校" v-model="Location" class="input-with-select" @input="tapELInput" @focus="tapInputFocus"> <el-input placeholder="请输入您要搜索的驾校" v-model="Location" class="input-with-select" @input="tapELInput" @focus="tapInputFocus">
<el-select v-model="scity" slot="prepend" placeholder="请选择" @change="tapSelectBlur"> <el-select v-model="scity" slot="prepend" placeholder="请选择" @change="tapSelectBlur">
<el-option v-for="item in orignList" :key="item.regionCode" :label="item.regionName" :value="item.regionCode"></el-option>
<el-option v-for="item in orignList" :key="item.areaCode" :label="item.areaName" :value="item.areaCode"></el-option>
</el-select> </el-select>
<el-button class="btns" slot="append" icon="el-icon-search" @click="goBaiduMap()"></el-button> <el-button class="btns" slot="append" icon="el-icon-search" @click="goBaiduMap()"></el-button>
</el-input> </el-input>
@ -97,11 +97,11 @@ export default {
// //
getQueryIndexOrignList () { getQueryIndexOrignList () {
queryIndexOrignList().then(res => { queryIndexOrignList().then(res => {
res.data.unshift({regionCode: "all", regionName: "全城"})
res.data.unshift({areaCode: "all", areaName: "全城"})
this.orignList = res.data this.orignList = res.data
if (this.$route.query && this.$route.query.city) { if (this.$route.query && this.$route.query.city) {
this.orignList.map(item => { this.orignList.map(item => {
if (item.regionName === this.$route.query.city) this.scity = item.regionCode
if (item.areaName === this.$route.query.city) this.scity = item.areaCode
}) })
} }
this.selectBlur = true this.selectBlur = true
@ -130,7 +130,7 @@ export default {
this.dropShow = true this.dropShow = true
} else { } else {
this.dataSheetList = res.data this.dataSheetList = res.data
this.showMessage('未找到结果', "error");
// this.showMessage('', "error");
} }
}) })
}, },
@ -162,9 +162,8 @@ export default {
this.selectBlur=true this.selectBlur=true
this.Location='' this.Location=''
this.dropShow = false this.dropShow = false
if (this.Location != '') {
this.getQueryGetSchoolByName() this.getQueryGetSchoolByName()
}
}, },
tapInputFocus (e) { tapInputFocus (e) {
if (this.selectBlur) { if (this.selectBlur) {
@ -187,7 +186,7 @@ export default {
}) })
if (_name == '全城') _name = '洛阳市' if (_name == '全城') _name = '洛阳市'
window.open( window.open(
`https://api.map.baidu.com/geocoder?address=${_name}驾校&output=html&region=杭州&src=我的位置`,
`https://api.map.baidu.com/geocoder?address=${_name}驾校&output=html&region=洛阳&src=我的位置`,
"_blank" "_blank"
); );
} else { } else {

33
src/views/home/index.vue

@ -44,7 +44,7 @@
<div class="home-module"> <div class="home-module">
<div class="module-left"> <div class="module-left">
<!-- 地图组件 --> <!-- 地图组件 -->
<dstributiond-map ></dstributiond-map>
<dstributiond-map :sanData="sanData"></dstributiond-map>
</div> </div>
<div class="module-right"> <div class="module-right">
<div class="right-top"> <div class="right-top">
@ -395,7 +395,7 @@ export default {
this.queryIndexCollectList() this.queryIndexCollectList()
}, 300000); }, 300000);
// //
this.geyQueryGetHospitalList()
// this.geyQueryGetHospitalList()
// //
this.geyQueryIndexSchoolGroupList() this.geyQueryIndexSchoolGroupList()
// //
@ -498,23 +498,24 @@ export default {
geyQueryIndexSchoolGroupList () { geyQueryIndexSchoolGroupList () {
queryIndexSchoolGroupList({}).then(res => { queryIndexSchoolGroupList({}).then(res => {
let _sanData = [ let _sanData = [
{ name: "富阳区", LngAndLat: [119.75, 30.030339], num: 0 },
{ name: "拱墅区", LngAndLat: [120.14, 30.293843], num: 0 },
{ name: "滨江区", LngAndLat: [120.21, 30.204415], num: 0 },
{ name: "淳安县", LngAndLat: [119.0, 29.576045], num: 0 },
{ name: "建德市", LngAndLat: [119.45, 29.559729], num: 0 },
{ name: "临安区", LngAndLat: [119.37, 30.183843], num: 0 },
{ name: "上城区", LngAndLat: [120.3, 30.288198], num: 0 },
{ name: "桐庐县", LngAndLat: [119.42, 29.899843], num: 0 },
{ name: "西湖区", LngAndLat: [120.06, 30.193843], num: 0 },
{ name: "萧山区", LngAndLat: [120.44, 30.193843], num: 0 },
{ name: "余杭区", LngAndLat: [119.91, 30.323843], num: 0 },
{ name: "临平区", LngAndLat: [120.29, 30.419025], num: 0 },
{ name: "钱塘区", LngAndLat: [120.49, 30.322904], num: 0 },
{ name: "老城区", LngAndLat: [112.477298,34.682945], num: 0 },
{ name: "西工区", LngAndLat: [112.443232,34.667847], num: 0 },
{ name: "瀍河回族区", LngAndLat: [112.491625, 34.684738], num: 0 },
{ name: "涧西区", LngAndLat: [112.399243, 34.654251], num: 0 },
{ name: "孟津区", LngAndLat: [112.443892, 34.826485], num: 0 },
{ name: "洛龙区", LngAndLat: [112.456634, 34.618557], num: 0 },
{ name: "新安县", LngAndLat: [112.141403, 34.728679], num: 0 },
{ name: "栾川县", LngAndLat: [111.618386, 33.783195], num: 0 },
{ name: "嵩县", LngAndLat: [112.087765, 34.131563], num: 0 },
{ name: "汝阳县", LngAndLat: [112.473789, 34.15323], num: 0 },
{ name: "宜阳县", LngAndLat: [112.179989, 34.516478], num: 0 },
{ name: "洛宁县", LngAndLat: [111.655399, 34.387179], num: 0 },
{ name: "伊川县", LngAndLat: [112.429384, 34.423416], num: 0 },
{ name: "偃师区", LngAndLat: [112.787739, 34.723042], num: 0 },
] ]
res.data.map(item => { res.data.map(item => {
_sanData.forEach(ele => { _sanData.forEach(ele => {
if (ele.name === item.regionName) ele.num = item.count
if (ele.name === item.districtName) ele.num = item.schoolTotal
}) })
}) })
this.sanData = _sanData this.sanData = _sanData

2
src/views/instructor/index.scss

@ -35,7 +35,7 @@
width: 100%; width: 100%;
.demeanor { .demeanor {
width: 816px;
// width: 816px;
.demeanor-search { .demeanor-search {
width: 100%; width: 100%;

15
src/views/instructor/index.vue

@ -72,7 +72,7 @@
</div> </div>
</div> </div>
<!-- 帮找驾校 --> <!-- 帮找驾校 -->
<div class="driving-seek">
<!-- <div class="driving-seek">
<div class="seek-header"> <div class="seek-header">
<div class="header-write"> <div class="header-write">
<div class="write-title">帮您找教练</div> <div class="write-title">帮您找教练</div>
@ -85,7 +85,7 @@
> >
</div> </div>
</div> </div>
<!-- <div class="form">
<div class="form">
<el-form :model="ruleForm" :rules="rules" ref="instructruleForm" class="rule-form"> <el-form :model="ruleForm" :rules="rules" ref="instructruleForm" class="rule-form">
<el-form-item prop="name"> <el-form-item prop="name">
<el-input v-model="ruleForm.name" placeholder="请输入您的姓名"></el-input> <el-input v-model="ruleForm.name" placeholder="请输入您的姓名"></el-input>
@ -114,8 +114,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="form-footer">合适的驾校将会跟您电话联系请注意接听哦</div> <div class="form-footer">合适的驾校将会跟您电话联系请注意接听哦</div>
</div> -->
</div> </div>
</div> -->
</div> </div>
</div> </div>
</div> </div>
@ -215,12 +215,13 @@ export default {
}, },
// //
getQueryQueryList () { getQueryQueryList () {
queryQueryList({
let obj = {
pageNo: this.pageObj.pageNo, pageNo: this.pageObj.pageNo,
pageSize: this.pageObj.pageSize, pageSize: this.pageObj.pageSize,
district: this.orignCode == 'all' ? '' : this.orignCode,
teachCarType: this.licenseCode == 'all' ? '' : this.licenseCode
}).then(res => {
}
if(this.orignCode != 'all') obj.district = this.orignCode
if(this.licenseCode != 'all') obj.teachCarType = this.licenseCode
queryQueryList(obj).then(res => {
if (res.data.list.length > 0) { if (res.data.list.length > 0) {
this.pageObj.total = res.data.total this.pageObj.total = res.data.total
this.dataSheetList = res.data.list this.dataSheetList = res.data.list

141
src/views/layout/Wrapper.vue

@ -1,18 +1,11 @@
<template> <template>
<div class="wrapper"> <div class="wrapper">
<div
class="header"
id="header"
>
<div class="header" id="header">
<div class="yxj-con-room"> <div class="yxj-con-room">
<div class="yxj-container header-content yxj-space"> <div class="yxj-container header-content yxj-space">
<div class="leftLogo"> <div class="leftLogo">
<div class="login-area"> <div class="login-area">
<router-link
tag="div"
class="app"
to="/home"
>
<router-link tag="div" class="app" to="/home">
<!-- <img <!-- <img
class="app-img" class="app-img"
src="../../assets/zlxcimgs/home_icon_shoujixiazai.png" src="../../assets/zlxcimgs/home_icon_shoujixiazai.png"
@ -21,29 +14,15 @@
</router-link> </router-link>
</div> </div>
</div> </div>
<div
class="yxj-center mobile-menu-wrapper"
:class="{active: $store.getters.openMenu}"
@click="$store.commit('CHANGE_OPENMENU', false)"
id="mask"
>
<div class="yxj-center mobile-menu-wrapper" :class="{ active: $store.getters.openMenu }"
@click="$store.commit('CHANGE_OPENMENU', false)" id="mask">
<div
class="yxj-center mobile-flex"
@click.stop
>
<div
class="yxj-center mobile-close"
v-if="$store.getters.mobile"
@click.stop="$store.commit('CHANGE_OPENMENU', false)"
></div>
<div class="yxj-center mobile-flex" @click.stop>
<div class="yxj-center mobile-close" v-if="$store.getters.mobile"
@click.stop="$store.commit('CHANGE_OPENMENU', false)"></div>
<div class="yxj-center mobile-review" @touchmove.stop> <div class="yxj-center mobile-review" @touchmove.stop>
<router-link
tag="div"
class="box"
:class="activeTab === 'home' ? 'is-active' : ''"
to="/home"
>首页</router-link>
<router-link tag="div" class="box" :class="activeTab === 'home' ? 'is-active' : ''"
to="/home">首页</router-link>
<!-- <router-link <!-- <router-link
tag="div" tag="div"
class="box" class="box"
@ -51,76 +30,51 @@
to="/product" to="/product"
>曝光台</router-link> --> >曝光台</router-link> -->
<div
class="box"
:class="activeTab.indexOf('media') != -1 ? 'is-active' : ''"
to="/media"
>理论学习
<!-- <div class="box" :class="activeTab.indexOf('media') != -1 ? 'is-active' : ''" to="/media">理论学习
<div class="box-select"> <div class="box-select">
<router-link
tag="div"
class="select-option"
<router-link tag="div" class="select-option"
:class="activeTab.indexOf('questionBank') != -1 ? 'is-active' : ''" :class="activeTab.indexOf('questionBank') != -1 ? 'is-active' : ''"
to="/media/questionBank"
>题库学习</router-link>
<router-link
tag="div"
class="select-option"
to="/media/questionBank">题库学习</router-link>
<router-link tag="div" class="select-option"
:class="activeTab.indexOf('videoLearning') != -1 ? 'is-active' : ''" :class="activeTab.indexOf('videoLearning') != -1 ? 'is-active' : ''"
to="/media/videoLearning"
>视频学习</router-link>
<!-- <router-link
tag="div"
class="select-option3"
to="/media/videoLearning">视频学习</router-link>
<router-link tag="div" class="select-option3"
:class="activeTab.indexOf('graduation') != -1 ? 'is-active' : ''" :class="activeTab.indexOf('graduation') != -1 ? 'is-active' : ''"
to="/media/graduation"
>结业鉴定</router-link> -->
</div>
to="/media/graduation">结业鉴定</router-link>
</div> </div>
</div> -->
<div
<!-- <div
class="box" class="box"
:class="activeTab.indexOf('recruitment') != -1 ? 'is-active' : ''" :class="activeTab.indexOf('recruitment') != -1 ? 'is-active' : ''"
to="/recruitment" to="/recruitment"
>学驾服务 >学驾服务
<div class="box-select"> <div class="box-select">
<router-link
tag="div"
class="select-option"
</div>
</div> -->
<router-link tag="div" class="select-option box"
:class="activeTab.indexOf('driveschool') != -1 ? 'is-active' : ''" :class="activeTab.indexOf('driveschool') != -1 ? 'is-active' : ''"
to="/recruitment/driveschool"
>驾校风采</router-link>
<router-link
tag="div"
class="select-option"
to="/recruitment/driveschool">驾校风采</router-link>
<router-link tag="div" class="select-option box"
:class="activeTab.indexOf('instructor') != -1 ? 'is-active' : ''" :class="activeTab.indexOf('instructor') != -1 ? 'is-active' : ''"
to="/recruitment/instructor"
>教练风采</router-link>
</div>
</div>
to="/recruitment/instructor">教练风采</router-link>
<router-link
tag="div"
class="box"
:class="activeTab === 'about' ? 'is-active' : ''"
to="/about"
>行业动态</router-link>
<router-link tag="div" class="box" :class="activeTab === 'about' ? 'is-active' : ''"
to="/about">行业动态</router-link>
<!-- <router-link <!-- <router-link
tag="div" tag="div"
class="box" class="box"
:class="activeTab === 'notice' ? 'is-active' : ''" :class="activeTab === 'notice' ? 'is-active' : ''"
to="/notice" to="/notice"
>公示栏</router-link> --> >公示栏</router-link> -->
<router-link
tag="div"
class="box"
:class="activeTab === 'join' ? 'is-active' : ''"
to="/culture"
>政策法规</router-link>
<router-link tag="div" class="box" :class="activeTab === 'join' ? 'is-active' : ''"
to="/culture">政策法规</router-link>
@ -130,14 +84,10 @@
<router-link
tag="div"
class="box"
:class="activeTab === 'contact' ? 'is-active' : ''"
to="/contact"
>投诉建议</router-link>
<router-link tag="div" class="box" :class="activeTab === 'contact' ? 'is-active' : ''"
to="/contact">投诉建议</router-link>
</div>
</div> </div>
</div >
<!-- <div class="loginCon"> <!-- <div class="loginCon">
<div class="line"></div> <div class="line"></div>
<div class="login" @click="tapJumpJaxc">登录</div> <div class="login" @click="tapJumpJaxc">登录</div>
@ -148,10 +98,7 @@
</div> </div>
</div> </div>
<div class="main"> <div class="main">
<transition
name="fade-transform"
mode="out-in"
>
<transition name="fade-transform" mode="out-in">
<router-view /> <router-view />
</transition> </transition>
</div> </div>
@ -161,31 +108,31 @@
<script> <script>
import Foot from '@/components/Foot' import Foot from '@/components/Foot'
import {mapState} from 'vuex'
import { mapState } from 'vuex'
import getOsInfo from "@/utils/getOsInfo"; import getOsInfo from "@/utils/getOsInfo";
export default { export default {
name: 'Wrapper', name: 'Wrapper',
data () {
data() {
return { return {
activeTab: '', activeTab: '',
oldScroll: 0, oldScroll: 0,
openMenu: false, openMenu: false,
clientWidth: null, clientWidth: null,
os: null, os: null,
hiddenHeader:false,
hiddenHeader: false,
} }
}, },
components: { components: {
Foot Foot
}, },
watch: { watch: {
'$route' (to) {
'$route'(to) {
// //
this.init(to.path) this.init(to.path)
this.$store.commit('CHANGE_OPENMENU', false) this.$store.commit('CHANGE_OPENMENU', false)
}, },
}, },
created () {
created() {
this.init(this.$route.path) this.init(this.$route.path)
this.getOs(); this.getOs();
@ -220,7 +167,7 @@ export default {
}) })
}, },
methods: { methods: {
init (path) {
init(path) {
if (path === '/home') { if (path === '/home') {
this.activeTab = 'home' this.activeTab = 'home'
return return
@ -263,7 +210,7 @@ export default {
} }
this.activeTab = path this.activeTab = path
}, },
onScroll () {
onScroll() {
window.onscroll = () => { window.onscroll = () => {
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop var scrollTop = document.documentElement.scrollTop || document.body.scrollTop
if (scrollTop > 112) { if (scrollTop > 112) {
@ -284,14 +231,14 @@ export default {
tapJumpJaxc() { tapJumpJaxc() {
// window.open("https://www.jaxc.cn/jiaxiao/login",'_blank') // window.open("https://www.jaxc.cn/jiaxiao/login",'_blank')
this.$router.push({ this.$router.push({
name:'login',
name: 'login',
}) })
} }
}, },
beforeDestroy() { beforeDestroy() {
window.onresize = function(){};
window.onscroll = function(){};
window.onresize = function () { };
window.onscroll = function () { };
} }
} }
</script> </script>

2
src/views/recruitment/index.vue

@ -38,7 +38,7 @@
</ul> </ul>
</div> </div>
<ul class="demeanor-school" v-if="dataSheetList.length > 0"> <ul class="demeanor-school" v-if="dataSheetList.length > 0">
<li class="school-node" v-for="item in dataSheetList" :key="item.trainingSchoolId" @click="tapDriveDetail(item.trainingSchoolId)" >
<li class="school-node" v-for="item in dataSheetList" :key="item.trainingSchoolId" @click="tapDriveDetail(item.id)" >
<div class="node-img" v-if="item.iconUrl"> <div class="node-img" v-if="item.iconUrl">
<img <img
class="driving-img" class="driving-img"

Loading…
Cancel
Save