ソースを参照

修复资料文本bug

zhengjinyi 5 年 前
コミット
a19de7b781

+ 1 - 1
components/cm-module/modelAlert/supplierShareAlert.vue

@@ -6,7 +6,7 @@
 				<view class="text-content">
 					<view class="text-t">分享码</view>
 					<view class="text-c">{{shareCode}} <text class="clipboard" @click.stop="clipboard(shareCode)">复制</text></view>
-					<view class="text-h1">有效期为72小时。如果对方不是您公司的运营人员,需要输入该分享码才能查看本订单</view>
+					<view class="text-h1">有效期为72小时。如果对方还么有绑定采美账号,需要输入该分享码才能查看本订单</view>
 				</view>
 				<view class="text-btn">
 					<!-- #ifdef MP-WEIXIN -->

+ 13 - 2
pages/login/apply.vue

@@ -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

+ 14 - 3
pages/login/information.vue

@@ -50,7 +50,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" 
@@ -59,6 +59,8 @@
 							placeholder-class="placeholder"
 							maxlength="25"
 							@input="onTextareaInput"
+							@focus="textareaFocus"
+							@blur="hideTextareaFocus"
 							:class="isShowInput ? '':''"
 				/>
 			</view>
@@ -270,7 +272,8 @@
 				socialCreditCode:'',	//统一社会信用代码
 				isAgreed:1,				//是否勾选协议
 				isDisabled:true,
-				isShowInput:false,
+				isShowInput:true,
+				textareaFocus:false,
 				uploadBusinessImage:'',	//营业执照图片
 				uploadMentuzImage:'',  	//门头照图片
 				uploadMedicalImage:'', 	//资质照图片
@@ -462,9 +465,17 @@
 				this.addressData.cityID = e.cityCode;
 				this.addressData.provinceID = e.provinceCode;
 			},	
-			onTextareaInput(e){
+			onTextareaInput(e){//文本框获取焦点
 			   this.addressData.addressDetail = e.detail.value;
 			},
+			showTextareaFocus(){//文本框获取焦点
+				this.isShowInput = false
+				this.textareaFocus = true
+			},
+			hideTextareaFocus(){//文本框失去焦点
+				this.isShowInput = true
+				this.textareaFocus = false
+			},
 			onTextareaInputInfo(e){
 			   this.companyPprofile = e.detail.value;
 			},

+ 13 - 2
seller/pages/login/apply.vue

@@ -112,7 +112,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" 
@@ -121,6 +121,8 @@
 							placeholder-class="placeholder"
 							maxlength="25"
 							@input="onTextareaInput"
+							@focus="textareaFocus"
+							@blur="hideTextareaFocus"
 							:class="isShowInput ? '':''"
 				/>
 			</view>
@@ -298,7 +300,8 @@ import { mapMutations } from 'vuex';
 				abbreviation:'',	 	//机构简称
 				socialCreditCode:'',	//统一社会信用代码
 				isDisabled:true,
-				isShowInput:false,
+				isShowInput:true,
+				textareaFocus:false,
 				isUpgrade:false,
 				isShowUpgrade:false,
 				isDownUpgrade:true,
@@ -553,6 +556,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

+ 14 - 3
seller/pages/login/information.vue

@@ -92,7 +92,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" 
@@ -101,6 +101,8 @@
 							placeholder-class="placeholder"
 							maxlength="35"
 							@input="onTextareaInput"
+							@focus="textareaFocus"
+							@blur="hideTextareaFocus"
 							:class="isShowInput ? '':''"
 				/>
 			</view>
@@ -277,7 +279,8 @@
 				socialCreditCode:'',	//统一社会信用代码
 				isAgreed:1,				//是否勾选协议
 				isDisabled:true,
-				isShowInput:false,
+				isShowInput:true,
+				textareaFocus:false,
 				isCheck:true,			//是否勾选协议
 				uploadBusinessImage:'',	//营业执照图片
 				uploadMentuzImage:'',  	//门头照图片
@@ -462,6 +465,14 @@
 			onTextareaInput(e){
 			   this.addressData.addressDetail = e.detail.value;
 			},
+			showTextareaFocus(){//文本框获取焦点
+				this.isShowInput = false
+				this.textareaFocus = true
+			},
+			hideTextareaFocus(){//文本框失去焦点
+				this.isShowInput = true
+				this.textareaFocus = false
+			},
 			onTextareaInputInfo(e){
 			   this.companyPprofile = e.detail.value;
 			},
@@ -982,7 +993,7 @@
 				position: fixed;
 				bottom: 0;
 				left: 0;
-				z-index: 99;
+				z-index: 9999;
 				background: #FFFFFF;
 				.register-agree{
 					display: flex;

+ 14 - 3
seller/pages/login/register.vue

@@ -29,7 +29,7 @@
 					<text>展开信息填写<text class="iconfont icon-xiangxiajiantou"></text></text>
 				</view>
 			</view>	
-			<view class="register-fiexd clearfix" :style="{bottom:isIphoneX?'40rpx':''}">
+			<view class="register-fiexd clearfix" :style="{paddingBottom:isIphoneX ? '68rpx':''}">
 				<view class="register-bet" @tap.stop="hideUpgrade()" v-if="isUpgrade">
 					<text>收起<text class="iconfont icon-xiangshangjiantou"></text></text>
 				</view>
@@ -79,7 +79,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" 
@@ -88,6 +88,8 @@
 							placeholder-class="placeholder"
 							maxlength="35"
 							@input="onTextareaInput"
+							@focus="textareaFocus"
+							@blur="hideTextareaFocus"
 							:class="isShowInput ? '':''"
 				/>
 			</view>
@@ -265,7 +267,8 @@
 				socialCreditCode:'',	//统一社会信用代码
 				isAgreed:0,				//是否勾选协议
 				isDisabled:true,
-				isShowInput:false,
+				isShowInput:true,
+				textareaFocus:false,
 				isUpgrade:false,
 				isDownUpgrade:true,
 				isCheck:false,			//是否勾选协议
@@ -444,6 +447,14 @@
 			onTextareaInput(e){//地址详细信息
 			   this.addressData.addressDetail = e.detail.value;
 			},
+			showTextareaFocus(){//文本框获取焦点
+				this.isShowInput = false
+				this.textareaFocus = true
+			},
+			hideTextareaFocus(){//文本框失去焦点
+				this.isShowInput = true
+				this.textareaFocus = false
+			},
 			onTextareaInputInfo(e){//公司简介
 			   this.companyPprofile = e.detail.value;
 			},