Commit bf9622369851aba1635eb89f79445dab1c874baa

Authored by wangfan
1 parent 6a25e3e9

c端预定

@@ -23,13 +23,15 @@ @@ -23,13 +23,15 @@
23 "pages/book/setting/sms", 23 "pages/book/setting/sms",
24 "pages/book/setting/sms_buy", 24 "pages/book/setting/sms_buy",
25 "pages/book/crm/index", 25 "pages/book/crm/index",
26 - "pages/book/remark/index", 26 + "pages/book/remark/index",
27 "pages/book/smsbatch/index", 27 "pages/book/smsbatch/index",
28 "pages/book/smsbatch/update", 28 "pages/book/smsbatch/update",
29 "pages/book/smsbatch/detail", 29 "pages/book/smsbatch/detail",
30 "pages/book/smsbatch/list", 30 "pages/book/smsbatch/list",
31 "pages/book/smsbatch/result", 31 "pages/book/smsbatch/result",
32 - "pages/reserve/search" 32 + "pages/reserve/search",
  33 + "pages/reserve/detail",
  34 + "pages/me/follow"
33 ], 35 ],
34 "subpackages": [ 36 "subpackages": [
35 { 37 {
@@ -49,7 +49,6 @@ Component({ @@ -49,7 +49,6 @@ Component({
49 }) 49 })
50 }else{ 50 }else{
51 wx.hideTabBar(); 51 wx.hideTabBar();
52 - //this.selectComponent('#as').show();  
53 wx.showActionSheet({ 52 wx.showActionSheet({
54 itemList:this.data.seller.seller_tel, 53 itemList:this.data.seller.seller_tel,
55 complete:()=>{ 54 complete:()=>{
1 { 1 {
2 "component": true, 2 "component": true,
3 "usingComponents": { 3 "usingComponents": {
4 - "as":"../../actionSheet/index" 4 + "formids":"/components/formids/formids"
5 } 5 }
6 } 6 }
1 <!--components/showModal/showModal.wxml--> 1 <!--components/showModal/showModal.wxml-->
2 -<view class="seller flex-ll"> 2 +<view class="seller flex-ll" >
3 <view class="image"> 3 <view class="image">
4 <image src="{{seller.seller_image || 'http://qn.colorcun.com/custom/lite-online/image/seller-def.png'}}"></image> 4 <image src="{{seller.seller_image || 'http://qn.colorcun.com/custom/lite-online/image/seller-def.png'}}"></image>
5 <view class="room_num" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view> 5 <view class="room_num" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view>
@@ -11,11 +11,10 @@ @@ -11,11 +11,10 @@
11 <view class="number Semibold"> 11 <view class="number Semibold">
12 <block wx:if="{{seller.average>0}}">¥{{seller.average}}元/人</block> 12 <block wx:if="{{seller.average>0}}">¥{{seller.average}}元/人</block>
13 </view> 13 </view>
14 - <view class="phone flex-ll" bindtap="tapButton" data-type="oncall"> 14 + <view class="phone flex-ll" catchtap="tapButton" data-type="oncall">
15 <image src="http://qn.colorcun.com/custom/lite-online/image/phone.png"></image> 15 <image src="http://qn.colorcun.com/custom/lite-online/image/phone.png"></image>
16 <text>预订</text> 16 <text>预订</text>
17 </view> 17 </view>
18 </view> 18 </view>
19 </view> 19 </view>
20 -</view>  
21 -<as items="{{['1','2']}}" id="as"></as>  
  20 +</view>
  1 +// pages/reserve/detail.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 + console.log('onLoad',options)
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "navigationBarBackgroundColor": "#ffffff",
  3 + "navigationBarTextStyle": "black",
  4 + "navigationBarTitleText":"一键订",
  5 + "usingComponents": {
  6 + "formids":"/components/formids/formids",
  7 + "nav":"/components/nav/nav"
  8 + }
  9 +}
  1 +<!--pages/reserve/detail.wxml-->
  2 +<nav>...</nav>
  3 +<view class="pages">
  4 +
  5 +</view>
  1 +/* pages/reserve/detail.wxss */
@@ -482,4 +482,9 @@ Page({ @@ -482,4 +482,9 @@ Page({
482 markerId:this.sellers[i].id 482 markerId:this.sellers[i].id
483 },false) 483 },false)
484 }, 484 },
  485 + gotoDetail(e){
  486 + wx.navigateTo({
  487 + url:'/pages/reserve/detail?id='+util.attr(e,'sid')
  488 + })
  489 + },
485 }) 490 })
@@ -52,7 +52,7 @@ @@ -52,7 +52,7 @@
52 previous-margin="{{20}}px" next-margin="{{20}}px" 52 previous-margin="{{20}}px" next-margin="{{20}}px"
53 current="{{current}}" bindchange="bindtransition"> 53 current="{{current}}" bindchange="bindtransition">
54 <block wx:for="{{sellers}}" wx:key="sellers.key"> 54 <block wx:for="{{sellers}}" wx:key="sellers.key">
55 - <swiper-item> 55 + <swiper-item bindtap="gotoDetail" data-sid="{{item.id}}">
56 <view class="seller" id="seller-{{item.id}}"> 56 <view class="seller" id="seller-{{item.id}}">
57 <sb-tr seller="{{item}}"></sb-tr> 57 <sb-tr seller="{{item}}"></sb-tr>
58 </view> 58 </view>