Showing
16 changed files
with
381 additions
and
182 deletions
components/reserve/dur/dur.js
0 → 100644
| 1 | +Component({ | ||
| 2 | + properties:{ | ||
| 3 | + timedur:Object | ||
| 4 | + }, | ||
| 5 | + attached(){ | ||
| 6 | + this.getdurlist(); | ||
| 7 | + }, | ||
| 8 | + ready(){ | ||
| 9 | + | ||
| 10 | + }, | ||
| 11 | + methods:{ | ||
| 12 | + selecttime(e){ | ||
| 13 | + const target=e.currentTarget.dataset; | ||
| 14 | + | ||
| 15 | + }, | ||
| 16 | + //获得可订时间段 | ||
| 17 | + getdurlist(){ | ||
| 18 | + //获取当前时间 | ||
| 19 | + const date=new Date(); | ||
| 20 | + let currenttimemark=date.getHours()+new Date().getMinutes()/60; | ||
| 21 | + let timedur=this.data.timedur; | ||
| 22 | + let durlist=[]; | ||
| 23 | + for(let key in timedur){ | ||
| 24 | + let arr=timedur[key].split('-'); | ||
| 25 | + //每个时段的开始时间、结束时间 | ||
| 26 | + let starttime=Number(arr[0].split(':')[0]); | ||
| 27 | + let endtime=Number(arr[1].split(':')[0]); | ||
| 28 | + if(currenttimemark<endtime){ | ||
| 29 | + if(currenttimemark>starttime){ | ||
| 30 | + starttime=Math.round(currenttimemark) | ||
| 31 | + } | ||
| 32 | + for(let i=starttime;i<=endtime;i+=0.5){ | ||
| 33 | + let obj={ | ||
| 34 | + timemark:i | ||
| 35 | + } | ||
| 36 | + if(i%1==0){ | ||
| 37 | + obj.showdur=i<10 ? '0'+i+':00' : i+':00' | ||
| 38 | + }else{ | ||
| 39 | + obj.showdur=i<10 ? '0'+Math.floor(i)+':30' : Math.floor(i)+':30' | ||
| 40 | + } | ||
| 41 | + durlist.push(obj) | ||
| 42 | + } | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + } | ||
| 46 | + this.setData({ | ||
| 47 | + durlist:durlist | ||
| 48 | + }) | ||
| 49 | + } | ||
| 50 | + } | ||
| 51 | +}) |
components/reserve/dur/dur.json
0 → 100644
components/reserve/dur/dur.wxml
0 → 100644
| 1 | +<swiper class="dur-list" display-multiple-items="5"> | ||
| 2 | + <block wx:for="{{durlist}}" wx:key="{{index}}"> | ||
| 3 | + <swiper-item> | ||
| 4 | + <view class="white-font font30r font-bold flex-cc dur-timer" data-time="{{item.timemark}}" catchtap="selecttime">{{item.showdur}}</view> | ||
| 5 | + </swiper-item> | ||
| 6 | + </block> | ||
| 7 | +</swiper> |
components/reserve/dur/dur.wxss
0 → 100644
| 1 | +@import "../../../app.wxss"; | ||
| 2 | +.dur-list{ | ||
| 3 | + width:100%; | ||
| 4 | + height:100rpx; | ||
| 5 | +} | ||
| 6 | +.dur-timer{ | ||
| 7 | + width:120rpx; | ||
| 8 | + height:100%; | ||
| 9 | + background: -webkit-linear-gradient(top, #F2D190, #C0A369); /* Safari 5.1 - 6.0 */ | ||
| 10 | + background: -o-linear-gradient(-45deg, #F2D190, #C0A369); /* Opera 11.1 - 12.0 */ | ||
| 11 | + background: -moz-linear-gradient(top, #F2D190, #C0A369); /* Firefox 3.6 - 15 */ | ||
| 12 | + background: linear-gradient(to bottom, #F2D190, #C0A369); | ||
| 13 | + margin-left:30rpx; | ||
| 14 | +} |
components/reserve/people/people.js
0 → 100644
| 1 | +Component({ | ||
| 2 | + data:{ | ||
| 3 | + | ||
| 4 | + }, | ||
| 5 | + attached(){ | ||
| 6 | + let peoplelist=[] | ||
| 7 | + for(let i=4;i<=30;i++){ | ||
| 8 | + peoplelist.push({ | ||
| 9 | + count:i, | ||
| 10 | + isactive:false | ||
| 11 | + }) | ||
| 12 | + } | ||
| 13 | + peoplelist[0].isactive=true | ||
| 14 | + this.setData({ | ||
| 15 | + peoplelist:peoplelist | ||
| 16 | + }) | ||
| 17 | + }, | ||
| 18 | + methods:{ | ||
| 19 | + selectpeople(e){ | ||
| 20 | + console.log(e) | ||
| 21 | + const target=e.currentTarget.dataset; | ||
| 22 | + console.log(target) | ||
| 23 | + let peoplelist=this.data.peoplelist,setdata={}; | ||
| 24 | + peoplelist.forEach((v,i)=>{ | ||
| 25 | + if(v.isactive){ | ||
| 26 | + v.isactive=false; | ||
| 27 | + let setprevkey='peoplelist['+i+'].isactive'; | ||
| 28 | + setdata[setprevkey]=false | ||
| 29 | + } | ||
| 30 | + if(i==target.index && !v.isactive){ | ||
| 31 | + let setcurrentkey='peoplelist['+i+'].isactive'; | ||
| 32 | + setdata[setcurrentkey]=true | ||
| 33 | + } | ||
| 34 | + }) | ||
| 35 | + this.setData(setdata) | ||
| 36 | + console.log(this.data.peoplelist) | ||
| 37 | + } | ||
| 38 | + } | ||
| 39 | +}) |
components/reserve/people/people.json
0 → 100644
components/reserve/people/people.wxml
0 → 100644
| 1 | +<swiper class="people-list" display-multiple-items="5" next-margin="46rpx"> | ||
| 2 | + <block wx:for="{{peoplelist}}" wx:key="{{index}}"> | ||
| 3 | + <swiper-item> | ||
| 4 | + <view class="people {{item.isactive ? 'white-font active' : 'black-font'}} font30r font-bold flex-cc" catchtap="selectpeople" data-index="{{index}}" data-count="{{item.count}}">{{item.count}}位</view> | ||
| 5 | + </swiper-item> | ||
| 6 | + </block> | ||
| 7 | +</swiper> |
components/reserve/people/people.wxss
0 → 100644
| 1 | +@import "../../../app.wxss"; | ||
| 2 | +.people-list{ | ||
| 3 | + width:100%; | ||
| 4 | + height:176rpx; | ||
| 5 | + padding:38rpx 0 38rpx 30rpx; | ||
| 6 | + box-sizing: border-box; | ||
| 7 | +} | ||
| 8 | +.people{ | ||
| 9 | + width:120rpx; | ||
| 10 | + height:100%; | ||
| 11 | +} | ||
| 12 | +.people.active{ | ||
| 13 | + background: -webkit-linear-gradient(top, #F2D190, #C0A369); /* Safari 5.1 - 6.0 */ | ||
| 14 | + background: -o-linear-gradient(-45deg, #F2D190, #C0A369); /* Opera 11.1 - 12.0 */ | ||
| 15 | + background: -moz-linear-gradient(top, #F2D190, #C0A369); /* Firefox 3.6 - 15 */ | ||
| 16 | + background: linear-gradient(to bottom, #F2D190, #C0A369); | ||
| 17 | +} |
components/userinfo/getphone.js
0 → 100644
components/userinfo/getphone.json
0 → 100644
components/userinfo/getphone.wxml
0 → 100644
| 1 | +<button class="button-none white-font font28r smooth phone-button flex-cc" open-type="getPhoneNumber" bindgetphonenumber="getphone">一键获取</button> |
components/userinfo/getphone.wxss
0 → 100644
| @@ -11,6 +11,8 @@ | @@ -11,6 +11,8 @@ | ||
| 11 | "nav":"/components/nav/nav", | 11 | "nav":"/components/nav/nav", |
| 12 | "getpos":"/components/userinfo/getpos", | 12 | "getpos":"/components/userinfo/getpos", |
| 13 | "discount":"/components/reserve/discount", | 13 | "discount":"/components/reserve/discount", |
| 14 | - "share":"/components/reserve/share/share" | 14 | + "share":"/components/reserve/share/share", |
| 15 | + "people":"/components/reserve/people/people", | ||
| 16 | + "dur":"/components/reserve/dur/dur" | ||
| 15 | } | 17 | } |
| 16 | } | 18 | } |
| 1 | <!--pages/reserve/detail.wxml--> | 1 | <!--pages/reserve/detail.wxml--> |
| 2 | <nav>{{seller.sellername}}</nav> | 2 | <nav>{{seller.sellername}}</nav> |
| 3 | -<view class="seller-banner"> | ||
| 4 | - <swiper | ||
| 5 | - indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}" | ||
| 6 | - interval="2000" duration="500" | ||
| 7 | - previous-margin="{{0}}px" next-margin="{{0}}px" | ||
| 8 | - current="{{current}}" bindchange="bindtransition" bindtap="reviweBanner"> | ||
| 9 | - <block wx:for="{{seller.envi_image}}" wx:key="sellers.key"> | ||
| 10 | - <swiper-item> | ||
| 11 | - <image class="image" mode="aspectFill" | ||
| 12 | - src="{{item}}?imageView2/2/w/860/interlace/0/q/100" ></image> | ||
| 13 | - </swiper-item> | ||
| 14 | - </block> | ||
| 15 | - </swiper> | ||
| 16 | - <view class="slogan" wx:if="{{seller.slogan}}"> | ||
| 17 | - <view class="slogan-view flex-ll"> | ||
| 18 | - <view class="dot"></view> | ||
| 19 | - <view>{{seller.slogan}}</view> | ||
| 20 | - </view> | ||
| 21 | - </view> | ||
| 22 | - <view class="swiper-num" wx:if="{{seller.envi_image.length>0}}">{{currentView}} / {{seller.envi_image.length}}</view> | ||
| 23 | -</view> | ||
| 24 | -<view class="pages" style="height: {{pagesHeight}};overflow:{{pagesHeight=='auto'?'visible':'hidden'}}"> | ||
| 25 | - <view class="seller"> | ||
| 26 | - <view class="base"> | ||
| 27 | - <view class="name Semibold flex-lr"> | ||
| 28 | - <view class="name-info">{{seller.sellername}} | ||
| 29 | - <view class="broad" wx:if="{{seller.brand}}"> | ||
| 30 | - <view class="broad-1"></view> | ||
| 31 | - <view class="broad-2">{{seller.brand.name}}</view> | ||
| 32 | - <view class="broad-3"></view> | ||
| 33 | - </view> | ||
| 34 | - </view> | ||
| 35 | - <view class="average" wx:if="{{seller.average>0}}">¥{{seller.average}}/人</view> | ||
| 36 | - </view> | ||
| 37 | - <view class="ping flex-ll"> | ||
| 38 | - <view class="item" wx:if="{{seller.cate.length>0}}">{{seller.cate[0]}}</view> | ||
| 39 | - <view class="item" wx:if="{{seller.is_belt_wine!=0}}">{{seller.is_belt_wine==1?'不可带酒水':'可自带酒水'}}</view> | ||
| 40 | - <view class="item" wx:if="{{seller.is_parking==1}}">停车场</view> | ||
| 41 | - <view class="item" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view> | ||
| 42 | - </view> | ||
| 43 | - <view class="label_c" wx:if="{{seller.label_cstr}}"> | ||
| 44 | - <text class="label_text" >{{seller.label_cstr}}</text> | ||
| 45 | - </view> | ||
| 46 | - </view> | ||
| 47 | - <view class="addr flex-lr" bindtap="lookLocation"> | ||
| 48 | - <view class="addr-view"> | ||
| 49 | - <view class="addr-text flex-ll"> | ||
| 50 | - <image src="http://qn.colorcun.com/custom/lite-online/image/%E5%AE%9A%E4%BD%8D.png"></image> | ||
| 51 | - <view class="text">{{seller.real_address||seller.map_address}}</view> | ||
| 52 | - </view> | ||
| 53 | - <view class="addr-long">{{seller.distanceStr?'距您'+seller.distanceStr:''}}</view> | ||
| 54 | - </view> | ||
| 55 | - <view class="more more-addr"></view> | ||
| 56 | - </view> | ||
| 57 | - </view> | ||
| 58 | - <view class="black20line"></view> | ||
| 59 | - <view class="seller"> | ||
| 60 | - <formids wx:if="{{seller.activity.length>0}}" bindclick="showDiscount"> | ||
| 61 | - <view class="activity-view-easy flex-lr" > | ||
| 62 | - <view class="activity-left flex-ll"> | ||
| 63 | - <view class="icon"></view> | ||
| 64 | - <block wx:for="{{seller.activity}}" | ||
| 65 | - wx:key="seller.activity.key" | ||
| 66 | - wx:if="{{index<2}}"> | ||
| 67 | - <view class="discount" >{{item.title}}</view> | ||
| 68 | - </block> | ||
| 69 | - </view> | ||
| 70 | - <view class="flex-rr activity-right"> | ||
| 71 | - <view class="more-text">更多</view> | ||
| 72 | - <view class="more"></view> | ||
| 73 | - </view> | ||
| 74 | - </view> | ||
| 75 | - </formids> | ||
| 76 | - <!-- | ||
| 77 | - <formids wx:if="{{seller.activity.length>0}}" bindclick="showDiscount"> | ||
| 78 | - <view class="activity-view" > | ||
| 79 | - <view class="activity" > | ||
| 80 | - <view class="flex-lr"> | ||
| 81 | - <view class="activity-left"> | ||
| 82 | - <view class="activity-first flex-ll" style="align-items: flex-start"> | ||
| 83 | - <image src="http://qn.colorcun.com/custom/lite-online/image%E5%96%87%E5%8F%AD.png"></image> | ||
| 84 | - <view class="flex-cc discount" wx:for="{{seller.activity}}" | ||
| 85 | - wx:key="seller.activity.key" | ||
| 86 | - wx:if="{{index<2}}"> | ||
| 87 | - <view class="discount-left"></view> | ||
| 88 | - <view class="discount-text">{{item.title}}</view> | ||
| 89 | - <view class="discount-right"></view> | ||
| 90 | - </view> | ||
| 91 | - </view> | ||
| 92 | - </view> | ||
| 93 | - <view class="activity-right flex-rr Semibold"> | ||
| 94 | - <view></view> | ||
| 95 | - <view class="more"></view> | ||
| 96 | - </view> | ||
| 97 | - </view> | ||
| 98 | - <view class="activity-text"> | ||
| 99 | - 该优惠仅适用于一键订平台预订客户 | ||
| 100 | - </view> | ||
| 101 | - </view> | ||
| 102 | - </view> | ||
| 103 | - </formids> | ||
| 104 | - --> | ||
| 105 | - </view> | ||
| 106 | - <view class="black20line"></view> | ||
| 107 | - <view class="block" wx:if="{{seller.room_image.length>0}}"> | ||
| 108 | - <view class="header flex-ll"> | ||
| 109 | - <view class="line"></view> | ||
| 110 | - <view class="name">包间环境</view> | ||
| 111 | - </view> | ||
| 112 | - <scroll-view | ||
| 113 | - scroll-x | ||
| 114 | - class="baos" | ||
| 115 | - scroll-into-view="{{toView}}" | ||
| 116 | - scroll-top="{{scrollTop}}" | ||
| 117 | - > | 3 | +<view class="detail" hidden="true"> |
| 4 | + <view class="seller-banner"> | ||
| 5 | + <swiper | ||
| 6 | + indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}" | ||
| 7 | + interval="2000" duration="500" | ||
| 8 | + previous-margin="{{0}}px" next-margin="{{0}}px" | ||
| 9 | + current="{{current}}" bindchange="bindtransition" bindtap="reviweBanner"> | ||
| 10 | + <block wx:for="{{seller.envi_image}}" wx:key="sellers.key"> | ||
| 11 | + <swiper-item> | ||
| 12 | + <image class="image" mode="aspectFill" | ||
| 13 | + src="{{item}}?imageView2/2/w/860/interlace/0/q/100" ></image> | ||
| 14 | + </swiper-item> | ||
| 15 | + </block> | ||
| 16 | + </swiper> | ||
| 17 | + <view class="slogan" wx:if="{{seller.slogan}}"> | ||
| 18 | + <view class="slogan-view flex-ll"> | ||
| 19 | + <view class="dot"></view> | ||
| 20 | + <view>{{seller.slogan}}</view> | ||
| 21 | + </view> | ||
| 22 | + </view> | ||
| 23 | + <view class="swiper-num" wx:if="{{seller.envi_image.length>0}}">{{currentView}} / {{seller.envi_image.length}}</view> | ||
| 24 | + </view> | ||
| 25 | + <view class="pages" style="height: {{pagesHeight}};overflow:{{pagesHeight=='auto'?'visible':'hidden'}}"> | ||
| 26 | + <view class="seller"> | ||
| 27 | + <view class="base"> | ||
| 28 | + <view class="name Semibold flex-lr"> | ||
| 29 | + <view class="name-info">{{seller.sellername}} | ||
| 30 | + <view class="broad" wx:if="{{seller.brand}}"> | ||
| 31 | + <view class="broad-1"></view> | ||
| 32 | + <view class="broad-2">{{seller.brand.name}}</view> | ||
| 33 | + <view class="broad-3"></view> | ||
| 34 | + </view> | ||
| 35 | + </view> | ||
| 36 | + <view class="average" wx:if="{{seller.average>0}}">¥{{seller.average}}/人</view> | ||
| 37 | + </view> | ||
| 38 | + <view class="ping flex-ll"> | ||
| 39 | + <view class="item" wx:if="{{seller.cate.length>0}}">{{seller.cate[0]}}</view> | ||
| 40 | + <view class="item" wx:if="{{seller.is_belt_wine!=0}}">{{seller.is_belt_wine==1?'不可带酒水':'可自带酒水'}}</view> | ||
| 41 | + <view class="item" wx:if="{{seller.is_parking==1}}">停车场</view> | ||
| 42 | + <view class="item" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view> | ||
| 43 | + </view> | ||
| 44 | + <view class="label_c" wx:if="{{seller.label_cstr}}"> | ||
| 45 | + <text class="label_text" >{{seller.label_cstr}}</text> | ||
| 46 | + </view> | ||
| 47 | + </view> | ||
| 48 | + <view class="addr flex-lr" bindtap="lookLocation"> | ||
| 49 | + <view class="addr-view"> | ||
| 50 | + <view class="addr-text flex-ll"> | ||
| 51 | + <image src="http://qn.colorcun.com/custom/lite-online/image/%E5%AE%9A%E4%BD%8D.png"></image> | ||
| 52 | + <view class="text">{{seller.real_address||seller.map_address}}</view> | ||
| 53 | + </view> | ||
| 54 | + <view class="addr-long">{{seller.distanceStr?'距您'+seller.distanceStr:''}}</view> | ||
| 55 | + </view> | ||
| 56 | + <view class="more more-addr"></view> | ||
| 57 | + </view> | ||
| 58 | + </view> | ||
| 59 | + <view class="black20line"></view> | ||
| 60 | + <view class="seller"> | ||
| 61 | + <formids wx:if="{{seller.activity.length>0}}" bindclick="showDiscount"> | ||
| 62 | + <view class="activity-view-easy flex-lr" > | ||
| 63 | + <view class="activity-left flex-ll"> | ||
| 64 | + <view class="icon"></view> | ||
| 65 | + <block wx:for="{{seller.activity}}" | ||
| 66 | + wx:key="seller.activity.key" | ||
| 67 | + wx:if="{{index<2}}"> | ||
| 68 | + <view class="discount" >{{item.title}}</view> | ||
| 69 | + </block> | ||
| 70 | + </view> | ||
| 71 | + <view class="flex-rr activity-right"> | ||
| 72 | + <view class="more-text">更多</view> | ||
| 73 | + <view class="more"></view> | ||
| 74 | + </view> | ||
| 75 | + </view> | ||
| 76 | + </formids> | ||
| 77 | + <!-- | ||
| 78 | + <formids wx:if="{{seller.activity.length>0}}" bindclick="showDiscount"> | ||
| 79 | + <view class="activity-view" > | ||
| 80 | + <view class="activity" > | ||
| 81 | + <view class="flex-lr"> | ||
| 82 | + <view class="activity-left"> | ||
| 83 | + <view class="activity-first flex-ll" style="align-items: flex-start"> | ||
| 84 | + <image src="http://qn.colorcun.com/custom/lite-online/image%E5%96%87%E5%8F%AD.png"></image> | ||
| 85 | + <view class="flex-cc discount" wx:for="{{seller.activity}}" | ||
| 86 | + wx:key="seller.activity.key" | ||
| 87 | + wx:if="{{index<2}}"> | ||
| 88 | + <view class="discount-left"></view> | ||
| 89 | + <view class="discount-text">{{item.title}}</view> | ||
| 90 | + <view class="discount-right"></view> | ||
| 91 | + </view> | ||
| 92 | + </view> | ||
| 93 | + </view> | ||
| 94 | + <view class="activity-right flex-rr Semibold"> | ||
| 95 | + <view></view> | ||
| 96 | + <view class="more"></view> | ||
| 97 | + </view> | ||
| 98 | + </view> | ||
| 99 | + <view class="activity-text"> | ||
| 100 | + 该优惠仅适用于一键订平台预订客户 | ||
| 101 | + </view> | ||
| 102 | + </view> | ||
| 103 | + </view> | ||
| 104 | + </formids> | ||
| 105 | + --> | ||
| 106 | + </view> | ||
| 107 | + <view class="black20line"></view> | ||
| 108 | + <view class="block" wx:if="{{seller.room_image.length>0}}"> | ||
| 109 | + <view class="header flex-ll"> | ||
| 110 | + <view class="line"></view> | ||
| 111 | + <view class="name">包间环境</view> | ||
| 112 | + </view> | ||
| 113 | + <scroll-view | ||
| 114 | + scroll-x | ||
| 115 | + class="baos" | ||
| 116 | + scroll-into-view="{{toView}}" | ||
| 117 | + scroll-top="{{scrollTop}}" | ||
| 118 | + > | ||
| 118 | 119 | ||
| 119 | - <block wx:for="{{seller.room_image}}" wx:key="sellers.key"> | ||
| 120 | - <view class="image"> | ||
| 121 | - <image mode="aspectFill" bindtap="reviweRoomImage" data-current="{{item}}" | ||
| 122 | - src="{{item}}?imageView2/2/w/640/interlace/0/q/100"></image> | ||
| 123 | - </view> | ||
| 124 | - </block> | 120 | + <block wx:for="{{seller.room_image}}" wx:key="sellers.key"> |
| 121 | + <view class="image"> | ||
| 122 | + <image mode="aspectFill" bindtap="reviweRoomImage" data-current="{{item}}" | ||
| 123 | + src="{{item}}?imageView2/2/w/640/interlace/0/q/100"></image> | ||
| 124 | + </view> | ||
| 125 | + </block> | ||
| 125 | 126 | ||
| 126 | - </scroll-view> | ||
| 127 | - </view> | ||
| 128 | - <view class="block" wx:if="{{seller.dishes.length>0}}"> | ||
| 129 | - <view class="header flex-ll"> | ||
| 130 | - <view class="line"></view> | ||
| 131 | - <view class="name">推荐菜品</view> | ||
| 132 | - </view> | ||
| 133 | - <scroll-view | ||
| 134 | - scroll-x | ||
| 135 | - class="cais" | ||
| 136 | - scroll-into-view="{{toView}}" | ||
| 137 | - scroll-top="{{scrollTop}}" | ||
| 138 | - > | ||
| 139 | - <block wx:for="{{seller.dishes}}" wx:key="sellers.key"> | ||
| 140 | - <view class="cais-views" wx:if="{{item.image}}"> | ||
| 141 | - <view class="image-view" > | ||
| 142 | - <view class="image"> | ||
| 143 | - <image mode="aspectFill" bindtap="reviweDishesImage" data-current="{{item.image}}" | ||
| 144 | - src="{{item.image}}?imageView2/2/w/640/interlace/0/q/100"></image> | ||
| 145 | - </view> | ||
| 146 | - <view class="text Semibold">{{item.name}}</view> | ||
| 147 | - </view> | ||
| 148 | - </view> | ||
| 149 | - </block> | ||
| 150 | - </scroll-view> | ||
| 151 | - <view class="cais-text"> | ||
| 152 | - <block wx:for="{{seller.dishes}}" wx:key="sellers.key"> | ||
| 153 | - <view wx:if="{{!item.image}}">{{item.name}}</view> | ||
| 154 | - </block> | ||
| 155 | - </view> | ||
| 156 | - </view> | ||
| 157 | -</view> | ||
| 158 | -<view class="footer flex-lr"> | ||
| 159 | - <view class="left flex-cc"> | ||
| 160 | - <formids class="flex-tb" url="/pages/customer/index"> | ||
| 161 | - <image src="http://qn.colorcun.com/custom/lite-online/image/%E9%A6%96%E9%A1%B5.png"></image> | ||
| 162 | - <view class="text">首页</view> | ||
| 163 | - </formids> | ||
| 164 | - <userinfo class="follow flex-tb" binduserinfo="follow"> | ||
| 165 | - <image src="http://qn.colorcun.com/custom/lite-online/image/%E6%94%B6%E8%97%8F.png" wx:if="{{!IsCollectionSeller}}"></image> | ||
| 166 | - <image src="http://qn.colorcun.com/custom/lite-online/image/%E5%B7%B2%E6%94%B6%E8%97%8F.png" wx:else=""></image> | ||
| 167 | - <view class="text">收藏</view> | ||
| 168 | - </userinfo> | ||
| 169 | - </view> | ||
| 170 | - <view class="reserve share flex-vc"> | ||
| 171 | - <userinfo class="flex-vc" style="width: 100%" binduserinfo="shareUserinfo"> | ||
| 172 | - <view class="text">分享</view> | ||
| 173 | - </userinfo> | ||
| 174 | - </view> | ||
| 175 | - <view class="reserve"> | ||
| 176 | - <formids class="flex-vc" bindclick="reserve" id="reserve-button"> | ||
| 177 | - <view class="text">电话预订</view> | ||
| 178 | - </formids> | ||
| 179 | - </view> | 127 | + </scroll-view> |
| 128 | + </view> | ||
| 129 | + <view class="block" wx:if="{{seller.dishes.length>0}}"> | ||
| 130 | + <view class="header flex-ll"> | ||
| 131 | + <view class="line"></view> | ||
| 132 | + <view class="name">推荐菜品</view> | ||
| 133 | + </view> | ||
| 134 | + <scroll-view | ||
| 135 | + scroll-x | ||
| 136 | + class="cais" | ||
| 137 | + scroll-into-view="{{toView}}" | ||
| 138 | + scroll-top="{{scrollTop}}" | ||
| 139 | + > | ||
| 140 | + <block wx:for="{{seller.dishes}}" wx:key="sellers.key"> | ||
| 141 | + <view class="cais-views" wx:if="{{item.image}}"> | ||
| 142 | + <view class="image-view" > | ||
| 143 | + <view class="image"> | ||
| 144 | + <image mode="aspectFill" bindtap="reviweDishesImage" data-current="{{item.image}}" | ||
| 145 | + src="{{item.image}}?imageView2/2/w/640/interlace/0/q/100"></image> | ||
| 146 | + </view> | ||
| 147 | + <view class="text Semibold">{{item.name}}</view> | ||
| 148 | + </view> | ||
| 149 | + </view> | ||
| 150 | + </block> | ||
| 151 | + </scroll-view> | ||
| 152 | + <view class="cais-text"> | ||
| 153 | + <block wx:for="{{seller.dishes}}" wx:key="sellers.key"> | ||
| 154 | + <view wx:if="{{!item.image}}">{{item.name}}</view> | ||
| 155 | + </block> | ||
| 156 | + </view> | ||
| 157 | + </view> | ||
| 158 | + </view> | ||
| 159 | + <view class="footer flex-lr"> | ||
| 160 | + <view class="left flex-cc"> | ||
| 161 | + <formids class="flex-tb" url="/pages/customer/index"> | ||
| 162 | + <image src="http://qn.colorcun.com/custom/lite-online/image/%E9%A6%96%E9%A1%B5.png"></image> | ||
| 163 | + <view class="text">首页</view> | ||
| 164 | + </formids> | ||
| 165 | + <userinfo class="follow flex-tb" binduserinfo="follow"> | ||
| 166 | + <image src="http://qn.colorcun.com/custom/lite-online/image/%E6%94%B6%E8%97%8F.png" wx:if="{{!IsCollectionSeller}}"></image> | ||
| 167 | + <image src="http://qn.colorcun.com/custom/lite-online/image/%E5%B7%B2%E6%94%B6%E8%97%8F.png" wx:else=""></image> | ||
| 168 | + <view class="text">收藏</view> | ||
| 169 | + </userinfo> | ||
| 170 | + </view> | ||
| 171 | + <view class="reserve share flex-vc"> | ||
| 172 | + <userinfo class="flex-vc" style="width: 100%" binduserinfo="shareUserinfo"> | ||
| 173 | + <view class="text">分享</view> | ||
| 174 | + </userinfo> | ||
| 175 | + </view> | ||
| 176 | + <view class="reserve"> | ||
| 177 | + <formids class="flex-vc" bindclick="reserve" id="reserve-button"> | ||
| 178 | + <view class="text">电话预订</view> | ||
| 179 | + </formids> | ||
| 180 | + </view> | ||
| 180 | 181 | ||
| 182 | + </view> | ||
| 183 | + <as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预订</as> | ||
| 184 | + <getpos bindpos="onpos" id="getpos"></getpos> | ||
| 185 | + <discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount> | ||
| 186 | + <share id="share" seller_id="{{seller.id}}"></share> | ||
| 181 | </view> | 187 | </view> |
| 182 | -<as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预订</as> | ||
| 183 | -<getpos bindpos="onpos" id="getpos"></getpos> | ||
| 184 | -<discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount> | ||
| 185 | -<share id="share" seller_id="{{seller.id}}"></share> | ||
| 188 | +<!-- 包间预定 --> | ||
| 189 | +<block wx:if="{{seller.daily}}"> | ||
| 190 | + <view class="room-booking bg_white"> | ||
| 191 | + <people></people> | ||
| 192 | + <view class="dur"> | ||
| 193 | + <view class="dur-title black-font font-bold">可订时间</view> | ||
| 194 | + <dur timedur="{{seller.daily}}"></dur> | ||
| 195 | + </view> | ||
| 196 | + </view> | ||
| 197 | +</block> |
| @@ -467,4 +467,17 @@ | @@ -467,4 +467,17 @@ | ||
| 467 | } | 467 | } |
| 468 | .activity-view-easy .discount:last-child{ | 468 | .activity-view-easy .discount:last-child{ |
| 469 | border-right-width: 0; | 469 | border-right-width: 0; |
| 470 | +} | ||
| 471 | +/* 包间预定 */ | ||
| 472 | +.room-booking { | ||
| 473 | + width:100%; | ||
| 474 | +} | ||
| 475 | +.dur{ | ||
| 476 | + width:100%; | ||
| 477 | + padding-top:42rpx; | ||
| 478 | +} | ||
| 479 | +.dur-title{ | ||
| 480 | + width:100%; | ||
| 481 | + padding:0 30rpx 40rpx; | ||
| 482 | + box-sizing: border-box; | ||
| 470 | } | 483 | } |
| @@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
| 23 | "compileType": "miniprogram", | 23 | "compileType": "miniprogram", |
| 24 | "libVersion": "2.7.0", | 24 | "libVersion": "2.7.0", |
| 25 | "appid": "wxd3dc4206c76f14fc", | 25 | "appid": "wxd3dc4206c76f14fc", |
| 26 | - "projectname": "xcx-book", | 26 | + "projectname": "c%E7%AB%AF%E9%A2%84%E5%AE%9A", |
| 27 | "isGameTourist": false, | 27 | "isGameTourist": false, |
| 28 | "simulatorType": "wechat", | 28 | "simulatorType": "wechat", |
| 29 | "simulatorPluginLibVersion": {}, | 29 | "simulatorPluginLibVersion": {}, |
| @@ -45,7 +45,7 @@ | @@ -45,7 +45,7 @@ | ||
| 45 | "list": [] | 45 | "list": [] |
| 46 | }, | 46 | }, |
| 47 | "miniprogram": { | 47 | "miniprogram": { |
| 48 | - "current": 39, | 48 | + "current": 55, |
| 49 | "list": [ | 49 | "list": [ |
| 50 | { | 50 | { |
| 51 | "id": 0, | 51 | "id": 0, |
| @@ -455,6 +455,13 @@ | @@ -455,6 +455,13 @@ | ||
| 455 | "pathName": "pages/reserve/share", | 455 | "pathName": "pages/reserve/share", |
| 456 | "query": "id=1&act=quanzi", | 456 | "query": "id=1&act=quanzi", |
| 457 | "scene": null | 457 | "scene": null |
| 458 | + }, | ||
| 459 | + { | ||
| 460 | + "id": -1, | ||
| 461 | + "name": "包间预定", | ||
| 462 | + "pathName": "pages/reserve/detail", | ||
| 463 | + "query": "id=154", | ||
| 464 | + "scene": null | ||
| 458 | } | 465 | } |
| 459 | ] | 466 | ] |
| 460 | } | 467 | } |
-
Please register or login to post a comment