htc 2 týždňov pred
rodič
commit
5066ba4092
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      pagesHome/activityDetail.vue

+ 3 - 1
pagesHome/activityDetail.vue

@@ -252,6 +252,7 @@
 	const fail = ref(false)
 	const share = ref(false)
 	const uReadMore = ref()
+	const shareADId = ref('')
 	const shadowStyle = ref({
 		backgroundImage: "none",
 		paddingTop: "0",
@@ -634,7 +635,7 @@
 	const getActivityDetail = (id) => {
 		proxy.$api.get(`/core/activity/${id}`).then(({data:res})=>{
 			if(res.code!==0){
-				if(options?.shareADId){
+				if(shareADId.value){
 					uni.showModal({
 						title:'温馨提示',
 						content:res.msg,
@@ -690,6 +691,7 @@
 	
 	onLoad(options=>{
 		id.value = options?.id||options?.shareADId||'';
+		shareADId.value = options?.shareADId||'';
 		if(!uni.getStorageSync('token')||!uni.getStorageSync('expaireTime')||(Date.parse(new Date())>(uni.getStorageSync('expaireTime')||0))){
 			uni.showModal({
 				title:'温馨提示',