Sanakey
2020-11-06 65c4a68484a8d6fee25d3bb94bb7a24da6dfc147
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
<!--pages/idcard/idcard.wxml-->
<!--<import src="../template/contact-btn/contact-btn-template.wxml" />-->
<import src="../template/authorize/authorize-template.wxml" />
<import src="../template/goods-item/goods-item-template.wxml" />
<!-- <template is="authorizeTemplate" data="{{isAuthorize}}" /> -->
<view class="container">
    <form bindsubmit="btnFormIdSubmit" wx:if="{{cardStyle==0}}">
        <view class="card">
            <!-- <view class="iconfont icon-zhifu" bindtap="idCardFolder"></view> -->
            <image class="card-img" src='{{CardImage}}'></image>
            <view class="card-container">
                <view class="card-content">
                    <view class="card-avator" bindtap="viewAvatar" data-avatar="{{Avatar}}">
                        <image class="avator" src='{{Avatar}}'></image>
                    </view>
                    <view class="card-info">
                        <view class="card-name">
                            <view class="name">{{Name}}</view>
                            <view>{{Position}}</view>
                        </view>
                        <view class="card-phone">
                            <view class="card-row" bindtap="phoneTap" data-mobile="{{Mobile}}">
                                <text>{{Mobile}}</text>
                                <text class="iconfont icon-dianhua"></text>
                            </view>
                            <view class="card-row" bindtap="openWxMap"
                                data-latitude="{{Latitude}}"
                                data-longitude="{{Longitude}}"
                                data-address="{{Address}}"
                                data-mobile="{{Mobile}}"
                            >
                                <text class="no-wrap">{{Address}}</text>
                                <text class="iconfont icon-weizhi"></text>
                            </view>
                        </view>
                    </view>
 
                </view>
            </view>
 
            <!-- <button class="more-btn formid-btn" form-type="submit" bindtap="moreInfoTap">{{isShow?'收起以下名片信息':'展开全部名片信息'}}
      <text class="iconfont {{isShow?'icon-xiangshangshouqi':'icon-xiangxiazhankai'}}"></text>
    </button> -->
        </view>
 
        <view class="btn-group">
            <button class="button btn-empty" form-type="submit" open-type="share">分享名片</button>
            <button class="button btn-solid" form-type="submit" bindtap="newLinkman">存入手机通讯录</button>
        </view>
 
        <view class="scroll-row">
            <view class="id-card-code" bindtap="goQrCode">
                <view class="code-view">
                    <view>名片码</view>
                    <text class="iconfont icon-mingpianma"></text>
                </view>
                <view class="circle"></view>
 
            </view>
            <scroll-view class="scroll" scroll-x="true" scroll-with-animation="true">
                <view class="card-scroll">
                    <view class="row" bindtap="phoneTap" data-mobile="{{Mobile}}" wx:if="{{Mobile}}">
                        <view class="row-title">
                            <text class="iconfont icon-dianhua"></text>
                            <text class="list-text">拨打电话</text>
                        </view>
                        <text class="list-center">{{Mobile}}</text>
                    </view>
                    <view class="row" wx:if="{{WeiXinUserCode}}" bindtap="copyTap" data-data="{{WeiXinUserCode}}">
                        <view class="row-title">
                            <text class="iconfont icon-weixinzhifu1"></text>
                            <text class="list-text">加我微信</text>
                        </view>
                        <text class="list-center">{{WeiXinUserCode}}</text>
                    </view>
                    <view class="row" bindtap="copyTap" data-data="{{CompanyName}}" wx:if="{{CompanyName}}">
                        <view class="row-title">
                            <text class="iconfont icon-gongsi"></text>
                            <text class="list-text">公司</text>
                        </view>
                        <text class="list-center">{{CompanyName}}</text>
                    </view>
                    <view class="row" bindtap="openWxMap" 
                        data-latitude="{{Latitude}}"
                        data-longitude="{{Longitude}}"
                        data-address="{{Address}}"
                        data-mobile="{{Mobile}}"
                      data-data="{{Address}}" wx:if="{{Address}}">
                        <view class="row-title">
                            <text class="iconfont icon-weizhi"></text>
                            <text class="list-text">导航到此处</text>
                        </view>
                        <text class="list-center" >{{Address}}</text>
                    </view>
                    <view class="row-end"></view>
                </view>
            </scroll-view>
        </view>
 
    </form>
    <!--  -->
    <from bindsubmit="btnFormIdSubmit" wx:if="{{cardStyle==1}}" class="card-normal">
 
        <image class="card-bg" mode="aspectFill" src="{{CompanyPhoto}}">
            <!-- <view class="iconfont icon-zhifu" bindtap="idCardFolder"></view> -->
        </image>
 
        <view class="card-detail">
            <view class="card-avatar">
                <image class="avatar-img box-shadow" bindtap="viewAvatar" data-avatar="{{Avatar}}" src='{{Avatar}}'></image>
                <view class="card-main-info box-shadow">
                    <view>
                        <text class="idcard-name">{{Name}}</text>
                        <text class="idcard-job">{{Position}}</text>
                    </view>
                    <!-- <view class="idcard-company">{{CompanyName}}</view> -->
                </view>
            </view>
            <view class="row" wx:if="{{Mobile}}">
                <text class="list-left">电话</text>
                <text class="list-center">{{Mobile}}</text>
                <button class="card-btn formid-btn" bindtap="phoneTap" data-mobile="{{Mobile}}">拨打</button>
            </view>
            <view class="row" wx:if="{{WeiXinUserCode}}">
                <text class="list-left">微信</text>
                <text class="list-center">{{WeiXinUserCode}}</text>
                <button class="card-btn formid-btn" form-type="submit" bindtap="copyTap" data-data="{{WeiXinUserCode}}">复制</button>
            </view>
            <view class="row" wx:if="{{IndustryTypeName}}">
                <text class="list-left">行业</text>
                <scroll-view class="list-center align-center" scroll-x="{{true}}">
                {{IndustryTypeName}}
                </scroll-view>
                <button class="card-btn formid-btn" form-type="submit" bindtap="copyTap" data-data="{{IndustryTypeName}}">复制</button>
            </view>
            <view class="row" wx:if="{{CompanyName}}">
                <text class="list-left">公司</text>
                <scroll-view class="list-center align-center" scroll-x="{{true}}">
                {{CompanyName}}
                </scroll-view>
                <!-- <text class="list-center">{{CompanyName}}</text> -->
                <button class="card-btn formid-btn" form-type="submit" bindtap="copyTap" data-data="{{CompanyName}}">复制</button>
            </view>
            <view class="row" wx:if="{{Address}}">
                <text class="list-left">地址</text>
                <!-- <text class="list-center" bindtap="openWxMap"><text class="iconfont icon-weizhi"></text>{{Address}}</text> -->
                <scroll-view class="list-center align-center" 
                    bindtap="openWxMap"
                    data-latitude="{{Latitude}}"
                    data-longitude="{{Longitude}}"
                    data-address="{{Address}}"
                    data-mobile="{{Mobile}}"
                 scroll-x="{{true}}">
                <text class="iconfont icon-weizhi"></text>{{Address}}
                </scroll-view>
                <button class="card-btn formid-btn" form-type="submit" bindtap="copyTap" data-data="{{Address}}">复制</button>
            </view>
        </view>
 
        <view class="btn-group">
            <button class="button btn-empty" form-type="submit" open-type="share">分享名片</button>
            <button class="button btn-solid" form-type="submit" bindtap="newLinkman">存入手机通讯录</button>
        </view>
 
        <!-- <view class="card-block">
    <view class="title">更多职位信息</view>
    <view>
      <view class="row">
        <text class="list-left">公司</text>
        <text class="list-center">{{CompanyName}}</text>
        <button class="card-btn formid-btn" form-type="submit" bindtap="copyTap" data-data="{{CompanyName}}">复制</button>
      </view>
      <view class="row">
        <text class="list-left">地址</text>
        <text class="list-center" bindtap="openWxMap"><text class="iconfont icon-weizhi"></text>{{Address}}</text>
        <button class="card-btn formid-btn" form-type="submit" bindtap="copyTap" data-data="{{Address}}">复制</button>
      </view>
    </view>
  </view> -->
    </from>
 
<van-cell border="{{false}}" title-width="550rpx" custom-class="vancell">
    <view slot="title" class="vancell-left" >
        <block wx:for="{{ViewMyCardList}}" wx:key="key">
            <image src="{{item}}" class="view-avatar"></image>
        </block>
        
        {{ViewMyCardTimes}}人浏览
    </view>
    <view bindtap="handleSendLikeCard" class="vancell-right">
        靠谱 {{LikeMyCardTimes}}
        <van-icon class="{{isLikeMyCardForMe?'is-like':''}}"  name="{{isLikeMyCardForMe?'good-job':'good-job-o'}}" />
    </view>
</van-cell>
    
 
    <!--<template is="contactBtnTemplate" data="{{unreadMsgNum,newMsg,animationData}}" />-->
    <view class="card-block" wx:if="{{Description}}">
        <view class="card-title"><text class="iconfont icon-yonghu"></text> 我的简介</view>
        <view class="card-card">
            <view class="content-container">
                <view class="my-voice" wx:if="{{MyVoice}}">
                    <image src="{{Avatar}}" class="chat-avatar"></image>
                    <view class="speech_bar {{isPlayAudio?'pressed':''}}" bindtap="contrlAudio">
                            <view class="triangle">
                                <view class="child-triangle"></view>
                            </view>
                            <view class="speaker_wrapper">
                                    <view class="speaker1"></view>
                                    <view class="speaker2"></view>
                                    <view class="speaker3"></view>
                            </view>
            </view>
                    <view class="voice-time">
                        <view class="dot"></view>
                    {{audioTime}}''
                    </view>
                </view>
                <c-wxparse parse-data="{{Description}}"></c-wxparse>
                <view class="card-footer">
                    <van-cell border="{{false}}"  title-width="550rpx" wx:if="{{Hometown}}" custom-class="vancell" center title="家乡" label="{{Hometown}}">
                        <van-button bindtap="handleIsHometown" 
                        data-src="{{HometownGreetingsImage}}" 
                        data-greetings="{{HometownGreetings}}" 
                        size="mini" plain type="{{IsHometown?'primary':'default'}}">{{IsHometown?'同乡':'是同乡'}}</van-button>
                    </van-cell>
                    <view wx:if="{{EducationList.length>0}}">
                        <view>教育</view>
                        <block wx:for="{{EducationList}}" wx:key="index">
                            <van-cell border="{{false}}" title-width="550rpx" custom-class="vancell" center title="{{item.SchoolName}}" label="{{item.LearningStartDate}}年-{{item.LearningEndDate}}年 {{item.Major}} {{item.Education}}">
                                <van-button bindtap="handleIsSchoolfellow" 
                                data-src="{{SchoolmateGreetingsImage}}" 
                                data-index="{{index}}"
                                data-rowid="{{item.rowid}}" 
                                data-doccode="{{item.doccode}}"
                                data-greetings="{{item.SchoolmateGreetings}}"  
                                size="mini" plain type="{{item.IsSchoolfellow?'primary':'default'}}">{{item.IsSchoolfellow?'校友':'是校友'}}</van-button>
                            </van-cell>
                        </block>
                    </view>
                    
                    <view class="tags-btn" wx:if="{{MyTagList.length>0}}">
                        <block wx:for="{{MyTagList}}" wx:key="index">
                            <van-button  plain icon="{{item.isLikeMyTagForMe?'good-job':'good-job-o'}}" size="small" type="{{item.isLikeMyTagForMe?'primary':'default'}}"
                            bindtap="handleSendLikeTag" data-name="{{item.MyTag}}"
                            data-index="{{index}}"
                            >{{item.MyTag}} {{item.LikeMyTagTimes}}</van-button>
                        </block>
 
                    </view>
                </view>
            </view>
 
        </view>
    </view>
    <view class="card-block" wx:if="{{aboutDescription}}">
        <view class="card-title"><text class="iconfont icon-gongsi"></text> 我的企业</view>
        <view class="card-card">
            <view class="content-container">
                <c-wxparse parse-data="{{aboutDescription}}"></c-wxparse>
            </view>
        </view>
    </view>
 
    <view class="card-block" wx:if="{{OrganizationList.length>0}}">
        <view class="card-title"><text class="iconfont icon-gongsi"></text> 我的其他企业</view>
        <block wx:for="{{OrganizationList}}" wx:key="key">
            <view class="card-card">
                <view class="content-container">
                    <!-- <view class="des-title">{{item.OrganizationName}}</view> -->
                    <van-cell border="{{false}}" title-width="550rpx" wx:if="{{item.OrganizationName}}" custom-class="vancell" title="{{item.OrganizationName}}" >
                        <van-button bindtap="copyTap" 
                        data-data="{{item.OrganizationName}}" 
                        size="mini" plain type="default">复制</van-button>
                    </van-cell>
                    <c-wxparse class="des-content" parse-data="{{item.Description}}"></c-wxparse>
                    <van-cell border="{{false}}"  wx:if="{{item.Telephone}}" custom-class="vancell" center title="电话" label="{{item.Telephone}}">
                        <van-button bindtap="phoneTap" data-mobile="{{item.Telephone}}" 
                        data-data="{{item.Telephone}}" 
                        size="mini" plain type="default">拨打</van-button>
                    </van-cell>
                    <van-cell border="{{false}}" title-width="550rpx" wx:if="{{item.Position}}" custom-class="vancell" center title="职位" label="{{item.Position}}">
                        <van-button bindtap="copyTap" 
                        data-data="{{item.Position}}" 
                        size="mini" plain type="default">复制</van-button>
                    </van-cell>
                    <van-cell border="{{false}}" title-width="550rpx" wx:if="{{item.IndustryTypeFullName}}" custom-class="vancell" center title="行业" label="{{item.IndustryTypeFullName}}">
                        <van-button bindtap="copyTap" 
                        data-data="{{item.IndustryTypeFullName}}" 
                        size="mini" plain type="default">复制</van-button>
                    </van-cell>
                    
                    <van-cell border="{{false}}" title-width="550rpx" wx:if="{{item.Address}}" custom-class="vancell" center title="地址" use-label-slot>
                        <view slot="label"
                        bindtap="openWxMap"
                        data-latitude="{{item.Latitude}}"
                        data-longitude="{{item.Longitude}}"
                        data-address="{{item.Address}}"
                        data-mobile="{{item.Telephone}}"
                        >
                        <text class="iconfont icon-weizhi"></text>{{item.Address}}
                        </view>
                        <van-button bindtap="copyTap" 
                        data-data="{{item.Address}}" 
                        size="mini" plain type="default">复制</van-button>
                    </van-cell>
                    
                </view>
            </view>
        </block>
        
    </view>
 
    <view class="card-block" wx:if="{{MyPhotoList.length>0}}">
        <view class="card-title"><text class="iconfont icon-tupian"></text> 我的照片</view>
        <view class="card-card">
            <view class="content-container">
            <block wx:for="{{MyPhotoList}}" wx:key="index">
                <image  mode="widthFix" src="{{item.url}}" data-src="{{item.url}}" bindtap="viewMyPhoto"></image>
            </block>
                
            </view>
        </view>
    </view>
 
    <view class="card-block" wx:if="{{MyVideo}}">
        <view class="card-title">
            <van-icon name="play-circle" /> 我的视频</view>
        <view class="card-card">
            <view class="content-container center">
                <video id="myVideo" src="{{MyVideo}}" 
                  poster="{{MyVideoCover}}"
                    style="width:670rpx"
                  binderror="videoErrorCallback" show-center-play-btn='{{true}}' show-play-btn="{{true}}" controls></video>
            </view>
        </view>
    </view>
    <view class="card-block" wx:if="{{MatCodeList.length>0}}">
        <view class="card-title"><text class="iconfont icon-shangpin3"></text> 推荐商品</view>
        <view class="" wx:if="{{ProductListStyle==0}}">
            <view class="goods-container" style="display:block;">
                <block wx:for="{{MatCodeList}}" wx:for-item="goods" wx:key="index">
                    <!-- <view class="single-view-container border-radius">
                        <c-single-goods-item goods-item="{{goods}}"></c-single-goods-item>
                        <c-authorize-phone class="cart-btn-div" data-mininum="{{goods.Mininum}}" data-matcode="{{goods.MatCode}}" is-must-authorize="{{true}}"   catch:authorize="addCart">
                            <view slot="content" class="cart-btn" >加入购物车</view>
                        </c-authorize-phone>    
                    </view> -->
                    <c-single-goods-items goods="{{goods}}"></c-single-goods-items>
                </block>
            </view>
        </view>
        <view class="" wx:else>
            <view class="goods-container" bindtap="goodsItemTap">
                <block wx:for="{{MatCodeList}}" wx:for-item="goods" wx:key="index">
                    <view data-goods-id="{{goods.MatCode}}" data-external-url="{{goods.ExternalUrl}}" class="single-view-container border-radius">
                        <template is="goodsItemTemplate" data="{{...goods}}" />
                    </view>
                </block>
            </view>
        </view>
        
    </view>
</view>
 
<van-dialog
  use-slot
  show="{{ isShowDialog }}"
  show-cancel-button
    confirmButtonText="聊一聊"
    cancelButtonText="还是算了"
  bind:close="onDialogClose"
    confirm-button-open-type="getUserInfo"
    bind:getuserinfo="goChat"
>
  <image src="{{GreetingsImage}}" />
    <view class="my-voice">
        <image src="{{Avatar}}" class="chat-avatar"></image>
        <view class="speech_bar">
            <view class="triangle">
                <view class="child-triangle"></view>
            </view>
            <view class="wrapper">
                {{Greetings}}
            </view>
        </view>
    </view>
</van-dialog>
 
<c-contact id="contactComp" class="contact"></c-contact>