Commit 2a2a802f authored by wangqinghua's avatar wangqinghua

我要出题

parent 4bb58e5b
This source diff could not be displayed because it is too large. You can view the blob instead.
#Tue May 28 16:59:53 CST 2019
#Wed May 29 18:20:27 CST 2019
base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0
renamed.0=classes.dex
file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0/classes.dex
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {CreatePage} from "../create/create";
import {AppService} from "../../../../../service/http.service";
@IonicPage()
@Component({
selector: 'page-select-type',
templateUrl: 'select-type.html',
selector: 'page-select-type',
templateUrl: 'select-type.html',
})
export class SelectTypePage {
constructor(public navCtrl: NavController, public navParams: NavParams,
public appService: AppService) {
}
type;
ionViewDidLoad() {
constructor(public navCtrl: NavController, public navParams: NavParams,
public appService: AppService) {
}
}
ionViewDidLoad() {
this.type = this.navParams.get('type');
}
select(type){
this.navCtrl.push('CreatePage',{
'type':type,
'temp':this.navParams.get('temp')
});
select(type) {
if (this.type) {
this.navCtrl.push('IssuePage');
return false;
}
this.navCtrl.push('CreatePage', {
'type': type,
'temp': this.navParams.get('temp')
});
}
}
......@@ -119,8 +119,10 @@
<p class="noData" *ngIf="!loadMore">你已经看到我的底线了</p>
<ion-fab right bottom>
<button ion-fab color="light">我要出题</button>
<ion-fab *ngIf="indexChildren == '34'" right bottom>
<button ion-fab color="light" (click)="issue()">
<span class="issue">我要<br>出题</span>
</button>
</ion-fab>
</ion-content>
......
......@@ -226,4 +226,16 @@ page-discover {
border-bottom: 15px solid #ffffff;
}
}
.issue{
display: inline-block;
width: 2rem;
line-height: 1.5rem;
font-size: 1rem;
-webkit-transform: scale(0.8);
transform: scale(0.9);
color: #333;
}
.fab-ios-light{
background-color: #fff1f0;
}
}
......@@ -226,10 +226,6 @@ export class DiscoverPage {
//子级选择
changeChildren(item) {
if(item.name == '我要出题'){
this.navCtrl.push('SelectTypePage');
return false;
}
this.indexChildren = item.indexChildren;
this.infiniteScrollContent.inf.enable(true);
......@@ -363,4 +359,9 @@ export class DiscoverPage {
stop(e) {
e.stopPropagation();
}
//我要出题
issue() {
this.navCtrl.push('SelectTypePage',{type:'issue'});
}
}
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