xhj 2 роки тому
батько
коміт
1b9ce6b274
2 змінених файлів з 10 додано та 10 видалено
  1. 2 2
      card/create/create.vue
  2. 8 8
      card/index/index.vue

+ 2 - 2
card/create/create.vue

@@ -492,8 +492,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('请填写职位')

+ 8 - 8
card/index/index.vue

@@ -46,24 +46,24 @@
 						<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="copy(cardInfo.wechat, 1)">
+				<view class="share-ta ddflex fflex" v-if="cardInfo.wechat||cardInfo.wechatCode" style="background: linear-gradient(80deg, #7EBFF1 0%, #458EEE 100%);"
+					>
 					<image src="../../static/pages/images/wx.png"></image>微信联系</view>
-				<view class="share-ta ddflex fflex" style="background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);"
+				<view class="share-ta ddflex fflex" v-if="cardInfo.phone" style="background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);"
 					@click="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%);"