Browse Source

修改默认数据

wangcz 6 years ago
parent
commit
f62ab2023d

+ 10 - 10
jpress-web-template-mallcms/src/main/webapp/templates/mallcms/assets/js/index.js

@@ -231,7 +231,7 @@ $(function () {
             $('.userspace-count').html(toFinxedNum(data.count, 1))
         },
         error: function () {
-            $('.userspace-count').html(toFinxedNum(10458, 1))
+            $('.userspace-count').html('- 家')
         }
     })
     // 个人用户数量
@@ -248,13 +248,13 @@ $(function () {
             $('.user-count').html(toFinxedNum(userCount, 2))
         },
         error: function () {
-            $('.user-count').html(toFinxedNum(41697, 2))
+            $('.user-count').html('- 个')
         }
     })
 
     $.ajax({
         type: "GET",
-        url: "https://mall.usoftchina.com/api/product/commoncount?usedFor=usoftchina_home_counter&_status=actived",
+        url: "https://oldmall.usoftchina.com/api/product/commoncount?usedFor=usoftchina_home_counter&_status=actived",
         dataType: "json",
         success: function(data) {
             if(data) {
@@ -268,13 +268,13 @@ $(function () {
                 $('.last-year-trader-count').html(upYearDate + '年' + toFinxedNum(lastYearTraderCount, 3))
                 $('.this-year-trader-count').html(yearDate + '年' + toFinxedNum(thisYearTraderCount, 3))
             } else {
-                $('.last-year-trader-count').html(upYearDate + '年' + toFinxedNum(11728286832.86, 3))
-                $('.this-year-trader-count').html(yearDate + '年' + toFinxedNum(15322057199.72, 3))
+                $('.last-year-trader-count').html(upYearDate + '年' + ' ' + '- 元')
+                $('.this-year-trader-count').html(yearDate + '年' +  ' ' + '- 元')
             }
         },
         error: function() {
-            $('.last-year-trader-count').html(upYearDate + '年' + toFinxedNum(11728286832.86, 3))
-            $('.this-year-trader-count').html(yearDate + '年' + toFinxedNum(15322057199.72, 3))
+            $('.last-year-trader-count').html(upYearDate + '年' +  ' ' + '- 元')
+            $('.this-year-trader-count').html(yearDate + '年' +  ' ' + '- 元')
         }
     })
     // 首页计数器END
@@ -315,7 +315,7 @@ $(function () {
     // 更新上传品牌数据计数
     $.ajax({
         type: "GET",
-        url: "https://mall.usoftchina.com/api/product/commoncount/3/count",
+        url: "https://oldmall.usoftchina.com/api/product/commoncount/3/count",
         dataType: "json",
         success: function(data) {
             $("#mall_count_brands").text('品牌' + data + '个')
@@ -324,7 +324,7 @@ $(function () {
 
     $.ajax({
         type: "GET",
-        url: "https://mall.usoftchina.com/inquiry/public/getCountOfLastAndThisMonth",
+        url: "https://oldmall.usoftchina.com/inquiry/public/getCountOfLastAndThisMonth",
         dataType: "json",
         success: function(json) {
             $("#mall_count_inquiry").text('本月询价条数' + json.current)
@@ -333,7 +333,7 @@ $(function () {
 
     $.ajax({
         type: "GET",
-        url: "https://mall.usoftchina.com/api/product/commoncount/12/count",
+        url: "https://oldmall.usoftchina.com/api/product/commoncount/12/count",
         dataType: "json",
         success: function(json) {
             json = (json - json % 100000000)/100000000