Pārlūkot izejas kodu

feat: 微信留资新增双11活动相关修改

cuiyalong 3 gadi atpakaļ
vecāks
revīzija
28e5bc1760

+ 21 - 8
src/web/templates/frontRouter/wx/bigmember/free/perfect_info.html

@@ -564,7 +564,8 @@
         '经理',
         '主管',
         '职员'
-      ]
+      ],
+      submitResponse: {}
     },
     created() {
       // 大会员落地页免费体验
@@ -1107,9 +1108,25 @@
           if (r) {
             loading.clear()
             if (r.error_msg === '') {
-              if (_this.ajaxParams.source === 'member_freeuse' ||  utils.getParam('target') || utils.getParam('source')) {
-                if (_this.ajaxParams.source === 'bid_document_Introduction_page') {
+              var source = _this.ajaxParams.source
+              Object.assign(_this.submitResponse, r)
+              if (utils.getParam('target') || utils.getParam('source')) {
+                if (source === 'bid_document_Introduction_page') {
                   _this.bidShow = true
+                } else if (source === 'doubleEleven') {
+                  _this.$toast({
+                    message: '提交成功',
+                    forbidClick: true,
+                    duration: 1500,
+                    onClose: function () {
+                      if (r.url) {
+                        location.replace(r.url)
+                      } else {
+                        sessionStorage.setItem('salesBackStatus', 'true')
+                        history.back()
+                      }
+                    }
+                  })
                 } else {
                   _this.$dialog.close()
                   _this.$dialog.confirm({
@@ -1134,11 +1151,7 @@
                   location.replace(sessionData.url)
                 } else {
                   sessionStorage.setItem('salesBackStatus', 'true')
-                  if (r.url) {
-                    location.replace(r.url)
-                  } else {
-                    history.back()
-                  }
+                  history.back()
                 }
               }
             } else {