|
@@ -3,7 +3,7 @@
|
|
<view v-for="(item , index) in drivers" :Key="index" class="forList">
|
|
<view v-for="(item , index) in drivers" :Key="index" class="forList">
|
|
<view class='flex' @click="navToDetailPage(item)">
|
|
<view class='flex' @click="navToDetailPage(item)">
|
|
<view class="logo">
|
|
<view class="logo">
|
|
- 粮商
|
|
|
|
|
|
+ {{item.logo}}
|
|
</view>
|
|
</view>
|
|
<view class="company">{{item.driverName}}</view>
|
|
<view class="company">{{item.driverName}}</view>
|
|
|
|
|
|
@@ -131,7 +131,9 @@
|
|
commonId: this.userInfo.id,
|
|
commonId: this.userInfo.id,
|
|
pcFlag: 0
|
|
pcFlag: 0
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
- console.log("成功连接")
|
|
|
|
|
|
+ for(var i = 0 ; i < res.data.data.records.length ; i++){
|
|
|
|
+ res.data.data.records[i].logo = res.data.data.records[i].driverName.substr(0,1)
|
|
|
|
+ }
|
|
this.drivers = res.data.data.records
|
|
this.drivers = res.data.data.records
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
@@ -346,8 +348,10 @@
|
|
.logo {
|
|
.logo {
|
|
width: 35px;
|
|
width: 35px;
|
|
height: 35px;
|
|
height: 35px;
|
|
- background-color: #E9F8F0;
|
|
|
|
- color: #22C572;
|
|
|
|
|
|
+ background-color: #FEECE6;
|
|
|
|
+ color: #FE6430;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ font-size: 16px;
|
|
text-align: center;
|
|
text-align: center;
|
|
line-height: 35px;
|
|
line-height: 35px;
|
|
padding: 0 3px;
|
|
padding: 0 3px;
|