Commit 1c01171f07a2438feafe78b950f5f7cce99ca239

Authored by wangfan
1 parent dd58b8b4

快速预定

1 { 1 {
2 - "usingComponents": {} 2 + "backgroundTextStyle":"light",
  3 + "navigationBarBackgroundColor": "#fff",
  4 + "navigationBarTextStyle":"black",
  5 + "usingComponents": {
  6 + "nav":"/components/nav/nav",
  7 + "formids":"/components/formids/formids"
  8 + }
3 } 9 }
1 <!--pack-cookbook/pages/success.wxml--> 1 <!--pack-cookbook/pages/success.wxml-->
2 -<text>pack-cookbook/pages/success.wxml</text> 2 +<nav id="nav" hasHome backgroundColor="#ffffff" color="#000000">已点菜品</nav>
  3 +<view class="pages">
  4 + <view class="carts">
  5 + <view class="block">
  6 + <view class="title">123123</view>
  7 + <view class="cart-body">
  8 + <view class="cart-item flex-lr" wx:for="{{[1]}}" wx:key="item.key">
  9 + <view class="icon">
  10 + <image src="{{}}"></image>
  11 + </view>
  12 + <view class="name">范德萨范德萨发{{item}}</view>
  13 + <view class="price">¥125.00/份</view>
  14 + <view class="opt">
  15 + {{item.num||10}}
  16 + </view>
  17 + </view>
  18 + </view>
  19 + </view>
  20 + </view>
  21 + <view class="total">共计:¥88</view>
  22 +</view>
  23 +<view class="hr"></view>
  24 +<view class="pages">
  25 + <view class="infos">
  26 + <view class="flex-lr item">
  27 + <view>备注:</view>
  28 + <view class="">口味、偏好等要求</view>
  29 + </view>
  30 + <view class="flex-lr item">
  31 + <view>人数:</view>
  32 + <view class="">111</view>
  33 + </view>
  34 + </view>
  35 +</view>
  36 +<view class="hr"></view>
  37 +<view class="pages">
  38 + <view class="infos">
  39 + <view class="flex-ll item">
  40 + <view>订单编号:</view>
  41 + <view class="">22333445678</view>
  42 + </view>
  43 + <view class="flex-ll item">
  44 + <view>下单时间:</view>
  45 + <view class="">2018-07-12</view>
  46 + </view>
  47 + </view>
  48 +</view>
1 -/* pack-cookbook/pages/success.wxss */  
  1 +/* pack-cookbook/pages/success.wxss */
  2 +.pages{
  3 + padding: 40rpx 5% 0;
  4 +}
  5 +
  6 +
  7 +.carts{
  8 + overflow-y: auto;
  9 +}
  10 +.carts image{
  11 + width: 100%;
  12 + height: 100%;
  13 +}
  14 +.carts .icon{
  15 + width: 48rpx;
  16 + min-width: 48rpx;
  17 + height: 48rpx;
  18 + background-color: #f5f5f5;
  19 + border-radius: 50%;
  20 + overflow: hidden;
  21 + margin-right: 20rpx;
  22 +}
  23 +.carts .title{
  24 + height:80rpx;
  25 + line-height: 80rpx;
  26 + font-size: 28rpx;
  27 + border-bottom: 2rpx solid #F5F5F5;
  28 +}
  29 +.cart-body{
  30 +
  31 +}
  32 +.cart-item{
  33 + height: 100rpx;
  34 + line-height: 100rpx;
  35 + font-size: 34rpx;
  36 +}
  37 +.cart-item .name{
  38 + width: 60%;
  39 + overflow: hidden;
  40 + white-space:nowrap;
  41 +}
  42 +.cart-item .price{
  43 + width: 32%;
  44 + white-space:nowrap;
  45 + margin: 0 4%;
  46 +}
  47 +.cart-item .opt{
  48 + font-size: 36rpx;
  49 + font-weight: bold;
  50 + min-width: 80rpx;
  51 + width: 80rpx;
  52 + text-align: right;
  53 +}
  54 +.total{
  55 + height: 140rpx;
  56 + line-height: 140rpx;
  57 + border-top: 2rpx solid #F5F5F5;
  58 + border-radius: 0 0 10rpx 10rpx;
  59 + margin:0 10rpx 20rpx;
  60 + text-align: right;
  61 + font-weight: bold;
  62 + font-size: 36rpx;
  63 + padding-right: 34rpx;
  64 +}
  65 +.hr{
  66 + height: 20rpx;
  67 + background-color: #f5f5f5;
  68 + width: 100%;
  69 +}
  70 +.infos{
  71 + background-color: #fefefe;
  72 + font-size: 28rpx;
  73 +}
  74 +.infos .item{
  75 + height: 100rpx;
  76 + line-height: 100rpx;
  77 +}
  78 +.infos input{
  79 + text-align: right;
  80 +}
  81 +.infos .desc{
  82 + margin-right: 20rpx;
  83 + white-space:nowrap;
  84 + overflow: hidden;
  85 + max-width: 95%;
  86 + color: #999999;
  87 +}