本文共 1826 字,大约阅读时间需要 6 分钟。
about.ts
import { ThemeableBrowser } from 'ionic-native';import { Component } from '@angular/core';import { NavController, IonicPage } from 'ionic-angular';@IonicPage()@Component({ selector: 'page-about', templateUrl: 'about.html'})export class AboutPage { items = [ { title: "我的淘宝", link: "https://h5.m.taobao.com/mlapp/mytaobao.html#mlapp-mytaobao" }, { title: "购物车", link: "https://h5.m.taobao.com/mlapp/cart.html" }, { title: "我的订单", link: "https://h5.m.taobao.com/mlapp/olist.html" }, { title: "待付款", link: "https://h5.m.taobao.com/mlapp/olist.html?spm=a2141.7756461.2.1&tabCode=waitPay" }, { title: "待发货", link: "https://h5.m.taobao.com/mlapp/olist.html?spm=a2141.7756461.2.2&tabCode=waitSend" }, { title: "待收货", link: "https://h5.m.taobao.com/mlapp/olist.html?spm=a2141.7756461.2.3&tabCode=waitConfirm" }, { title: "待评价", link: "https://h5.m.taobao.com/mlapp/olist.html?spm=a2141.7756461.2.4&tabCode=waitRate" } ]; constructor(public navCtrl: NavController) { } itemClick(item) { let options = { statusbar: { color: '#f8285c' }, toolbar: { height: 44, color: '#f8285c' }, title: { color: '#ffffffff', showPageTitle: true }, backButton: { image: 'back', imagePressed: 'back_pressed', align: 'left', event: 'backPressed' }, backButtonCanClose: true }; new ThemeableBrowser(item.link, '_blank', options) }}
about.html
个人中心
到这里,整个app的基础架构和功能就算基本完成了。后面一讲将教大家如何生成resources资源,也就是icon和splash,应用图标和启动界面。
完!
转载地址:http://emykl.baihongyu.com/