Ver Fonte

feat: 移动端工具函数添加客服统一跳转

cuiyalong há 2 anos atrás
pai
commit
a29a293d4f

+ 7 - 0
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/utils.js

@@ -669,6 +669,13 @@ var utils = {
         }
         return naturalSize
     },
+    goToCustomerPage: function () {
+        if (this.isWeiXinBrowser) {
+            location.href = '/big/wx/page/customer'
+        } else {
+            location.href = '/jyapp/free/customer'
+        }
+    },
     moneyUnit: function (num, type, lv) {
         if (num === '' || num == null || num == undefined || isNaN(num)) return ''
         var levelArr = ['元', '万元', '亿元', '万亿元']

+ 7 - 0
src/web/staticres/big-member/js/utils.js

@@ -637,6 +637,13 @@ var utils = {
         }
         return naturalSize
     },
+    goToCustomerPage: function () {
+        if (this.isWeiXinBrowser) {
+            location.href = '/big/wx/page/customer'
+        } else {
+            location.href = '/jyapp/free/customer'
+        }
+    },
     moneyUnit: function (num, type, lv) {
         if (num === '' || num == null || num == undefined || isNaN(num)) return ''
         var levelArr = ['元', '万元', '亿元', '万亿元']

+ 7 - 0
src/web/staticres/common-module/public/js/utils.js

@@ -669,6 +669,13 @@ var utils = {
     }
     return naturalSize
   },
+  goToCustomerPage: function () {
+    if (this.isWeiXinBrowser) {
+        location.href = '/big/wx/page/customer'
+    } else {
+        location.href = '/jyapp/free/customer'
+    }
+},
   moneyUnit: function (num, type, lv) {
     if (num === '' || num == null || num == undefined || isNaN(num)) return ''
     var levelArr = ['元', '万元', '亿元', '万亿元']