Commit c81d49f6 authored by wangqinghua's avatar wangqinghua

发现页面分页

parent 13086717
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
"proxies": [ "proxies": [
{ {
"path": "/wisdomgroup", "path": "/wisdomgroup",
"proxyUrl": "http://47.103.33.196:8080/wisdomgroup" "proxyUrl": "http://218.78.19.169:8081/wisdomgroup"
}, },
{ {
"path": "/logistics", "path": "/logistics",
"proxyUrl": "http://47.103.33.196:8080/logistics" "proxyUrl": "http://218.78.19.169:8081/logistics"
} }
] ]
} }
...@@ -9,7 +9,7 @@ import {AppUpdateService} from "../service/appUpdate.service"; ...@@ -9,7 +9,7 @@ import {AppUpdateService} from "../service/appUpdate.service";
import {Keyboard} from '@ionic-native/keyboard'; import {Keyboard} from '@ionic-native/keyboard';
import {Response} from "@angular/http"; import {Response} from "@angular/http";
import {TabsPage} from "../pages/tabs/tabs"; import {TabsPage} from "../pages/tabs/tabs";
import {AppService} from "../service/http.service"; import {AppGlobal, AppService} from "../service/http.service";
import {EmitService} from "../provide/emit.service"; import {EmitService} from "../provide/emit.service";
import {MobileAccessibility} from "@ionic-native/mobile-accessibility"; import {MobileAccessibility} from "@ionic-native/mobile-accessibility";
import {timer} from "rxjs/observable/timer"; import {timer} from "rxjs/observable/timer";
...@@ -34,7 +34,7 @@ export class MyApp { ...@@ -34,7 +34,7 @@ export class MyApp {
@ViewChild(Content) content: Content; @ViewChild(Content) content: Content;
rootPage; rootPage;
showSplash = false; showSplash = false;
nowVersion = "4.6.0"; nowVersion = AppGlobal.defaultVersion;
user; user;
......
...@@ -5,7 +5,7 @@ import {TabsPage} from '../tabs/tabs'; ...@@ -5,7 +5,7 @@ import {TabsPage} from '../tabs/tabs';
import {Http, Response} from '@angular/http'; import {Http, Response} from '@angular/http';
import {Storage} from '@ionic/storage'; import {Storage} from '@ionic/storage';
import {AppService} from '../../service/http.service'; import {AppGlobal, AppService} from '../../service/http.service';
import {LoginService} from "./login.service"; import {LoginService} from "./login.service";
import {TabsService} from "../tabs/tabs.service"; import {TabsService} from "../tabs/tabs.service";
import {AppVersion} from "@ionic-native/app-version"; import {AppVersion} from "@ionic-native/app-version";
...@@ -26,7 +26,7 @@ export class LoginPage { ...@@ -26,7 +26,7 @@ export class LoginPage {
mobile: '', mobile: '',
password: '', password: '',
rememberMe: true, rememberMe: true,
newestVersion: "4.6.0" newestVersion: AppGlobal.defaultVersion
}; };
tabflag: any; tabflag: any;
......
...@@ -346,18 +346,9 @@ export class RoomApplyPage { ...@@ -346,18 +346,9 @@ export class RoomApplyPage {
//校验时间 //校验时间
checkTime() { checkTime() {
const clock12 = new Date(this.datePipe.transform(new Date(), 'yyyy-MM-dd 12:00')).getTime();
const startTime = new Date(this.obj.startTime).getTime(); const startTime = new Date(this.obj.startTime).getTime();
const endTime = new Date(this.obj.endTime).getTime(); const endTime = new Date(this.obj.endTime).getTime();
const nowDate = new Date(this.datePipe.transform(new Date(), 'yyyy-MM-dd HH:mm:ss')).getTime(); const nowDate = new Date(this.datePipe.transform(new Date(), 'yyyy-MM-dd HH:mm:ss')).getTime();
console.log("clock12:" + clock12);
console.log("startTime:" + startTime);
console.log("startTime:" + this.datePipe.transform(startTime, 'yyyy-MM-dd HH:mm'));
console.log("endTime:" + this.datePipe.transform(endTime, 'yyyy-MM-dd HH:mm'));
if (startTime < clock12 && clock12 < endTime) {
this.commonSer.toast('时间选择错误');
return
}
if (startTime == endTime || nowDate > startTime) { if (startTime == endTime || nowDate > startTime) {
this.commonSer.toast('时间选择错误'); this.commonSer.toast('时间选择错误');
return return
......
...@@ -433,7 +433,6 @@ export class DiscoverPage { ...@@ -433,7 +433,6 @@ export class DiscoverPage {
//父级选择 //父级选择
changeParent(item) { changeParent(item) {
console.log(item)
if (this.indexParent === item.indexParent) return; if (this.indexParent === item.indexParent) return;
this.obj.parentName = item.name; this.obj.parentName = item.name;
...@@ -475,7 +474,7 @@ export class DiscoverPage { ...@@ -475,7 +474,7 @@ export class DiscoverPage {
} }
if (item.name != "支部风采") this.obj.branchId = null; if (item.name != "支部风采") this.obj.branchId = null;
this.pageNum = 1;
const data = { const data = {
pageNum: 1, pageNum: 1,
pageSize: this.pageSize, pageSize: this.pageSize,
...@@ -502,8 +501,6 @@ export class DiscoverPage { ...@@ -502,8 +501,6 @@ export class DiscoverPage {
} }
} }
}); });
console.log(this.indexParent)
console.log(this.slides.realIndex)
this.slides.slideTo(this.indexParent, 500); this.slides.slideTo(this.indexParent, 500);
this.slideList[this.indexParent] = this.newList; this.slideList[this.indexParent] = this.newList;
} }
...@@ -516,7 +513,6 @@ export class DiscoverPage { ...@@ -516,7 +513,6 @@ export class DiscoverPage {
this.obj.childrenName = item.name; this.obj.childrenName = item.name;
if (!this.obj.branchId) this.obj.branchId = this.mineInfo.branchId; if (!this.obj.branchId) this.obj.branchId = this.mineInfo.branchId;
console.log(item);
if (item.name == "支部列表") { if (item.name == "支部列表") {
this.moreParty(); this.moreParty();
this.indexChildren = 34; this.indexChildren = 34;
...@@ -548,6 +544,7 @@ export class DiscoverPage { ...@@ -548,6 +544,7 @@ export class DiscoverPage {
return false; return false;
} }
this.pageNum = 1;
const data = { const data = {
pageNum: 1, pageNum: 1,
pageSize: this.pageSize, pageSize: this.pageSize,
...@@ -636,9 +633,11 @@ export class DiscoverPage { ...@@ -636,9 +633,11 @@ export class DiscoverPage {
return; return;
} }
if (this.totalNum == this.slideList[this.indexParent].length || this.totalNum < this.slideList[this.indexParent].length) { if (this.totalNum == this.slideList[this.indexParent].length || this.totalNum < this.slideList[this.indexParent].length) {
return false; e.complete();
return;
} }
this.pageNum++; this.pageNum++;
console.log(this.pageNum);
const data = { const data = {
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: this.pageSize, pageSize: this.pageSize,
...@@ -684,7 +683,6 @@ export class DiscoverPage { ...@@ -684,7 +683,6 @@ export class DiscoverPage {
//回答题目 //回答题目
goToResponse(item) { goToResponse(item) {
console.log(item);
if (item.userId == this.userId) { if (item.userId == this.userId) {
this.navCtrl.push('AcceptPage', {id: item.id}) this.navCtrl.push('AcceptPage', {id: item.id})
} else { } else {
...@@ -706,7 +704,6 @@ export class DiscoverPage { ...@@ -706,7 +704,6 @@ export class DiscoverPage {
modal.onDidDismiss(data => { modal.onDidDismiss(data => {
if (data) { if (data) {
this.changeParent(data); this.changeParent(data);
console.log(data);
} }
}); });
modal.present(); modal.present();
...@@ -794,9 +791,9 @@ export class DiscoverPage { ...@@ -794,9 +791,9 @@ export class DiscoverPage {
} }
goToPayment(e) { goToPayment(e) {
if(this.mineInfo.branchId == this.obj.branchId){ if (this.mineInfo.branchId == this.obj.branchId) {
this.navCtrl.push(PaymentPage); this.navCtrl.push(PaymentPage);
}else{ } else {
this.commonSer.toast('只可查看本处室缴纳情况'); this.commonSer.toast('只可查看本处室缴纳情况');
} }
} }
......
...@@ -29,6 +29,10 @@ export class AppGlobal { ...@@ -29,6 +29,10 @@ export class AppGlobal {
// static pictureNotice = AppGlobal.domain; //正式地址 // static pictureNotice = AppGlobal.domain; //正式地址
static pictureNotice = AppGlobal.domain; //测试 static pictureNotice = AppGlobal.domain; //测试
//默认版本
static defaultVersion = "4.6.0"; //dev
// static defaultVersion; //prrod
//接口地址 //接口地址
static API: any = { static API: any = {
getCategories: '/api/ionic3/getCategories', getCategories: '/api/ionic3/getCategories',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment