|
@@ -5,7 +5,7 @@
|
|
|
<view class="title" @click="liangShang">
|
|
|
粮商身份
|
|
|
</view>
|
|
|
- <view class="arrows1" @click="liangShang">
|
|
|
+ <view class="arrows1" @click="addliangShang">
|
|
|
<text style="margin-right: 30px;">新增身份</text>
|
|
|
<image src="../../static/img/authentication/jiantou@3x.png" class="arrow"></image>
|
|
|
</view>
|
|
@@ -17,7 +17,7 @@
|
|
|
<view class="title" @click="siJi">
|
|
|
司机身份
|
|
|
</view>
|
|
|
- <view class="arrows1" @click="siJi">
|
|
|
+ <view class="arrows1" @click="addsiJi">
|
|
|
<text style="margin-right: 30px;">新增身份</text>
|
|
|
<image src="../../static/img/authentication/jiantou@3x.png" class="arrow"></image>
|
|
|
</view>
|
|
@@ -162,11 +162,29 @@
|
|
|
url: `/pages/attestation/indexTwo`
|
|
|
})
|
|
|
},
|
|
|
+ addliangShang(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pageD/identity/companyIdentity`
|
|
|
+ })
|
|
|
+ },
|
|
|
siJi(){
|
|
|
uni.navigateTo({
|
|
|
url: `/pages/attestation/indexThree`
|
|
|
})
|
|
|
},
|
|
|
+ addsiJi(){
|
|
|
+ if(this.drivers.length > 0){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/attestation/indexThree`
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pageD/identity/driverIdentity`
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
driverIdentityEdit(items) {
|
|
|
uni.navigateTo({
|
|
|
url: `/pageD/identity/driverIdentityEdit?id=${items.id}`
|
|
@@ -252,17 +270,19 @@
|
|
|
})
|
|
|
},
|
|
|
getList() {
|
|
|
- this.$api.doRequest('get', '/identityAuthenticationInfo/selectCount', {
|
|
|
- customerTypeFlag:3,customerType:"粮农"
|
|
|
+ this.identityAuthenticationInfo.commonId = this.userInfo.id
|
|
|
+ this.$api.doRequest('get', '/driverViewInfo/selectDriverInfoPage', {
|
|
|
+ pageSize: 10,
|
|
|
+ currentPage: 1,
|
|
|
+ commonId: this.userInfo.id,
|
|
|
+ pcFlag: 0
|
|
|
}, 'application/json;charset=UTF-8').then(res => {
|
|
|
- if(res.data.data){
|
|
|
- if(res.data.data.id == "" || res.data.data.id == null){
|
|
|
- this.changes = "确认"
|
|
|
- }else if(res.data.data.id != "" || res.data.data.id == null){
|
|
|
- this.changes = "取消"
|
|
|
- }
|
|
|
- this.id = res.data.data.id
|
|
|
+ console.log(res.data.data.records)
|
|
|
+ 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
|
|
|
})
|
|
|
.catch(res => {
|
|
|
if(res.errmsg){
|
|
@@ -280,6 +300,34 @@
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
+ // this.$api.doRequest('get', '/identityAuthenticationInfo/selectCount', {
|
|
|
+ // customerTypeFlag:3,customerType:"粮农"
|
|
|
+ // }, 'application/json;charset=UTF-8').then(res => {
|
|
|
+ // if(res.data.data){
|
|
|
+ // if(res.data.data.id == "" || res.data.data.id == null){
|
|
|
+ // this.changes = "确认"
|
|
|
+ // }else if(res.data.data.id != "" || res.data.data.id == null){
|
|
|
+ // this.changes = "取消"
|
|
|
+ // }
|
|
|
+ // this.id = res.data.data.id
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .catch(res => {
|
|
|
+ // if(res.errmsg){
|
|
|
+ // uni.showToast({
|
|
|
+ // title: res.errmsg,
|
|
|
+ // icon: 'none',
|
|
|
+ // duration: 2000
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // else{
|
|
|
+ // uni.showToast({
|
|
|
+ // title: "系统异常,请联系管理员",
|
|
|
+ // icon: 'none',
|
|
|
+ // duration: 2000
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // });
|
|
|
},
|
|
|
adddriver(index) {
|
|
|
if (index == 1) {
|