|
@@ -47,7 +47,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="register-row text-textarea clearfix">
|
|
|
- <view class="textarea show" v-if="isShowInput">{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
|
|
|
+ <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
|
|
|
<textarea v-else
|
|
|
class="textarea"
|
|
|
type="text"
|
|
@@ -56,6 +56,8 @@
|
|
|
placeholder-class="placeholder"
|
|
|
maxlength="25"
|
|
|
@input="onTextareaInput"
|
|
|
+ @focus="textareaFocus"
|
|
|
+ @blur="hideTextareaFocus"
|
|
|
:class="isShowInput ? '':''"
|
|
|
/>
|
|
|
</view>
|
|
@@ -237,7 +239,8 @@ import { mapMutations } from 'vuex';
|
|
|
abbreviation:'', //机构简称
|
|
|
socialCreditCode:'', //统一社会信用代码
|
|
|
isDisabled:true,
|
|
|
- isShowInput:false,
|
|
|
+ isShowInput:true,
|
|
|
+ textareaFocus:false,
|
|
|
uploadBusinessImage:'', //营业执照图片
|
|
|
uploadMentuzImage:'', //门头照图片
|
|
|
uploadMedicalImage:'', //资质照图片
|
|
@@ -447,6 +450,14 @@ import { mapMutations } from 'vuex';
|
|
|
onTextareaInput(e){
|
|
|
this.addressData.addressDetail = e.detail.value;
|
|
|
},
|
|
|
+ showTextareaFocus(){//文本框获取焦点
|
|
|
+ this.isShowInput = false
|
|
|
+ this.textareaFocus = true
|
|
|
+ },
|
|
|
+ hideTextareaFocus(){//文本框失去焦点
|
|
|
+ this.isShowInput = true
|
|
|
+ this.textareaFocus = false
|
|
|
+ },
|
|
|
chooseBusinessImage() {//营业执照图片上传
|
|
|
uploadFileImage().then(res =>{
|
|
|
this.uploadBusinessImage = JSON.parse(res.data).data
|