Commit a6d70c8ac7a2afac77554dcdef5d37abf8ef0906

Authored by vking
1 parent a77b8b78

预订详情

1.点击修改跳转,点击时间日期等上面这一块也会跳转到修改;
2.订座详情下面的预订的块,餐厅地址只展示一行,多余的字不展示,点击进去到地图展示全部;(日程页面也一样,只展示一行,给这个地址一个固定的宽,如果需要我提供宽度,告诉我)
@@ -116,5 +116,11 @@ Component({ @@ -116,5 +116,11 @@ Component({
116 } 116 }
117 }) 117 })
118 }, 118 },
  119 + tapEvent(){
  120 + this.triggerEvent('event',{
  121 + act:'gotoDetail',
  122 + detail:this.data.detail,
  123 + })
  124 + },
119 } 125 }
120 }) 126 })
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 </view> 16 </view>
17 </view> 17 </view>
18 </formids> 18 </formids>
19 - <view class="context flex-lr"> 19 + <view class="context flex-lr" catchtap="tapEvent">
20 <view class="left info Medium"> 20 <view class="left info Medium">
21 <view class="label">时间</view> 21 <view class="label">时间</view>
22 <view class="value">{{rdateStr}}</view> 22 <view class="value">{{rdateStr}}</view>
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 <view class="gps-icon"> 35 <view class="gps-icon">
36 <image src="http://qn.colorcun.com/custom/lite-yd/image/gps-icon.png"></image> 36 <image src="http://qn.colorcun.com/custom/lite-yd/image/gps-icon.png"></image>
37 </view> 37 </view>
38 - <view style="line-height: 40rpx;"> 38 + <view class="address-txt">
39 {{seller.map_address}} 39 {{seller.map_address}}
40 </view> 40 </view>
41 </view> 41 </view>
@@ -75,6 +75,12 @@ @@ -75,6 +75,12 @@
75 min-width: 28rpx; 75 min-width: 28rpx;
76 margin-right: 20rpx; 76 margin-right: 20rpx;
77 } 77 }
  78 +.address-txt{
  79 + line-height: 40rpx;
  80 + overflow: hidden;
  81 + text-overflow:ellipsis;
  82 + white-space:nowrap;
  83 +}
78 84
79 .master{ 85 .master{
80 padding-top: 0; 86 padding-top: 0;
@@ -189,4 +189,7 @@ Page({ @@ -189,4 +189,7 @@ Page({
189 }) 189 })
190 } 190 }
191 }, 191 },
  192 + cardEvent(e){
  193 + console.log(e)
  194 + },
192 }) 195 })
@@ -74,7 +74,7 @@ @@ -74,7 +74,7 @@
74 </block> 74 </block>
75 75
76 <view style="height: 40rpx;"></view> 76 <view style="height: 40rpx;"></view>
77 - <card seller="{{detail.seller}}" detail="{{detail}}" hasOnlineReserve="{{hasOnlineReserve}}"></card> 77 + <card seller="{{detail.seller}}" detail="{{detail}}" bindevent="cardEvent"></card>
78 <view class="detail-info Medium" style="margin-top: 56rpx;"> 78 <view class="detail-info Medium" style="margin-top: 56rpx;">
79 <view class="flex-lr"> 79 <view class="flex-lr">
80 <view>预订人</view> 80 <view>预订人</view>
@@ -186,4 +186,7 @@ Page({ @@ -186,4 +186,7 @@ Page({
186 } 186 }
187 return false; 187 return false;
188 }, 188 },
  189 + cardEvent(e){
  190 + this.editorReserve()
  191 + },
189 }) 192 })
1 <!--pages/reserve/submit.wxml--> 1 <!--pages/reserve/submit.wxml-->
2 <nav hasBack>预订详情</nav> 2 <nav hasBack>预订详情</nav>
3 <view class="pages"> 3 <view class="pages">
4 - <card hasShowStatus hasAddress="{{false}}" hasOnlineReserve 4 + <card hasShowStatus hasAddress="{{false}}" bindevent="cardEvent"
  5 + hasOnlineReserve
5 seller="{{seller}}" detail="{{detail}}"> 6 seller="{{seller}}" detail="{{detail}}">
6 <view slot="opt" class="back flex-rr"> 7 <view slot="opt" class="back flex-rr">
7 <formids 8 <formids