Commit fbc20adf5c4ed2688f3a33139537f396fa93a5e9

Authored by pengye
1 parent a427f181

邀请函商务宴请第一版、婚宴第一版

@@ -106,14 +106,6 @@ Page({ @@ -106,14 +106,6 @@ Page({
106 this.modal.showModal() 106 this.modal.showModal()
107 }) 107 })
108 }, 108 },
109 - //预览图片  
110 - previewImage(e) {  
111 - const item = e.target.dataset;  
112 - wx.previewImage({  
113 - current: item.url,  
114 - urls: item.imgs,  
115 - })  
116 - },  
117 // 锚点定位 109 // 锚点定位
118 gotoModule(e) { 110 gotoModule(e) {
119 const type = e.currentTarget.dataset['type']; 111 const type = e.currentTarget.dataset['type'];
@@ -78,7 +78,7 @@ @@ -78,7 +78,7 @@
78 </view> 78 </view>
79 <swiper wx:if="{{bookType == '1' && urlsArr.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff"> 79 <swiper wx:if="{{bookType == '1' && urlsArr.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
80 <swiper-item wx:for="{{urlsArr}}" wx:key="index"> 80 <swiper-item wx:for="{{urlsArr}}" wx:key="index">
81 - <image mode="scaleToFill" class="detailBannerImg" src="{{item}}" bindtap="previewImage" data-url="{{item}}" data-imgs="{{urlsArr}}"></image> 81 + <image mode="" class="detailBannerImg" src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{urlsArr}}"></image>
82 </swiper-item> 82 </swiper-item>
83 </swiper> 83 </swiper>
84 <text space="nbsp" wx:if="{{bookType == '1' && marketing.wecomle}}" class="welcomeInfo font32r">{{marketing.wecomle}}</text> 84 <text space="nbsp" wx:if="{{bookType == '1' && marketing.wecomle}}" class="welcomeInfo font32r">{{marketing.wecomle}}</text>
@@ -228,7 +228,7 @@ @@ -228,7 +228,7 @@
228 </view> 228 </view>
229 </view> 229 </view>
230 <view wx:if="{{bookType == '2' && roomimage && roomimage.length>0}}" class="{{roomimage.length=='1'?'pageSpacing':'pageSpacing1'}}"> 230 <view wx:if="{{bookType == '2' && roomimage && roomimage.length>0}}" class="{{roomimage.length=='1'?'pageSpacing':'pageSpacing1'}}">
231 - <view wx:for="{{roomimage}}" class="imgs" wx:key="index" bindtap="previewImage" data-url="{{item.url}}"> 231 + <view wx:for="{{roomimage}}" class="imgs" wx:key="index" bindtap="lookImgs" data-url="{{item.url}}" data-imgs="{{urlsArr}}">
232 <image class="imageStyle" mode="aspectFill" src="{{item.url}}"></image> 232 <image class="imageStyle" mode="aspectFill" src="{{item.url}}"></image>
233 <text>{{item.name}}</text> 233 <text>{{item.name}}</text>
234 </view> 234 </view>
@@ -248,7 +248,7 @@ @@ -248,7 +248,7 @@
248 <swiper wx:if="{{reserve.videoImgsInfo.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff"> 248 <swiper wx:if="{{reserve.videoImgsInfo.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
249 <swiper-item wx:for="{{reserve.videoImgsInfo}}" wx:key="index"> 249 <swiper-item wx:for="{{reserve.videoImgsInfo}}" wx:key="index">
250 <video wx:if="{{item.type=='3'}}" class='boxBlock' id="video" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video> 250 <video wx:if="{{item.type=='3'}}" class='boxBlock' id="video" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video>
251 - <image wx:if="{{item.type=='1'}}" mode="scaleToFill" class="detailBannerImg" src="{{item.content}}" bindtap="previewImage" data-url="{{item.content}}" data-imgs="{{reserve.imgsInfo}}"></image> 251 + <image wx:if="{{item.type=='1'}}" mode="" class="detailBannerImg" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" data-imgs="{{reserve.imgsInfo}}"></image>
252 </swiper-item> 252 </swiper-item>
253 </swiper> 253 </swiper>
254 </view> 254 </view>
@@ -265,7 +265,7 @@ @@ -265,7 +265,7 @@
265 <swiper wx:if="{{signboard.videoImgsInfo.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff"> 265 <swiper wx:if="{{signboard.videoImgsInfo.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
266 <swiper-item wx:for="{{signboard.videoImgsInfo}}" wx:key="index"> 266 <swiper-item wx:for="{{signboard.videoImgsInfo}}" wx:key="index">
267 <video wx:if="{{item.type=='3'}}" class='boxBlock' id="video" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video> 267 <video wx:if="{{item.type=='3'}}" class='boxBlock' id="video" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video>
268 - <image wx:if="{{item.type=='1'}}" mode="" class="detailBannerImg" src="{{item.content}}" bindtap="previewImage" data-url="{{item.content}}" data-imgs="{{signboard.imgsInfo}}"></image> 268 + <image wx:if="{{item.type=='1'}}" mode="" class="detailBannerImg" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" data-imgs="{{signboard.imgsInfo}}"></image>
269 </swiper-item> 269 </swiper-item>
270 </swiper> 270 </swiper>
271 <view class="orderBox" wx:if="{{hasValueOrder && openOrder == '1' && marketing.is_order=='1'}}"> 271 <view class="orderBox" wx:if="{{hasValueOrder && openOrder == '1' && marketing.is_order=='1'}}">
@@ -288,7 +288,7 @@ @@ -288,7 +288,7 @@
288 <swiper wx:if="{{store.videoImgsInfo.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff"> 288 <swiper wx:if="{{store.videoImgsInfo.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
289 <swiper-item wx:for="{{store.videoImgsInfo}}" wx:key="index"> 289 <swiper-item wx:for="{{store.videoImgsInfo}}" wx:key="index">
290 <video wx:if="{{item.type=='3'}}" class='boxBlock' id="video" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video> 290 <video wx:if="{{item.type=='3'}}" class='boxBlock' id="video" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video>
291 - <image wx:if="{{item.type=='1'}}" mode="" class="detailBannerImg" src="{{item.content}}" bindtap="previewImage" data-url="{{item.content}}" data-imgs="{{store.imgsInfo}}"></image> 291 + <image wx:if="{{item.type=='1'}}" mode="" class="detailBannerImg" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" data-imgs="{{store.imgsInfo}}"></image>
292 </swiper-item> 292 </swiper-item>
293 </swiper> 293 </swiper>
294 </view> 294 </view>
@@ -305,7 +305,7 @@ @@ -305,7 +305,7 @@
305 <swiper wx:if="{{chef.videoImgsInfo.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff"> 305 <swiper wx:if="{{chef.videoImgsInfo.length>0}}" class="detailBanner" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{2000}}" circular="{{true}}" indicator-color="lightgray" indicator-active-color="#fff">
306 <swiper-item wx:for="{{chef.videoImgsInfo}}" wx:key="index"> 306 <swiper-item wx:for="{{chef.videoImgsInfo}}" wx:key="index">
307 <video wx:if="{{item.type=='3'}}" class='boxBlock' id="video" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video> 307 <video wx:if="{{item.type=='3'}}" class='boxBlock' id="video" src="{{item.content}}" show-center-play-btn="{{true}}" autoplay='{{false}}' object-fit="cover" controls="{{true}}"></video>
308 - <image wx:if="{{item.type=='1'}}" mode="" class="detailBannerImg" src="{{item.content}}" bindtap="previewImage" data-url="{{item.content}}" data-imgs="{{chef.imgsInfo}}"></image> 308 + <image wx:if="{{item.type=='1'}}" mode="" class="detailBannerImg" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" data-imgs="{{chef.imgsInfo}}"></image>
309 </swiper-item> 309 </swiper-item>
310 </swiper> 310 </swiper>
311 </view> 311 </view>
@@ -324,12 +324,12 @@ @@ -324,12 +324,12 @@
324 </view> 324 </view>
325 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> 325 <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}">
326 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 326 <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
327 - <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" mode="widthFix" /> 327 + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.imgsInfo}}" mode="widthFix" />
328 </block> 328 </block>
329 </block> 329 </block>
330 <view class="labelBox" wx:if="{{store.content && store.content.length>0}}"> 330 <view class="labelBox" wx:if="{{store.content && store.content.length>0}}">
331 <block wx:for="{{store.content}}"> 331 <block wx:for="{{store.content}}">
332 - <image wx:if="{{item.type == '1'}}" bindtap="lookImgs" src="{{item.content}}" data-url="{{item.content}}" mode="widthFix" /> 332 + <image wx:if="{{item.type == '1'}}" bindtap="lookImgs" src="{{item.content}}" data-url="{{item.content}}" data-imgs="{{store.imgsInfo}}" mode="widthFix" />
333 <text wx:if="{{item.type == '2'}}" space="nbsp" class="texts font28r">{{item.content}}</text> 333 <text wx:if="{{item.type == '2'}}" space="nbsp" class="texts font28r">{{item.content}}</text>
334 <view wx:if="{{item.type == '3'}}" class="videoBox"> 334 <view wx:if="{{item.type == '3'}}" class="videoBox">
335 <video object-fit="contain" autoplay="{{true}}" loop="{{true}}" muted="{{true}}" show-mute-btn="{{true}}" vslide-gesture-in-fullscreen="{{true}}" src="{{item.content}}"></video> 335 <video object-fit="contain" autoplay="{{true}}" loop="{{true}}" muted="{{true}}" show-mute-btn="{{true}}" vslide-gesture-in-fullscreen="{{true}}" src="{{item.content}}"></video>
@@ -344,11 +344,11 @@ @@ -344,11 +344,11 @@
344 <view class="font32">招牌菜品</view> 344 <view class="font32">招牌菜品</view>
345 </view> 345 </view>
346 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 346 <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex">
347 - <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}" mode="widthFix" /> 347 + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.imgsInfo}}" mode="widthFix" />
348 </block> 348 </block>
349 <view class="labelBox" wx:if="{{signboard.content && signboard.content.length>0}}"> 349 <view class="labelBox" wx:if="{{signboard.content && signboard.content.length>0}}">
350 <block wx:for="{{signboard.content}}"> 350 <block wx:for="{{signboard.content}}">
351 - <image wx:if="{{item.type == '1'}}" bindtap="lookImgs" src="{{item.content}}" data-url="{{item.content}}" mode="widthFix" /> 351 + <image wx:if="{{item.type == '1'}}" bindtap="lookImgs" src="{{item.content}}" data-url="{{item.content}}" data-imgs="{{signboard.imgsInfo}}" mode="widthFix" />
352 <text wx:if="{{item.type == '2'}}" space="nbsp" class="texts font28r">{{item.content}}</text> 352 <text wx:if="{{item.type == '2'}}" space="nbsp" class="texts font28r">{{item.content}}</text>
353 <view wx:if="{{item.type == '3'}}" class="videoBox"> 353 <view wx:if="{{item.type == '3'}}" class="videoBox">
354 <video object-fit="contain" autoplay="{{true}}" loop="{{true}}" muted="{{true}}" show-mute-btn="{{true}}" vslide-gesture-in-fullscreen="{{true}}" src="{{item.content}}"></video> 354 <video object-fit="contain" autoplay="{{true}}" loop="{{true}}" muted="{{true}}" show-mute-btn="{{true}}" vslide-gesture-in-fullscreen="{{true}}" src="{{item.content}}"></video>
@@ -372,11 +372,11 @@ @@ -372,11 +372,11 @@
372 <text class="texts" space="nbsp">{{reserve.park_info}}</text> 372 <text class="texts" space="nbsp">{{reserve.park_info}}</text>
373 </view> 373 </view>
374 <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> 374 <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex">
375 - <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}" mode="widthFix" /> 375 + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.imgsInfo}}" mode="widthFix" />
376 </block> 376 </block>
377 <view class="labelBox" wx:if="{{reserve.content && reserve.content.length>0}}"> 377 <view class="labelBox" wx:if="{{reserve.content && reserve.content.length>0}}">
378 <block wx:for="{{reserve.content}}"> 378 <block wx:for="{{reserve.content}}">
379 - <image wx:if="{{item.type == '1'}}" bindtap="lookImgs" src="{{item.content}}" data-url="{{item.content}}" mode="widthFix" /> 379 + <image wx:if="{{item.type == '1'}}" bindtap="lookImgs" src="{{item.content}}" data-url="{{item.content}}" data-imgs="{{reserve.imgsInfo}}" mode="widthFix" />
380 <text wx:if="{{item.type == '2'}}" space="nbsp" class="texts font28r">{{item.content}}</text> 380 <text wx:if="{{item.type == '2'}}" space="nbsp" class="texts font28r">{{item.content}}</text>
381 <view wx:if="{{item.type == '3'}}" class="videoBox"> 381 <view wx:if="{{item.type == '3'}}" class="videoBox">
382 <video object-fit="contain" autoplay="{{true}}" loop="{{true}}" muted="{{true}}" show-mute-btn="{{true}}" vslide-gesture-in-fullscreen="{{true}}" src="{{item.content}}"></video> 382 <video object-fit="contain" autoplay="{{true}}" loop="{{true}}" muted="{{true}}" show-mute-btn="{{true}}" vslide-gesture-in-fullscreen="{{true}}" src="{{item.content}}"></video>
@@ -396,7 +396,7 @@ @@ -396,7 +396,7 @@
396 <image wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}" src="{{chef.image}}" bindtap="lookImgs" data-url="{{chef.image}}" mode="widthFix" /> 396 <image wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}" src="{{chef.image}}" bindtap="lookImgs" data-url="{{chef.image}}" mode="widthFix" />
397 <view class="labelBox" wx:if="{{chef.content && chef.content.length>0}}"> 397 <view class="labelBox" wx:if="{{chef.content && chef.content.length>0}}">
398 <block wx:for="{{chef.content}}"> 398 <block wx:for="{{chef.content}}">
399 - <image wx:if="{{item.type == '1'}}" bindtap="lookImgs" src="{{item.content}}" data-url="{{item.content}}" mode="widthFix" /> 399 + <image wx:if="{{item.type == '1'}}" bindtap="lookImgs" src="{{item.content}}" data-url="{{item.content}}" data-imgs="{{chef.imgsInfo}}" mode="widthFix" />
400 <text wx:if="{{item.type == '2'}}" space="nbsp" class="texts font28r">{{item.content}}</text> 400 <text wx:if="{{item.type == '2'}}" space="nbsp" class="texts font28r">{{item.content}}</text>
401 <view wx:if="{{item.type == '3'}}" class="videoBox"> 401 <view wx:if="{{item.type == '3'}}" class="videoBox">
402 <video object-fit="contain" autoplay="{{true}}" loop="{{true}}" muted="{{true}}" show-mute-btn="{{true}}" vslide-gesture-in-fullscreen="{{true}}" src="{{item.content}}"></video> 402 <video object-fit="contain" autoplay="{{true}}" loop="{{true}}" muted="{{true}}" show-mute-btn="{{true}}" vslide-gesture-in-fullscreen="{{true}}" src="{{item.content}}"></video>