Commit 0c47fb21f996604db67fc84a5a846fc6058ec6b3

Authored by vking
1 parent a6364b36

seller-do

@@ -161,4 +161,11 @@ Page({ @@ -161,4 +161,11 @@ Page({
161 }) 161 })
162 }) 162 })
163 }, 163 },
  164 + displayOrderImages(){
  165 + if(this.data.checkout.bill_list.length>0){
  166 + wx.previewImage({
  167 + urls:this.data.checkout.bill_list,
  168 + })
  169 + }
  170 + },
164 }) 171 })
@@ -49,11 +49,11 @@ @@ -49,11 +49,11 @@
49 <view class="list-name">应付金额</view> 49 <view class="list-name">应付金额</view>
50 <view class="list-val should_price">¥{{checkout.should_price}}</view> 50 <view class="list-val should_price">¥{{checkout.should_price}}</view>
51 </view> 51 </view>
52 - <view class="list flex-lr" wx:if="{{checkout.bill_list}}"> 52 + <view class="list flex-lr" wx:if="{{checkout.bill_list.length>0}}" bindtap="displayOrderImages">
53 <view class="list-name">消费清单</view> 53 <view class="list-name">消费清单</view>
54 - <view class="list-val">查看消费清单</view> 54 + <view class="list-val link">查看消费清单</view>
55 </view> 55 </view>
56 - <view class="list flex-lr"> 56 + <view class="list flex-lr" style="align-items:flex-start;line-height: 60rpx;">
57 <view class="list-name">包间名称</view> 57 <view class="list-name">包间名称</view>
58 <view class="list-val">{{checkout.tablename}}</view> 58 <view class="list-val">{{checkout.tablename}}</view>
59 </view> 59 </view>
@@ -83,11 +83,11 @@ @@ -83,11 +83,11 @@
83 <view class="list-name">实付金额</view> 83 <view class="list-name">实付金额</view>
84 <view class="list-val should_price">¥{{checkout.should_price}}</view> 84 <view class="list-val should_price">¥{{checkout.should_price}}</view>
85 </view> 85 </view>
86 - <view class="list flex-lr" wx:if="{{checkout.bill_list}}"> 86 + <view class="list flex-lr" wx:if="{{checkout.bill_list.length>0}}" bindtap="displayOrderImages">
87 <view class="list-name">消费清单</view> 87 <view class="list-name">消费清单</view>
88 - <view class="list-val">查看消费清单</view> 88 + <view class="list-val link">查看消费清单</view>
89 </view> 89 </view>
90 - <view class="list flex-lr"> 90 + <view class="list flex-lr" style="align-items:flex-start;line-height: 60rpx;">
91 <view class="list-name">包间名称</view> 91 <view class="list-name">包间名称</view>
92 <view class="list-val">{{checkout.tablename}}</view> 92 <view class="list-val">{{checkout.tablename}}</view>
93 </view> 93 </view>
@@ -93,7 +93,6 @@ page{ @@ -93,7 +93,6 @@ page{
93 padding-bottom: 27rpx; 93 padding-bottom: 27rpx;
94 } 94 }
95 .list{ 95 .list{
96 - height: 68rpx;  
97 line-height: 68rpx; 96 line-height: 68rpx;
98 font-size:30rpx; 97 font-size:30rpx;
99 font-weight:500; 98 font-weight:500;
@@ -174,4 +173,14 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked:before{ @@ -174,4 +173,14 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked:before{
174 color:rgba(53,53,53,1); 173 color:rgba(53,53,53,1);
175 line-height:44rpx; 174 line-height:44rpx;
176 text-align: right; 175 text-align: right;
  176 +}
  177 +.list-name{
  178 + min-width: 150rpx;
  179 +}
  180 +.list-val{
  181 + text-align: right;
  182 +}
  183 +.link{
  184 + border-bottom: 2rpx solid #979797;
  185 + padding: 0 4rpx;
177 } 186 }
@@ -644,7 +644,7 @@ @@ -644,7 +644,7 @@
644 "id": 80, 644 "id": 80,
645 "name": "pack-checkout/pages/index", 645 "name": "pack-checkout/pages/index",
646 "pathName": "pack-checkout/pages/index", 646 "pathName": "pack-checkout/pages/index",
647 - "query": "rid=61685&sid=80", 647 + "query": "rid=62202&sid=80",
648 "scene": null 648 "scene": null
649 }, 649 },
650 { 650 {