Your Name 6 years ago
parent
commit
e1e7a03bf4
2 changed files with 5 additions and 5 deletions
  1. 3 3
      js/app.js
  2. 2 2
      js/details.js

+ 3 - 3
js/app.js

@@ -12,7 +12,7 @@ var mainView = myApp.addView('.view-main', {
12 12
 function getCategory(package_id){
13 13
 var cate_id = '';
14 14
   var html = '', res = null, className = '';
15
-  $$.post('http://d1.henhaojie.com/user/information/getclassification', { package_id: package_id}, function (data) {
15
+  $$.post('/user/information/getclassification', { package_id: package_id}, function (data) {
16 16
   	console.log(JSON.parse(data))
17 17
     res = JSON.parse(data);
18 18
     if (res.errno == 0 && res.rst != []) {
@@ -24,7 +24,7 @@ var cate_id = '';
24 24
 
25 25
  function getList(package_id, classification_id, id, page){
26 26
    var html = '', res = null, className = '';
27
-   $$.post('http://d1.henhaojie.com/user/information/getinformationsbypackage', { package_id: package_id, classification_id: classification_id, page: page}, function (data) {
27
+   $$.post('/user/information/getinformationsbypackage', { package_id: package_id, classification_id: classification_id, page: page}, function (data) {
28 28
      // 请求成功
29 29
      res = JSON.parse(data);
30 30
      var pageInfo = res.rst.listdata.pageinfo;
@@ -95,7 +95,7 @@ timer = setInterval( function(){
95 95
 },100);
96 96
 
97 97
 /* 判断登录状态 */
98
-$$.post('http://d1.henhaojie.com/user/user/personalCenter', function (res) {
98
+$$.post('/user/user/personalCenter', function (res) {
99 99
   res = JSON.parse(res);
100 100
   if (res.errno == '0' ) {
101 101
     $$('.toolbar .JS_login').attr('href', '/mine.html');

+ 2 - 2
js/details.js

@@ -38,7 +38,7 @@ function getURLCode(){
38 38
 }
39 39
 id = getURLCode()['id'];
40 40
 console.log(id);
41
-$$.post('http://d1.henhaojie.com/user/information/getinformationcontentbyid', { id: id}, function (data) {
41
+$$.post('/user/information/getinformationcontentbyid', { id: id}, function (data) {
42 42
   res = JSON.parse(data);
43 43
   if (res.errno == 0) {
44 44
   // console.log(res);
@@ -49,4 +49,4 @@ $$.post('http://d1.henhaojie.com/user/information/getinformationcontentbyid', {
49 49
 		}
50 50
     $$('#content .container').html(res.rst.content)
51 51
   }
52
-});
52
+});