
<!doctype HTML>
<html>
<head>
<title>我的订单-有订单</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="yangzhifang_gz huangrongtao_gz" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/><!-- 手机视图 -->
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<meta name="format-detection" content="address=no" >
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="canonical" href="http://jr.pcauto.com.cn/" ><!-- 适配页，即和pc同权重页面 -->
<link href="http://js.3conline.com/pcauto/2015/chedaiwap/css/order.css" rel="stylesheet" type="text/css" />
</head>
<script>if(!window._addIvyID) document.write("<scr"+"ipt src='http://www.pconline.com.cn/_hux_/auto/default/index.js'><\/scr"+"ipt>");</script>
<body>
 <script>document.body.insertBefore(document.createElement("script"),document.body.firstChild).src="http://count.pcauto.com.cn/count.php?channel=8491&screen="+screen.width+"*"+screen.height+"&refer="+encodeURIComponent(document.referrer)+"&anticache="+new Date().getTime()+"&url="+encodeURIComponent(location.href);</script>

<div class="g-doc"> 
    <!--头部-->
    <script src="http://www.pcauto.com.cn/global/wap/header_js/" charset="utf-8" class=" defer"></script>
    <!--/头部-->
    <div class="header-bg"> 
        <a onclick="history.back(-1);" class="header-back" title=""></a>
        <div class="header-title">
            <span class="header-title-nav"><a href="http://{{{@root.host}}}/">首页</a>&gt;我的订单</span>  
        </div>
    </div>     

    <div class="m-detail bg-white">     
        <ul>
            <li>
                <div class="col-1">订&nbsp;&nbsp;单&nbsp;&nbsp;号：</div>
                <div class="col-4">
                    <div class="selectX" id="JselectX">
                        <div class="item-wrap" id="JitemWrap">
                            <div class="item">
                                <a class="tit">
                                    <span class="mark txt-hide"></span>
                                    <span class="icon"></span>
                                </a>
                            </div>                            
                        </div>
                    </div>
                </div>
                <div class="select-wrap" id="Jselect1">
                    <div class="selectConA">
                        <input type="hidden" name="" value="" id="Jtd"> 
                         {{#if list}}
                            {{#each list}}
                                <i><a href="javascript:;">{{{orderNo}}}</a></i>
                            {{/each}}
                        {{/if}}
                    </div>
                </div>
            </li>   
        </ul>
        <div id="Jcon"></div>
        <div class="u-more" id="Jmore">展开详细</div>
    </div>  
    
    <div id="Jcon1"></div>

    <div class="m-section m-delist" id="pd1">
        <div class="m-th">已选经销商</div>
        <div id="Jcon2"></div>  
    </div>

    {{#if fromWechat}}
        <div class="m-wechat m-wechat-2 bg-white">
            <div class="m-tb">
                <i>记得我们在这里：</i><br/>
                1、点标题下的“<em>太平洋汽车贷款平台</em>”关注<br/>
                2、搜索微信公众账号：<em>太平洋汽车贷款平台</em><br/>
                3、扫一扫下方二维码关注我们
            </div>
            <div class="m-th">
                <div class="m-left">
                    <img src="http://{{{@root.host}}}/pcauto.jpg" alt=""/>                  
                </div>
                <div class="m-right">                   
                    <img src="http://www1.pcauto.com.cn/2015/chedai/wap/mark.gif" />              
                </div>
            </div> 
        </div>    
    {{else}}
    <div class="m-wechat">
            <div class="m-th">
                <div class="m-left">
                    <img src="http://{{{@root.host}}}/pcauto.jpg" alt=""/>
                    <div class="u-tips">
                        <span class="u-icon"></span>
                        <span class="u-txt">
                            长按二维码<br>保存图片
                        </span>
                    </div>
                </div>
                <div class="m-right">
                    <div class="u-tips">关注太平洋汽车金融公众账号，随时随地获取最新申请状态！</div>
                    <div class="u-txt" id="Jwechat"><i>pcautojr</i></div>
                    <div class="u-txt2">长按以上文本进行复制</div>
                </div>
            </div>  
            <div class="m-tb">
                <i>微信订阅方法：</i><br>
                点击右上角按钮，选择“查看官方账号”，或在“添加朋友”里搜索“<em>太平洋汽车贷款平台</em>”
            </div>    
        </div>
    {{/if}}
     <!-- 公共底部-->
    <script src="http://www.pcauto.com.cn/global/wap/footer_js/" charset="utf-8" class=" defer"></script>
    <!--/公共底部-->
</div>

<script src="http://js.3conline.com/wap/common/wxApi.min.js" charset="utf-8" class=" defer"></script>
<script src="http://js.3conline.com/wap/2013/common/js/zepto.min.js"></script>
<script src="http://js.3conline.com/pcauto/2015/chedaiwap/js/order.js"></script>
<script>
function addEvent(obj,type,fn){
    if(obj.attachEvent){
        obj.attachEvent('on'+type,function(){
            fn.call(obj);
        })
    }else{
        obj.addEventListener(type,fn,false);
    }
}

//获取id
function $$(id) {
    return (typeof id == "object") ? id : document.getElementById(id);
}

var data =[]

{{#if list}}
    {{#each list}}
    data.push({
            "orderId":'{{{id}}}',
            "type":"{{{name}}}",
            "city":"{{{city}}}",
            "time":" <em class='date'>{{{formatTime date 'yyyy-MM-dd'}}}</em>",
            "name":"{{{contact}}}",
            "tel":"{{{tel}}}",
            "paper":'{{#if infos}}<div class="col-3">{{#each infos}}<div class="m-pic"><p><img src="{{{icon}}}" width="50" height="50"/></p><p>{{{text}}}</p></div>{{/each}}</div>{{/if}}',
            "bank":'<div class="part1 bg-white"><div class="m-th gray"><img src="{{{product.icon}}}" width="20" height="20"/><em>{{{product.orgName}}}</em></div><ul class="m-lstA bg-white"  id="Jcon1"><li><p class="m-lstA-name">{{{product.productName}}}</p><p class="m-lstA-data gray"><em>月供：<span class="red">{{{product.payment}}}元 </span>起</em><em>贷款成本：{{{product.cost}}}万</em></p></li></ul></div>',
            "delst":'{{#if dealers}}{{#each dealers}}<ul id="Jdelist"><li><span>[{{{agent}}}]{{{name}}}</span><span class="">地址：{{{address}}}</span></li>{{/each}}</ul>{{/if}}'});
    {{/each}}
{{/if}}

function getStrB(){
    var Jselect1 = $$('Jselect1');
    var toc=Jselect1.querySelectorAll('i');
    for(var i=0;i<toc.length;i++){
        toc[i].index=i;
        addEvent(toc[i],'click',function(){             
            getStrA(this.index);
            pd();
        });    
    }
}
getStrB();
getStrA(0);

// 提交数据
function formSub(){
    //具体获取表单可以通过这里提交，已经检查过数据了。
    openPop("验证通过，执行ajax,开发在这里操作");
}

/*分享到微信*/
wxApi.init(function () {
    var shareData = {
        title: document.title,// 分享标题
        desc: document.getElementsByName('description')[0].content,// 分享描述
        link: window.location.href,// 分享链接
        imgUrl: sharepic,// 分享图标
    };
    wx.onMenuShareAppMessage(shareData);// 监听“分享给朋友”，按钮点击、自定义分享内容及分享结果接口
    wx.onMenuShareTimeline(shareData);// 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
    wx.onMenuShareQQ(shareData);// 监听“分享到QQ”按钮点击、自定义分享内容及分享结果接口
    wx.onMenuShareWeibo(shareData);// 监听“分享到微博”按钮点击、自定义分享内容及分享结果接口
});
</script>
<script>_submitIvyID();</script>
</body>
</html>