Browse Source

增加驾校场地

master
unknown 1 year ago
parent
commit
cc6eba5ec9
  1. 16
      components/commentItem/commentItem.vue
  2. 13
      components/searchRow/searchRow.vue
  3. 15
      config/api.js
  4. 50
      config/request.js
  5. 28
      pages.json
  6. 7
      pages/tabbar/mine/index.vue
  7. 7
      pages/tabbar/student/index.vue
  8. 10
      pages/userCenter/myCar/myCar.vue
  9. 80
      pages/userCenter/schoolCoach/coachComment/coachComment.vue
  10. 68
      pages/userCenter/schoolCoach/coachComment/comp/comments.vue
  11. 93
      pages/userCenter/schoolCoach/coachComment/comp/info.vue
  12. 137
      pages/userCenter/schoolCoach/schoolCoach.vue
  13. 147
      pages/userCenter/schoolSite/schoolSite.vue
  14. 86
      pages/userCenter/studentComment/studentComment.vue
  15. BIN
      static/images/coach/coach.png
  16. BIN
      static/images/coach/site.png
  17. BIN
      static/images/index/avatar.png
  18. BIN
      static/images/userCenter/adsIcon.png
  19. BIN
      static/images/userCenter/coach.png
  20. BIN
      static/images/userCenter/site.png
  21. BIN
      static/images/userCenter/siteIcon.png
  22. 2
      store/modules/user.js
  23. 4
      uni_modules/uview-ui/components/u-search/u-search.vue

16
components/commentItem/commentItem.vue

@ -1,27 +1,29 @@
<template>
<view class="box">
<view class="flex-b">
<view class="name">匿名用户</view>
<view class="date">2023/08/08</view>
<!-- 匿名用户 -->
<view class="name">{{item.studentName}}</view>
<view class="date">{{ $u.timeFormat(item.createTime, 'yyyy-mm-dd')}}</view>
</view>
<view class="starBox">
<u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="4" disabled></u-rate>
<view class="num">4.9</view>
<u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="4" :readonly="true"></u-rate>
<view class="num">{{item.stars}}</view>
</view>
<view class="text">教学质量高技术好超有耐心有责任心学车就找这个驾校教练都超好满意满意满意</view>
<view class="text">{{item.description}}</view>
<!-- <view class="imgBox">
<view class="img" v-for="(item,index) in urls2" :key="index">
<image :src="item" mode=""></image>
</view>
</view> -->
<view class="imgBox">
<u-album :urls="urls2" :multipleSize="'160rpx'"></u-album>
<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'],
data() {
return {
urls2: [

13
components/searchRow/searchRow.vue

@ -5,8 +5,7 @@
<image src="@/static/images/index/searchIcon.png" mode=""></image>
</view>
<view class="inputBox">
<u--input :placeholder="placeholder" border="none" clearable v-model="keywords" :color="'#fff'" :fontSize="'28rpx'"
placeholderClass="placeholderClassFFF"></u--input>
<u-search :placeholder="placeholder" v-model="keyword" :color="'#fff'" placeholderColor="#fff" :bgColor="'transparent'" :showAction="false" @search="$u.debounce(searchFn, 500)" @clear="searchFn"></u-search>
</view>
</view>
</view>
@ -17,7 +16,12 @@
props: ['placeholder'],
data() {
return {
keywords: ''
keyword: ''
}
},
methods: {
searchFn() {
this.$emit('searchFn', this.keyword)
}
}
}
@ -41,11 +45,12 @@
}
.inputBox {
padding-left: 28rpx;
flex: 1;
color: #fff;
font-size: 28rpx;
}
}
}
</style>

15
config/api.js

@ -50,6 +50,21 @@ export const schoolClass = (params) => http.get('business/school-class/get', {pa
export const studentDetail = (params) => http.get('business/student-record/getStudent', {params} ,)
// 获得教练车信息分页
export const carPage = (params) => http.get('business/car/page', {params} ,)
// 驾校场地分页
export const sitePage = (params) => http.get('business/training-site/page', {params} ,)
// 驾校教练分页
export const coachPage = (params) => http.get('business/coach/page', {params})
// 驾校教练详情
export const coachDetail = (params) => http.get('business/coach/get', {params})
// 教练评价列表分页
export const coachCommentPage = (params) => http.get('app/coach-comment/page', {params})
// 获得驾校评价
export const schoolCommentPage = (params) => http.get('business/school-comment/page', {params})

50
config/request.js

@ -1,6 +1,7 @@
import { H5_API, WX_API,httpPrefix } from './site.config.js'
import { checkToken } from './utils'
const ContentType = ['application/json;charset=utf-8', 'application/x-www-form-urlencoded','multipart/form-data', 'application/x-www-form-urlencoded; charset=UTF-8'];
@ -42,33 +43,34 @@ module.exports = (vm) => {
}
// get请求映射params参数
console.log(config.method)
// if (config.method === 'GET' && config.params) {
// let url = config.url + '?';
// for (const propName of Object.keys(config.params)) {
// const value = config.params[propName];
// const part = encodeURIComponent(propName) + '='
// if (value !== null && typeof(value) !== "undefined") {
// console.log(config.method)
// if (config.method === 'GET' && config.params) {
// // config.params = qs.stringify(config.params, { allowDots: true })
// let url = config.url + '?';
// for (const propName of Object.keys(config.params)) {
// const value = config.params[propName];
// const part = encodeURIComponent(propName) + '='
// if (value !== null && typeof(value) !== "undefined") {
// if (typeof value === 'object') {
// for (const key of Object.keys(value)) {
// let params = propName + '[' + key + ']';
// const subPart = params + '='
// // console.log(subPart + (value[key]) + '&')
// url += subPart + decodeURIComponent(value[key]) + "&";
// if (typeof value === 'object') {
// for (const key of Object.keys(value)) {
// let params = propName + '[' + key + ']';
// const subPart = params + '='
// console.log(qs.stringify(value[key]))
// url += subPart + decodeURIComponent(value[key]) + "&";
// }
// }
// } else {
// url += part + encodeURI(value) + "&";
// }
// }
// }
// url = url.slice(0, -1);
// console.log(url)
// config.params = {};
// config.url = url;
// }
// } else {
// url += part + encodeURI(value) + "&";
// }
// }
// }
// url = url.slice(0, -1);
// // console.log(url)
// config.params = {};
// config.url = url;
// }
return config
}, config => { // 可使用async await 做异步操作
return Promise.reject(config)

28
pages.json

@ -232,6 +232,34 @@
}
},
{
"path": "schoolSite/schoolSite",
"style": {
"navigationBarTitleText": "驾校场地",
"navigationStyle": "custom",
"enablePullDownRefresh": true,
"backgroundTextStyle": "dark"
}
},
{
"path": "schoolCoach/schoolCoach",
"style": {
"navigationBarTitleText": "驾校教练",
"navigationStyle": "custom",
"enablePullDownRefresh": true,
"backgroundTextStyle": "dark"
}
},
{
"path": "schoolCoach/coachComment/coachComment",
"style": {
"navigationBarTitleText": "教练详情",
"navigationStyle": "custom",
"enablePullDownRefresh": true,
"backgroundTextStyle": "dark"
}
},
{
"path": "scanCode/scanCode",
"style": {
"navigationBarTitleText": "个人二维码",

7
pages/tabbar/mine/index.vue

@ -16,7 +16,7 @@
<user-info/>
</view>
<view class="card">
<view class="card" style="padding: 35rpx 0 0 0;">
<view class="ul">
<view class="li" v-for="(item,index) in tabData" :key="index" @click="$goPage(item.url)">
<view class="icon">
@ -43,7 +43,7 @@
}
},
onLoad() {
this.$store.dispatch('refreshToken')
this.initMenu()
this.roleListFn()
},
@ -66,9 +66,12 @@
}else if(this.identity=='校长') {
this.tabData = [
{text: '我的车辆', icon: require('../../../static/images/coach/ic_cheliang.png'), id: 3, url: '/pages/userCenter/myCar/myCar'},
{text: '驾校场地', icon: require('../../../static/images/coach/site.png'), id: 7, url: '/pages/userCenter/schoolSite/schoolSite'},
{text: '驾校教练', icon: require('../../../static/images/coach/coach.png'), id: 7, url: '/pages/userCenter/schoolCoach/schoolCoach'},
{text: '教学数据', icon: require('../../../static/images/coach/ic_shuju.png'), id: 6, url: '/pages/userCenter/teachingData/teachingData'},
{text: '学员评价', icon: require('../../../static/images/coach/ic_pingjia.png'), id: 5, url: '/pages/userCenter/studentComment/studentComment'},
{text: '学员退款', icon: require('../../../static/images/coach/ic_tuikuan.png'), id: 7, url: '/pages/userCenter/refund/refund'},
]
}else if(this.identity=='考场模拟教练') {
this.tabData = [

7
pages/tabbar/student/index.vue

@ -145,9 +145,10 @@
this.showDatePicker = false
// this.params.applyDate = this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd')
this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd')
let startTimer = this.screen.timer + ' 00:00:00'
let endTimer = this.screen.timer+ ' 23:59:59'
this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd') + ' '
let startTimer = this.screen.timer + '00:00:00'
let endTimer = this.screen.timer+ '23:59:59'
console.log(endTimer)
this.params.applyDate = [startTimer, endTimer]
// this.params['applyDate[0]'] = encodeURI(startTimer)
// this.params['applyDate[1]'] = encodeURI(endTimer)

10
pages/userCenter/myCar/myCar.vue

@ -3,7 +3,7 @@
<topNavbar title="我的车辆"></topNavbar>
<view class="pad">
<view class="searcBox">
<searchRow placeholder="搜索车牌号"></searchRow>
<searchRow placeholder="搜索车牌号" @searchFn="searchFn"></searchRow>
</view>
<!-- <view class="card" style="margin-bottom: 24rpx;">
<view class="add">
@ -62,7 +62,15 @@
this.total = res.total
if(this.list.length>=this.total) this.status = 'nomore'
console.log(res)
},
searchFn(val) {
console.log(val)
this.params.licnum = val
this.list = []
this.params.pageNo = 1
this.carPageFn()
}
}
}
</script>

80
pages/userCenter/schoolCoach/coachComment/coachComment.vue

@ -0,0 +1,80 @@
<template>
<view class="pageBgImg">
<view class="pad">
<topNavbar title="教练详情"></topNavbar>
<view class="infoBox">
<info :showSign="true" :item="info"></info>
</view>
<comments :list="list" @changeNav="changeNav"></comments>
<view style="padding-bottom: 20rpx;" v-if="list.length">
<u-loadmore :status="status" />
</view>
<nodata v-if="!list.length&&status=='nomore'"></nodata>
</view>
</view>
</template>
<script>
import comments from './comp/comments.vue'
import info from './comp/info.vue'
import { coachDetail, coachCommentPage } from '@/config/api.js'
export default {
components: { comments, info},
data() {
return {
params: {
pageNo: 1,
pageSize: 20,
coachId: '',
coachType: 1,
condition: 0
},
total: 20,
list: [],
coachList: [],
status: 'loading',
info: {}
}
},
onLoad(options) {
this.params.coachId = options.id
this.coachDetailFn()
this.coachCommentPageFn()
},
methods: {
//
async coachDetailFn() {
const {data: res} = await coachDetail({id: this.params.coachId})
this.info = res
},
changeNav(val) {
this.params.condition = val
this.initList()
},
initList() {
this.params.pageNo = 1
this.status = 'loading'
this.list = []
this.coachCommentPageFn()
},
async coachCommentPageFn() {
const {data: res} = await coachCommentPage(this.params)
this.params.pageNo ++
this.total = res.total
let arr = res.list.map(item=>{
if(item.images) {
item.images = item.images.split(',')
}
return item
})
this.list.push(...arr)
if(this.list.length>=this.list.length) this.status = 'nomore'
}
}
}
</script>
<style lang="scss" scoped>
</style>

68
pages/userCenter/schoolCoach/coachComment/comp/comments.vue

@ -0,0 +1,68 @@
<template>
<view class="comments">
<view class="navBox">
<view class="nav" v-for="(item,index) in navList" :key="index" @click="changeNav(item)" :class="{active: currentNav==item.id}">{{ item.text }}</view>
</view>
<view class="card" v-for="(item,index) in list">
<commentItem :item="item"/>
</view>
</view>
</template>
<script>
// import commentItem from './commentItem'
export default {
// components: { commentItem },
props: ['list'],
data() {
return {
// 0123
navList: [
{text: '全部', id: 0},
{text: '最新', id: 2},
{text: '有图', id: 1},
{text: '有视频', id: 3},
],
currentNav: 0,
}
},
methods: {
changeNav(item) {
this.currentNav = item.id
this.$emit('changeNav', item.id)
}
}
}
</script>
<style lang="scss" scoped>
.comments {
width: 100%;
padding: 0 28rpx;
.navBox {
padding: 32rpx 0 24rpx 0;
display: flex;
.nav {
padding: 10rpx 24rpx;
height: 60rpx;
background: rgba(25,137,250,0.1);
border-radius: 8rpx;
border: 2rpx solid #1989FA;
font-size: 28rpx;
color: $themC;
margin-right: 20rpx;
text-align: center;
&.active {
color: #fff;
background: $themC;
}
}
}
.card {
width: 100%;
padding: 24rpx 28rpx;
margin-bottom: 20rpx;
}
}
</style>

93
pages/userCenter/schoolCoach/coachComment/comp/info.vue

@ -0,0 +1,93 @@
<template>
<view class="tabCon">
<view class="tab1">
<view class="card" >
<view class="flex">
<view class="avatar">
<image :src="item.photoPath" mode="" @error="handleImageError(item)"></image>
</view>
<view class="rightCon">
<view class="name">{{ item.name }}</view>
<view class="flex-b">
<view class="starBox">
<u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="item.stars" disabled style="pointer-events: none;"></u-rate>
<view class="num">{{item.stars}}</view>
</view>
</view>
</view>
</view>
<view class="text">证件号{{item.idcard}}</view>
<view class="text">联系电话{{item.mobile}}</view>
<view class="text">绑定学员<text>暂时没字段</text></view>
</view>
</view>
</view>
</template>
<script>
export default {
props: ['item', ],
methods: {
handleImageError(item) {
item.photoPath = require('@/static/images/index/avatar.png')
}
}
}
</script>
<style lang="scss" scoped>
.tabCon {
width: 100%;
.tab1 {
width: 100%;
.card {
width: 100%;
padding: 36rpx;
// margin-top: 20rpx;
.flex {
margin-bottom: 20rpx;
}
.text {
font-size: 28rpx;
padding: 10rpx 0;
text {
color: $themC;
}
}
.avatar {
width: 100rpx;
height: 98rpx;
border-radius: 50%;
margin-right: 34rpx;
background-color: #f6f6f6;
}
.rightCon {
flex: 1;
width: 0;
.name {
font-size: 32rpx;
color: #333;
font-weight: 500;
}
.flex-b {
margin-top: 14rpx;
.more {
display: flex;
align-items: center;
.moreText {
font-size: 24rpx;
color: #686B73;
margin-right: 10rpx;
}
}
}
}
}
}
}
</style>

137
pages/userCenter/schoolCoach/schoolCoach.vue

@ -0,0 +1,137 @@
<template>
<view class="pageBgImg">
<topNavbar title="驾校教练"></topNavbar>
<view class="pad">
<view class="search_Box">
<searchRow placeholder="搜索教练员" @searchFn="searchFn"></searchRow>
</view>
<view class="ul">
<view class="card" v-for="(item,index) in list" :key="index" @click="$goPage('/pages/userCenter/schoolCoach/coachComment/coachComment?id='+ item.id)">
<view class="avatar">
<image :src="item.photoPath" mode="" @error="handleImageError(item)"></image>
</view>
<view class="rightTxt">
<view class="name">{{item.name}}</view>
<view class="star_row">
<view class="starBox">
<u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="item.stars" :readonly="true" style="pointer-events: none;"></u-rate>
<view class="num">{{item.stars}}</view>
</view>
<moreRight text="查看详情"/>
</view>
</view>
</view>
</view>
</view>
<view style="padding-bottom: 20rpx;" v-if="list.length">
<u-loadmore :status="status" />
</view>
<nodata v-if="!list.length&&status=='nomore'"></nodata>
</view>
</template>
<script>
import { coachPage } from '@/config/api.js'
export default {
data() {
return {
list: [],
params: {
pageNo: 1,
pageSize: 20
},
total: 20,
status: 'loading'
}
},
onLoad() {
this.coachPageFn()
},
onPullDownRefresh() {
this.list = []
this.params.pageNo = 1
this.coachPageFn().then(()=>{uni.stopPullDownRefresh()})
},
onReachBottom() {
if(this.total>this.list.length) {
this.coachPageFn()
}
},
methods: {
async coachPageFn() {
const {data: res} = await coachPage(this.params)
this.params.pageNo ++
this.list.push(...res.list)
this.total = res.total
if(this.list.length>=this.total) {
this.status = 'nomore'
}else {
this.status = 'loading'
}
console.log(res)
},
searchFn(val) {
console.log(val)
this.params.name = val
this.list = []
this.params.pageNo = 1
this.coachPageFn()
},
handleImageError(item) {
item.photoPath = require('@/static/images/index/avatar.png')
}
}
}
</script>
<style lang="scss" scoped>
.pageBgImg {
.search_Box {
margin-bottom: 20rpx;
searchrow {
}
}
.ul {
width: 100%;
.card {
padding: 28rpx 30rpx;
margin-bottom: 20rpx;
display: flex;
align-items: center;
.avatar {
width: 108rpx;
height: 108rpx;
border-radius: 50%;
overflow: hidden;
}
.rightTxt {
padding-left: 20rpx;
flex: 1;
.name {
font-size: 32rpx;
color: #333;
font-weight: 500;
margin-bottom: 10rpx;
}
.star_row {
display: flex;
justify-content: space-between;
.starBox {
display: flex;
padding: 6rpx 0 6rpx 0;
.num {
color: $themC;
}
}
}
}
}
}
}
</style>

147
pages/userCenter/schoolSite/schoolSite.vue

@ -0,0 +1,147 @@
<template>
<view class="pageBgImg">
<topNavbar title="驾校场地"></topNavbar>
<view class="pad">
<view class="search_Box">
<searchRow placeholder="搜索场地名称" @searchFn="searchFn"></searchRow>
</view>
<view class="ul">
<view class="card" v-for="(item,index) in list" :key="index">
<view class="name_row">
<view class="icon">
<image src="@/static/images/userCenter/siteIcon.png" mode=""></image>
</view>
<view class="name">{{item.name}}</view>
</view>
<view class="addres_row">
<view class="icon">
<image src="@/static/images/userCenter/adsIcon.png" mode=""></image>
</view>
<view class="ads">{{item.address}}</view>
</view>
<view class="status_row">
使用状态<text v-if="item.siteStatus==1">正常</text> <text v-if="item.siteStatus==0" class="orange">停用</text>
</view>
</view>
</view>
</view>
<view style="padding-bottom: 20rpx;" v-if="list.length">
<u-loadmore :status="status" />
</view>
<nodata v-if="!list.length&&status=='nomore'"></nodata>
</view>
</template>
<script>
import { sitePage } from '@/config/api.js'
export default {
data() {
return {
list: [],
params: {
pageNo: 1,
pageSize: 20
},
total: 20,
status: 'loading'
}
},
onLoad() {
this.sitePageFn()
},
onPullDownRefresh() {
this.list = []
this.params.pageNo = 1
this.sitePageFn().then(()=>{uni.stopPullDownRefresh()})
},
onReachBottom() {
if(this.total>this.list.length) {
this.sitePageFn()
}
},
methods: {
async sitePageFn() {
const {data: res} = await sitePage(this.params)
this.params.pageNo ++
this.list.push(...res.list)
this.total = res.total
if(this.list.length>=this.total) {
this.status = 'nomore'
}else {
this.status = 'loading'
}
console.log(res)
},
searchFn(val) {
console.log(val)
this.params.name = val
this.list = []
this.params.pageNo = 1
this.sitePageFn()
}
}
}
</script>
<style lang="scss" scoped>
.pageBgImg {
.search_Box {
margin-bottom: 20rpx;
searchrow {
}
}
.ul {
width: 100%;
.card {
padding: 28rpx 30rpx;
margin-bottom: 20rpx;
.name_row {
display: flex;
align-items: center;
.icon {
width: 30rpx;
height: 32rpx;
}
.name {
font-size: 32rpx;
font-weight: 600;
color: #333333;
margin-left: 10rpx;
}
}
.addres_row {
padding: 16rpx 0 36rpx 0;
display: flex;
align-items: center;
.icon {
width: 30rpx;
height: 32rpx;
}
.ads {
font-size: 24rpx;
color: #333333;
margin-left: 10rpx;
}
}
.status_row {
font-size: 24rpx;
color: #686B73;
text {
color: #1989FA;
&.orange {
color: #FF6A2A;
}
}
}
}
}
}
</style>

86
pages/userCenter/studentComment/studentComment.vue

@ -6,14 +6,14 @@
<searchRow placeholder="搜索学员姓名"></searchRow>
</view>
<view class="tabs">
<view class="tab active">全部10</view>
<view class="tab">匿名1</view>
<view class="tab">有图2</view>
<view class="tab">有视频6</view>
<view class="tab" :class="{active: this.params.condition==0}" @click="changeTab(0)">全部0</view>
<view class="tab" :class="{active: this.params.condition==1}" @click="changeTab(1)">匿名1</view>
<view class="tab" :class="{active: this.params.condition==2}" @click="changeTab(2)">有图2</view>
<view class="tab" :class="{active: this.params.condition==3}" @click="changeTab(3)">有视频3</view>
</view>
<view class="list">
<view class="card">
<commentItem/>
<view class="card" v-for="(item,index) in list" :key="index">
<commentItem :item="item" />
</view>
</view>
</view>
@ -21,8 +21,82 @@
</template>
<script>
import { schoolCommentPage } from '@/config/api.js'
export default {
data() {
return {
list: [],
tabData: [
{id: 0, lab: '全部'},
{id: 1, lab: '有图'},
{id: 2, lab: '匿名'},
{id: 3, lab: '有视频'},
],
params: {
pageNo: 1,
pageSize: 20,
schoolId: '1590992062959960065',
condition: 0
},
// 0 1 2 3
total: 20,
status: 'loading'
}
},
onLoad() {
this.schoolCommentPageFn()
},
onPullDownRefresh() {
this.list = []
this.params.pageNo = 1
this.schoolCommentPageFn().then(()=>{uni.stopPullDownRefresh()})
},
onReachBottom() {
if(this.total>this.list.length) {
this.schoolCommentPageFn()
}
},
methods: {
changeTab(val) {
this.params.condition = val
this.initList()
},
initList() {
this.list = []
this.params.pageNo = 1
this.schoolCommentPageFn()
},
async schoolCommentPageFn() {
const {data: res} = await schoolCommentPage(this.params)
this.params.pageNo ++
let arr = res.list.map(item=>{
if(item.images) {
item.images = item.images.split(',')
}
return item
})
this.list.push(...arr)
this.total = res.total
if(this.list.length>=this.total) {
this.status = 'nomore'
}else {
this.status = 'loading'
}
console.log(res)
},
searchFn(val) {
console.log(val)
this.params.name = val
this.list = []
this.params.pageNo = 1
this.schoolCommentPageFn()
}
}
}
</script>
<style lang="scss" scoped>
.card {

BIN
static/images/coach/coach.png

After

Width: 72  |  Height: 72  |  Size: 3.3 KiB

BIN
static/images/coach/site.png

After

Width: 72  |  Height: 72  |  Size: 2.9 KiB

BIN
static/images/index/avatar.png

After

Width: 50  |  Height: 50  |  Size: 4.5 KiB

BIN
static/images/userCenter/adsIcon.png

After

Width: 32  |  Height: 36  |  Size: 1.2 KiB

BIN
static/images/userCenter/coach.png

After

Width: 72  |  Height: 72  |  Size: 3.3 KiB

BIN
static/images/userCenter/site.png

After

Width: 72  |  Height: 72  |  Size: 2.9 KiB

BIN
static/images/userCenter/siteIcon.png

After

Width: 30  |  Height: 32  |  Size: 982 B

2
store/modules/user.js

@ -65,7 +65,7 @@ const user = {
const http = uni.$u.http
let config = { header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}, custom: { noToken: true } }
let refreshToken = state.vuex_loginInfo.refreshToken
const res = await http.post('system/auth/refresh-token',{refreshToken}, config)
const res = await http.post('system/auth/refresh-token?refreshToken='+ refreshToken, config)
console.log('刷新token结果')
console.log(res)
commit('update_vuex_loginInfo',res.data)

4
uni_modules/uview-ui/components/u-search/u-search.vue

@ -19,14 +19,14 @@
<text class="u-search__content__label">{{ label }}</text>
</slot>
</template>
<view class="u-search__content__icon">
<!-- <view class="u-search__content__icon">
<u-icon
@tap="clickIcon"
:size="searchIconSize"
:name="searchIcon"
:color="searchIconColor ? searchIconColor : color"
></u-icon>
</view>
</view> -->
<input
confirm-type="search"
@blur="blur"

Loading…
Cancel
Save