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