1
This commit is contained in:
parent
655d45a160
commit
b2036cf68d
@ -75,7 +75,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view @click="goCourseInfo(item.id)" v-for="(item,index) in rightInfoList.rows" class="sign-type-list">
|
<view @click="goCourseInfo(item.id)" v-for="(item,index) in rightInfoList" class="sign-type-list">
|
||||||
<view class="list-left">
|
<view class="list-left">
|
||||||
<image class="list-left-img" :src="baseUrl + item.photo" mode=""></image>
|
<image class="list-left-img" :src="baseUrl + item.photo" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
@ -168,7 +168,11 @@
|
|||||||
titleslist: [],
|
titleslist: [],
|
||||||
swiperListData: [],
|
swiperListData: [],
|
||||||
urlpdf: '',
|
urlpdf: '',
|
||||||
jlId: null
|
jlId: null,
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 100,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad: function(option) {
|
onLoad: function(option) {
|
||||||
@ -251,9 +255,9 @@
|
|||||||
async gettype(id) {
|
async gettype(id) {
|
||||||
console.log(id);
|
console.log(id);
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/drivingSchool/system/driveSchoolCourse/list?name=' + id + '&deptId=' + this.newId
|
url: '/drivingSchool/system/driveSchoolCourse/list?name=' + id + '&deptId=' + this.newId,
|
||||||
})
|
})
|
||||||
this.rightInfoList = res
|
this.rightInfoList = res.data.records
|
||||||
},
|
},
|
||||||
goDetails(id) {
|
goDetails(id) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -283,10 +287,10 @@
|
|||||||
url: '/drivingSchool/system/phone/getPhone?deptId=' + this.newId,
|
url: '/drivingSchool/system/phone/getPhone?deptId=' + this.newId,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
if (ress.code == 200) {
|
if (ress.code == 0) {
|
||||||
this.Phone = ress.data.phone
|
this.Phone = ress.data.phone
|
||||||
}
|
}
|
||||||
if (res.code == 200) {
|
if (res.code == 0) {
|
||||||
this.urlpdf = this.baseUrl + res.data.fileAddress
|
this.urlpdf = this.baseUrl + res.data.fileAddress
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -347,7 +351,7 @@
|
|||||||
let res = await request({
|
let res = await request({
|
||||||
url: `/drivingSchool/system/schoolInfo/list?id=` + this.newId,
|
url: `/drivingSchool/system/schoolInfo/list?id=` + this.newId,
|
||||||
})
|
})
|
||||||
this.jxInfoData = res.rows[0],
|
this.jxInfoData = res.data.records[0],
|
||||||
console.log("驾校信息", this.jxInfoData)
|
console.log("驾校信息", this.jxInfoData)
|
||||||
// this.getRightInfoList(this.jxInfoData.deptId)
|
// this.getRightInfoList(this.jxInfoData.deptId)
|
||||||
this.getJlInfoList(this.jxInfoData.deptId)
|
this.getJlInfoList(this.jxInfoData.deptId)
|
||||||
|
@ -76,24 +76,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</swiper>
|
</swiper>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="right-box">
|
<view class="right-box">
|
||||||
<u-icon name="arrow-right" size="20"></u-icon>
|
<u-icon name="arrow-right" size="20"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="hang-hui"></view>
|
<view class="hang-hui"></view>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="gs-box">
|
<view class="gs-box">
|
||||||
<view class="t_title">优质驾校</view>
|
<view class="t_title">优质驾校</view>
|
||||||
|
|
||||||
<view class="box-goods" v-for="(item, index) in jxglInfoData.rows" :key="index">
|
<view class="box-goods" v-for="(item, index) in jxglInfoData.records" :key="index">
|
||||||
<view class="img-url" @click="goSchoolDetail(item)">
|
<view class="img-url" @click="goSchoolDetail(item)">
|
||||||
<image :src="baseUrl + item.photo" mode=""></image>
|
<image :src="baseUrl + item.photo" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
@ -167,7 +159,11 @@
|
|||||||
kcListInfo: [],
|
kcListInfo: [],
|
||||||
preferentialCurrentIndex: 0,
|
preferentialCurrentIndex: 0,
|
||||||
searchSchool: null,
|
searchSchool: null,
|
||||||
Onedata: null
|
Onedata: null,
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 100,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -218,45 +214,62 @@
|
|||||||
url: "/pages/index/schoolFeedback"
|
url: "/pages/index/schoolFeedback"
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 获取
|
||||||
|
*/
|
||||||
async getOne() {
|
async getOne() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: "/drivingSchool/system/driveSchoolCourse/getOne",
|
url: "/drivingSchool/system/driveSchoolCourse/getOne",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
console.log(res);
|
|
||||||
this.Onedata = res.data
|
this.Onedata = res.data
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 搜索
|
||||||
|
*/
|
||||||
async findKcListInfo() {
|
async findKcListInfo() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: "/drivingSchool/system/driveSchoolCourse/list",
|
url: "/drivingSchool/system/driveSchoolCourse/list",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: this.queryParams
|
||||||
})
|
})
|
||||||
this.kcListInfo = res.rows
|
this.kcListInfo = res.data.records
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 驾校讯息
|
||||||
|
*/
|
||||||
async getJxglInfoData() {
|
async getJxglInfoData() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: "/drivingSchool/system/schoolInfo/list",
|
url: "/drivingSchool/system/schoolInfo/list",
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: this.queryParams
|
||||||
})
|
})
|
||||||
this.jxglInfoData = res
|
this.jxglInfoData = res.data
|
||||||
console.log("驾校信息", this.jxglInfoData)
|
console.log("驾校信息", this.jxglInfoData)
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 轮播图
|
||||||
|
*/
|
||||||
async getSwiperInfoData() {
|
async getSwiperInfoData() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/drivingSchool/system/swiper/list?deptId=100',
|
url: '/drivingSchool/system/swiper/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: this.queryParams
|
||||||
})
|
})
|
||||||
this.swiperListData = res.data
|
this.swiperListData = res.data
|
||||||
|
console.log(this.swiperListData)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实时讯息
|
||||||
|
*/
|
||||||
async getTextList() {
|
async getTextList() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/drivingSchool/text/list',
|
url: '/drivingSchool/text/list',
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params: this.queryParams
|
||||||
})
|
})
|
||||||
this.textList = res.rows
|
this.textList = res.data.records
|
||||||
},
|
},
|
||||||
goBmPage() {
|
goBmPage() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
@ -54,7 +54,11 @@
|
|||||||
show: false,
|
show: false,
|
||||||
status: 'loading',
|
status: 'loading',
|
||||||
baseUrl: this.$baseUrl,
|
baseUrl: this.$baseUrl,
|
||||||
schoolList: []
|
schoolList: [],
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 100,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@ -97,9 +101,10 @@
|
|||||||
async findSelfSchoolList() {
|
async findSelfSchoolList() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: `/drivingSchool/system/schoolInfo/list`,
|
url: `/drivingSchool/system/schoolInfo/list`,
|
||||||
method: `get`
|
method: `get`,
|
||||||
|
params: this.queryParams
|
||||||
})
|
})
|
||||||
this.schoolList = res.rows,
|
this.schoolList = res.data.records,
|
||||||
console.log("列表数据为 =============>>>", this.schoolList)
|
console.log("列表数据为 =============>>>", this.schoolList)
|
||||||
},
|
},
|
||||||
goScheduleTraining(id) {
|
goScheduleTraining(id) {
|
||||||
|
@ -190,8 +190,8 @@
|
|||||||
// if (this.loginStatus) {
|
// if (this.loginStatus) {
|
||||||
// clearInterval(this.loginStatus)
|
// clearInterval(this.loginStatus)
|
||||||
// }
|
// }
|
||||||
uni.setStorageSync('App-Token', rex.data.token);
|
setToken(rex.data.data.token)
|
||||||
debugger
|
//uni.setStorageSync('App-Token', );
|
||||||
if (this.returnUrl) {
|
if (this.returnUrl) {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
} else {
|
} else {
|
||||||
@ -239,11 +239,9 @@
|
|||||||
|
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
let userJson = {}
|
let userJson = {}
|
||||||
userJson.userId = res.user.userId
|
userJson.userId = res.data.user.id
|
||||||
console.log('身份信息', res, res.role.length);
|
uni.setStorageSync('role', res.data.role)
|
||||||
uni.setStorageSync('role', res.role)
|
uni.setStorageSync('userinfo', res.data.user)
|
||||||
uni.setStorageSync('userinfo', res.user)
|
|
||||||
|
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/index/index'
|
url: '/pages/index/index'
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user