share.wxml
5.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<glsx-privacy appletName="嘀加车主服务" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar titleText='{{title}}' bind:getNavHeight='getNavHeight' />
<view wx:if='{{marginTop!=0}}'>
<view class='layout' wx:if='{{status == 2 || authToast}}' style='margin-top:{{marginTop}}px'>
<image class='shop-bg' src='{{merchantInfo.shopPhoto ? merchantInfo.shopPhoto : "/packageIndex/resources/images/defaultBg.jpg"}}'></image>
<view class='shop-info box'>
<view class='top'>
<view class='share' bindtap='share'>
<image src='../../resources/images/share-btn.png'></image>
</view>
<view class='shop-name'>
<image wx:for='{{merchantInfo.carBrandList}}' wx:key='index' src='{{item.brandLogo}}' style='width:44rpx;height:44rpx;' wx:if='{{index<3}}'></image>
<text wx:if='{{merchantInfo.carBrandList.length>3}}' style='margin-right:4rpx;'>...</text> {{appName}}
</view>
<view class='shop-address text-hidden'>{{merchantInfo.address}}</view>
<view class='business-hours'>营业时间:{{merchantInfo.businessHours}}</view>
</view>
<view class='bottom'>
<view bindtap='makePhone' data-phone='{{merchantInfo.phone}}'>
<image src='../../resources/images/phone.png'></image>
电话咨询
</view>
<view bindtap='gudieTo'>
<image src='../../resources/images/m-route.png'></image>
导航前往
</view>
</view>
</view>
<view class='box scope'>
<view class='scope-title'>营业范围</view>
<view class='scope-box clearfix'>
<view wx:for='{{merchantInfo.mainBusiness}}' wx:key='index' class='scope-item' style='margin:0 46rpx 32rpx 0;'>{{item}}</view>
</view>
</view>
</view>
<!-- 我的顾问 -->
<view wx:else style='margin-top:{{marginTop}}rpx'>
<view class='serviceDetail' style='margin-top:{{marginTop}}px'>
<image class='detailImg' src="../../resources/images/detailBg.png" style='top:{{marginTop }}px'></image>
<view class='block-shareImg'>
<view class='block'>
<view class='serviveHead'>
<image bindtap='previewImage' class='img' src='{{serviceInfo.photo}}'></image>
<image class='addV' src='../../resources/images/v.png'></image>
</view>
<view class='serviveContent'>
<view class='name'>{{serviceInfo.name}}</view>
<view class='serviceType'>{{serviceInfo.duty}}</view>
<view class='block-down'>
<view class='score-text'>
<image class='score' wx:for="{{merchantInfo.carBrandList}}" src="{{item.brandLogo}}" wx:key='index' wx:if='{{index<3}}'></image>
<text wx:if='{{merchantInfo.carBrandList.length>3}}' style='margin-right:4rpx;'>...</text>
<view class='servicetText' catchtap='toMerchant'>{{appName}} </view>
<image src='../../resources/images/arrow.png' class='arrow'></image>
</view>
</view>
</view>
</view>
<image class='shareImg' src="../../resources/images/share.png" bindtap='share'></image>
</view>
<view class='bottom'>
<view bindtap='makePhone' data-phone='{{serviceInfo.phone}}'>电话咨询</view>
<view bindtap='copyWx'>微信联系</view>
</view>
<view class='detail-content'>
<view class='top'>
<view class='detail-title'>服务印象</view>
<block wx:for='{{tags}}' wx:key='index'>
<view class='tags {{item.like?"active":""}} {{item.add?"add":""}}' bindtap='giveLike' data-item='{{item}}' data-index='{{index}}' style='margin:0 46rpx 32rpx 0;'>
<image src='{{item.like?"../../resources/images/like_a.png":"../../resources/images/like.png"}}'></image>
{{item.labelName}}({{item.praiseCount}})
</view>
</block>
<view class='servicePeople'>
<image src='{{item}}' wx:for='{{serviceScore}}' wx:key='index' wx:if='{{index<5}}'></image>
<text wx:if='{{serviceScore.length>5}}' style='margin-right:4rpx;'>...</text> 服务{{customerCount}}人
</view>
</view>
</view>
</view>
</view>
<!-- 分享弹框 -->
<share show='{{showShare}}' bind:init='init' data='{{obj}}' bind:hide='hideShare'>
</share>
<view class='servicer-btn'>
<view bindtap='jump' style='width:{{status == 2?"100%":"216rpx"}}'>
<image src='../../resources/images/home.png'></image>
进店
</view>
<view class='set {{active?"active":""}}' bindtap='setServicer' wx:if='{{status != 2}}'>{{active?"已设为顾问":"设为顾问"}}</view>
</view>
<view class='fixed-bg' wx:if='{{showBox}}'>
<view class='box'>
<view class='top1'>
<block wx:if='{{!active && myEmployee !=null}}'>
<view class='top1-title'>确定将服务顾问更换为
<text>{{serviceInfo.name}}</text>?</view>
<view class='user-img'>
<image src='{{myEmployee.photo}}'></image>
<image src='../../resources/images/change.png' class='change'></image>
<image src='{{serviceInfo.photo}}'></image>
</view>
</block>
<block wx:else>
<view class='top1-title'>确定将
<text>{{serviceInfo.name}}</text> 设为服务顾问?</view>
</block>
</view>
<view class='bottom'>
<view class='cancel' bindtap='cancel'>取消</view>
<view class='confirm' bindtap='confirmSet'>确定</view>
</view>
</view>
</view>
</view>
<!-- 复制微信弹框 -->
<copy-wx show='{{showCopyWx}}' bind:close='closeCopyWx' />
<!-- 授权组件 -->
<auth-setting auth='{{authToast}}' type='{{authType}}' />