Ejemplo n.º 1
0
        $('body').on('tap', '.J_ticket-list-item', function(e){
            var dom = $(e.currentTarget),
                ticket_id = dom.attr('data-ticket-id'),
                src = dom.attr('data-src'),
                uid = dom.attr('data-uid'),
                pid = dom.attr('data-pid'),
                qunar_id = dom.attr('data-qunar-id'),
                ctrip_id = dom.attr('data-ctrip-id');

            Tracker.tapLog(ticketListTapLog);

            Bridge.Data.getParamsData(function (res) {
                delete res.url;
                var _param = $.extend({
                    ext_from: window.eventId
                }, res);

                var map_webapp_data = $.extend({
                    pids: ticket_id,
                    ticket_id: ticket_id,
                    scope_id: src
                }, _param);

                var nuomi_webapp_data = $.extend({
                    pids: ticket_id,
                    ticket_id: ticket_id,
                    scope_id: src
                }, _param);

                var nuomi_data = $.extend({
                    pids: ticket_id,
                    ticket_id: ticket_id,
                    scope_id: src
                }, _param);

                var map_data = {
                    "skuDetail": $.extend({
                        param: '{"page":"ticketDetailPage","title":"门票详情","pids":"' + ticket_id + '","scope_id":"' + qunar_id + '","extra":[],"is_adult_ticket":0,"is_into_scope":0,"order_from":"mapmap","is_miaosha":"1", "bid": "'+ uid +'", "src": "'+ src +'"}', 
                    }, _param),
                    "orderFill": $.extend({
                        param: '{"partner_id":"' + src + '","scope_id":"' + ctrip_id + '","ticket_id":"' + pid + '","extra":[],"is_adult_ticket":0,"is_into_scope":0,"order_from":"map_scope", "bid": "'+ uid +'"}', 
                    },{
                        'mode': 'NORMAL_MODE',
                        'popRoot': 'no'
                    }, _param)
                };

                var page = 'skuDetail';

                Bridge.pushWindow({
                    'page' : page,
                    'data' : {
                        'nuomi' : nuomi_data,
                        'map' : map_data,
                        'nuomi-webapp' : nuomi_webapp_data,
                        'map-webapp' : map_webapp_data
                    }
                });
            });
        });
Ejemplo n.º 2
0
        $('body').on('tap', '.J_Hotlist', function(e){
            var dom = $(e.currentTarget),
                uid = dom.attr('data-uid'),
                td_id = dom.attr('data-tdid'),
                ticket_id = dom.attr('data-ticketid');

            Tracker.tapLog(hotTapLog);

            Bridge.Data.getParamsData(function (res) {
                delete res.url;
                var _param = $.extend({
                    ext_from: window.eventId
                }, res);

                var data = $.extend({
                    td_id: td_id,
                    uid : uid,
                    ticket_id : ticket_id
                }, _param);

                Bridge.pushWindow({
                    'page' : 'poiDetail',
                    'data' : {
                        'nuomi' : data,
                        'map' : data,
                        'nuomi-webapp' : data,
                        'map-webapp' : data
                    }
                });
            });
        });
Ejemplo n.º 3
0
        $('body').on('tap', '.J_scenery-list-item', function(e){

            var dom = $(e.currentTarget);
            var uid = dom.attr('data-uid');
            var td_id = dom.attr('data-tdid');

            Tracker.tapLog(sceneryListTapLog);

            Bridge.Data.getParamsData(function (res) {
                delete res.url;
                var _param = $.extend({
                    ext_from: window.eventId
                }, res);

                var map_webapp_data = $.extend({
                    uid: uid,
                    qt: 'ninf',
                    industry: 'scope'
                }, _param);

                var nuomi_webapp_data = $.extend({
                    td_id: td_id
                }, _param);

                var nuomi_data = $.extend({
                    td_id: td_id
                }, _param);

                var map_data = $.extend({
                    uid: uid
                }, _param);

                var page = 'poiDetail';

                Bridge.pushWindow({
                    'page' : page,
                    'data' : {
                        'nuomi' : nuomi_data,
                        'map' : map_data,
                        'nuomi-webapp' : nuomi_webapp_data,
                        'map-webapp' : map_webapp_data
                    }
                });
            });
        });