Переглянути джерело

好友助力模块迭代上线

c4az6 4 роки тому
батько
коміт
39c415254d

+ 2 - 1
src/views/activityCenter/friendHelp/friendHelp.vue

@@ -92,7 +92,7 @@
           if (response.success !== 1) {
             setTimeout(() => {
               this.$toast(response.message)
-            }, 500);
+            }, 1000);
             console.log(response.message)
             if (this.skiptype === 'view') {
               // 跳转H5网页
@@ -127,6 +127,7 @@
       })
     },
     created() {
+      console.log("comming...")
       this.acjoinId = this.getUrlParams('acjoinId')
       this.getActivityInfo()
 

+ 5 - 1
src/views/activityCenter/friendHelp/myHelp.vue

@@ -193,7 +193,11 @@
         // 显示领取奖励弹窗
         const { data: response } = await reqJudgeMobileIsNull({ unionid: this.unionid })
         console.log("领取奖品,判断手机号接口: ", response)
-        if (!response.result) return window.location.href = `https://mem.360lj.com/ym/ymallWechat/code?redirectCode=activityIndex&id=${this.id}`
+        if(process.env.VUE_APP_Name == "测试环境" || process.env.VUE_APP_Name == "开发环境") {
+          if (!response.result) return window.location.href = `https://mem.360lj.com/ym2/ymallWechat/code?redirectCode=activityIndex&id=${this.id}`
+        }else {
+          if (!response.result) return window.location.href = `https://mem.360lj.com/ym/ymallWechat/code?redirectCode=activityIndex&id=${this.id}`
+        }
         this.getPrizeModal = true
       },
       // 监听立即邀请按钮点击事件