Commit 3e2d5cc80fdc0ebea296aeedd4f29378bc231912

Authored by vking
1 parent a1360065

blue ui other

1 <!--components/reserve/share/share.wxml--> 1 <!--components/reserve/share/share.wxml-->
2 <view class="share mask" catchtap="hide" wx:if="{{hasShow}}"> 2 <view class="share mask" catchtap="hide" wx:if="{{hasShow}}">
3 - <view class="share-view flex-lr">  
4 - <button class="button-none share-item flex-vc" open-type="share" catchtap="shareDo">  
5 - <image class="share-img wechat"></image>  
6 - <view class="share-name">微信</view>  
7 - </button>  
8 - <view class="share-item flex-vc" catchtap="shareDo" data-act="quanzi">  
9 - <image class="share-img quanzi"></image>  
10 - <view class="share-name">朋友圈</view>  
11 - </view>  
12 - <view class="share-item flex-vc" catchtap="shareDo" data-act="qrcode">  
13 - <image class="share-img qrcode"></image>  
14 - <view class="share-name">二维码</view>  
15 - </view>  
16 - <view class="share-item flex-vc">  
17 - <share-button type="3" fore-color="#dd6" product="{{product}}" style="height: 100rpx;">  
18 - <image class="share-img hwq"></image>  
19 - </share-button>  
20 - <view class="share-name">好物圈</view> 3 + <view class="share-view">
  4 + <view class="flex-lr" catchtap="catchtap">
  5 + <button class="button-none share-item flex-vc" open-type="share" catchtap="shareDo">
  6 + <image class="share-img wechat"></image>
  7 + <view class="share-name">微信</view>
  8 + </button>
  9 + <view class="share-item flex-vc" catchtap="shareDo" data-act="quanzi">
  10 + <image class="share-img quanzi"></image>
  11 + <view class="share-name">朋友圈</view>
  12 + </view>
  13 + <view class="share-item flex-vc" catchtap="shareDo" data-act="qrcode">
  14 + <image class="share-img qrcode"></image>
  15 + <view class="share-name">二维码</view>
  16 + </view>
  17 + <view class="share-item flex-vc">
  18 + <share-button type="3" fore-color="#dd6" product="{{product}}" style="height: 100rpx;">
  19 + <image class="share-img hwq"></image>
  20 + </share-button>
  21 + <view class="share-name">好物圈</view>
  22 + </view>
21 </view> 23 </view>
  24 + <view class="cancel">取消</view>
22 </view> 25 </view>
23 </view> 26 </view>
1 /* components/reserve/share/share.wxss */ 1 /* components/reserve/share/share.wxss */
2 @import "../../../app.wxss"; 2 @import "../../../app.wxss";
3 .share-view{ 3 .share-view{
4 - height: 260rpx;  
5 - background: #fefefe;  
6 - width: calc(100% - 40rpx);  
7 - padding: 0 20rpx; 4 + height: 390rpx;
  5 + background: #ffffff;
  6 + width: 100%;
  7 + padding: 50rpx 50rpx 0rpx;
8 position: fixed; 8 position: fixed;
9 bottom: 0; 9 bottom: 0;
  10 + border-radius: 40rpx 40rpx 0px 0px;
  11 + box-sizing: border-box;
10 } 12 }
11 .share-img{ 13 .share-img{
12 width: 100rpx; 14 width: 100rpx;
@@ -26,13 +28,29 @@ @@ -26,13 +28,29 @@
26 background-image: url("http://nosqn.colorcun.com/reserve/images/hwq.png"); 28 background-image: url("http://nosqn.colorcun.com/reserve/images/hwq.png");
27 } 29 }
28 .share-name{ 30 .share-name{
29 - margin-top: 20rpx;  
30 - font-size: 30rpx;  
31 - height: 42rpx;  
32 - line-height: 42rpx; 31 + height: 40rpx;
  32 + font-size: 28rpx;
  33 + font-family: PingFangSC-Regular, PingFang SC;
  34 + font-weight: 400;
33 color: #353535; 35 color: #353535;
  36 + line-height: 40rpx;
  37 + margin-top: 20rpx;
34 } 38 }
35 .share-item{ 39 .share-item{
36 min-width: 25%; 40 min-width: 25%;
37 width: 25%; 41 width: 25%;
  42 +}
  43 +.cancel{
  44 + width: 100%;
  45 + height: 80rpx;
  46 + background: #F5F5F5;
  47 + border-radius: 40rpx;
  48 + text-align: center;
  49 + line-height: 80rpx;
  50 + font-size: 34rpx;
  51 + font-family: PingFangSC-Regular, PingFang SC;
  52 + font-weight: 400;
  53 + color: #666666;
  54 + margin-top:60rpx;
  55 +
38 } 56 }
@@ -242,4 +242,81 @@ Page({ @@ -242,4 +242,81 @@ Page({
242 urls:urls 242 urls:urls
243 }) 243 })
244 }, 244 },
  245 + lookLocation:function(){
  246 + //console.log(this.data.seller.lat,this.data.seller.long,this.data.detail.map_address)
  247 + wx.openLocation({
  248 + latitude:Number(this.data.seller.lat),
  249 + longitude:Number(this.data.seller.long),
  250 + scale:17,
  251 + address:this.data.seller.map_address,
  252 + success:function (res) {
  253 + console.log(res)
  254 + }
  255 + })
  256 + },
  257 + sellerPhone(e){
  258 + this.selectComponent('#as').show(this.data.seller);
  259 + },
  260 +
  261 + showDiscount(){
  262 + this.selectComponent('#discount').show()
  263 + },
  264 + discountHide(){
  265 + this.setData({
  266 + hasDisplayDiscount:false
  267 + })
  268 + },
  269 + discountShow(){
  270 + this.setData({
  271 + hasDisplayDiscount:true
  272 + })
  273 + },
  274 + reviweRoomImage(e){
  275 + let urls=[];
  276 + this.data.seller.room_image.forEach(url=>{
  277 + if(url){
  278 + urls.push(url+zdmask)
  279 + }
  280 + })
  281 + wx.previewImage({
  282 + current:util.attr(e,'current')+zdmask,
  283 + urls:urls
  284 + })
  285 + },
  286 + reviweDishesImage(e){
  287 + let urls=[];
  288 + this.data.seller.dishes.forEach(d=>{
  289 + if(d.image){
  290 + urls.push(d.image+zdmask)
  291 + }
  292 + })
  293 + wx.previewImage({
  294 + current:util.attr(e,'current')+zdmask,
  295 + urls:urls
  296 + })
  297 + },
  298 + follow(){
  299 + let param={
  300 + sid:this.options.id,
  301 + openid:getApp().openid,
  302 + }
  303 + if(this.data.IsCollectionSeller){//已收藏
  304 + param.cancel=1
  305 + }
  306 + let hasFollow=!this.data.IsCollectionSeller
  307 + this.setData({
  308 + IsCollectionSeller:hasFollow
  309 + })
  310 + App.Customer.SetCollectionRel(param);
  311 + PubSub.emit(
  312 + 'follow',
  313 + {
  314 + sid:this.options.id,
  315 + hasFollow:hasFollow,
  316 + }
  317 + )
  318 + },
  319 + shareDisplay(){
  320 + this.selectComponent('#share').show()
  321 + },
245 }) 322 })
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 "stat":"/components/stat/stat", 9 "stat":"/components/stat/stat",
10 "as-phone":"/components/actionSheet/phone", 10 "as-phone":"/components/actionSheet/phone",
11 "nav":"/components/nav/nav", 11 "nav":"/components/nav/nav",
12 - "discount":"/components/reserve/seller/discount", 12 +
13 "share":"/components/reserve/share/share", 13 "share":"/components/reserve/share/share",
14 "people":"/components/reserve/people/people", 14 "people":"/components/reserve/people/people",
15 "dur":"/components/reserve/dur/dur", 15 "dur":"/components/reserve/dur/dur",
@@ -17,10 +17,13 @@ @@ -17,10 +17,13 @@
17 "activity-tips":"/components/activity/tips", 17 "activity-tips":"/components/activity/tips",
18 "section":"/components/reserve/section/section", 18 "section":"/components/reserve/section/section",
19 "select-room":"/components/reserve/select-room/select-room", 19 "select-room":"/components/reserve/select-room/select-room",
20 - "service":"/components/tips/service", 20 +
21 21
22 "taocan":"/components/2.0/taocan/lists", 22 "taocan":"/components/2.0/taocan/lists",
23 "plcard":"/components/2.0/pinglun/card", 23 "plcard":"/components/2.0/pinglun/card",
24 - "getpos":"/components/2.0/userinfo/getpos" 24 + "getpos":"/components/2.0/userinfo/getpos",
  25 + "as-phone":"/components/2.0/dialog/phone",
  26 + "service":"/components/tips/service",
  27 + "discount":"/components/reserve/seller/discount"
25 } 28 }
26 } 29 }
@@ -51,18 +51,19 @@ @@ -51,18 +51,19 @@
51 <view class="slogan-icon view margin-lr-sm"></view>{{seller.slogan}} 51 <view class="slogan-icon view margin-lr-sm"></view>{{seller.slogan}}
52 </view> 52 </view>
53 <view class="flex justify-start align-start"> 53 <view class="flex justify-start align-start">
54 - <view class="flex-treble"> 54 + <view class="flex-treble" bindtap="lookLocation">
55 <view class="text-bold text-30">{{seller.real_address||seller.map_address}}</view> 55 <view class="text-bold text-30">{{seller.real_address||seller.map_address}}</view>
56 <view wx:if="{{seller.distanceStr}}" class="flex align-center text-666666 txt-28-h"> 56 <view wx:if="{{seller.distanceStr}}" class="flex align-center text-666666 txt-28-h">
57 <view class="localtion view margin-right-xs"></view> 57 <view class="localtion view margin-right-xs"></view>
58 {{seller.distanceStr?'距您'+seller.distanceStr:''}} 58 {{seller.distanceStr?'距您'+seller.distanceStr:''}}
59 </view> 59 </view>
60 </view> 60 </view>
61 - <view class="view margin-lr-sm flex flex-direction align-start justify-center"> 61 + <view class="view margin-lr-sm flex flex-direction align-start justify-center" bindtap="lookLocation">
62 <view class="map-icon view"></view> 62 <view class="map-icon view"></view>
63 <view class="txt-24-h text-blue">位置</view> 63 <view class="txt-24-h text-blue">位置</view>
64 </view> 64 </view>
65 - <view class="view margin-left-sm flex flex-direction align-start justify-center"> 65 + <view class="view margin-left-sm flex flex-direction align-start justify-center"
  66 + bindtap="sellerPhone">
66 <view class="tel-icon view"></view> 67 <view class="tel-icon view"></view>
67 <view class="txt-24-h text-blue">电话</view> 68 <view class="txt-24-h text-blue">电话</view>
68 </view> 69 </view>
@@ -88,7 +89,7 @@ @@ -88,7 +89,7 @@
88 <block wx:elif="{{seller.activityStr}}"> 89 <block wx:elif="{{seller.activityStr}}">
89 <view class="view flex align-center" bindtap="showDiscount"> 90 <view class="view flex align-center" bindtap="showDiscount">
90 <view class="view flex flex-treble text-cut align-center"> 91 <view class="view flex flex-treble text-cut align-center">
91 - <view class="view margin-right-lg txt-32-h">优惠</view> 92 + <view class="view margin-right-lg txt-40-h text-bold">优惠</view>
92 <view class="view flex-treble text-cut"> 93 <view class="view flex-treble text-cut">
93 {{seller.activityStr}} 94 {{seller.activityStr}}
94 </view> 95 </view>
@@ -111,7 +112,8 @@ @@ -111,7 +112,8 @@
111 <view class="view padding-left-lg text-bold txt-40-h margin-bottom">参观包间</view> 112 <view class="view padding-left-lg text-bold txt-40-h margin-bottom">参观包间</view>
112 <scroll-view class="text-cut margin-bottom-sm" scroll-x="true" bindscroll="scroll" style="width: 100%;"> 113 <scroll-view class="text-cut margin-bottom-sm" scroll-x="true" bindscroll="scroll" style="width: 100%;">
113 <block wx:for="{{seller.room_image}}" wx:key="room_image"> 114 <block wx:for="{{seller.room_image}}" wx:key="room_image">
114 - <image class="room_image" mode="aspectFill" bindtap="reviweRoomImage" data-current="{{item}}" 115 + <image class="room_image" mode="aspectFill"
  116 + bindtap="reviweRoomImage" data-current="{{item}}"
115 src="{{item}}?imageView2/2/w/640/interlace/0/q/100"></image> 117 src="{{item}}?imageView2/2/w/640/interlace/0/q/100"></image>
116 </block> 118 </block>
117 </scroll-view> 119 </scroll-view>
@@ -189,15 +191,17 @@ @@ -189,15 +191,17 @@
189 <view class="Medium txt-20-h">首页</view> 191 <view class="Medium txt-20-h">首页</view>
190 </view> 192 </view>
191 </navigator> 193 </navigator>
192 - <view class="flex flex-direction align-center justify-center">  
193 - <image style="width:40rpx;height: 40rpx;margin-bottom: 4rpx;" src="http://nosqn.colorcun.com/detail/x%20%2822%29.png"></image> 194 + <view class="flex flex-direction align-center justify-center" bindtap="follow">
  195 + <image style="width:40rpx;height: 40rpx;margin-bottom: 4rpx;" src="{{IsCollectionSeller?'http://nosqn.colorcun.com/detail/x%20%2810%29.png':'http://nosqn.colorcun.com/detail/x%20%2822%29.png'}}"></image>
194 <view class="Medium txt-20-h">收藏</view> 196 <view class="Medium txt-20-h">收藏</view>
195 </view> 197 </view>
196 - <view class="flex flex-direction align-center justify-center">  
197 - <image style="width:36rpx;height: 36rpx;margin-bottom: 10rpx;" src="http://nosqn.colorcun.com/detail/x%20%2821%29.png"></image>  
198 - <view class="Medium txt-20-h">客服</view>  
199 - </view>  
200 - <view class="flex flex-direction align-center justify-center"> 198 + <service>
  199 + <view class="flex flex-direction align-center justify-center">
  200 + <image style="width:36rpx;height: 36rpx;margin-bottom: 10rpx;" src="http://nosqn.colorcun.com/detail/x%20%2821%29.png"></image>
  201 + <view class="Medium txt-20-h">客服</view>
  202 + </view>
  203 + </service>
  204 + <view class="flex flex-direction align-center justify-center" bindtap="shareDisplay">
201 <image style="width:40rpx;height: 40rpx;margin-bottom: 4rpx;" src="http://nosqn.colorcun.com/detail/x%20%2820%29.png"></image> 205 <image style="width:40rpx;height: 40rpx;margin-bottom: 4rpx;" src="http://nosqn.colorcun.com/detail/x%20%2820%29.png"></image>
202 <view class="Medium txt-20-h">分享</view> 206 <view class="Medium txt-20-h">分享</view>
203 </view> 207 </view>
@@ -208,4 +212,13 @@ @@ -208,4 +212,13 @@
208 </view> 212 </view>
209 </view> 213 </view>
210 </page> 214 </page>
211 -<getpos id="getpos" bindpos="onpos"></getpos>  
  215 +<getpos id="getpos" bindpos="onpos"></getpos>
  216 +<as-phone id="as"></as-phone>
  217 +<discount id="discount" seller="{{seller}}" wx:if="{{seller}}"
  218 + hasPTactivity="{{hasPTactivity}}"
  219 + cla="{{activeTab=='reserve'?'seller-reserve':''}}"
  220 + bindevent="reserveEvent"
  221 + bindhide="discountHide"
  222 + bindshow="discountShow"></discount>
  223 +<share id="share" seller_id="{{seller.id}}" seller="{{seller}}" wx:if="{{seller.id}}"></share>
  224 +
@@ -101,6 +101,7 @@ page{ @@ -101,6 +101,7 @@ page{
101 101
102 position: fixed; 102 position: fixed;
103 bottom: 0; 103 bottom: 0;
  104 + z-index: 2;
104 } 105 }
105 .reserve-button{ 106 .reserve-button{
106 width: 270rpx; 107 width: 270rpx;
@@ -132,3 +133,15 @@ page{ @@ -132,3 +133,15 @@ page{
132 background: #F8F8F8; 133 background: #F8F8F8;
133 border-radius: 10rpx; 134 border-radius: 10rpx;
134 } 135 }
  136 +.commentLabel{
  137 + height: 52rpx;
  138 + background: #F1F1F1;
  139 + border-radius: 26rpx;
  140 +
  141 + font-size: 26rpx;
  142 + font-family: PingFangSC-Regular, PingFang SC;
  143 + font-weight: 400;
  144 + color: #666666;
  145 + line-height: 52rpx;
  146 + text-align: center;
  147 +}