Commit 47728d52969923ae369c5fc0d36790987f07e429

Authored by wangfan
1 parent 63de1e72

录入调整

@@ -3,6 +3,10 @@ var uri=require('../../utils/uri.js') @@ -3,6 +3,10 @@ var uri=require('../../utils/uri.js')
3 import App from '../../utils/api'; 3 import App from '../../utils/api';
4 const {regeneratorRuntime} = global 4 const {regeneratorRuntime} = global
5 Page({ 5 Page({
  6 + data:{
  7 + actionSheetHidden:true,
  8 + actionSheetItems:['客户取消','客户行程改变']
  9 + },
6 onLoad:function (opt) { 10 onLoad:function (opt) {
7 util.setBarTitle('预定详情'); 11 util.setBarTitle('预定详情');
8 console.log(opt) 12 console.log(opt)
@@ -109,6 +113,14 @@ Page({ @@ -109,6 +113,14 @@ Page({
109 }) 113 })
110 }, 114 },
111 cancelReserve(){ 115 cancelReserve(){
112 - util.toast('不能取消','none') 116 + util.toast('不能取消预订','none');return;
  117 + this.setData({
  118 + actionSheetHidden:false
  119 + })
  120 + },
  121 + actionSheetChange(e){
  122 + this.setData({
  123 + actionSheetHidden:true
  124 + })
113 } 125 }
114 }) 126 })
@@ -73,4 +73,14 @@ @@ -73,4 +73,14 @@
73 <view bindtap="cancelReserve">取消预定</view> 73 <view bindtap="cancelReserve">取消预定</view>
74 </view> 74 </view>
75 </view> 75 </view>
76 -<noticeCall id="notice" bookInfo="{{bookInfo}}"></noticeCall>  
  76 +<noticeCall id="notice" bookInfo="{{bookInfo}}"></noticeCall>
  77 +<action-sheet hidden="{{actionSheetHidden}}" bindchange="actionSheetChange" class="flex-ll">
  78 + <block wx:for-items="{{actionSheetItems}}">
  79 + <action-sheet-item>{{item}}</action-sheet-item>
  80 + </block>
  81 + <action-sheet-item>
  82 + <input placeholder="请输入" style="width:100%"/>
  83 + </action-sheet-item>
  84 + <action-sheet-cancel >取消</action-sheet-cancel>
  85 +
  86 +</action-sheet>