<commit_before><?php
$this->title="订单详情页面";
?>
<div class="content" id="order-box">
    <div class="page preview js_show">
        <div class="weui-cells">
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>订单号:{{order.id}}</p>
            </div>
            <div class="weui-cell__ft" style="color:red">{{order.progress}}</div>
          </div>
        </div>
        <div class="weui-panel__ft">
            <a href="javascript:void(0);" class="weui-cell weui-cell_access weui-cell_link">
              <div class="weui-cell__bd">感谢您在卓迅购物，欢迎再次光临!</div>
              <span class="weui-cell__ft"></span>
            </a>    
        </div>

        <div class="page__bd">
            <div class="weui-panel weui-panel_access" v-for="rel in rels">
                <div class="weui-panel__bd">
                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" :src="'http://www.lion.cn'+rel.cover" alt="">
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title">{{rel.title}} <span class="pull-right">￥{{rel.price}}</span></h4>
                            <p class="weui-media-box__desc">
                                数量:{{rel.num}} {{rel.sku_name}}
                            </p>
                        </div>
                    </a>
                </div>
            </div>
        </div>

        <div class="weui-cells">
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>支付方式</p>
            </div>
            <div class="weui-cell__ft">{{order.pay_type}}</div>
          </div>
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>订单日期</p>
            </div>
            <div class="weui-cell__ft">{{order.created_date}}</div>
          </div>
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>商品总额</p>
            </div>
            <div class="weui-cell__ft">￥{{order.price}}</div>
          </div>
          <div class="weui-cell pull-right">
            <div class="weui-cell__ft">实付款：￥{{order.price}}</div>
          </div>


        </div>
        <a href="javascript:;" class="weui-btn weui-btn_primary">付款</a>
    </div>
</div>


<?php $this->beginBlock('order') ?>  
var demo = new Vue({
    el: '#order-box',
    data: {
        order: [],
        rels:[],
        sendData:{thumb:'35x24'},
        apiUrl: base_url +'order/view?id=<?=$get['id']?>',
    },
    beforeMount: function() {
        this.getOrder();
    },
    methods: {
        getOrder: function() {<commit_msg>memorial and grave<commit_after><?php
$this->title="订单详情页面";
?>
<div class="content" id="order-box">
    <div class="page preview js_show">
        <div class="weui-cells">
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>订单号: <span v-text="order.id"></span></p>
            </div>
            <div class="weui-cell__ft" style="color:red" v-text="order.progress"></div>
          </div>
        </div>
        <div class="weui-panel__ft">
            <a href="javascript:void(0);" class="weui-cell weui-cell_access weui-cell_link">
              <div class="weui-cell__bd">感谢您在<?=g("cp_name")?>购物，欢迎再次光临!</div>
              <span class="weui-cell__ft"></span>
            </a>    
        </div>

        <div class="page__bd">
            <div class="weui-panel weui-panel_access" v-for="rel in rels">
                <div class="weui-panel__bd">
                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" :src="rel.cover" alt="">
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title" >
                                <span v-text="rel.title"></span>
                                <span class="pull-right" v-text="'￥' + rel.preice"></span>
                            </h4>
                            <p class="weui-media-box__desc">
                                数量: <span v-text="rel.num"></span> <span v-text="rel.sku_name"></span>
                            </p>
                        </div>
                    </a>
                </div>
            </div>
        </div>

        <div class="weui-cells">
            <!--
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>支付方式</p>
            </div>
            <div class="weui-cell__ft">{{order.pay_type}}</div>
          </div>
          -->
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>订单日期</p>
            </div>
            <div class="weui-cell__ft" v-text="order.created_date"></div>
          </div>
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>商品总额</p>
            </div>
            <div class="weui-cell__ft" v-text="'￥'+order.price"></div>
          </div>
          <div class="weui-cell pull-right">
            <div class="weui-cell__ft">实付款：￥ <span v-text="order.price"></span></div>
          </div>


        </div>
        <a href="javascript:;" class="weui-btn weui-btn_primary">付款</a>
    </div>
</div>


<?php $this->beginBlock('order') ?>  
var demo = new Vue({
    el: '#order-box',
    data: {
        order: [],
        rels:[],
        sendData:{thumb:'35x24'},
        apiUrl: base_url +'order/view?id=<?=$get['id']?>',
    },
    beforeMount: function() {
        this.getOrder();
    },
    methods: {
        getOrder: function() {
{'fraction_non_alphanumeric': 0.1827021494370522, 'fraction_numerical': 0.002729443875810304, 'mean_word_length': 1.475929054054054, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 171, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6627389', 'n_tokens_mistral': 1965, 'n_tokens_neox': 1952, 'n_words': 287}