Jelajahi Sumber

微信号非必填

xhj 2 tahun lalu
induk
melakukan
c9ea5caf11
2 mengubah file dengan 12 tambahan dan 12 penghapusan
  1. 2 2
      card/create/create.vue
  2. 10 10
      card/index/index.vue

+ 2 - 2
card/create/create.vue

@@ -496,8 +496,8 @@ export default {
 			if (!this.jobNumber) return req.msg('请填写你的工号');
 			if (!this.brief) return req.msg('请填写个人简介');
 			if (!this.phone) return req.msg('请填写手机号');
-			if (!this.wechat) return req.msg('请填写微信号');
-			if (!this.wechatCode) return req.msg('请上传微信二维码');
+			// if (!this.wechat) return req.msg('请填写微信号');
+			// if (!this.wechatCode) return req.msg('请上传微信二维码');
 			if (!this.companyName) return req.msg('请填写公司名称');
 			// if (!this.companyIntroduction) return req.msg('请填写公司简介');
 			if (!this.job) return req.msg('请填写职位')

+ 10 - 10
card/index/index.vue

@@ -64,25 +64,25 @@
 						<view class="company">
 							执业证书:{{ cardInfo.professionalCertificateNo?cardInfo.professionalCertificateNo:'暂无'}}
 						</view>
-						<view class="ddflex" style="margin-top: 30rpx;" v-if="cardInfo.wechat||cardInfo.wechat">
-							<view class="ddflex fflex" style="background: #F8F8F8;border-radius: 10rpx;padding: 20rpx;font-size: 26rpx;margin-right: 30rpx;" v-if="cardInfo.phone">
+						<view class="ddflex" style="margin-top: 30rpx;">
+							<view class="ddflex fflex" style="background: #F8F8F8;border-radius: 10rpx;padding: 20rpx;font-size: 26rpx;margin-right: 30rpx;">
 								<image style="width: 32rpx;height: 32rpx;margin-right: 10rpx;" src="/card/static/images/phone.png"></image>
-								{{cardInfo.phone}}
+								{{cardInfo.phone?cardInfo.phone:'暂无手机号'}}
 							</view>
-							<view class="ddflex fflex" style="background: #F8F8F8;border-radius: 10rpx;padding: 20rpx;font-size: 26rpx;" v-if="cardInfo.wechat">
+							<view class="ddflex fflex" style="background: #F8F8F8;border-radius: 10rpx;padding: 20rpx;font-size: 26rpx;">
 								<image style="width: 32rpx;height: 32rpx;margin-right: 10rpx;" src="/card/static/images/wx.png"></image>
-								{{cardInfo.wechat}}
+								{{cardInfo.wechat?cardInfo.wechat:'暂无微信号'}}
 							</view>
 						</view>
 					</view>
 				</view>
 			</view>
 			<view class="btns ddflex" v-if="cardId">
-				<view class="share-ta ddflex fflex" style="background: linear-gradient(80deg, #7EBFF1 0%, #458EEE 100%);"
-					@click="isShowCodePop=true">
+				<view class="share-ta ddflex fflex" :style="!(cardInfo.wechat||cardInfo.wechatCode)?'background: #999':'background: linear-gradient(80deg, #7EBFF1 0%, #458EEE 100%);'"
+					@click="cardInfo.wechat||cardInfo.wechatCode?isShowCodePop=true:''">
 					<image src="../../static/pages/images/wx.png"></image>微信联系</view>
-				<view class="share-ta ddflex fflex" style="background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);"
-					@click="goPhone()">
+				<view class="share-ta ddflex fflex" :style="!cardInfo.phone?'background: #999':'background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);'"
+					@click="cardInfo.phone?goPhone():''">
 					<image src="/card/static/images/phone1.png"></image>电话联系</view>
 				<view class="share-ta ddflex fflex" style="background: linear-gradient(80deg, #FF985A 0%, #FF5700 100%);"
 					 @click="cardInfo.auditState!=1?'':jumpUrl('/card/poster/poster?id='+cardInfo.id)">
@@ -395,7 +395,7 @@
 				<view>微信号</view>
 				<view>{{cardInfo.wechat}}</view>
 			</view>
-			<view class="code-btn" @click="copy(cardInfo.wechat,1)">
+			<view class="code-btn" v-if="cardInfo.wechat" @click="copy(cardInfo.wechat,1)">
 				复制微信号
 			</view>
 		</view>