Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
淘宝旅行门票iPad版开发
Search
ningzbruc
June 06, 2014
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
淘宝旅行门票iPad版开发
淘宝旅行门票iPad版开发
ningzbruc
June 06, 2014
More Decks by ningzbruc
See All by ningzbruc
如何写出一个优秀的开源库
ningzbruc
0
66
去啊无线前端的一天
ningzbruc
1
190
React & Component
ningzbruc
0
45
阿里旅行去啊H5首页总结&Promise
ningzbruc
0
270
KISSY.Base - all about that Base
ningzbruc
0
140
Hammer.js
ningzbruc
1
340
Travel on KISSY mini
ningzbruc
0
210
Events
ningzbruc
2
130
Why YUI3
ningzbruc
0
190
Other Decks in Programming
See All in Programming
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
250
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
150
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
0
120
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
400
Embedded SREと共に達成した会員管理システムのAWS移行 - SRE NEXT 2026 ランチスポンサーセッション
niftycorp
PRO
1
3.1k
ビデオ通話が繋がる0.2秒で何が起きているのか
supurazako
2
150
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
180
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
540
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
2
460
数百円から始めるRuby電子工作
tarosay
0
110
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
280
Built Our Own Background Agent at LayerX #aidevex_findy
layerx
PRO
9
3.5k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Building an army of robots
kneath
306
46k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
64
56k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
330
The Limits of Empathy - UXLibs8
cassininazir
1
550
The agentic SEO stack - context over prompts
schlessera
0
850
Building Applications with DynamoDB
mza
96
7.1k
How to Ace a Technical Interview
jacobian
281
24k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
360
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.7k
BBQ
matthewcrist
89
10k
Transcript
门票iPad版总结 虎牙
None
None
None
Differences ‧ 更大的屏幕 ‧ 更细致的交互 ‧ 更完美的体验 ‧ 更少的兼容性
Differences ‧ 更大的屏幕 ‧ 更细致的交互 ‧ 更完美的体验 ‧ 更少的兼容性
‧ 横竖屏切换 ‧ 页面局部刷新 ‧ 历史记录正常 ‧ 滚动加载更多 ‧ 重构组件交互
Details
Orientation //横竖屏时更新banner轮播 Orientation.change(function(e) { self.slide.refresh(); }, true);
if (useHistoryState) { history.replaceState({ isMapMode: this.isMapMode }, '景点列表', url); this.toggleListMode(true);
} else { this.redirectTo(url); } History
# 新交互
None
None
None
Modules & Extensions
Modules & Extensions
Modules & Extensions var Search = GlobalBase.extend([ GlobalTMS, GlobalSearch, GlobalCityList,
Banner ], {});
Modules & Extensions var List = GlobalBase.extend([ GlobalTMS, GlobalSearch, GlobalCityList,
ListPopup, ListLoad, ListMap ], {});
Modules & Extensions var Scenic = GlobalBase.extend([ Slide, Desc, Map
], {});
AOP & SuperBase function ListLoad() {} ! S.augment(ListLoad, { initializer:
function() { this.nearScenicName = this.getParam('scenicName'); this.searchByScenic = !!this.nearScenicName; this.doAfter(this.renderListLoad, this, 'renderUI'); this.doAfter(this.bindListLoad, this, 'bindUI'); this.doAfter(this.syncListLoad, this, 'syncUI'); }, destructor: function() {} });
AOP & SuperBase function ListLoad() {} ! S.augment(ListLoad, { initializer:
function() { this.nearScenicName = this.getParam('scenicName'); this.searchByScenic = !!this.nearScenicName; this.doAfter(this.renderListLoad, this, 'renderUI'); this.doAfter(this.bindListLoad, this, 'bindUI'); this.doAfter(this.syncListLoad, this, 'syncUI'); }, destructor: function() {} });
http://gallery.kissyui.com/aop/1.1/guide/index.html http://gallery.kissyui.com/superbase/1.0/guide/index.html AOP & SuperBase
Widgets ‧ AOP ‧ SuperBase ‧ Orientation ‧ AlignBox ‧
HistoryList ‧ SimpleSlide ‧ iScroll5 ‧ Scroller ‧ ScrollList ‧ GeoLocation ‧ AutoComplete ‧ and more…
# Demo
‧ Zepto to KISSY mini ‧ iScroll4 to iScroll5 ‧
页面宽度自适应 ‧ 键盘打开时旋转屏幕性能很差 ‧ 页面刷新也会触发onpopstate事件 ‧ 接入淘宝iPad客户端极简支付 Problems
zepto 2 mini • Node • Event • UA •
Ajax • Lang • duration/timeout • … https://speakerdeck.com/ningzbruc/travel-on-kissy-mini
The end.