Commit 88480c9a authored by wangqinghua's avatar wangqinghua

出题采纳

parent b2abf2ea
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.smart19.starter" version="4.2.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="io.ionic.smart19.starter" version="4.2.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>部机关党建云(试运行)</name> <name>部机关党建云(试运行)</name>
<description>An awesome Ionic/Cordova app.</description> <description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author> <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
......
...@@ -8,6 +8,6 @@ public final class BuildConfig { ...@@ -8,6 +8,6 @@ public final class BuildConfig {
public static final String APPLICATION_ID = "io.ionic.smart19.starter"; public static final String APPLICATION_ID = "io.ionic.smart19.starter";
public static final String BUILD_TYPE = "release"; public static final String BUILD_TYPE = "release";
public static final String FLAVOR = ""; public static final String FLAVOR = "";
public static final int VERSION_CODE = 40203; public static final int VERSION_CODE = 40205;
public static final String VERSION_NAME = "4.2.3"; public static final String VERSION_NAME = "4.2.5";
} }
This source diff could not be displayed because it is too large. You can view the blob instead.
#Sat Jun 15 14:27:22 CST 2019 #Sun Jun 16 00:51:51 CST 2019
base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/0 base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/0
renamed.0=classes.dex renamed.0=classes.dex
file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/0/classes.dex file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dex/release/0/classes.dex
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.ionic.smart19.starter" package="io.ionic.smart19.starter"
android:hardwareAccelerated="true" android:hardwareAccelerated="true"
android:versionCode="40203" android:versionCode="40205"
android:versionName="4.2.3" > android:versionName="4.2.5" >
<uses-sdk <uses-sdk
android:minSdkVersion="16" android:minSdkVersion="16"
......
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40203},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}] [{"outputType":{"type":"MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40205},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file \ No newline at end of file
[{"outputType":{"type":"INSTANT_RUN_MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40203},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}] [{"outputType":{"type":"INSTANT_RUN_MERGED_MANIFESTS"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40205},"path":"AndroidManifest.xml","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file \ No newline at end of file
[{"outputType":{"type":"PROCESSED_RES"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40203},"path":"resources-release.ap_","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}] [{"outputType":{"type":"PROCESSED_RES"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40205},"path":"resources-release.ap_","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file \ No newline at end of file
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40203},"path":"app-release-unsigned.apk","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}] [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":40205},"path":"app-release-unsigned.apk","properties":{"packageId":"io.ionic.smart19.starter","split":"","minSdkVersion":"16"}}]
\ No newline at end of file \ No newline at end of file
...@@ -176,7 +176,7 @@ document.getElementById(id).style.display = 'none'; ...@@ -176,7 +176,7 @@ document.getElementById(id).style.display = 'none';
<span class="mdl-layout-title">Lint Report: 1 error</span> <span class="mdl-layout-title">Lint Report: 1 error</span>
<div class="mdl-layout-spacer"></div> <div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only"> <nav class="mdl-navigation mdl-layout--large-screen-only">
Check performed at Sat Jun 15 14:27:28 CST 2019 </nav> Check performed at Sun Jun 16 00:51:54 CST 2019 </nav>
</div> </div>
</header> </header>
<div class="mdl-layout__drawer"> <div class="mdl-layout__drawer">
......
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="40203" android:versionName="4.2.3" package="io.ionic.smart19.starter" xmlns:android="http://schemas.android.com/apk/res/android"> <manifest android:hardwareAccelerated="true" android:versionCode="40205" android:versionName="4.2.5" package="io.ionic.smart19.starter" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true"> <application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize"> <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
......
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.smart19.starter" version="4.2.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget id="io.ionic.smart19.starter" version="4.2.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="Keyboard"> <feature name="Keyboard">
<param name="android-package" onload="true" value="io.ionic.keyboard.IonicKeyboard" /> <param name="android-package" onload="true" value="io.ionic.keyboard.IonicKeyboard" />
</feature> </feature>
......
...@@ -78,7 +78,8 @@ ...@@ -78,7 +78,8 @@
{{answer.userName}} {{answer.userName}}
</p> </p>
<p class="commnet-content"> <p class="commnet-content">
<span class="margin-right-5 margin-left-20">回答:</span>{{answer.answer}} <span <span class="margin-right-5 margin-left-20">回答:</span>{{answer.answer}}
<span *ngIf="!acceptBol"
style="color: #003388" class="margin-left-10" (click)="accept(answer.id)">采纳</span> style="color: #003388" class="margin-left-10" (click)="accept(answer.id)">采纳</span>
</p> </p>
<span *ngIf="answer.isAccept == 1" class="accept">已采纳</span> <span *ngIf="answer.isAccept == 1" class="accept">已采纳</span>
......
import { Component } from '@angular/core'; import {Component} from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular'; import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {TabsService} from "../../tabs/tabs.service"; import {TabsService} from "../../tabs/tabs.service";
import {CommonService} from "../../../provide/common.service"; import {CommonService} from "../../../provide/common.service";
...@@ -14,6 +14,7 @@ export class AcceptPage { ...@@ -14,6 +14,7 @@ export class AcceptPage {
id; id;
answer = ""; answer = "";
item; item;
acceptBol = false;
constructor(public navCtrl: NavController, public navParams: NavParams, constructor(public navCtrl: NavController, public navParams: NavParams,
private tabSer: TabsService, private commonSer: CommonService) { private tabSer: TabsService, private commonSer: CommonService) {
...@@ -24,25 +25,32 @@ export class AcceptPage { ...@@ -24,25 +25,32 @@ export class AcceptPage {
this.getDetail(); this.getDetail();
} }
getDetail(){ getDetail() {
this.tabSer.personDetail(this.id).subscribe( this.tabSer.personDetail(this.id).subscribe(
(res)=>{ (res) => {
this.item = res.data; this.item = res.data;
if(this.item.answers && this.item.answers.length > 0){
this.item.answers.forEach(e => {
if (e.isAccept == 1) {
this.acceptBol = true;
}
})
}
} }
) )
} }
//采纳回答 //采纳回答
accept(answerId){ accept(answerId) {
const data = { const data = {
answerId:answerId answerId: answerId
} }
this.tabSer.accept(data).subscribe( this.tabSer.accept(data).subscribe(
(res)=>{ (res) => {
if(res.errcode == '1000'){ if (res.errcode == '1000') {
this.commonSer.toast('采纳成功'); this.commonSer.toast('采纳成功');
this.getDetail(); this.getDetail();
}else{ } else {
this.commonSer.toast(res.errmsg); this.commonSer.toast(res.errmsg);
} }
} }
......
...@@ -230,6 +230,7 @@ export class PublishPage { ...@@ -230,6 +230,7 @@ export class PublishPage {
//发布 //发布
publish(status) { publish(status) {
let message; let message;
if (status == 1) message = '确定当前内容保存为草稿?';
if (status == 2) message = '确定提交审核当前内容?'; if (status == 2) message = '确定提交审核当前内容?';
if (status == 3) message = '确定直接发布当前内容?'; if (status == 3) message = '确定直接发布当前内容?';
if (!this.check()) { if (!this.check()) {
...@@ -343,6 +344,13 @@ export class PublishPage { ...@@ -343,6 +344,13 @@ export class PublishPage {
this.publish(2); this.publish(2);
} }
}; };
const draft = {
text: '保存草稿',
role: 'draft',
handler: () => {
this.publish(1);
}
};
let buttonArr = []; let buttonArr = [];
buttonArr.push(preview); buttonArr.push(preview);
if (this.role == 3 || this.role == 5) { if (this.role == 3 || this.role == 5) {
...@@ -350,6 +358,7 @@ export class PublishPage { ...@@ -350,6 +358,7 @@ export class PublishPage {
} else { } else {
buttonArr.push(submit); buttonArr.push(submit);
} }
buttonArr.push(draft);
buttonArr.push(cancel); buttonArr.push(cancel);
const actionSheet = this.actionSheetCtrl.create({ const actionSheet = this.actionSheetCtrl.create({
title: '', title: '',
......
import {Injectable} from "@angular/core";import {HttpClient} from "@angular/common/http";import {Http} from "@angular/http";import {Observable} from "rxjs/Observable";import {AppGlobal} from "../../service/http.service";import {CommonService} from "../../provide/common.service"; @Injectable()export class MineService { constructor( private http: HttpClient, //该请求 将结果转为json private commonSer: CommonService, private https: Http, //该请求不转json ) { } //我的发布 myPublish(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/myPublish', data); } //我的收藏 myCollection(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/myCollection', data); } //我的审核 appCheckList(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/appCheckList', data); } //上传头像 imageUpload(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/common/file/image/upload', data); } //获取个人头像 showImgByFileid(data): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/common/file/showImgByFileid/' + data); } //支部积分 orgPointList(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/twissignhistory/orgPointList', this.commonSer.toFormData(data)); } //个人排行榜 personPointList(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/twissignhistory/personPointList', this.commonSer.toFormData(data) ); } //个人积分信息 personPointDetail(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/twissignhistory/personPointDetail', this.commonSer.toFormData(data) ); } } import {Injectable} from "@angular/core";import {HttpClient} from "@angular/common/http";import {Http} from "@angular/http";import {Observable} from "rxjs/Observable";import {AppGlobal} from "../../service/http.service";import {CommonService} from "../../provide/common.service"; @Injectable()export class MineService { constructor( private http: HttpClient, //该请求 将结果转为json private commonSer: CommonService, private https: Http, //该请求不转json ) { } //我的发布 myPublish(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/myPublish', data); } //我的收藏 myCollection(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/myCollection', data); } //我的审核 appCheckList(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/appCheckList', data); } //上传头像 imageUpload(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/common/file/image/upload', data); } //获取个人头像 showImgByFileid(data): Observable<any> { return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/common/file/showImgByFileid/' + data); } //支部积分 orgPointList(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/twissignhistory/orgPointList', this.commonSer.toFormData(data)); } //个人排行榜 personPointList(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/twissignhistory/personPointList', this.commonSer.toFormData(data) ); } //个人积分信息 personPointDetail(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/twissignhistory/personPointDetail', this.commonSer.toFormData(data) ); } //查询待审核数量 waitCheckNum(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/waitCheckNum' , data); } //查询我的草稿 myDraft(data): Observable<any> { return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/myDraft',data); } }
\ No newline at end of file \ No newline at end of file
......
<ion-header> <ion-header>
<ion-navbar> <ion-navbar>
<ion-title>我的发布</ion-title> <ion-title>我的文章</ion-title>
</ion-navbar> </ion-navbar>
</ion-header> </ion-header>
...@@ -13,6 +13,15 @@ ...@@ -13,6 +13,15 @@
refreshingSpinner="bubbles"> refreshingSpinner="bubbles">
</ion-refresher-content> </ion-refresher-content>
</ion-refresher> </ion-refresher>
<div class="duty">
<div class="dutyItem" (click)="getPublishList()">
<span class="{{changeType == 1?'duty-title':''}}">已发布</span>
</div>
<div class="dutyItem" (click)="getDraftList()">
<span class="{{changeType == 2?'duty-title':''}}">草稿箱</span>
</div>
</div>
<ng-container *ngIf="changeType == 1">
<div class="main-news"> <div class="main-news">
<ng-container *ngFor="let new of publicList;"> <ng-container *ngFor="let new of publicList;">
<ng-container *ngIf="new.imgUrl"> <ng-container *ngIf="new.imgUrl">
...@@ -52,9 +61,46 @@ ...@@ -52,9 +61,46 @@
</p> </p>
</ion-list> </ion-list>
</div> </div>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)"> </ng-container>
<ion-infinite-scroll-content <ng-container *ngIf="changeType == 2">
loadingSpinner="bubbles" <div class="main-news">
loadingText="加载中"></ion-infinite-scroll-content> <ng-container *ngFor="let new of draftList;">
</ion-infinite-scroll> <ng-container *ngIf="new.imgUrl">
<ion-row class="news-item" (click)="goToDetail(new)">
<ion-col col-8 class="news-left">
<p class="news-title">
{{new.title}}
<ion-icon *ngIf="new.topTime" class="icon-fire iconfont"></ion-icon>
</p>
<p class="news-end">
<span>发布时间:</span><span>{{new.publishTime | date:'yyyy-MM-dd'}}</span>
</p>
</ion-col>
<ion-col col-4 class="news-right">
<img src="{{picture+new.imgUrl}}">
</ion-col>
</ion-row>
</ng-container>
<ng-container *ngIf="!new.imgUrl">
<ion-row class="news-item" (click)="goToDetail(new)">
<ion-col col-12 class="news-left">
<p class="news-title">
{{new.title}}
<ion-icon *ngIf="new.topTime" class="icon-fire iconfont"></ion-icon>
</p>
<p class="news-end">
<span>发布时间:</span><span>{{new.publishTime | date:'yyyy-MM-dd'}}</span>
</p>
</ion-col>
</ion-row>
</ng-container>
</ng-container>
<ion-list text-center style="margin-top: 10rem" *ngIf=" !isLoad && publicList.length == 0">
<img style="width: 20%;" src="./assets/imgs/no-info.png" alt="">
<p text-center>
暂无发布
</p>
</ion-list>
</div>
</ng-container>
</ion-content> </ion-content>
...@@ -47,4 +47,31 @@ page-my-publish { ...@@ -47,4 +47,31 @@ page-my-publish {
border-top: 1px solid #eeeeee; border-top: 1px solid #eeeeee;
} }
} }
.duty{
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
height: 36px;
background-color: #fff;
}
.duty div{
width: 50%;
text-align: center;
position: relative;
}
.duty-title{
position: relative;
color: #e42417;
}
.duty-title::after{
content: '';
position: absolute;
width: 100%;
height: 2px;
background-color: #e42417;
bottom: -10px;
left: 0px;
}
} }
...@@ -11,83 +11,70 @@ import {CommonService} from "../../../provide/common.service"; ...@@ -11,83 +11,70 @@ import {CommonService} from "../../../provide/common.service";
templateUrl: 'my-publish.html', templateUrl: 'my-publish.html',
}) })
export class MyPublishPage { export class MyPublishPage {
@ViewChild(InfiniteScrollContent) infiniteScrollContent:InfiniteScrollContent; @ViewChild(InfiniteScrollContent) infiniteScrollContent: InfiniteScrollContent;
pageNum = 1; pageNum = 1;
pageCount = 10; pageCount = 100;
publicList = []; publicList = [];
draftList = [];
changeType = 1;
picture: string = AppGlobal.domain + '/wisdomgroup'; picture: string = AppGlobal.domain + '/wisdomgroup';
isLoad = true; isLoad = true;
totalNum; totalNum;
loadMore = true;
constructor(public navCtrl: NavController, public navParams: NavParams, constructor(public navCtrl: NavController, public navParams: NavParams,
public mineSer:MineService,public commonSer:CommonService) { public mineSer: MineService, public commonSer: CommonService) {
} }
ionViewDidLoad() { ionViewDidLoad() {
this.getList(); this.getPublishList();
this.getDraftList();
} }
getList(){ change(type) {
const data = { this.changeType = type;
pageNum:this.pageNum, this.getPublishList();
pageCount:this.pageCount
};
this.mineSer.myPublish(data).subscribe(
(res)=>{
this.publicList = res.data.list;
this.isLoad = false;
this.totalNum = res.data.total;
}
)
} }
//下拉刷新 //已发布
doRefresh(e){ getPublishList() {
this.loadMore = true; this.changeType = 1;
this.infiniteScrollContent.inf.enable(true);
const data = { const data = {
pageNum: 1, pageNum: this.pageNum,
pageCount: this.pageCount pageCount: this.pageCount
}; };
this.mineSer.myPublish(data).subscribe( this.mineSer.myPublish(data).subscribe(
(res) => { (res) => {
this.publicList = res.data.list; this.publicList = res.data.list;
this.isLoad = false;
this.totalNum = res.data.total; this.totalNum = res.data.total;
setTimeout(()=>{
this.commonSer.toast('刷新成功')
e.complete()
},800);
} }
) )
} }
//加载更多 //草稿箱
doInfinite(e){ getDraftList() {
if(this.totalNum == this.publicList.length ){ this.changeType = 2;
this.loadMore = false;
e.enable(false);
return false;
}
this.pageNum ++;
const data = { const data = {
pageNum: this.pageNum, pageNum: this.pageNum,
pageCount: this.pageCount pageCount: this.pageCount
}; };
this.mineSer.myPublish(data).subscribe( this.mineSer.myDraft(data).subscribe(
(res) => { (res) => {
this.totalNum = res.data.total; if (res.data) {
res.data.list.forEach(e=>{ this.draftList = res.data.list;
this.publicList.push(e); }
});
setTimeout(()=>{
e.complete()
},800);
} }
) )
} }
//下拉刷新
doRefresh(e) {
this.getDraftList();
this.getPublishList();
}
//查看文章详情 //查看文章详情
goToDetail(item) { goToDetail(item) {
this.navCtrl.push(StuffDetailPage, { this.navCtrl.push(StuffDetailPage, {
......
<ion-header> <ion-header>
<ion-navbar> <ion-navbar>
<ion-title>对于系统的建议</ion-title> <ion-title>意见反馈</ion-title>
</ion-navbar> </ion-navbar>
</ion-header> </ion-header>
......
...@@ -9,91 +9,37 @@ ...@@ -9,91 +9,37 @@
</div> </div>
<div class="content-box"> <div class="content-box">
<div class="info-item content-box-group"> <div class="info-item content-box-group">
<!-- <div class="info-item"> <label class="info-span">房间号</label>
<span class="info-span">房间号</span> <ion-label class="content-label info" *ngIf="edit11">{{user?.userDetail?.user?.abbreviation}}</ion-label>
<span class="info" *ngIf="edit11">{{user?.userDetail?.user?.abbreviation}}</span> <ion-datetime cancelText="取消" doneText="确认" displayFormat="YYYY-MM-DD" [(ngModel)]="timeStarts"></ion-datetime>
<div class="info-item-box" *ngIf="edit12"> <p item-end *ngIf="edit12">
<div class="info-input">
<input type="text" maxlength="20" [(ngModel)] = "userinfo.abbreviation">
</div>
<img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()"> <img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()">
</p>
</div> </div>
</div> --> <div class="info-item content-box-group">
<!-- <ion-label class="info-span">房间号</ion-label> -->
<label class="info-span">房间号</label> <label class="info-span">房间号</label>
<ion-label class="content-label info" *ngIf="edit11">{{user?.userDetail?.user?.abbreviation}}</ion-label> <ion-label class="content-label info" *ngIf="edit11">{{user?.userDetail?.user?.abbreviation}}</ion-label>
<ion-input class="info-input" *ngIf="edit12" type="text" maxlength="20" [(ngModel)]="userinfo.abbreviation"></ion-input> <ion-input class="info-input" *ngIf="edit12" type="text" maxlength="20" [(ngModel)]="userinfo.abbreviation"></ion-input>
<!-- <div class="button button-icon icon ion-settings"></div> -->
<!-- <ion-label *ngIf="edit12" class="button button-positive button-small" ng-click="updateUserInfo()">保存</ion-label> -->
<!-- <ion-label class="title-label">房间号</ion-label>
<ion-label class="content-label" *ngIf="edit11">{{user?.userDetail?.user.abbreviation}}</ion-label>
<ion-input *ngIf="edit12" type="text" maxlength="20" [(ngModel)]="userinfo.abbreviation"></ion-input>
<p item-end *ngIf="edit12" tappable (click)="updateUserInfo()">
<img src="./assets/imgs/confirm.png" class="confirm" >
</p> -->
<p item-end *ngIf="edit12"> <p item-end *ngIf="edit12">
<img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()"> <img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()">
</p> </p>
</div> </div>
<div class="info-item content-box-group"> <div class="info-item content-box-group">
<!-- <div class="info-item">
<span class="info-span">座机</span>
<span class="info" *ngIf="edit21">{{user?.userDetail?.user.telephone}}</span>
<div class="info-item-box" *ngIf="edit22">
<div class="info-input">
<input type="text" maxlength="20" [(ngModel)] = "userinfo.telephone">
</div>
<img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()">
</div>
</div> -->
<label class="info-span">座机</label> <label class="info-span">座机</label>
<ion-label class="content-label info" *ngIf="edit21">{{user?.userDetail?.user.telephone}}</ion-label> <ion-label class="content-label info" *ngIf="edit21">{{user?.userDetail?.user.telephone}}</ion-label>
<ion-input class="info-input" *ngIf="edit22" type="text" maxlength="20" [(ngModel)]="userinfo.telephone"></ion-input> <ion-input class="info-input" *ngIf="edit22" type="text" maxlength="20" [(ngModel)]="userinfo.telephone"></ion-input>
<p item-end *ngIf="edit22"> <p item-end *ngIf="edit22">
<img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()"> <img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()">
</p> </p>
<!-- <ion-label class="title-label">座机</ion-label>
<ion-label class="content-label" *ngIf="edit21">{{user?.userDetail?.user.telephone}}</ion-label>
<ion-input *ngIf="edit22" type="text" maxlength="20" [(ngModel)]="userinfo.telephone"></ion-input>
<p item-end *ngIf="edit22" tappable (click)="updateUserInfo()">
<img src="./assets/imgs/confirm.png" class="confirm" >
</p> -->
</div> </div>
<div class="info-item content-box-group"> <div class="info-item content-box-group">
<!-- <div class="info-item">
<span class="info-span">邮箱</span>
<span class="info" *ngIf="edit31">{{user?.userDetail?.user.email}}</span>
<div class="info-item-box" *ngIf="edit32">
<div class="info-input">
<input type="text" maxlength="20" [(ngModel)] = "userinfo.email" (ionFocus)="focusFun()">
<input type="text" maxlength="20" [(ngModel)] = "userinfo.email">
</div>
<img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()">
</div>
</div> -->
<label class="info-span">邮箱</label> <label class="info-span">邮箱</label>
<ion-label class="content-label info" *ngIf="edit31">{{user?.userDetail?.user.email}}</ion-label> <ion-label class="content-label info" *ngIf="edit31">{{user?.userDetail?.user.email}}</ion-label>
<ion-input class="info-input" *ngIf="edit32" type="text" maxlength="20" [(ngModel)]="userinfo.email"></ion-input> <ion-input class="info-input" *ngIf="edit32" type="text" maxlength="20" [(ngModel)]="userinfo.email"></ion-input>
<p item-end *ngIf="edit32"> <p item-end *ngIf="edit32">
<img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()"> <img src="./assets/imgs/confirm.png" class="confirm" (click)="updateUserInfo()">
</p> </p>
<!-- <ion-label class="title-label">邮箱</ion-label>
<ion-label class="content-label" *ngIf="edit31">{{user?.userDetail?.user.email}}</ion-label>
<ion-input *ngIf="edit32" type="text" maxlength="20" [(ngModel)]="userinfo.email"></ion-input>
<p item-end *ngIf="edit32" tappable (click)="updateUserInfo()">
<img src="./assets/imgs/confirm.png" class="confirm" >
</p> -->
</div> </div>
</div> </div>
</ion-content> </ion-content>
...@@ -13,6 +13,7 @@ import { AppService } from "../../../../service/http.service"; ...@@ -13,6 +13,7 @@ import { AppService } from "../../../../service/http.service";
export class EditPersonInfoPage { export class EditPersonInfoPage {
// @ViewChild(Content) content: Content; // @ViewChild(Content) content: Content;
timeStarts;
orgName = ''; orgName = '';
user: any; user: any;
......
...@@ -51,6 +51,25 @@ ...@@ -51,6 +51,25 @@
补充信息(可编辑) 补充信息(可编辑)
</div> </div>
<ion-list> <ion-list>
<ion-item>
<div class="info-item">
<span class="info-span">出生日期</span>
<div class="info-item-content">
<span class="info">{{user?.userDetail?.user.telephone}}</span>
<img src="./assets/imgs/edit.png" class="edit" (click)="edit(2)">
</div>
</div>
</ion-item>
<ion-item>
<div class="info-item">
<span class="info-span">职务</span>
<div class="info-item-content">
<span class="info">{{user?.userDetail?.user.telephone}}</span>
<img src="./assets/imgs/edit.png" class="edit" (click)="edit(2)">
</div>
</div>
</ion-item>
<ion-item> <ion-item>
<div class="info-item"> <div class="info-item">
<span class="info-span">房间号</span> <span class="info-span">房间号</span>
...@@ -81,7 +100,7 @@ ...@@ -81,7 +100,7 @@
</ion-item> </ion-item>
</ion-list> </ion-list>
<!-- <button ion-button block class="save">保存信息</button> --> <button ion-button block class="save">修改个人信息</button>
<!--<button ion-button block class="save" (click)="modifyPwd()">修改密码</button>--> <!--<button ion-button block class="save" (click)="modifyPwd()">修改密码</button>-->
<button class="submit-btn submit" (click)="modifyPwd()">修改密码</button> <button class="submit-btn submit" (click)="modifyPwd()">修改密码</button>
</ion-content> </ion-content>
...@@ -22,6 +22,7 @@ export class PersonInfoPage { ...@@ -22,6 +22,7 @@ export class PersonInfoPage {
user: any; user: any;
gender: object; gender: object;
userid: ''; userid: '';
myDate;
picUrl = AppGlobal.domain + '/wisdomgroup/modules/common/file/showImgByFileid/'; picUrl = AppGlobal.domain + '/wisdomgroup/modules/common/file/showImgByFileid/';
mineInfo; mineInfo;
......
...@@ -13,14 +13,7 @@ ...@@ -13,14 +13,7 @@
</span> </span>
</button> </button>
</ion-buttons> </ion-buttons>
<ion-buttons start> <ion-buttons start class="score">
<button ion-button icon-only (click)="goTo('ProposalPage')" class="toolbar-signUp">
<span class="signUp-span">
<img style="margin-left: 0" class="toolbar-img" src="./assets/imgs/home/icon-proposal.jpg">
</span>
</button>
</ion-buttons>
<ion-buttons end class="score margin-right-10">
<span class="score-font">积分</span> <span class="score-font">积分</span>
<button (click)="goTo('IntegralPage')" style="background-color: transparent;position: relative;"> <button (click)="goTo('IntegralPage')" style="background-color: transparent;position: relative;">
<span class="score-num"> <span class="score-num">
...@@ -28,8 +21,14 @@ ...@@ -28,8 +21,14 @@
</span> </span>
</button> </button>
</ion-buttons> </ion-buttons>
<ion-buttons end class=" margin-right-10">
<ion-buttons class="search-button margin-0-5" end> <button ion-button icon-only (click)="goTo('ProposalPage')" class="toolbar-signUp">
<span class="signUp-span">
<img class="toolbar-img" src="./assets/imgs/home/icon-proposal.jpg">
</span>
</button>
</ion-buttons>
<ion-buttons class="search-button margin-right-5" end>
<button ion-button icon-only (click)="goTo('SearchNewPage')"> <button ion-button icon-only (click)="goTo('SearchNewPage')">
<ion-icon class="search-icon" name="search"></ion-icon> <ion-icon class="search-icon" name="search"></ion-icon>
</button> </button>
...@@ -71,9 +70,9 @@ ...@@ -71,9 +70,9 @@
</ion-row> </ion-row>
</div> </div>
<div class="slides-content"> <div class="slides-content">
<div id="swiper-container" class="swiper-container" > <div id="swiper-container" class="swiper-container">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<ng-container *ngIf="slidersItems.length > 0" > <ng-container *ngIf="slidersItems.length > 0">
<div class="swiper-slide" *ngFor="let item of slidersItems;"> <div class="swiper-slide" *ngFor="let item of slidersItems;">
<img [src]="picture+item.imgUrl" class="slide-image" [alt]="item.title"> <img [src]="picture+item.imgUrl" class="slide-image" [alt]="item.title">
</div> </div>
......
...@@ -36,7 +36,6 @@ page-home { ...@@ -36,7 +36,6 @@ page-home {
img.toolbar-img { img.toolbar-img {
width: 2rem; width: 2rem;
margin-top: 2px; margin-top: 2px;
margin-right: 1rem;
} }
.signUp-span::after { .signUp-span::after {
...@@ -63,6 +62,7 @@ page-home { ...@@ -63,6 +62,7 @@ page-home {
font-family: SourceHanSans-Bold; font-family: SourceHanSans-Bold;
position: relative; position: relative;
text-align: center; text-align: center;
margin-left: 1rem;
.score-font { .score-font {
display: inline-block; display: inline-block;
...@@ -84,8 +84,8 @@ page-home { ...@@ -84,8 +84,8 @@ page-home {
.score::after { .score::after {
content: ''; content: '';
position: absolute; position: absolute;
right: -24px; left: -10px;
top: 5px; top: 3px;
height: 18px; height: 18px;
width: 2px; width: 2px;
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.5);
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<img src="./assets/imgs/mine/wdsh.png"> <img src="./assets/imgs/mine/wdsh.png">
</ion-col> </ion-col>
<ion-col class="group-right" col-10> <ion-col class="group-right" col-10>
<span>我的审核 <span class="main-color" *ngIf="checkList.length > 0">{{checkList.length}}</span></span> <span>我的审核 <span class="main-color mysh" *ngIf="checkList.length > 0">{{checkList.length}}</span></span>
<ion-icon name="ios-arrow-forward"></ion-icon> <ion-icon name="ios-arrow-forward"></ion-icon>
</ion-col> </ion-col>
</ion-row> </ion-row>
......
...@@ -6,9 +6,11 @@ page-mine { ...@@ -6,9 +6,11 @@ page-mine {
border-radius: 5px; border-radius: 5px;
box-shadow: -5px 0px 5px 1px #f2f2f2, 0px -5px 5px 1px #f2f2f2, 5px 0px 5px 1px #f2f2f2, 0px 5px 5px 1px #f2f2f2; box-shadow: -5px 0px 5px 1px #f2f2f2, 0px -5px 5px 1px #f2f2f2, 5px 0px 5px 1px #f2f2f2, 0px 5px 5px 1px #f2f2f2;
background-color: #fff; background-color: #fff;
.mine-item { .mine-item {
padding: 1rem 0; padding: 1rem 0;
img{
img {
border-radius: 50%; border-radius: 50%;
width: 70px; width: 70px;
height: 70px; height: 70px;
...@@ -43,26 +45,31 @@ page-mine { ...@@ -43,26 +45,31 @@ page-mine {
.group-box { .group-box {
background-color: #fff; background-color: #fff;
font-size: 1.6rem; font-size: 1.6rem;
.group-left{
.group-left {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding-bottom: 1rem; padding-bottom: 1rem;
} }
.group-right { .group-right {
display: flex; display: flex;
flex-flow: row; flex-flow: row;
align-items: center; align-items: center;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
padding-bottom: 1rem; padding-bottom: 1rem;
ion-icon { ion-icon {
margin-left: auto; margin-left: auto;
} }
} }
ion-row{
ion-row {
padding-top: .6rem; padding-top: .6rem;
} }
img{
img {
width: 2.5rem; width: 2.5rem;
} }
} }
...@@ -79,7 +86,7 @@ page-mine { ...@@ -79,7 +86,7 @@ page-mine {
} }
} }
.red-span-round{ .red-span-round {
background-color: #fee7e7; background-color: #fee7e7;
border: 1px solid #e12724; border: 1px solid #e12724;
color: #e12724; color: #e12724;
...@@ -88,4 +95,15 @@ page-mine { ...@@ -88,4 +95,15 @@ page-mine {
-moz-border-radius: 100px; -moz-border-radius: 100px;
border-radius: 100px; border-radius: 100px;
} }
.mysh {
display: inline-block;
color: #e42417;
padding: 2px 5px;
border: 1px solid #e42417;
border-radius: 50%;
font-size: 1rem;
transform: scale(0.8);
background-color: #fff6f6;
}
} }
...@@ -72,14 +72,10 @@ export class MinePage { ...@@ -72,14 +72,10 @@ export class MinePage {
} }
getCheckList() { getCheckList() {
const data = { this.mineSer.waitCheckNum(null).subscribe(
pageNum: 1,
pageCount: 1000
};
this.mineSer.appCheckList(data).subscribe(
(res) => { (res) => {
if(res.data){ if(res.data){
this.checkList = res.data.list; this.checkList = res.data;
} }
} }
) )
......
...@@ -144,6 +144,11 @@ export class TabsService { ...@@ -144,6 +144,11 @@ export class TabsService {
return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/save', data); return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/save', data);
} }
//查询我的草稿
myDraft(data): Observable<any> {
return this.http.post(AppGlobal.domain + '/wisdomgroup/modules/stuff/myDraft',data);
}
//审核通过 //审核通过
stuffPublish(params): Observable<any> { stuffPublish(params): Observable<any> {
return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/stuff/publish/' + params); return this.http.get(AppGlobal.domain + '/wisdomgroup/modules/stuff/publish/' + params);
......
...@@ -52,13 +52,15 @@ export class TabsPage { ...@@ -52,13 +52,15 @@ export class TabsPage {
tabIconOn: 'custom-discover-on', tabIconOn: 'custom-discover-on',
tabIconOff: 'custom-discover-off', tabIconOff: 'custom-discover-off',
index: 1 index: 1
}, { },
{
root: ServePage, root: ServePage,
tabTitle: '服务', tabTitle: '服务',
tabIconOn: 'custom-serve-on', tabIconOn: 'custom-serve-on',
tabIconOff: 'custom-serve-off', tabIconOff: 'custom-serve-off',
index: 2 index: 2
}, { },
{
root: MinePage, root: MinePage,
tabTitle: '我的', tabTitle: '我的',
tabIconOn: 'custom-mine-on', tabIconOn: 'custom-mine-on',
......
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