Authored by lore-w

订单确认页面基础

  1 +{{> layout/simple-header}}
  2 +<div class="order-save-page yoho-page clearfix">
  3 +{{# orderSave}}
  4 + <div class="order-edit"></div>
  5 + <div class="order-pay"></div>
  6 +{{/ orderSave}}
  7 +</div>
  8 +{{> layout/footer}}
@@ -87,4 +87,12 @@ @@ -87,4 +87,12 @@
87 <script> 87 <script>
88 seajs.use('js/product/hotrank'); 88 seajs.use('js/product/hotrank');
89 </script> 89 </script>
  90 +{{/if}}
  91 +
  92 +
  93 +{{!-- 订单保存--}}
  94 +{{#if orderSavePage}}
  95 +<script>
  96 + seajs.use('js/order/save');
  97 +</script>
90 {{/if}} 98 {{/if}}
  1 +/**
  2 + * @description: 订单保存
  3 + * @time: 2015/12/21
  4 + */
  5 +
@@ -81,4 +81,4 @@ a:focus { @@ -81,4 +81,4 @@ a:focus {
81 } 81 }
82 } 82 }
83 83
84 -@import "home/index", "product/index", "guang/index", "passport/index"; 84 +@import "home/index", "product/index", "guang/index", "passport/index", "order/index";
  1 +.order-save-page {
  2 + width: 990px;
  3 + margin: 40px auto;
  4 +
  5 + // 填写订单
  6 + .order-edit {
  7 + width: 100%;
  8 + }
  9 +
  10 + //
  11 + .order-pay {
  12 + width: 100%;
  13 + }
  14 +}
  1 +<?php
  2 +
  3 +use Action\AbstractAction;
  4 +
  5 +class SaveController extends AbstractAction
  6 +{
  7 + /**
  8 + * 订单确认
  9 + */
  10 + public function indexAction()
  11 + {
  12 + $data = array(
  13 + 'orderSavePage' => true
  14 + );
  15 +
  16 + $this->_view->display('index', $data);
  17 + }
  18 +
  19 +}
@@ -4,7 +4,7 @@ application.directory = APPLICATION_PATH "/application" @@ -4,7 +4,7 @@ application.directory = APPLICATION_PATH "/application"
4 ;;website library 4 ;;website library
5 application.library = ROOT_PATH "/library" 5 application.library = ROOT_PATH "/library"
6 ;;模块配置 6 ;;模块配置
7 -application.modules = "Index,Product,Passport" 7 +application.modules = "Index,Product,Passport,Order"
8 ;;加载 8 ;;加载
9 application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php" 9 application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php"
10 ;;view文件的扩展名 10 ;;view文件的扩展名