Эх сурвалжийг харах

大会员介绍页购买日志

TANGSHIZHE 4 жил өмнө
parent
commit
6f4f798b14

+ 25 - 1
src/jfw/modules/app/src/web/templates/big-member/page_landingPage.html

@@ -555,9 +555,33 @@
                     }
                     }
                 })
                 })
             },
             },
+            getLog: function (res) {
+                if(!res){
+                    res = ''
+                }
+                if (utils.getParam('mid')) {
+                    try {
+                        $.ajax({
+                            type: "POST",
+                            url: "/publicapply/drainage/bmt/" + utils.getParam('mid'),
+                            success: function(r) {
+                                console.log(r,'rrrr')
+                                if (r.data) {
+                                    location.href = './buy_commit?meal='+ res
+                                }
+                            }
+                        })
+                    } catch (error) {
+                        location.href = './buy_commit?meal='+ res
+                    }
+                    } else {
+                        location.href = './buy_commit?meal='+ res
+                }
+            },
             linkBuy:function (res,types) {
             linkBuy:function (res,types) {
                 this.census(types)
                 this.census(types)
-                location.href = './buy_commit?meal='+ res
+                this.getLog(res)
+                // location.href = './buy_commit?meal='+ res
             },
             },
             linkContrast:function(){
             linkContrast:function(){
                 this.census('了解详情')
                 this.census('了解详情')

+ 25 - 1
src/web/templates/big-member/wx/page_landingPage.html

@@ -535,10 +535,34 @@
                     }
                     }
                 })
                 })
             },
             },
+            getLog: function (res) {
+                if(!res){
+                    res = ''
+                }
+                if (utils.getParam('mid')) {
+                    try {
+                        $.ajax({
+                            type: "POST",
+                            url: "/publicapply/drainage/bmt/" + utils.getParam('mid'),
+                            success: function(r) {
+                                console.log(r,'rrrr')
+                                if (r.data) {
+                                    location.href = './buy_commit?meal='+ res
+                                }
+                            }
+                        })
+                    } catch (error) {
+                        location.href = './buy_commit?meal='+ res
+                    }
+                    } else {
+                        location.href = './buy_commit?meal='+ res
+                }
+            },
             linkBuy:function (res, i) {
             linkBuy:function (res, i) {
+                this.getLog(res)
                 const ts = ['', '购买【大会员】立享', '购买【商机版】立享', '购买【智慧版】立享', '购买【专家版】立享', '购买大会员', '立即购买']
                 const ts = ['', '购买【大会员】立享', '购买【商机版】立享', '购买【智慧版】立享', '购买【专家版】立享', '购买大会员', '立即购买']
                 this.setStatistics(ts[i || 0])
                 this.setStatistics(ts[i || 0])
-                location.href = './buy_commit?meal='+ res
+                // location.href = './buy_commit?meal='+ res
             },
             },
             linkContrast:function(){
             linkContrast:function(){
                 this.setStatistics('了解详情')
                 this.setStatistics('了解详情')