Skip to content

Commit

Permalink
add share page
Browse files Browse the repository at this point in the history
  • Loading branch information
lowesyang committed Feb 23, 2019
1 parent f04cdd5 commit 471f305
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
7 changes: 1 addition & 6 deletions src/app/pages/share/share.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@
</ion-header>

<ion-content>
<div class="qrcode">
<div class="name">
<ion-label class="f18" color="dark">浙大区块链协会官方钱包</ion-label>
</div>
<qrcode [qrdata]="qrcode" [size]="256" [level]="'M'"></qrcode>
</div>
<ion-img src="assets/img/share.png" class="bg"></ion-img>
</ion-content>
13 changes: 3 additions & 10 deletions src/app/pages/share/share.page.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
.qrcode {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

.name {
text-align: center;
margin-bottom: 10px;
}
.bg {
width: 100%;
padding: 0;
}
4 changes: 0 additions & 4 deletions src/app/pages/share/share.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ import {Component, OnInit} from '@angular/core';
styleUrls: ['./share.page.scss'],
})
export class SharePage implements OnInit {

qrcode: string;

constructor() {
}

ngOnInit() {
this.qrcode = 'https://docs.zjubca.org';
}

}
Binary file added src/assets/img/share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 471f305

Please sign in to comment.