|
@@ -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');
|