|
@@ -1,36 +1,48 @@
|
|
<template>
|
|
<template>
|
|
<view class="center">
|
|
<view class="center">
|
|
<view v-for="(item , index) in businessman" :Key="index" class="forList">
|
|
<view v-for="(item , index) in businessman" :Key="index" class="forList">
|
|
- <view class='flex' @click="navToDetailPage(item)">
|
|
|
|
- <view class="logo">
|
|
|
|
|
|
+ <view class='forList-item' @click="navToDetailPage(item)">
|
|
|
|
+ <view class="logo left">
|
|
粮商
|
|
粮商
|
|
</view>
|
|
</view>
|
|
- <view class="company">{{item.compName}}</view>
|
|
|
|
- <view class="company" v-if="item.customerTypeFlag == 1">{{item.customerName}}</view>
|
|
|
|
- <view class="status" v-if="item.cover == '1'">
|
|
|
|
- 已覆盖
|
|
|
|
- </view>
|
|
|
|
- <view v-else>
|
|
|
|
- <view class="status" v-if="item.authenticationStatus == '已认证'">
|
|
|
|
- <image src="../../static/img/authentication/cert-personal@3x.png"
|
|
|
|
- style="width: 16px;height: 16px;top:3px;"></image>
|
|
|
|
- {{item.authenticationStatus}}
|
|
|
|
- </view>
|
|
|
|
- <view class="status1" v-if="item.authenticationStatus == '审核中'">
|
|
|
|
- {{item.authenticationStatus}}
|
|
|
|
- </view>
|
|
|
|
- <view class="status2" v-if="item.authenticationStatus == '未通过'">
|
|
|
|
- {{item.authenticationStatus}}
|
|
|
|
|
|
+ <view class="right">
|
|
|
|
+ <view class="top">
|
|
|
|
+ <view class="company" v-if="item.customerTypeFlag != 1">{{item.compName}}</view>
|
|
|
|
+ <view class="company" v-if="item.customerTypeFlag == 1">{{item.customerName}}</view>
|
|
|
|
+ <view class="status" v-if="item.cover == '1'">
|
|
|
|
+ 已覆盖
|
|
|
|
+ </view>
|
|
|
|
+ <view v-else>
|
|
|
|
+ <view class="status" v-if="item.authenticationStatus == '已认证'">
|
|
|
|
+ <image src="../../static/img/authentication/cert-personal@3x.png"
|
|
|
|
+ style="width: 16px;height: 16px;top:3px;"></image>
|
|
|
|
+ {{item.authenticationStatus}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="status1" v-if="item.authenticationStatus == '审核中'">
|
|
|
|
+ {{item.authenticationStatus}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="status2" v-if="item.authenticationStatus == '未通过'">
|
|
|
|
+ {{item.authenticationStatus}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="status3" v-if="item.authenticationStatus == '已覆盖'">
|
|
|
|
+ {{item.authenticationStatus}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="status3" v-if="item.authenticationStatus == '已覆盖'">
|
|
|
|
- {{item.authenticationStatus}}
|
|
|
|
|
|
+ <view class="bottom">
|
|
|
|
+
|
|
|
|
+ <view class="">
|
|
|
|
+ <view class="geren" v-if="item.basis == 'true'">默认</view>
|
|
|
|
+ <view class="geren" v-if="item.customerTypeFlag == 1"> {{item.customerPhone}}</view>
|
|
|
|
+ <view class="geren" v-if="item.customerTypeFlag == 2">{{item.customerName}}</view>
|
|
|
|
+ <view class="geren" v-if="item.customerTypeFlag == 2">{{item.customerPhone}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
- <view class="geren" v-if="item.customerTypeFlag == 1"> {{item.customerPhone}}</view>
|
|
|
|
- <view class="geren" v-if="item.customerTypeFlag == 2">{{item.customerName}}{{item.customerPhone}}
|
|
|
|
- </view>
|
|
|
|
- <view class="flex">
|
|
|
|
|
|
+
|
|
|
|
+ <view class="flex number">
|
|
<view class="yuan flex">
|
|
<view class="yuan flex">
|
|
<view v-bind:class="defaults1" @click.stop="select(item)" v-if="item.basis == 'false'"></view>
|
|
<view v-bind:class="defaults1" @click.stop="select(item)" v-if="item.basis == 'false'"></view>
|
|
<view v-bind:class="defaults2" @click.stop="select(item)" v-if="item.basis == 'true'">✓</view>
|
|
<view v-bind:class="defaults2" @click.stop="select(item)" v-if="item.basis == 'true'">✓</view>
|
|
@@ -52,7 +64,7 @@
|
|
<view class='shade-content-item'>
|
|
<view class='shade-content-item'>
|
|
<input v-model='price' placeholder="请输入手机号" type="number" class="tainput" maxlength="11">
|
|
<input v-model='price' placeholder="请输入手机号" type="number" class="tainput" maxlength="11">
|
|
</view>
|
|
</view>
|
|
- <view>
|
|
|
|
|
|
+ <view class="bottom-btn">
|
|
<view class="determine" @click="getcode">
|
|
<view class="determine" @click="getcode">
|
|
获取验证码
|
|
获取验证码
|
|
</view>
|
|
</view>
|
|
@@ -104,7 +116,7 @@
|
|
id: "",
|
|
id: "",
|
|
defaults1: "default1",
|
|
defaults1: "default1",
|
|
defaults2: "default2",
|
|
defaults2: "default2",
|
|
- identityAuthenticationInfos:{},
|
|
|
|
|
|
+ identityAuthenticationInfos: {},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -115,7 +127,7 @@
|
|
},
|
|
},
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
this.getList()
|
|
this.getList()
|
|
- setTimeout(function () {
|
|
|
|
|
|
+ setTimeout(function() {
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
}, 1000);
|
|
}, 1000);
|
|
},
|
|
},
|
|
@@ -144,7 +156,8 @@
|
|
this.identityAuthenticationInfo.commonId = this.userInfo.id
|
|
this.identityAuthenticationInfo.commonId = this.userInfo.id
|
|
this.identityAuthenticationInfo.defaultFlag = 1
|
|
this.identityAuthenticationInfo.defaultFlag = 1
|
|
this.identityAuthenticationInfo.id = item.id
|
|
this.identityAuthenticationInfo.id = item.id
|
|
- this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault', this.identityAuthenticationInfo,
|
|
|
|
|
|
+ this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault', this
|
|
|
|
+ .identityAuthenticationInfo,
|
|
'application/json;charset=UTF-8').then(res => {
|
|
'application/json;charset=UTF-8').then(res => {
|
|
for (var i = 0; i < this.businessman.length; i++) {
|
|
for (var i = 0; i < this.businessman.length; i++) {
|
|
if (this.businessman.defaultFlag == 1) {
|
|
if (this.businessman.defaultFlag == 1) {
|
|
@@ -156,14 +169,13 @@
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
- if(res.errmsg){
|
|
|
|
|
|
+ if (res.errmsg) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.errmsg,
|
|
title: res.errmsg,
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- }
|
|
|
|
- else{
|
|
|
|
|
|
+ } else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "系统异常,请联系管理员",
|
|
title: "系统异常,请联系管理员",
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -201,10 +213,10 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
var data = res.data.data.records
|
|
var data = res.data.data.records
|
|
- for(var i=0;i<data.length;i++){
|
|
|
|
- if(data[i].customerTypeFlag==2){
|
|
|
|
- if(data[i].compName&&data[i].compName.length > 10){
|
|
|
|
- data[i].compName = data[i].compName.substring(0,10) + "..."
|
|
|
|
|
|
+ for (var i = 0; i < data.length; i++) {
|
|
|
|
+ if (data[i].customerTypeFlag == 2) {
|
|
|
|
+ if (data[i].compName && data[i].compName.length > 10) {
|
|
|
|
+ data[i].compName = data[i].compName.substring(0, 10) + "..."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -212,14 +224,13 @@
|
|
|
|
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
- if(res.message){
|
|
|
|
|
|
+ if (res.message) {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.message,
|
|
title: res.message,
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- }
|
|
|
|
- else{
|
|
|
|
|
|
+ } else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "系统异常,请联系管理员",
|
|
title: "系统异常,请联系管理员",
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -238,13 +249,14 @@
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
that.identityAuthenticationInfos.customerPhone = that.price
|
|
that.identityAuthenticationInfos.customerPhone = that.price
|
|
- that.$api.doRequest('get','/identityAuthenticationInfo/selectPhone', that.identityAuthenticationInfos)
|
|
|
|
|
|
+ that.$api.doRequest('get', '/identityAuthenticationInfo/selectPhone', that
|
|
|
|
+ .identityAuthenticationInfos)
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == '11018') {
|
|
if (res.data.code == '11018') {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '该手机号已认证过个人粮商,再次认证将覆盖之前的认证信息,是否确定认证?',
|
|
content: '该手机号已认证过个人粮商,再次认证将覆盖之前的认证信息,是否确定认证?',
|
|
- success: function(res) {
|
|
|
|
|
|
+ success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
that.$api.doRequest('post',
|
|
that.$api.doRequest('post',
|
|
'/identityAuthenticationInfo/api/modifyIdentityPhone',
|
|
'/identityAuthenticationInfo/api/modifyIdentityPhone',
|
|
@@ -301,7 +313,7 @@
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.data.message,
|
|
title: res.data.message,
|
|
@@ -309,7 +321,7 @@
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
that.verification = false
|
|
that.verification = false
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -403,32 +415,31 @@
|
|
success: (e) => {
|
|
success: (e) => {
|
|
if (e.confirm) {
|
|
if (e.confirm) {
|
|
this.$api.doRequest('post',
|
|
this.$api.doRequest('post',
|
|
- '/identityAuthenticationInfo/api/deleteIdentityAuthenticationInfo', {
|
|
|
|
- id: item.id
|
|
|
|
- }, 'application/json;charset=UTF-8').then(res => {
|
|
|
|
- // this.procurementPlanInfos = res.data.data.records
|
|
|
|
- if (res.data.code == 200) {
|
|
|
|
- this.$api.msg('删除成功!')
|
|
|
|
- this.getList()
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- if(res.errmsg){
|
|
|
|
- uni.showToast({
|
|
|
|
- title: res.errmsg,
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- else{
|
|
|
|
- uni.showToast({
|
|
|
|
- title: "系统异常,请联系管理员",
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ '/identityAuthenticationInfo/api/deleteIdentityAuthenticationInfo', {
|
|
|
|
+ id: item.id
|
|
|
|
+ }, 'application/json;charset=UTF-8').then(res => {
|
|
|
|
+ // this.procurementPlanInfos = res.data.data.records
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ this.$api.msg('删除成功!')
|
|
|
|
+ this.getList()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ if (res.errmsg) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.errmsg,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
fail: () => {},
|
|
fail: () => {},
|
|
@@ -444,11 +455,10 @@
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
|
|
|
+<style scoped lang="scss">
|
|
.center {
|
|
.center {
|
|
- padding: 10px 20px;
|
|
|
|
- background-color: #eeeeee;
|
|
|
|
- height: 2000rpx;
|
|
|
|
|
|
+ padding: 10px 20rpx;
|
|
|
|
+ height:calc(100vh - 88rpx);
|
|
}
|
|
}
|
|
|
|
|
|
.title {
|
|
.title {
|
|
@@ -466,15 +476,16 @@
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
display: inline-block;
|
|
display: inline-block;
|
|
- margin-left: 10px;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
.geren {
|
|
.geren {
|
|
color: #AFB3BF;
|
|
color: #AFB3BF;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
- margin-top: -15px;
|
|
|
|
|
|
+ margin-right: 10px;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ /* margin-top: -15px;
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
- margin-left: 46px;
|
|
|
|
|
|
+ margin-left: 46px; */
|
|
}
|
|
}
|
|
|
|
|
|
.infos {
|
|
.infos {
|
|
@@ -487,11 +498,9 @@
|
|
}
|
|
}
|
|
|
|
|
|
.but {
|
|
.but {
|
|
- height: 33px;
|
|
|
|
border: 1px solid #CDCDCD;
|
|
border: 1px solid #CDCDCD;
|
|
border-radius: 20px;
|
|
border-radius: 20px;
|
|
- line-height: 30px;
|
|
|
|
- padding: 0 8px;
|
|
|
|
|
|
+ padding: 15rpx 30rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -531,16 +540,16 @@
|
|
}
|
|
}
|
|
|
|
|
|
.status {
|
|
.status {
|
|
- position: absolute;
|
|
|
|
- margin-top: 10px;
|
|
|
|
- right: 36px;
|
|
|
|
|
|
+ /* position: absolute; */
|
|
|
|
+ /* margin-top: 10px; */
|
|
|
|
+ /* right: 36px; */
|
|
color: #22C572;
|
|
color: #22C572;
|
|
}
|
|
}
|
|
|
|
|
|
.status1 {
|
|
.status1 {
|
|
- position: absolute;
|
|
|
|
- margin-top: 10px;
|
|
|
|
- right: 36px;
|
|
|
|
|
|
+ // position: absolute;
|
|
|
|
+ // margin-top: 10px;
|
|
|
|
+ // right: 36px;
|
|
color: #FE6430;
|
|
color: #FE6430;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -568,6 +577,7 @@
|
|
.btns {
|
|
.btns {
|
|
background-color: #22C572;
|
|
background-color: #22C572;
|
|
color: white;
|
|
color: white;
|
|
|
|
+ margin: 52rpx 0;
|
|
}
|
|
}
|
|
|
|
|
|
.shade-content {
|
|
.shade-content {
|
|
@@ -584,7 +594,7 @@
|
|
.shade-content-item {
|
|
.shade-content-item {
|
|
width: 277px;
|
|
width: 277px;
|
|
text-align: center;
|
|
text-align: center;
|
|
- height: 121px;
|
|
|
|
|
|
+ height: 160rpx;
|
|
padding: 35px 10px;
|
|
padding: 35px 10px;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -603,22 +613,22 @@
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+.bottom-btn{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ margin-bottom: 50rpx;
|
|
|
|
+}
|
|
.determine {
|
|
.determine {
|
|
- width: 95px;
|
|
|
|
- height: 36px;
|
|
|
|
|
|
+ width: 50%;
|
|
background-color: #22C572;
|
|
background-color: #22C572;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
- margin: 0 auto;
|
|
|
|
- line-height: 36px;
|
|
|
|
- margin-top: -30px;
|
|
|
|
- margin-bottom: 20px;
|
|
|
|
|
|
+ padding: 15rpx 18rpx;
|
|
}
|
|
}
|
|
|
|
|
|
.tainput {
|
|
.tainput {
|
|
- width: 70%;
|
|
|
|
- padding-left: 10px;
|
|
|
|
|
|
+ width: 90%;
|
|
|
|
+ padding-bottom: 15rpx;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
text-align: left;
|
|
text-align: left;
|
|
border-bottom: 1px solid #AFB3BF;
|
|
border-bottom: 1px solid #AFB3BF;
|
|
@@ -690,4 +700,37 @@
|
|
.options {
|
|
.options {
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .forList-item {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ border-bottom: 1px solid #EEEEEE;
|
|
|
|
+ padding-bottom: 20px;
|
|
|
|
+
|
|
|
|
+ .left {
|
|
|
|
+ margin-left: 5px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .right {
|
|
|
|
+ flex: 1;
|
|
|
|
+ margin-left:10rpx
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .top {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ align-items: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .company {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .bottom {
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .number{
|
|
|
|
+ margin-top: 40rpx;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|