소스 검색

分享添加strategyId

ymm 3 년 전
부모
커밋
d5f821b533
3개의 변경된 파일14개의 추가작업 그리고 14개의 파일을 삭제
  1. 2 2
      microserviceUserH5/static/js/vender/vue/api.js
  2. 2 1
      microserviceUserH5/vcloud/actFission.html
  3. 10 11
      microserviceUserH5/vcloud/actFissionShare.html

+ 2 - 2
microserviceUserH5/static/js/vender/vue/api.js

@@ -62,9 +62,9 @@ function getCheck(token) {
   })
 }
 //获取攻略列表
-function getStrategy() {
+function getStrategy(id) {
   return service({
-    url: `/api/public/v4/actFissionAward/getStrategy`,
+    url: `/api/public/v4/actFissionAward/getStrategy?strategyId=${id}`,
     method: 'get',
   
   })

+ 2 - 1
microserviceUserH5/vcloud/actFission.html

@@ -221,7 +221,7 @@
 
 		.van-swipe-item p:first-of-type {
 			font-size: 0.28rem;
-			width: 1.8rem;
+			width: 1.6rem;
 			color: #00FFFF;
 			display: block;
 			overflow: hidden;
@@ -494,6 +494,7 @@
 					getMarquee().then(res => {
 						if (res.status === 0) {
 							this.marqueeList = res.data;
+							
 						} else {
 							this.$toast(res.msg);
 						}

+ 10 - 11
microserviceUserH5/vcloud/actFissionShare.html

@@ -292,7 +292,6 @@
             </div>
         </div>
     </div>
-    <!-- <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> -->
     <script src="../static/js/vender/vue/vue.min.js"></script>
     <script src="../static/js/vender/vue/vue-clipboard.min.js"></script>
     <script src="../static/js/vender/vue/vant.min.js"></script>
@@ -324,7 +323,8 @@
                 marqueeList: [],
                 code: '',
                 msg: '活动已下架',
-                tagId: 0,
+                strategyId: GetRequest().strategyId ? GetRequest().strategyId : '85',
+                tagId: GetRequest().tagId ? GetRequest().tagId : '285',
                 uuid: '',
                 flag: true,
                 timer: null,
@@ -383,7 +383,7 @@
                         systemBuriedPoint({
                             pointName: 'dt_裂变_h5_复制激活码'
                         }).then(res => {
-                          
+
                         })
                         getActivationCode(this.username, this.tagId, this.uuid).then(res => {
                             this.$toast.clear();
@@ -403,7 +403,6 @@
                             }
 
                         }).catch((error) => {
-
                             console.log(error)
                             this.$toast('复制失败');
                             //this.download()
@@ -417,11 +416,11 @@
                     if (isAndroid) {
                         console.log(isAndroid);
                         console.log(baseUrl)
-                        if(baseUrl=='https://per.cs.se.androidscloud.com'){
-							window.location.href='http://per.cs.se.androidscloud.com:8888/suanchou'
-						}else{
-							window.location.href ='http://www.androidscloud.com/suanchou?timestamp=' + Math.random();
-						}
+                        if (baseUrl == 'https://per.cs.se.androidscloud.com') {
+                            window.location.href = 'http://per.cs.se.androidscloud.com:8888/suanchou'
+                        } else {
+                            window.location.href = 'http://www.androidscloud.com/suanchou?timestamp=' + Math.random();
+                        }
 
                     } else if (isIOS) {
                         document.location.href = 'https://www.pgyer.com/gemini6?timestamp=' + Math.random();
@@ -446,13 +445,13 @@
                         forbidClick: true,
                         loadingType: 'spinner',
                     });
-                    getStrategy().then(res => {
+                    getStrategy(this.strategyId).then(res => {
                         this.$toast.clear();
                         if (res.status === 0) {
                             if (res.data) {
                                 this.isshow = true;
                                 this.topic = res.data.content;
-                                this.tagId = res.data.tagId;
+                                // this.tagId = res.data.tagId;
                                 console.log(this.topic)
                             } else {
                                 this.msg = res.msg;