xhj 2 gadi atpakaļ
vecāks
revīzija
4483558cf6
2 mainītis faili ar 10 papildinājumiem un 7 dzēšanām
  1. 4 4
      card/create/create.vue
  2. 6 3
      card/index/index.vue

+ 4 - 4
card/create/create.vue

@@ -463,8 +463,8 @@ export default {
 					this.city = data.ad_info.province+data.ad_info.city+data.ad_info.district
 					this.areaCode = data.ad_info.adcode;
 					this.morCity = [this.areaCode.substring(0,2)+'0000',this.areaCode.substring(0,4)+'00',this.areaCode]
-					this.longitude = data.ad_info.location.lng
-					this.latitude = data.ad_info.location.lat
+					this.longitude = data.location.lng
+					this.latitude = data.location.lat
 				}).catch(err => {
 					console.log(err);
 				});
@@ -477,8 +477,8 @@ export default {
 					this.city = data.ad_info.province+data.ad_info.city+data.ad_info.district
 					this.areaCode = data.ad_info.adcode;
 					this.morCity = [this.areaCode.substring(0,2)+'0000',this.areaCode.substring(0,4)+'00',this.areaCode]
-					this.longitude = data.ad_info.location.lng
-					this.latitude = data.ad_info.location.lat
+					this.longitude = data.location.lng
+					this.latitude = data.location.lat
 				});
 			//#endif
 		},

+ 6 - 3
card/index/index.vue

@@ -85,7 +85,7 @@
 					@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%);"
-					 @click="jumpUrl('/card/poster/poster?id='+cardInfo.id)">
+					 @click="cardInfo.auditState!=1?'':jumpUrl('/card/poster/poster?id='+cardInfo.id)">
 					<image src="/card/static/images/fx.png"></image>分享名片</view>
 			</view>
 			<view class="save-text ddflex" v-if="cardId" @click="saveToPhone()">
@@ -93,9 +93,9 @@
 			</view>
 			<view class="btns ddflex" v-if="!cardId" style="justify-content: center;">
 				<view class="share-ta ddflex" style="background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);width: 260rpx;margin-right: 30rpx;"
-					@click="jumpUrl('/card/poster/poster?id='+cardInfo.id)">
+					@click="cardInfo.auditState!=1?'':jumpUrl('/card/poster/poster?id='+cardInfo.id)">
 					<image src="/card/static/images/wdmp.png"></image>我的名片码</view>
-				<button open-type="share" class="share-ta ddflex" style="background: linear-gradient(80deg, #FF985A 0%, #FF5700 100%);width: 260rpx !important;"
+				<button :open-type="cardInfo.auditState!=1?'':'share'" class="share-ta ddflex" style="background: linear-gradient(80deg, #FF985A 0%, #FF5700 100%);width: 260rpx !important;"
 					>
 					<image src="/card/static/images/fx.png"></image>发送名片</button>
 			</view>
@@ -587,6 +587,9 @@ import util from '../../utils/util.js';
 						this.loading = false
 					}
 					this.getEvaluate()
+					if(this.cardInfo.auditState!=1) {
+						uni.hideShareMenu()
+					}
 				});
 			},