10
Alipay Inc Barcode Cashier 颂颂 http:// qiqicartoon.com

YUI3构建条码支付收银台

  • Upload
    zhu-qi

  • View
    1.304

  • Download
    5

Embed Size (px)

DESCRIPTION

YUI3构建条码支付收银台

Citation preview

Page 1: YUI3构建条码支付收银台

Alipay Inc

Barcode Cashier

颂赞http://qiqicartoon.com

Page 2: YUI3构建条码支付收银台

Alipay Inc

复杂的键盘响应 webapp

模块化管理 webapp

YUI Application模块化机制

Page 3: YUI3构建条码支付收银台

Alipay Inc

条码枪输入, F7,ESC,+,ENTER,DELETE,{,},|,/,SHIFT,UP,DOWN

Page 4: YUI3构建条码支付收银台

Alipay Inc

颂BarCodeCashier

FastCashier

AdvanceCashier

SellQuery

RepositoryManage

条码收银台核心功能

Page 5: YUI3构建条码支付收银台

Alipay Inc

YUI(JSON,WIDGET,COOKIE,IO,NODE)

BarCode

SellQuery RepositoryManage

Cashier

FastCashier

AdvanceCashier

条码收银台前端系统模型 (YUI3)

Page 6: YUI3构建条码支付收银台

Alipay Inc

BarCode Cashier从这里开始 YUI({

charset: 'GB2312’, base: '../js/build/',

combine: false, modules: { barcode: {

type: 'js’, fullpath: '../js/build/barcode/barcode.js?t='+new Date().getTime(), requires: ['json','node','io','widget','cookie’]

}, fastcashier: {

type: 'js’, fullpath: '../js/fastCashier.js?t='+new Date().getTime() }

}}).use('barcode','fastcashier',function(Y){

//start here……});

Page 7: YUI3构建条码支付收银台

Alipay Inc

What’s the Barcode.js?

YUI.namespace(‘Y.Barcode’);

YUI.add('barcode',function (Y){ //start here……}, ,'3.0.0',{requires:['json','node','io','widget','cookie']});

Barcode.js

resolveMoney

success

failure

start

end

completeroundMoneycreateOverlay

delOverlay

Loading

adjustOverlay

verifyData

Page 8: YUI3构建条码支付收银台

Alipay Inc

What’s the Cashier.js?

YUI.namespace(‘Y.Cashier’);

YUI.add(’cashier',function (Y){ function Cashier(config){ Cashier.superclass.constructor.apply(this,config); }

Cashier.ATTRS = {}; Y.extend(Cashier,Y.Widget,{ method: …… });

}, ,'3.0.0',{requires:['json','node','io','widget','cookie']}); Cashier.js

PayRules

PayAction

Widgets

Page 9: YUI3构建条码支付收银台

Alipay Inc

Application Structure

Page 10: YUI3构建条码支付收银台

Alipay Inc

Q & A