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
 function getCategory(package_id){
12
 function getCategory(package_id){
13
 var cate_id = '';
13
 var cate_id = '';
14
   var html = '', res = null, className = '';
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
   	console.log(JSON.parse(data))
16
   	console.log(JSON.parse(data))
17
     res = JSON.parse(data);
17
     res = JSON.parse(data);
18
     if (res.errno == 0 && res.rst != []) {
18
     if (res.errno == 0 && res.rst != []) {
24
 
24
 
25
  function getList(package_id, classification_id, id, page){
25
  function getList(package_id, classification_id, id, page){
26
    var html = '', res = null, className = '';
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
      res = JSON.parse(data);
29
      res = JSON.parse(data);
30
      var pageInfo = res.rst.listdata.pageinfo;
30
      var pageInfo = res.rst.listdata.pageinfo;
95
 },100);
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
   res = JSON.parse(res);
99
   res = JSON.parse(res);
100
   if (res.errno == '0' ) {
100
   if (res.errno == '0' ) {
101
     $$('.toolbar .JS_login').attr('href', '/mine.html');
101
     $$('.toolbar .JS_login').attr('href', '/mine.html');

+ 2 - 2
js/details.js

38
 }
38
 }
39
 id = getURLCode()['id'];
39
 id = getURLCode()['id'];
40
 console.log(id);
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
   res = JSON.parse(data);
42
   res = JSON.parse(data);
43
   if (res.errno == 0) {
43
   if (res.errno == 0) {
44
   // console.log(res);
44
   // console.log(res);
49
 		}
49
 		}
50
     $$('#content .container').html(res.rst.content)
50
     $$('#content .container').html(res.rst.content)
51
   }
51
   }
52
-});
52
+});