heyang лет назад: 3
Родитель
Сommit
d9183e4444

+ 2 - 2
microserviceUserH5/vcloud/actFission.html

@@ -526,11 +526,11 @@
 					getActDetailList(GetRequest().token).then(res => {
 						this.$toast.clear();
 						if (res.status === 0) {
-							if (this.actStatus != 1) {
+							this.actStatus = res.data.actStatus;
+							if (this.actStatus == 0) {
 								this.$toast('活动已下架');
 								return
 							}
-							this.actStatus = res.data.actStatus;
 							this.shareInfo = res.data;
 						} else {
 							this.$toast(res.msg);

+ 40 - 21
microserviceUserH5/vcloud/actFissionShare.html

@@ -422,16 +422,16 @@
 
         <div v-if='isshow&&topic!=null' style="margin: 0 auto;">
             <div class="footer">
-                <div class="download-btn" v-if="type == 2">
+                <div v-if="type == 1">
+                    <img @click="share" src="../static/offImg/share_btn.png" class="share_btn" alt="" />
+                </div>
+                <div class="download-btn" v-else>
                     <div class="left-nav">
                         <p>激活码:</p>
                         <p>AS4*********SD3</p>
                     </div>
                     <div class="button-download" @click='copyHandle()'>点击复制并下载</div>
                 </div>
-                <div v-else>
-                    <img @click="share" src="../static/offImg/share_btn.png" class="share_btn" alt="" />
-                </div>
             </div>
             <div class="top-banner">
                 <van-notice-bar :scrollable="false">
@@ -646,25 +646,44 @@
                 
                 //查看活动是否下架
                 getActDetailList() { //获取活动状态
-                    console.log(GetRequest().token)
-                    getActDetailList(GetRequest().token).then(res => {
-                        this.$toast.clear();
-                        if (res.status === 0) {
-                            this.phoneType = res.data.phoneType;
-                            this.shareInfo = res.data;
-                            if (res.data.actStatus == 1) {
-                                this.isshow = true;
-                                this.getStrategy();
+                    if(!GetRequest().tagId){
+                        getActDetailList(GetRequest().token).then(res => {
+                            this.$toast.clear();
+                            if (res.status === 0) {
+                                this.phoneType = res.data.phoneType;
+                                this.shareInfo = res.data;
+                                if (res.data.actStatus == 1) {
+                                    this.isshow = true;
+                                    this.getStrategy();
+                                } else {
+                                    this.isshow = false;
+                                }
                             } else {
-                                this.isshow = false;
+                                this.$toast(res.msg);
                             }
-                        } else {
-                            this.$toast(res.msg);
-                        }
-                    }).catch((error) => {
-                        console.log(error)
-                        this.$toast('网络异常');
-                    });
+                        }).catch((error) => {
+                            console.log(error)
+                            this.$toast('网络异常');
+                        });
+                    } else {
+                        getActDetail().then(res => {
+                            this.$toast.clear();
+                            if (res.status === 0) {
+                                this.phoneType = res.data.phoneType;
+                                if (res.data.actStatus == 1) {
+                                    this.isshow = true;
+                                    this.getStrategy();
+                                } else {
+                                    this.isshow = false;
+                                }
+                            } else {
+                                this.$toast(res.msg);
+                            }
+                        }).catch((error) => {
+                            console.log(error)
+                            this.$toast('网络异常');
+                        });
+                    }
                 },
                 getCheck() {
                     getEvantCheck(this.id).then(res => {