unknown
12 months ago
31 changed files with 452 additions and 196 deletions
-
15components/commentItem/commentItem.vue
-
31components/nodata/nodata.vue
-
4config/api.js
-
10pages.json
-
19pages/carEntry/evaluate/comp/evaluateItem.vue
-
83pages/carEntry/evaluate/evaluate.vue
-
2pages/indexEntry/consult/pubComplaint/pubComplaint.vue
-
2pages/indexEntry/consult/pubConsult/pubConsult.vue
-
3pages/indexEntry/consult/record/comp/complaintItem.vue
-
5pages/indexEntry/consult/record/comp/consultItem.vue
-
7pages/indexEntry/consult/record/record.vue
-
18pages/indexEntry/enroll/registInfo/registInfo.vue
-
3pages/indexEntry/examines/allExamines/allExamines.vue
-
17pages/indexEntry/examines/allNews/allNews.vue
-
2pages/indexEntry/examines/detail/detail.vue
-
64pages/indexEntry/findShcool/coachComment/coachComment.vue
-
14pages/indexEntry/findShcool/comments/comments.vue
-
8pages/indexEntry/findShcool/comp/schoolItem.vue
-
14pages/indexEntry/findShcool/findShcool.vue
-
6pages/indexEntry/findShcool/shcoolComment/shcoolComment.vue
-
12pages/indexEntry/findShcool/shcoolDetail/comp/tab1.vue
-
24pages/indexEntry/findShcool/shcoolDetail/comp/tab3.vue
-
15pages/indexEntry/findShcool/shcoolDetail/shcoolDetail.vue
-
4pages/indexEntry/publicVideo/videoDetail/videoDetail.vue
-
57pages/mineEntry/myCollect/myCollect.vue
-
79pages/mineEntry/myEvaluate/comp/commentItem.vue
-
26pages/mineEntry/myEvaluate/myEvaluate.vue
-
2pages/tabbar/learnCar/comp/subject2.vue
-
2pages/tabbar/learnCar/comp/subject3.vue
-
85store/modules/school.js
-
3uni_modules/uview-ui/components/u-album/u-album.vue
@ -0,0 +1,31 @@ |
|||||
|
<template> |
||||
|
<view class="noDate"> |
||||
|
<view class="img"> |
||||
|
<image src="https://jiangxijiakao-1.oss-cn-hangzhou.aliyuncs.com/complain/2023-10-09/1696832739095-nodata.png" mode=""></image> |
||||
|
</view> |
||||
|
<view class="text"> |
||||
|
<text solt>暂无数据</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.noDate { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
justify-content: center; |
||||
|
flex-direction: column; |
||||
|
} |
||||
|
.img { |
||||
|
width: 438rpx;height: 286rpx; |
||||
|
|
||||
|
} |
||||
|
.text { |
||||
|
font-size: 26rpx; |
||||
|
color: #999; |
||||
|
margin-top: 60rpx; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,79 @@ |
|||||
|
<template> |
||||
|
<view class="box"> |
||||
|
<view class="top_row"> |
||||
|
<view class="avatar"> |
||||
|
<image :src="item.phone" mode=""></image> |
||||
|
</view> |
||||
|
<view class="textInfo"> |
||||
|
<view class="name oneRowText">{{ item.name}}</view> |
||||
|
<view class="starBox"> |
||||
|
<u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="item.stars" :count="5" :readonly="true" ></u-rate> |
||||
|
<view class="num">{{ item.stars }}分</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="date">{{ $u.date(item.createTime ,'yyyy/mm/dd' ) }}</view> |
||||
|
</view> |
||||
|
<view class="text">{{ item.description }}</view> |
||||
|
<view class="imgBox" v-if="item.images&&item.images.length"> |
||||
|
<u-album :urls="item.images" :multipleSize="'160rpx'"></u-album> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
props: ['item'] |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
.top_row { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
|
margin-bottom: 24rpx; |
||||
|
.avatar { |
||||
|
width: 60rpx; |
||||
|
height: 60rpx; |
||||
|
overflow: hidden; |
||||
|
border-radius: 50%; |
||||
|
background: #f6f6f6; |
||||
|
} |
||||
|
.textInfo { |
||||
|
flex: 1; |
||||
|
width: 0; |
||||
|
.name { |
||||
|
font-size: 26rpx; |
||||
|
color: #333; |
||||
|
font-weight: 500; |
||||
|
} |
||||
|
padding: 0 10rpx; |
||||
|
|
||||
|
} |
||||
|
.date { |
||||
|
font-size: 24rpx; |
||||
|
color: #686B73; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.starBox { |
||||
|
padding: 10rpx 0 0rpx 0; |
||||
|
} |
||||
|
|
||||
|
.text { |
||||
|
font-size: 24rpx; |
||||
|
} |
||||
|
|
||||
|
.imgBox { |
||||
|
display: flex; |
||||
|
flex-wrap: wrap; |
||||
|
padding-top: 20rpx; |
||||
|
.img { |
||||
|
margin-top: 20rpx; |
||||
|
width: 160rpx; |
||||
|
height: 160rpx; |
||||
|
border-radius: 8rpx; |
||||
|
overflow: hidden; |
||||
|
margin-right: 24rpx; |
||||
|
} |
||||
|
} |
||||
|
</style> |
@ -1,91 +1,24 @@ |
|||||
|
|
||||
// import addApi from '@/api/add.js'; // 引入
|
// import addApi from '@/api/add.js'; // 引入
|
||||
|
|
||||
const add = { |
|
||||
|
const school = { |
||||
state: { |
state: { |
||||
addList: [] |
|
||||
|
schoolCoach: {}, |
||||
|
schoolClass: {} |
||||
}, |
}, |
||||
mutations: { |
mutations: { |
||||
// 更新广告列表
|
|
||||
upDateAddList(state, list) { |
|
||||
state.addList = list |
|
||||
|
// 更新选择的驾校与教练
|
||||
|
upDateSchoolCoach(state, obj) { |
||||
|
state.schoolCoach = obj |
||||
}, |
}, |
||||
|
|
||||
// 更新当前广告点击量
|
|
||||
upDateViews(state, id) { |
|
||||
let add = state.addList.find(item=>item.id==id) |
|
||||
add.clicks ++ |
|
||||
|
upDateSchoolClass(state, obj) { |
||||
|
state.schoolClass = obj |
||||
}, |
}, |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
}, |
}, |
||||
actions: { |
actions: { |
||||
// 点击广告
|
|
||||
async addClick({commit, dispatch}, curAdd) { |
|
||||
// await dispatch('updateStatistics')
|
|
||||
curAdd.clicks ++ |
|
||||
if(!curAdd.adBannerDO.jumpUrl) { |
|
||||
return false |
|
||||
} |
|
||||
|
|
||||
commit('updateWebVeiwUrl', curAdd.adBannerDO.jumpUrl) |
|
||||
uni.navigateTo({ |
|
||||
url:'/pages/commeWebView/addWebView' |
|
||||
}) |
|
||||
}, |
|
||||
// 获取当前广告
|
|
||||
getCurrentAdd({state},id) { |
|
||||
console.log(id) |
|
||||
console.log(state.addList) |
|
||||
let curAdd = state.addList.find(item=>item.id==id) |
|
||||
if(curAdd) { |
|
||||
curAdd.views ++ |
|
||||
return curAdd |
|
||||
}else { |
|
||||
return {} |
|
||||
} |
|
||||
}, |
|
||||
// // 广告
|
|
||||
// async addPageFn({commit,state, dispatch}) {
|
|
||||
// await dispatch('updateStatistics')
|
|
||||
// let obj = {
|
|
||||
// pageNo: 1,
|
|
||||
// pageSize: 30,
|
|
||||
// adClient: 1
|
|
||||
// }
|
|
||||
// const [err, res] = await addApi.addPage(obj)
|
|
||||
// let list = res.data.records.map(item=>{
|
|
||||
// item.views = 0
|
|
||||
// item.clicks = 0
|
|
||||
// return item
|
|
||||
// })
|
|
||||
// commit('upDateAddList', list)
|
|
||||
// console.log('广告列表')
|
|
||||
// console.log(list)
|
|
||||
|
|
||||
// },
|
|
||||
// 更新广告点击量
|
|
||||
async updateStatistics({ dispatch,state, commit }) { |
|
||||
let statistics = state.addList.filter(item=>item.views) |
|
||||
console.log('调用更新广告接口') |
|
||||
if(statistics.length) { |
|
||||
let stcsList = statistics.map(add=>{ |
|
||||
let obj = { |
|
||||
"adPositionId": add.id, |
|
||||
"adId": add.adId, |
|
||||
"views": add.views, |
|
||||
"clicks": add.clicks |
|
||||
} |
|
||||
return obj |
|
||||
}) |
|
||||
const [err, res] = await addApi.batchUpdate(stcsList) |
|
||||
console.log('更新广告点击量请求结果') |
|
||||
console.log(res) |
|
||||
} |
|
||||
} |
|
||||
} |
} |
||||
} |
} |
||||
|
|
||||
export default add |
|
||||
|
export default school |
Write
Preview
Loading…
Cancel
Save
Reference in new issue