Showing
17 changed files
with
153 additions
and
72 deletions
| @@ -221,6 +221,16 @@ Page({ | @@ -221,6 +221,16 @@ Page({ | ||
| 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 | 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 |
| 222 | }) | 222 | }) |
| 223 | }, | 223 | }, |
| 224 | + // 预览其他图片 | ||
| 225 | + lookImgs(e) { | ||
| 226 | + const url = e.currentTarget.dataset['url']; | ||
| 227 | + const imgs = e.currentTarget.dataset['imgs']; | ||
| 228 | + let urls = imgs ? imgs : [url] | ||
| 229 | + wx.previewImage({ | ||
| 230 | + current: url, | ||
| 231 | + urls, | ||
| 232 | + }) | ||
| 233 | + }, | ||
| 224 | // 获取店铺详情 | 234 | // 获取店铺详情 |
| 225 | getDetail() { | 235 | getDetail() { |
| 226 | App.Reserve.Detail({ | 236 | App.Reserve.Detail({ |
| @@ -62,7 +62,7 @@ | @@ -62,7 +62,7 @@ | ||
| 62 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> | 62 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> |
| 63 | <view class="handleInfoBox"> | 63 | <view class="handleInfoBox"> |
| 64 | <view class="handleInfo"> | 64 | <view class="handleInfo"> |
| 65 | - <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> | 65 | + <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> |
| 66 | <view class="handle handlePhone"> | 66 | <view class="handle handlePhone"> |
| 67 | <view class="handleName font26r">专属服务:{{staffinfo.name}}</view> | 67 | <view class="handleName font26r">专属服务:{{staffinfo.name}}</view> |
| 68 | <view class="handleBlower font26r">服务电话:{{staffinfo.phone}}</view> | 68 | <view class="handleBlower font26r">服务电话:{{staffinfo.phone}}</view> |
| @@ -113,7 +113,7 @@ | @@ -113,7 +113,7 @@ | ||
| 113 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> | 113 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> |
| 114 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> | 114 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> |
| 115 | <block wx:for="{{reserveData.content}}" wx:key="index"> | 115 | <block wx:for="{{reserveData.content}}" wx:key="index"> |
| 116 | - <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" mode="widthFix"/> | 116 | + <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" mode="widthFix"/> |
| 117 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> | 117 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> |
| 118 | </block> | 118 | </block> |
| 119 | </view> | 119 | </view> |
| @@ -123,19 +123,19 @@ | @@ -123,19 +123,19 @@ | ||
| 123 | <view wx:if="{{titleType}}" class="chefText font36r"> | 123 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 124 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> | 124 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> |
| 125 | </view> | 125 | </view> |
| 126 | - <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="widthFix" /> | 126 | + <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo}}" bindtap="lookImgs" data-url="{{marketing.logo}}" mode="widthFix" /> |
| 127 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> | 127 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> |
| 128 | <text class="texts">{{store.introduce}} | 128 | <text class="texts">{{store.introduce}} |
| 129 | </text> | 129 | </text> |
| 130 | </view> | 130 | </view> |
| 131 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 131 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 132 | </block> | 132 | </block> |
| 133 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> | 133 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> |
| 134 | <view wx:if="{{titleType}}" class="chefText font36r"> | 134 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 135 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> | 135 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> |
| 136 | </view> | 136 | </view> |
| 137 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 137 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 138 | - <image src="{{item}}" mode="widthFix" /> | 138 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" /> |
| 139 | </block> | 139 | </block> |
| 140 | </block> | 140 | </block> |
| 141 | </view> | 141 | </view> |
| @@ -149,7 +149,7 @@ | @@ -149,7 +149,7 @@ | ||
| 149 | </text> | 149 | </text> |
| 150 | </view> | 150 | </view> |
| 151 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> | 151 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> |
| 152 | - <image src="{{chef.image}}" mode="widthFix" /> | 152 | + <image src="{{chef.image}}" mode="widthFix" bindtap="lookImgs" data-url="{{chef.image}}"/> |
| 153 | </block> | 153 | </block> |
| 154 | </view> | 154 | </view> |
| 155 | <!-- 特色菜品 swich为1展示 --> | 155 | <!-- 特色菜品 swich为1展示 --> |
| @@ -158,7 +158,7 @@ | @@ -158,7 +158,7 @@ | ||
| 158 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> | 158 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> |
| 159 | </view> | 159 | </view> |
| 160 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 160 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 161 | - <image src="{{item}}" mode="widthFix" /> | 161 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}"/> |
| 162 | </block> | 162 | </block> |
| 163 | </view> | 163 | </view> |
| 164 | <!-- 停车指引 swich为1展示 --> | 164 | <!-- 停车指引 swich为1展示 --> |
| @@ -171,7 +171,7 @@ | @@ -171,7 +171,7 @@ | ||
| 171 | </text> | 171 | </text> |
| 172 | </view> | 172 | </view> |
| 173 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 173 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 174 | - <image src="{{item}}" mode="widthFix" /> | 174 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}"/> |
| 175 | </block> | 175 | </block> |
| 176 | </view> | 176 | </view> |
| 177 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> | 177 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> |
| @@ -221,6 +221,16 @@ Page({ | @@ -221,6 +221,16 @@ Page({ | ||
| 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 | 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 |
| 222 | }) | 222 | }) |
| 223 | }, | 223 | }, |
| 224 | + // 预览其他图片 | ||
| 225 | + lookImgs(e) { | ||
| 226 | + const url = e.currentTarget.dataset['url']; | ||
| 227 | + const imgs = e.currentTarget.dataset['imgs']; | ||
| 228 | + let urls = imgs ? imgs : [url] | ||
| 229 | + wx.previewImage({ | ||
| 230 | + current: url, | ||
| 231 | + urls, | ||
| 232 | + }) | ||
| 233 | + }, | ||
| 224 | // 获取店铺详情 | 234 | // 获取店铺详情 |
| 225 | getDetail() { | 235 | getDetail() { |
| 226 | App.Reserve.Detail({ | 236 | App.Reserve.Detail({ |
| @@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
| 54 | </view> | 54 | </view> |
| 55 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> | 55 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> |
| 56 | <view class="handleInfo"> | 56 | <view class="handleInfo"> |
| 57 | - <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> | 57 | + <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> |
| 58 | <view class="handle handlePhone"> | 58 | <view class="handle handlePhone"> |
| 59 | <view class="handleName">专属服务:{{staffinfo.name}}</view> | 59 | <view class="handleName">专属服务:{{staffinfo.name}}</view> |
| 60 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> | 60 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> |
| @@ -115,7 +115,7 @@ | @@ -115,7 +115,7 @@ | ||
| 115 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> | 115 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> |
| 116 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> | 116 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> |
| 117 | <block wx:for="{{reserveData.content}}" wx:key="index"> | 117 | <block wx:for="{{reserveData.content}}" wx:key="index"> |
| 118 | - <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" mode="widthFix" /> | 118 | + <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" mode="widthFix" /> |
| 119 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> | 119 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> |
| 120 | </block> | 120 | </block> |
| 121 | </view> | 121 | </view> |
| @@ -125,19 +125,19 @@ | @@ -125,19 +125,19 @@ | ||
| 125 | <view wx:if="{{titleType}}" class="chefText font36r"> | 125 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 126 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> | 126 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> |
| 127 | </view> | 127 | </view> |
| 128 | - <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="widthFix" /> | 128 | + <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo}}" bindtap="lookImgs" data-url="{{marketing.logo}}" mode="widthFix" /> |
| 129 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> | 129 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> |
| 130 | <text class="texts">{{store.introduce}} | 130 | <text class="texts">{{store.introduce}} |
| 131 | </text> | 131 | </text> |
| 132 | </view> | 132 | </view> |
| 133 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 133 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 134 | </block> | 134 | </block> |
| 135 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> | 135 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> |
| 136 | <view wx:if="{{titleType}}" class="chefText font36r"> | 136 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 137 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> | 137 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> |
| 138 | </view> | 138 | </view> |
| 139 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 139 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 140 | - <image src="{{item}}" mode="widthFix" /> | 140 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}"/> |
| 141 | </block> | 141 | </block> |
| 142 | </block> | 142 | </block> |
| 143 | </view> | 143 | </view> |
| @@ -151,7 +151,7 @@ | @@ -151,7 +151,7 @@ | ||
| 151 | </text> | 151 | </text> |
| 152 | </view> | 152 | </view> |
| 153 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> | 153 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> |
| 154 | - <image src="{{chef.image}}" mode="widthFix" /> | 154 | + <image src="{{chef.image}}" mode="widthFix" bindtap="lookImgs" data-url="{{chef.image}}"/> |
| 155 | </block> | 155 | </block> |
| 156 | </view> | 156 | </view> |
| 157 | <!-- 特色菜品 swich为1展示 --> | 157 | <!-- 特色菜品 swich为1展示 --> |
| @@ -160,7 +160,7 @@ | @@ -160,7 +160,7 @@ | ||
| 160 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> | 160 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> |
| 161 | </view> | 161 | </view> |
| 162 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 162 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 163 | - <image src="{{item}}" mode="widthFix" /> | 163 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}"/> |
| 164 | </block> | 164 | </block> |
| 165 | </view> | 165 | </view> |
| 166 | <!-- 停车指引 swich为1展示 --> | 166 | <!-- 停车指引 swich为1展示 --> |
| @@ -173,7 +173,7 @@ | @@ -173,7 +173,7 @@ | ||
| 173 | </text> | 173 | </text> |
| 174 | </view> | 174 | </view> |
| 175 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 175 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 176 | - <image src="{{item}}" mode="widthFix" /> | 176 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}"/> |
| 177 | </block> | 177 | </block> |
| 178 | </view> | 178 | </view> |
| 179 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> | 179 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> |
| @@ -221,6 +221,16 @@ Page({ | @@ -221,6 +221,16 @@ Page({ | ||
| 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 | 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 |
| 222 | }) | 222 | }) |
| 223 | }, | 223 | }, |
| 224 | + // 预览其他图片 | ||
| 225 | + lookImgs(e) { | ||
| 226 | + const url = e.currentTarget.dataset['url']; | ||
| 227 | + const imgs = e.currentTarget.dataset['imgs']; | ||
| 228 | + let urls = imgs ? imgs : [url] | ||
| 229 | + wx.previewImage({ | ||
| 230 | + current: url, | ||
| 231 | + urls, | ||
| 232 | + }) | ||
| 233 | + }, | ||
| 224 | // 获取店铺详情 | 234 | // 获取店铺详情 |
| 225 | getDetail() { | 235 | getDetail() { |
| 226 | App.Reserve.Detail({ | 236 | App.Reserve.Detail({ |
| @@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
| 38 | </view> | 38 | </view> |
| 39 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> | 39 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> |
| 40 | <view class="handleInfo"> | 40 | <view class="handleInfo"> |
| 41 | - <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> | 41 | + <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> |
| 42 | <view class="handle handlePhone"> | 42 | <view class="handle handlePhone"> |
| 43 | <view class="handleName">专属服务:{{staffinfo.name}}</view> | 43 | <view class="handleName">专属服务:{{staffinfo.name}}</view> |
| 44 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> | 44 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> |
| @@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
| 98 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> | 98 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> |
| 99 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> | 99 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> |
| 100 | <block wx:for="{{reserveData.content}}" wx:key="index"> | 100 | <block wx:for="{{reserveData.content}}" wx:key="index"> |
| 101 | - <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" mode="widthFix" /> | 101 | + <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" mode="widthFix" /> |
| 102 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> | 102 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> |
| 103 | </block> | 103 | </block> |
| 104 | </view> | 104 | </view> |
| @@ -108,19 +108,19 @@ | @@ -108,19 +108,19 @@ | ||
| 108 | <view wx:if="{{titleType}}" class="chefText font36r"> | 108 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 109 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> | 109 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> |
| 110 | </view> | 110 | </view> |
| 111 | - <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="widthFix" /> | 111 | + <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo}}" bindtap="lookImgs" data-url="{{marketing.logo}}" mode="widthFix" /> |
| 112 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> | 112 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> |
| 113 | <text class="texts">{{store.introduce}} | 113 | <text class="texts">{{store.introduce}} |
| 114 | </text> | 114 | </text> |
| 115 | </view> | 115 | </view> |
| 116 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 116 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 117 | </block> | 117 | </block> |
| 118 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> | 118 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> |
| 119 | <view wx:if="{{titleType}}" class="chefText font36r"> | 119 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 120 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> | 120 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> |
| 121 | </view> | 121 | </view> |
| 122 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 122 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 123 | - <image src="{{item}}" mode="widthFix" /> | 123 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}"/> |
| 124 | </block> | 124 | </block> |
| 125 | </block> | 125 | </block> |
| 126 | </view> | 126 | </view> |
| @@ -134,7 +134,7 @@ | @@ -134,7 +134,7 @@ | ||
| 134 | </text> | 134 | </text> |
| 135 | </view> | 135 | </view> |
| 136 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> | 136 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> |
| 137 | - <image src="{{chef.image}}" mode="widthFix" /> | 137 | + <image src="{{chef.image}}" mode="widthFix" bindtap="lookImgs" data-url="{{chef.image}}"/> |
| 138 | </block> | 138 | </block> |
| 139 | </view> | 139 | </view> |
| 140 | <!-- 特色菜品 swich为1展示 --> | 140 | <!-- 特色菜品 swich为1展示 --> |
| @@ -143,7 +143,7 @@ | @@ -143,7 +143,7 @@ | ||
| 143 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> | 143 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> |
| 144 | </view> | 144 | </view> |
| 145 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 145 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 146 | - <image src="{{item}}" mode="widthFix" /> | 146 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}"/> |
| 147 | </block> | 147 | </block> |
| 148 | </view> | 148 | </view> |
| 149 | <!-- 停车指引 swich为1展示 --> | 149 | <!-- 停车指引 swich为1展示 --> |
| @@ -156,7 +156,7 @@ | @@ -156,7 +156,7 @@ | ||
| 156 | </text> | 156 | </text> |
| 157 | </view> | 157 | </view> |
| 158 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 158 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 159 | - <image src="{{item}}" mode="widthFix" /> | 159 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}"/> |
| 160 | </block> | 160 | </block> |
| 161 | </view> | 161 | </view> |
| 162 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> | 162 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> |
| @@ -220,6 +220,16 @@ Page({ | @@ -220,6 +220,16 @@ Page({ | ||
| 220 | urls: this.urlsValue, // 需要预览的图片http链接列表 | 220 | urls: this.urlsValue, // 需要预览的图片http链接列表 |
| 221 | }) | 221 | }) |
| 222 | }, | 222 | }, |
| 223 | + // 预览其他图片 | ||
| 224 | + lookImgs(e) { | ||
| 225 | + const url = e.currentTarget.dataset['url']; | ||
| 226 | + const imgs = e.currentTarget.dataset['imgs']; | ||
| 227 | + let urls = imgs ? imgs : [url] | ||
| 228 | + wx.previewImage({ | ||
| 229 | + current: url, | ||
| 230 | + urls, | ||
| 231 | + }) | ||
| 232 | + }, | ||
| 223 | // 获取店铺详情 | 233 | // 获取店铺详情 |
| 224 | getDetail() { | 234 | getDetail() { |
| 225 | App.Reserve.Detail({ | 235 | App.Reserve.Detail({ |
| @@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
| 35 | </view> | 35 | </view> |
| 36 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> | 36 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> |
| 37 | <view class="handleInfo"> | 37 | <view class="handleInfo"> |
| 38 | - <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> | 38 | + <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> |
| 39 | <view class="handle handlePhone"> | 39 | <view class="handle handlePhone"> |
| 40 | <view class="handleName">专属服务:{{staffinfo.name}}</view> | 40 | <view class="handleName">专属服务:{{staffinfo.name}}</view> |
| 41 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> | 41 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> |
| @@ -96,7 +96,7 @@ | @@ -96,7 +96,7 @@ | ||
| 96 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> | 96 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> |
| 97 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> | 97 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> |
| 98 | <block wx:for="{{reserveData.content}}" wx:key="index"> | 98 | <block wx:for="{{reserveData.content}}" wx:key="index"> |
| 99 | - <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" mode="widthFix" /> | 99 | + <image class="items" wx:if="{{item.type =='1'}}" bindtap="lookImgs" data-url="{{item.content}}" src="{{item.content}}" mode="widthFix" /> |
| 100 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> | 100 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> |
| 101 | </block> | 101 | </block> |
| 102 | </view> | 102 | </view> |
| @@ -106,19 +106,19 @@ | @@ -106,19 +106,19 @@ | ||
| 106 | <view wx:if="{{titleType}}" class="chefText font36r"> | 106 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 107 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> | 107 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> |
| 108 | </view> | 108 | </view> |
| 109 | - <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="widthFix" /> | 109 | + <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo}}" bindtap="lookImgs" data-url="{{marketing.logo}}" mode="widthFix" /> |
| 110 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> | 110 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> |
| 111 | <text class="texts">{{store.introduce}} | 111 | <text class="texts">{{store.introduce}} |
| 112 | </text> | 112 | </text> |
| 113 | </view> | 113 | </view> |
| 114 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 114 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 115 | </block> | 115 | </block> |
| 116 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> | 116 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> |
| 117 | <view wx:if="{{titleType}}" class="chefText font36r"> | 117 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 118 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> | 118 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> |
| 119 | </view> | 119 | </view> |
| 120 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 120 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 121 | - <image src="{{item}}" mode="widthFix" /> | 121 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}"/> |
| 122 | </block> | 122 | </block> |
| 123 | </block> | 123 | </block> |
| 124 | </view> | 124 | </view> |
| @@ -132,7 +132,7 @@ | @@ -132,7 +132,7 @@ | ||
| 132 | </text> | 132 | </text> |
| 133 | </view> | 133 | </view> |
| 134 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> | 134 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> |
| 135 | - <image src="{{chef.image}}" mode="widthFix" /> | 135 | + <image src="{{chef.image}}" mode="widthFix" bindtap="lookImgs" data-url="{{chef.image}}"/> |
| 136 | </block> | 136 | </block> |
| 137 | </view> | 137 | </view> |
| 138 | <!-- 特色菜品 swich为1展示 --> | 138 | <!-- 特色菜品 swich为1展示 --> |
| @@ -141,7 +141,7 @@ | @@ -141,7 +141,7 @@ | ||
| 141 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> | 141 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> |
| 142 | </view> | 142 | </view> |
| 143 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 143 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 144 | - <image src="{{item}}" mode="widthFix" /> | 144 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}"/> |
| 145 | </block> | 145 | </block> |
| 146 | </view> | 146 | </view> |
| 147 | <!-- 停车指引 swich为1展示 --> | 147 | <!-- 停车指引 swich为1展示 --> |
| @@ -154,7 +154,7 @@ | @@ -154,7 +154,7 @@ | ||
| 154 | </text> | 154 | </text> |
| 155 | </view> | 155 | </view> |
| 156 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 156 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 157 | - <image src="{{item}}" mode="widthFix" /> | 157 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}"/> |
| 158 | </block> | 158 | </block> |
| 159 | </view> | 159 | </view> |
| 160 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> | 160 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> |
| @@ -185,6 +185,16 @@ Page({ | @@ -185,6 +185,16 @@ Page({ | ||
| 185 | } | 185 | } |
| 186 | }) | 186 | }) |
| 187 | }, | 187 | }, |
| 188 | + // 预览其他图片 | ||
| 189 | + lookImgs(e) { | ||
| 190 | + const url = e.currentTarget.dataset['url']; | ||
| 191 | + const imgs = e.currentTarget.dataset['imgs']; | ||
| 192 | + let urls = imgs ? imgs : [url] | ||
| 193 | + wx.previewImage({ | ||
| 194 | + current: url, | ||
| 195 | + urls, | ||
| 196 | + }) | ||
| 197 | + }, | ||
| 188 | getDetail() { | 198 | getDetail() { |
| 189 | App.Reserve.Detail({ | 199 | App.Reserve.Detail({ |
| 190 | openid: getApp().openid, | 200 | openid: getApp().openid, |
| @@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
| 16 | {{home.slogan}} | 16 | {{home.slogan}} |
| 17 | </view> | 17 | </view> |
| 18 | </view> | 18 | </view> |
| 19 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 19 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" bindtap="lookImgs" data-url="{{home.image}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 20 | <view class="reservationInfo flex-ll"> | 20 | <view class="reservationInfo flex-ll"> |
| 21 | <view class="line"> | 21 | <view class="line"> |
| 22 | </view> | 22 | </view> |
| @@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
| 54 | </view> | 54 | </view> |
| 55 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> | 55 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> |
| 56 | <view class="handleInfo"> | 56 | <view class="handleInfo"> |
| 57 | - <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> | 57 | + <image wx:if="{{staffinfo && staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> |
| 58 | <view class="handle handlePhone"> | 58 | <view class="handle handlePhone"> |
| 59 | <view class="handleName">专属服务:{{staffinfo.name}}</view> | 59 | <view class="handleName">专属服务:{{staffinfo.name}}</view> |
| 60 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> | 60 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> |
| @@ -115,7 +115,7 @@ | @@ -115,7 +115,7 @@ | ||
| 115 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> | 115 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> |
| 116 | <view class="title font36r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> | 116 | <view class="title font36r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> |
| 117 | <block wx:for="{{reserveData.content}}" wx:key="index"> | 117 | <block wx:for="{{reserveData.content}}" wx:key="index"> |
| 118 | - <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" mode="widthFix"/> | 118 | + <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" mode="widthFix"/> |
| 119 | <text class="items font24r" wx:if="{{item.type == '2'}}">{{item.content}}</text> | 119 | <text class="items font24r" wx:if="{{item.type == '2'}}">{{item.content}}</text> |
| 120 | </block> | 120 | </block> |
| 121 | </view> | 121 | </view> |
| @@ -124,7 +124,7 @@ | @@ -124,7 +124,7 @@ | ||
| 124 | <view class="introduce" wx:if="{{(store && store.images.length && store.is_above && store.is_above=='1' && store.is_images=='1' && store.is_introduce=='1') || (store && !store.is_above && store.style=='1')}}"> | 124 | <view class="introduce" wx:if="{{(store && store.images.length && store.is_above && store.is_above=='1' && store.is_images=='1' && store.is_introduce=='1') || (store && !store.is_above && store.style=='1')}}"> |
| 125 | <view class="IntroductionItems" wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 125 | <view class="IntroductionItems" wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 126 | <view class="imgMask"> | 126 | <view class="imgMask"> |
| 127 | - <image src="{{item}}" mode="widthFix" /> | 127 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}"/> |
| 128 | <view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}"> | 128 | <view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}"> |
| 129 | <view class="englishText font28r">Introduce</view> | 129 | <view class="englishText font28r">Introduce</view> |
| 130 | <view class="chefText font32r">品牌介绍</view> | 130 | <view class="chefText font32r">品牌介绍</view> |
| @@ -155,7 +155,7 @@ | @@ -155,7 +155,7 @@ | ||
| 155 | <text class="label styleLabel">{{store.introduce}}</text> | 155 | <text class="label styleLabel">{{store.introduce}}</text> |
| 156 | </view> | 156 | </view> |
| 157 | </view> | 157 | </view> |
| 158 | - <image wx:if="{{store && (!store.is_images || store.is_images!='0')}}" src="{{item}}" mode="widthFix" /> | 158 | + <image wx:if="{{store && (!store.is_images || store.is_images!='0')}}" src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" mode="widthFix" /> |
| 159 | </view> | 159 | </view> |
| 160 | </view> | 160 | </view> |
| 161 | </view> | 161 | </view> |
| @@ -164,7 +164,7 @@ | @@ -164,7 +164,7 @@ | ||
| 164 | <view class="introduce famousChefBox" wx:if="{{(chef && chef.image && chef.is_above && chef.is_above=='1' && chef.is_images=='1' && chef.is_introduce=='1') || (chef && !chef.is_above && chef.style=='1')}}"> | 164 | <view class="introduce famousChefBox" wx:if="{{(chef && chef.image && chef.is_above && chef.is_above=='1' && chef.is_images=='1' && chef.is_introduce=='1') || (chef && !chef.is_above && chef.style=='1')}}"> |
| 165 | <view class="IntroductionItems"> | 165 | <view class="IntroductionItems"> |
| 166 | <view class="imgMask"> | 166 | <view class="imgMask"> |
| 167 | - <image src="{{chef.image}}" mode="widthFix" /> | 167 | + <image src="{{chef.image}}" mode="widthFix" bindtap="lookImgs" data-url="{{chef.image}}" /> |
| 168 | <view class="IntroduceColor Introducepublic"> | 168 | <view class="IntroduceColor Introducepublic"> |
| 169 | <view class="englishText font28r">Chief Cook</view> | 169 | <view class="englishText font28r">Chief Cook</view> |
| 170 | <view class="chefText">知名主厨</view> | 170 | <view class="chefText">知名主厨</view> |
| @@ -199,7 +199,7 @@ | @@ -199,7 +199,7 @@ | ||
| 199 | </view> | 199 | </view> |
| 200 | </block> | 200 | </block> |
| 201 | </view> | 201 | </view> |
| 202 | - <image wx:if="{{chef && (!chef.is_images || chef.is_images!='0')}}" src="{{chef.image}}" mode="widthFix" /> | 202 | + <image wx:if="{{chef && (!chef.is_images || chef.is_images!='0')}}" src="{{chef.image}}" bindtap="lookImgs" data-url="{{chef.image}}" mode="widthFix" /> |
| 203 | </view> | 203 | </view> |
| 204 | </view> | 204 | </view> |
| 205 | </view> | 205 | </view> |
| @@ -207,7 +207,7 @@ | @@ -207,7 +207,7 @@ | ||
| 207 | <view class="introduce vegetableBox" wx:if="{{signboard && signboard.swich=='1'}}"> | 207 | <view class="introduce vegetableBox" wx:if="{{signboard && signboard.swich=='1'}}"> |
| 208 | <view class="IntroductionItems" wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 208 | <view class="IntroductionItems" wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 209 | <view class="imgMask"> | 209 | <view class="imgMask"> |
| 210 | - <image src="{{item}}" mode="widthFix" /> | 210 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}"/> |
| 211 | <view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}"> | 211 | <view class="IntroduceColor Introducepublic" wx:if="{{arryIndex=='0'}}"> |
| 212 | <view class="englishText font28r">Favorites</view> | 212 | <view class="englishText font28r">Favorites</view> |
| 213 | <view class="chefText">菜品展示</view> | 213 | <view class="chefText">菜品展示</view> |
| @@ -261,7 +261,7 @@ | @@ -261,7 +261,7 @@ | ||
| 261 | <view wx:if="{{hasValueRecharge && marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> | 261 | <view wx:if="{{hasValueRecharge && marketing.is_link=='1'}}" class="font24r favouredPolicy" bindtap="gotoFavourableList"> |
| 262 | 点击了解更多会员优惠政策 | 262 | 点击了解更多会员优惠政策 |
| 263 | </view> | 263 | </view> |
| 264 | - <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="widthFix" /> | 264 | + <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo}}" mode="widthFix" bindtap="lookImgs" data-url="{{marketing.logo}}"/> |
| 265 | <text class="businessBox"> | 265 | <text class="businessBox"> |
| 266 | 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> | 266 | 周到安排提供技术支持<text bindtap="call" data-phone="4000009690">4000009690</text>,餐厅入驻请点击<text bindtap="gotoJoinSeller" style="text-decoration: underline;">这里</text> |
| 267 | </text> | 267 | </text> |
| @@ -221,6 +221,16 @@ Page({ | @@ -221,6 +221,16 @@ Page({ | ||
| 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 | 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 |
| 222 | }) | 222 | }) |
| 223 | }, | 223 | }, |
| 224 | + // 预览其他图片 | ||
| 225 | + lookImgs(e) { | ||
| 226 | + const url = e.currentTarget.dataset['url']; | ||
| 227 | + const imgs = e.currentTarget.dataset['imgs']; | ||
| 228 | + let urls = imgs ? imgs : [url] | ||
| 229 | + wx.previewImage({ | ||
| 230 | + current: url, | ||
| 231 | + urls, | ||
| 232 | + }) | ||
| 233 | + }, | ||
| 224 | // 获取店铺详情 | 234 | // 获取店铺详情 |
| 225 | getDetail() { | 235 | getDetail() { |
| 226 | App.Reserve.Detail({ | 236 | App.Reserve.Detail({ |
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | /> | 11 | /> |
| 12 | <view class="reservationInfo"> | 12 | <view class="reservationInfo"> |
| 13 | <view class="imgBox" wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}"> | 13 | <view class="imgBox" wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}"> |
| 14 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 14 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 15 | <view class="imgTop font28r" wx:if="{{reserve && reserve.swich_slogan == '1' && home && home.slogan}}">{{home.slogan}}</view> | 15 | <view class="imgTop font28r" wx:if="{{reserve && reserve.swich_slogan == '1' && home && home.slogan}}">{{home.slogan}}</view> |
| 16 | <view class="imgBottom font48r">【{{seller.name?seller.name:reserve.seller_name}}】</view> | 16 | <view class="imgBottom font48r">【{{seller.name?seller.name:reserve.seller_name}}】</view> |
| 17 | </view> | 17 | </view> |
| @@ -50,7 +50,7 @@ | @@ -50,7 +50,7 @@ | ||
| 50 | </view> | 50 | </view> |
| 51 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> | 51 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> |
| 52 | <view class="handleInfo"> | 52 | <view class="handleInfo"> |
| 53 | - <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> | 53 | + <image wx:if="{{staffinfo && staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> |
| 54 | <view class="handle handlePhone"> | 54 | <view class="handle handlePhone"> |
| 55 | <view class="handleName">专属服务:{{staffinfo.name}}</view> | 55 | <view class="handleName">专属服务:{{staffinfo.name}}</view> |
| 56 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> | 56 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> |
| @@ -111,7 +111,7 @@ | @@ -111,7 +111,7 @@ | ||
| 111 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> | 111 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> |
| 112 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> | 112 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> |
| 113 | <block wx:for="{{reserveData.content}}" wx:key="index"> | 113 | <block wx:for="{{reserveData.content}}" wx:key="index"> |
| 114 | - <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" mode="widthFix" /> | 114 | + <image class="items" wx:if="{{item.type =='1'}}" bindtap="lookImgs" data-url="{{item.content}}" src="{{item.content}}" mode="widthFix" /> |
| 115 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> | 115 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> |
| 116 | </block> | 116 | </block> |
| 117 | </view> | 117 | </view> |
| @@ -121,19 +121,19 @@ | @@ -121,19 +121,19 @@ | ||
| 121 | <view wx:if="{{titleType}}" class="chefText font36r"> | 121 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 122 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> | 122 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> |
| 123 | </view> | 123 | </view> |
| 124 | - <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="widthFix" /> | 124 | + <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo}}" bindtap="lookImgs" data-url="{{marketing.logo}}" mode="widthFix" /> |
| 125 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> | 125 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> |
| 126 | <text class="texts">{{store.introduce}} | 126 | <text class="texts">{{store.introduce}} |
| 127 | </text> | 127 | </text> |
| 128 | </view> | 128 | </view> |
| 129 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 129 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 130 | </block> | 130 | </block> |
| 131 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> | 131 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> |
| 132 | <view wx:if="{{titleType}}" class="chefText font36r"> | 132 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 133 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> | 133 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> |
| 134 | </view> | 134 | </view> |
| 135 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 135 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 136 | - <image src="{{item}}" mode="widthFix" /> | 136 | + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" mode="widthFix" /> |
| 137 | </block> | 137 | </block> |
| 138 | </block> | 138 | </block> |
| 139 | </view> | 139 | </view> |
| @@ -147,7 +147,7 @@ | @@ -147,7 +147,7 @@ | ||
| 147 | </text> | 147 | </text> |
| 148 | </view> | 148 | </view> |
| 149 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> | 149 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> |
| 150 | - <image src="{{chef.image}}" mode="widthFix" /> | 150 | + <image src="{{chef.image}}"bindtap="lookImgs" data-url="{{chef.image}}" mode="widthFix" /> |
| 151 | </block> | 151 | </block> |
| 152 | </view> | 152 | </view> |
| 153 | <!-- 特色菜品 swich为1展示 --> | 153 | <!-- 特色菜品 swich为1展示 --> |
| @@ -156,7 +156,7 @@ | @@ -156,7 +156,7 @@ | ||
| 156 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> | 156 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> |
| 157 | </view> | 157 | </view> |
| 158 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 158 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 159 | - <image src="{{item}}" mode="widthFix" /> | 159 | + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}" mode="widthFix" /> |
| 160 | </block> | 160 | </block> |
| 161 | </view> | 161 | </view> |
| 162 | <!-- 停车指引 swich为1展示 --> | 162 | <!-- 停车指引 swich为1展示 --> |
| @@ -169,7 +169,7 @@ | @@ -169,7 +169,7 @@ | ||
| 169 | </text> | 169 | </text> |
| 170 | </view> | 170 | </view> |
| 171 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 171 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 172 | - <image src="{{item}}" mode="widthFix" /> | 172 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}"/> |
| 173 | </block> | 173 | </block> |
| 174 | </view> | 174 | </view> |
| 175 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> | 175 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> |
| @@ -221,6 +221,16 @@ Page({ | @@ -221,6 +221,16 @@ Page({ | ||
| 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 | 221 | urls: this.urlsValue, // 需要预览的图片http链接列表 |
| 222 | }) | 222 | }) |
| 223 | }, | 223 | }, |
| 224 | + // 预览其他图片 | ||
| 225 | + lookImgs(e) { | ||
| 226 | + const url = e.currentTarget.dataset['url']; | ||
| 227 | + const imgs = e.currentTarget.dataset['imgs']; | ||
| 228 | + let urls = imgs ? imgs : [url] | ||
| 229 | + wx.previewImage({ | ||
| 230 | + current: url, | ||
| 231 | + urls, | ||
| 232 | + }) | ||
| 233 | + }, | ||
| 224 | // 获取店铺详情 | 234 | // 获取店铺详情 |
| 225 | getDetail() { | 235 | getDetail() { |
| 226 | App.Reserve.Detail({ | 236 | App.Reserve.Detail({ |
| @@ -11,7 +11,8 @@ | @@ -11,7 +11,8 @@ | ||
| 11 | /> | 11 | /> |
| 12 | <view class="reservationInfo"> | 12 | <view class="reservationInfo"> |
| 13 | <view class="imgBox" wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}"> | 13 | <view class="imgBox" wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}"> |
| 14 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 14 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" |
| 15 | + bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> | ||
| 15 | <view class="imgTop font28r" wx:if="{{reserve && reserve.swich_slogan == '1' && home && home.slogan}}">{{home.slogan}}</view> | 16 | <view class="imgTop font28r" wx:if="{{reserve && reserve.swich_slogan == '1' && home && home.slogan}}">{{home.slogan}}</view> |
| 16 | <view class="imgBottom font48r">【{{seller.name?seller.name:reserve.seller_name}}】</view> | 17 | <view class="imgBottom font48r">【{{seller.name?seller.name:reserve.seller_name}}】</view> |
| 17 | </view> | 18 | </view> |
| @@ -46,7 +47,7 @@ | @@ -46,7 +47,7 @@ | ||
| 46 | </view> | 47 | </view> |
| 47 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> | 48 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> |
| 48 | <view class="handleInfo"> | 49 | <view class="handleInfo"> |
| 49 | - <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> | 50 | + <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> |
| 50 | <view class="handle handlePhone"> | 51 | <view class="handle handlePhone"> |
| 51 | <view class="handleName">专属服务:{{staffinfo.name}}</view> | 52 | <view class="handleName">专属服务:{{staffinfo.name}}</view> |
| 52 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> | 53 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> |
| @@ -107,7 +108,7 @@ | @@ -107,7 +108,7 @@ | ||
| 107 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> | 108 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> |
| 108 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> | 109 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> |
| 109 | <block wx:for="{{reserveData.content}}" wx:key="index"> | 110 | <block wx:for="{{reserveData.content}}" wx:key="index"> |
| 110 | - <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" mode="widthFix" /> | 111 | + <image class="items" wx:if="{{item.type =='1'}}" bindtap="lookImgs" data-url="{{item.content}}" src="{{item.content}}" mode="widthFix" /> |
| 111 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> | 112 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> |
| 112 | </block> | 113 | </block> |
| 113 | </view> | 114 | </view> |
| @@ -117,19 +118,19 @@ | @@ -117,19 +118,19 @@ | ||
| 117 | <view wx:if="{{titleType}}" class="chefText font36r"> | 118 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 118 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> | 119 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> |
| 119 | </view> | 120 | </view> |
| 120 | - <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="widthFix" /> | 121 | + <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo}}" bindtap="lookImgs" data-url="{{marketing.logo}}" mode="widthFix" /> |
| 121 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> | 122 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> |
| 122 | <text class="texts">{{store.introduce}} | 123 | <text class="texts">{{store.introduce}} |
| 123 | </text> | 124 | </text> |
| 124 | </view> | 125 | </view> |
| 125 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 126 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 126 | </block> | 127 | </block> |
| 127 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> | 128 | <block wx:if="{{store.images.length>0 && (!store.is_images || store.is_images!='0')}}"> |
| 128 | <view wx:if="{{titleType}}" class="chefText font36r"> | 129 | <view wx:if="{{titleType}}" class="chefText font36r"> |
| 129 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> | 130 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> |
| 130 | </view> | 131 | </view> |
| 131 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 132 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 132 | - <image src="{{item}}" mode="widthFix" /> | 133 | + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" mode="widthFix" /> |
| 133 | </block> | 134 | </block> |
| 134 | </block> | 135 | </block> |
| 135 | </view> | 136 | </view> |
| @@ -143,7 +144,7 @@ | @@ -143,7 +144,7 @@ | ||
| 143 | </text> | 144 | </text> |
| 144 | </view> | 145 | </view> |
| 145 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> | 146 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> |
| 146 | - <image src="{{chef.image}}" mode="widthFix" /> | 147 | + <image src="{{chef.image}}" bindtap="lookImgs" data-url="{{chef.image}}" mode="widthFix" /> |
| 147 | </block> | 148 | </block> |
| 148 | </view> | 149 | </view> |
| 149 | <!-- 特色菜品 swich为1展示 --> | 150 | <!-- 特色菜品 swich为1展示 --> |
| @@ -152,7 +153,7 @@ | @@ -152,7 +153,7 @@ | ||
| 152 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> | 153 | <titleStyle isWhite="{{themeColor}}" titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> |
| 153 | </view> | 154 | </view> |
| 154 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 155 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 155 | - <image src="{{item}}" mode="widthFix" /> | 156 | + <image src="{{item}}" mode="widthFix" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}" /> |
| 156 | </block> | 157 | </block> |
| 157 | </view> | 158 | </view> |
| 158 | <!-- 停车指引 swich为1展示 --> | 159 | <!-- 停车指引 swich为1展示 --> |
| @@ -165,7 +166,7 @@ | @@ -165,7 +166,7 @@ | ||
| 165 | </text> | 166 | </text> |
| 166 | </view> | 167 | </view> |
| 167 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 168 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 168 | - <image src="{{item}}" mode="widthFix" /> | 169 | + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}" mode="widthFix" /> |
| 169 | </block> | 170 | </block> |
| 170 | </view> | 171 | </view> |
| 171 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> | 172 | <view class="specialServices" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> |
| @@ -238,6 +238,16 @@ Page({ | @@ -238,6 +238,16 @@ Page({ | ||
| 238 | urls: this.urlsValue, // 需要预览的图片http链接列表 | 238 | urls: this.urlsValue, // 需要预览的图片http链接列表 |
| 239 | }) | 239 | }) |
| 240 | }, | 240 | }, |
| 241 | + // 预览其他图片 | ||
| 242 | + lookImgs(e) { | ||
| 243 | + const url = e.currentTarget.dataset['url']; | ||
| 244 | + const imgs = e.currentTarget.dataset['imgs']; | ||
| 245 | + let urls = imgs ? imgs : [url] | ||
| 246 | + wx.previewImage({ | ||
| 247 | + current: url, | ||
| 248 | + urls, | ||
| 249 | + }) | ||
| 250 | + }, | ||
| 241 | // 获取店铺详情 | 251 | // 获取店铺详情 |
| 242 | getDetail() { | 252 | getDetail() { |
| 243 | App.Reserve.Detail({ | 253 | App.Reserve.Detail({ |
| @@ -61,7 +61,7 @@ | @@ -61,7 +61,7 @@ | ||
| 61 | </view> | 61 | </view> |
| 62 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> | 62 | <block wx:if="{{staffinfo && reserve.swich_manager=='1'}}"> |
| 63 | <view class="handleInfo"> | 63 | <view class="handleInfo"> |
| 64 | - <image wx:if="{{staffinfo && staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> | 64 | + <image wx:if="{{staffinfo && staffinfo.photo}}" bindtap="lookImgs" data-url="{{staffinfo.photo}}" src="{{staffinfo.photo}}" class="headerimg" mode="aspectFill"></image> |
| 65 | <view class="handle handlePhone"> | 65 | <view class="handle handlePhone"> |
| 66 | <view class="handleName">专属服务:{{staffinfo.name}}</view> | 66 | <view class="handleName">专属服务:{{staffinfo.name}}</view> |
| 67 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> | 67 | <view class="handleBlower">服务电话:{{staffinfo.phone}}</view> |
| @@ -111,7 +111,7 @@ | @@ -111,7 +111,7 @@ | ||
| 111 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> | 111 | <view class="reserveBox" wx:if="{{reserveData && (reserveData.title || reserveData.content)}}"> |
| 112 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> | 112 | <view class="title font40r" wx:if="{{reserveData.title}}">{{reserveData.title}}</view> |
| 113 | <block wx:for="{{reserveData.content}}" wx:key="index"> | 113 | <block wx:for="{{reserveData.content}}" wx:key="index"> |
| 114 | - <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" mode="widthFix"/> | 114 | + <image class="items" wx:if="{{item.type =='1'}}" src="{{item.content}}" bindtap="lookImgs" data-url="{{item.content}}" mode="widthFix"/> |
| 115 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> | 115 | <text class="items font32r" wx:if="{{item.type == '2'}}">{{item.content}}</text> |
| 116 | </block> | 116 | </block> |
| 117 | </view> | 117 | </view> |
| @@ -121,12 +121,12 @@ | @@ -121,12 +121,12 @@ | ||
| 121 | <block wx:if="{{titleType}}"> | 121 | <block wx:if="{{titleType}}"> |
| 122 | <titleStyle titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> | 122 | <titleStyle titleStyleType="{{titleType}}" titleText="餐厅介绍"></titleStyle> |
| 123 | </block> | 123 | </block> |
| 124 | - <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo?marketing.logo:''}}" mode="widthFix" /> | 124 | + <image wx:if="{{marketing && marketing.logo && (!marketing.is_logo || marketing.is_logo!='0')}}" src="{{marketing.logo}}" bindtap="lookImgs" data-url="{{marketing.logo}}" mode="widthFix" /> |
| 125 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> | 125 | <view class="labelBox" wx:if="{{store.introduce && (!store.is_introduce || store.is_introduce!='0')}}"> |
| 126 | <text class="texts font32r">{{store.introduce}} | 126 | <text class="texts font32r">{{store.introduce}} |
| 127 | </text> | 127 | </text> |
| 128 | </view> | 128 | </view> |
| 129 | - <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" class="homeImage" mode="widthFix"></image> | 129 | + <image wx:if="{{home.image && (!home.id_first_image || home.id_first_image!='0')}}" src="{{home.image}}" bindtap="lookImgs" data-url="{{home.image}}" class="homeImage" mode="widthFix"></image> |
| 130 | </view> | 130 | </view> |
| 131 | </block> | 131 | </block> |
| 132 | <!-- 用餐环境 --> | 132 | <!-- 用餐环境 --> |
| @@ -136,7 +136,7 @@ | @@ -136,7 +136,7 @@ | ||
| 136 | <titleStyle titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> | 136 | <titleStyle titleStyleType="{{titleType}}" titleText="用餐环境"></titleStyle> |
| 137 | </block> | 137 | </block> |
| 138 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 138 | <block wx:for="{{store.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 139 | - <image src="{{item}}" mode="widthFix" /> | 139 | + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{store.images}}" mode="widthFix" /> |
| 140 | </block> | 140 | </block> |
| 141 | </block> | 141 | </block> |
| 142 | </view> | 142 | </view> |
| @@ -150,7 +150,7 @@ | @@ -150,7 +150,7 @@ | ||
| 150 | </text> | 150 | </text> |
| 151 | </view> | 151 | </view> |
| 152 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> | 152 | <block wx:if="{{(!chef.is_images || chef.is_images!='0') && chef.image}}"> |
| 153 | - <image src="{{chef.image}}" mode="widthFix" /> | 153 | + <image src="{{chef.image}}" bindtap="lookImgs" data-url="{{chef.image}}" mode="widthFix" /> |
| 154 | </block> | 154 | </block> |
| 155 | </view> | 155 | </view> |
| 156 | <!-- 特色菜品 --> | 156 | <!-- 特色菜品 --> |
| @@ -159,7 +159,7 @@ | @@ -159,7 +159,7 @@ | ||
| 159 | <titleStyle titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> | 159 | <titleStyle titleStyleType="{{titleType}}" titleText="特色菜品"></titleStyle> |
| 160 | </block> | 160 | </block> |
| 161 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 161 | <block wx:for="{{signboard.images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 162 | - <image src="{{item}}" mode="widthFix" /> | 162 | + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{signboard.images}}" mode="widthFix" /> |
| 163 | </block> | 163 | </block> |
| 164 | </view> | 164 | </view> |
| 165 | <!-- 停车指引 --> | 165 | <!-- 停车指引 --> |
| @@ -172,7 +172,7 @@ | @@ -172,7 +172,7 @@ | ||
| 172 | </text> | 172 | </text> |
| 173 | </view> | 173 | </view> |
| 174 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> | 174 | <block wx:for="{{reserve.park_info_images}}" wx:key="arryIndex" wx:for-index="arryIndex"> |
| 175 | - <image src="{{item}}" mode="widthFix" /> | 175 | + <image src="{{item}}" bindtap="lookImgs" data-url="{{item}}" data-imgs="{{reserve.park_info_images}}" mode="widthFix" /> |
| 176 | </block> | 176 | </block> |
| 177 | </view> | 177 | </view> |
| 178 | <view class="introduce" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> | 178 | <view class="introduce" wx:if="{{hasValueOrder && detail && detail.seller.is_open_order==1 && marketing && marketing.is_order=='1'}}"> |
| @@ -506,14 +506,14 @@ | @@ -506,14 +506,14 @@ | ||
| 506 | } | 506 | } |
| 507 | 507 | ||
| 508 | .cook { | 508 | .cook { |
| 509 | - height: 94% !important; | ||
| 510 | background: transparent; | 509 | background: transparent; |
| 511 | border: 2rpx solid #FFEFC5; | 510 | border: 2rpx solid #FFEFC5; |
| 512 | - color: #FFEFC5; | ||
| 513 | - border-radius: 32rpx; | 511 | + border-radius: 28rpx; |
| 514 | font-weight: normal; | 512 | font-weight: normal; |
| 515 | - width: 38% !important; | ||
| 516 | - margin-left: 18rpx; | 513 | + width: 40% !important; |
| 514 | + color: #FFEFC5; | ||
| 515 | + padding: 4rpx 0; | ||
| 516 | + margin-left: 12rpx; | ||
| 517 | } | 517 | } |
| 518 | 518 | ||
| 519 | .cook view { | 519 | .cook view { |
-
Please register or login to post a comment