| | |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户名称: </text> |
| | | <picker @change="ynameSelect" :range="ynameArray" class="yname-select"> |
| | | <label class="" v-model="yname">{{ ynameArrayType }}</label> |
| | | <label :style="{color:ynameArrayTypeColor}" v-model="yname">{{ ynameArrayType }}</label> |
| | | </picker> |
| | | <!-- <input class="input" type="text" v-model="yname" placeholder="请输客户名称" placeholder-class="placeholder" /> --> |
| | | </view> |
| | | <view class="row regis-info"> |
| | | <text class="info-title"><!-- <span style="color: red;">* --></span>客户类型: </text> |
| | | <picker @change="typeSelect" :range="typeArray" class="type-select"> |
| | | <label class="" v-model="typeArrayType">{{ typeArrayType }}</label> |
| | | <label :style="{color:typeArrayTypeColor}" v-model="typeArrayType">{{ typeArrayType }}</label> |
| | | </picker> |
| | | <!-- <input class="input" type="text" v-model="type" placeholder="请输客户类型" placeholder-class="placeholder" /> --> |
| | | </view> |
| | |
| | | export default{ |
| | | data () { |
| | | return { |
| | | ynameArrayTypeColor:"#808080", |
| | | typeArrayTypeColor:"#808080", |
| | | vistime:"", |
| | | ynumber:"", |
| | | yname:"", |
| | |
| | | tenantArr:[], |
| | | ynameArray:[], |
| | | ynameArrayIndex:0, |
| | | ynameArrayType:'---请选择---', |
| | | ynameArrayType:'--- 请选择 ---', |
| | | typeArray:["学校","医院","小区"], |
| | | typeArrayIndex:0, |
| | | typeArrayType:'---请选择---' |
| | | typeArrayType:'--- 请选择 ---' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | that.type = that.tenantArr[i].type; |
| | | if(that.tenantArr[i].type=="1"){ |
| | | that.typeArrayType = '学校'; |
| | | this.typeArrayTypeColor = "#000000"; |
| | | } |
| | | if(that.tenantArr[i].type=="2"){ |
| | | that.typeArrayType = '医院'; |
| | | this.typeArrayTypeColor = "#000000"; |
| | | } |
| | | if(that.tenantArr[i].type=="3"){ |
| | | that.typeArrayType = '小区'; |
| | | this.typeArrayTypeColor = "#000000"; |
| | | } |
| | | } |
| | | } |
| | | //修改样式 |
| | | this.ynameArrayTypeColor = "#000000"; |
| | | |
| | | }, |
| | | |
| | |
| | | if(that.typeArrayType =='小区'){ |
| | | that.type = 3; |
| | | } |
| | | //修改样式 |
| | | this.typeArrayTypeColor = "#000000"; |
| | | }, |
| | | |
| | | |
| | |
| | | height: 100rpx; |
| | | position: relative; |
| | | left: 20rpx; |
| | | border-bottom: 0.05px solid #B4BCCC; |
| | | border-bottom: 1px solid rgba(128,128,128,0.1); |
| | | } |
| | | |
| | | .regis-info-desc { |