<!--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>
|