|
@@ -22,117 +22,90 @@
|
|
|
<view class="photo">
|
|
<view class="photo">
|
|
|
<block v-if="cardInfo.avatar">
|
|
<block v-if="cardInfo.avatar">
|
|
|
<image :src="cardInfo.avatar" mode="aspectFill" class="poster"></image>
|
|
<image :src="cardInfo.avatar" mode="aspectFill" class="poster"></image>
|
|
|
- <view class="change ddflex" style="right: 140rpx;background-color:#27D699;"
|
|
|
|
|
|
|
+ <view v-if="cardId" class="change ddflex" style="right: 140rpx;background-color:#27D699;"
|
|
|
@click="userBehavior(3)">
|
|
@click="userBehavior(3)">
|
|
|
<image v-if="!cardInfo.isThumbs" style="width: 35rpx;height: 32rpx;"
|
|
<image v-if="!cardInfo.isThumbs" style="width: 35rpx;height: 32rpx;"
|
|
|
- src="/card/static/images/dz.png"></image>
|
|
|
|
|
- <image v-else style="width: 35rpx;height:32rpx;" src="../../static/images/like_h.png">
|
|
|
|
|
|
|
+ src="/card/static/images/dz1.png"></image>
|
|
|
|
|
+ <image v-else style="width: 35rpx;height:32rpx;" src="/card/static/images/dz1_h.png">
|
|
|
</image>
|
|
</image>
|
|
|
<!-- 点赞 -->
|
|
<!-- 点赞 -->
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="change ddflex" @click="uploadImg()">
|
|
|
|
|
|
|
+ <view v-if="cardId" class="change ddflex" @click="jumpUrl('/card/cardFound/cardFound')">
|
|
|
<image src="/card/static/images/change.png"></image>
|
|
<image src="/card/static/images/change.png"></image>
|
|
|
- <!-- 更换形象图 -->
|
|
|
|
|
|
|
+ <!-- 更换销售员-->
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
- <!-- @click="uploadImg()" -->
|
|
|
|
|
- <view class="upload ddflex" v-else
|
|
|
|
|
- @click="jumpUrl('/card/create/create?isEdit=true&id=' + cardInfo.id)">
|
|
|
|
|
- <image src="../../static/images/jia.png"></image>
|
|
|
|
|
- 上传专属形象
|
|
|
|
|
- </view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="info dflex">
|
|
<view class="info dflex">
|
|
|
<view class="flex">
|
|
<view class="flex">
|
|
|
<view class="name">
|
|
<view class="name">
|
|
|
{{ cardInfo.realName }}
|
|
{{ cardInfo.realName }}
|
|
|
- <text class="job" v-if="cardInfo.job">{{ cardInfo.job }}</text>
|
|
|
|
|
- <text class="job">入司10年</text>
|
|
|
|
|
|
|
+ <text class="job" v-if="cardInfo.job">{{ cardInfo.jobName }}</text>
|
|
|
|
|
+ <text class="job">入司{{cardInfo.inDate?getAge(cardInfo.inDate):1}}年</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="company ddflex" style="margin-top: 20rpx;">
|
|
<view class="company ddflex" style="margin-top: 20rpx;">
|
|
|
- <image src="/static/pages/images/dzico.png"></image>
|
|
|
|
|
|
|
+ <image src="/card/static/images/gs.png"></image>
|
|
|
{{ cardInfo.companyName }}
|
|
{{ cardInfo.companyName }}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="company ddflex">
|
|
<view class="company ddflex">
|
|
|
- <image src="/static/pages/images/dzico.png"></image>
|
|
|
|
|
|
|
+ <image src="/card/static/images/area.png"></image>
|
|
|
服务区域 {{ cardInfo.industryName }}
|
|
服务区域 {{ cardInfo.industryName }}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="company">
|
|
<view class="company">
|
|
|
执业证书:02000043090080002013000260
|
|
执业证书:02000043090080002013000260
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="industry">
|
|
|
|
|
- {{ cardInfo.industryName }}
|
|
|
|
|
- </view> -->
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- <view class="guanzhu" v-if="cardId" @click="userBehavior(1)">{{cardInfo.follow==1?'我已关注':'+关注'}}</view> -->
|
|
|
|
|
- <!-- <view class="logo"><image :src="cardInfo.avatar" mode="aspectFit"></image></view> -->
|
|
|
|
|
- </view>
|
|
|
|
|
- <!-- <view class="contacts" v-if="cardId">
|
|
|
|
|
- <scroll-view scroll-x="true" class="contact">
|
|
|
|
|
- <view class="li" @click="goPhone()">
|
|
|
|
|
- <view class="lit ddflex">
|
|
|
|
|
- <image src="../static/images/phone.png"></image>
|
|
|
|
|
- 拨打电话
|
|
|
|
|
|
|
+ <view class="ddflex" style="margin-top: 30rpx;" v-if="cardInfo.wechat||cardInfo.wechat">
|
|
|
|
|
+ <view class="ddflex fflex" style="background: #F8F8F8;border-radius: 10rpx;padding: 20rpx;font-size: 26rpx;margin-right: 30rpx;" v-if="cardInfo.phone">
|
|
|
|
|
+ <image style="width: 32rpx;height: 32rpx;margin-right: 10rpx;" src="/card/static/images/phone.png"></image>
|
|
|
|
|
+ {{cardInfo.phone}}
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="num">{{ cardInfo.phone }}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="li" @click="copy(cardInfo.wechat, 1)">
|
|
|
|
|
- <view class="lit ddflex">
|
|
|
|
|
- <image src="../static/images/wechat.png"></image>
|
|
|
|
|
- 复制微信
|
|
|
|
|
|
|
+ <view class="ddflex fflex" style="background: #F8F8F8;border-radius: 10rpx;padding: 20rpx;font-size: 26rpx;" v-if="cardInfo.wechat">
|
|
|
|
|
+ <image style="width: 32rpx;height: 32rpx;margin-right: 10rpx;" src="/card/static/images/wx.png"></image>
|
|
|
|
|
+ {{cardInfo.wechat}}
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="num">{{ cardInfo.wechat }}</view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="li" @click="copy(cardInfo.email, 2)">
|
|
|
|
|
- <view class="lit ddflex">
|
|
|
|
|
- <image src="../static/images/message.png"></image>
|
|
|
|
|
- 复制邮箱
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="num">{{ cardInfo.email }}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </scroll-view>
|
|
|
|
|
- </view> -->
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="btns ddflex" v-if="cardId">
|
|
<view class="btns ddflex" v-if="cardId">
|
|
|
- <view class="share-ta ddflex fflex" style="background: linear-gradient(80deg, #7EBFF1 0%, #458EEE 100%);;"
|
|
|
|
|
- @click="saveToPhone()">
|
|
|
|
|
- <image src="../../static/pages/images/wx.png"></image>存入通讯录</view>
|
|
|
|
|
|
|
+ <view class="share-ta ddflex fflex" style="background: linear-gradient(80deg, #7EBFF1 0%, #458EEE 100%);"
|
|
|
|
|
+ @click="copy(cardInfo.wechat, 1)">
|
|
|
|
|
+ <image src="../../static/pages/images/wx.png"></image>微信联系</view>
|
|
|
<view class="share-ta ddflex fflex" style="background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);"
|
|
<view class="share-ta ddflex fflex" style="background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);"
|
|
|
- @click="saveToPhone()">
|
|
|
|
|
- <image src="/static/pages/images/dh.png"></image>存入通讯录</view>
|
|
|
|
|
|
|
+ @click="goPhone()">
|
|
|
|
|
+ <image src="/card/static/images/phone1.png"></image>电话联系</view>
|
|
|
<view class="share-ta ddflex fflex" style="background: linear-gradient(80deg, #FF985A 0%, #FF5700 100%);"
|
|
<view class="share-ta ddflex fflex" style="background: linear-gradient(80deg, #FF985A 0%, #FF5700 100%);"
|
|
|
- @click="cardInfo.isSave?'':saveToFolder()">
|
|
|
|
|
- <image src="/static/pages/images/share1.png"></image>{{cardInfo.isSave?'已存入名片夹':'存入名片夹'}}</view>
|
|
|
|
|
|
|
+ @click="jumpUrl('/card/poster/poster?id'+cardInfo.id)">
|
|
|
|
|
+ <image src="/card/static/images/fx.png"></image>分享名片</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="save-text ddflex">
|
|
|
|
|
- <image src="../static/images/wxth.png"></image>保存到通讯录
|
|
|
|
|
|
|
+ <view class="save-text ddflex" v-if="cardId">
|
|
|
|
|
+ <image src="/card/static/images/save.png" @click="saveToPhone()"></image>保存到通讯录
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="btns ddflex" v-if="!cardId">
|
|
|
|
|
- <view class="share" @click="jumpUrl('/card/poster/poster?id=' + cardInfo.id)">分享名片</view>
|
|
|
|
|
- <view class="opt ddflex">
|
|
|
|
|
- <view class="li" @click="jumpUrl('/card/create/create?isEdit=true&id=' + cardInfo.id)">
|
|
|
|
|
- <image src="../static/images/edit.png"></image>
|
|
|
|
|
- <view>编辑名片</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="btns ddflex" v-if="!cardId" style="justify-content: center;">
|
|
|
|
|
+ <view class="share-ta ddflex" style="background: linear-gradient(84deg, #6FE5BC 0%, #27D699 100%);width: 260rpx;margin-right: 30rpx;"
|
|
|
|
|
+ @click="jumpUrl('/card/poster/poster?id'+cardInfo.id)">
|
|
|
|
|
+ <image src="/card/static/images/wdmp.png"></image>我的名片码</view>
|
|
|
|
|
+ <button open-type="share" class="share-ta ddflex" style="background: linear-gradient(80deg, #FF985A 0%, #FF5700 100%);width: 260rpx !important;"
|
|
|
|
|
+ >
|
|
|
|
|
+ <image src="/card/static/images/fx.png"></image>发送名片</button>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="extend-info ddflex">
|
|
<view class="extend-info ddflex">
|
|
|
<view class="extend-info-item fflex">
|
|
<view class="extend-info-item fflex">
|
|
|
- <view class="extend-info-data">1678</view>
|
|
|
|
|
|
|
+ <view class="extend-info-data">{{cardInfo.cntCust?cardInfo.cntCust:0}}</view>
|
|
|
<view class="extend-info-label ddflex">
|
|
<view class="extend-info-label ddflex">
|
|
|
<image src="../../static/pages/images/fw_hui.png"></image>
|
|
<image src="../../static/pages/images/fw_hui.png"></image>
|
|
|
<view>服务客户</view>
|
|
<view>服务客户</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="extend-info-item fflex">
|
|
<view class="extend-info-item fflex">
|
|
|
- <view class="extend-info-data">1678</view>
|
|
|
|
|
|
|
+ <view class="extend-info-data">{{cardInfo.cntCntr?cardInfo.cntCntr:0}}</view>
|
|
|
<view class="extend-info-label ddflex">
|
|
<view class="extend-info-label ddflex">
|
|
|
<image src="/static/pages/images/cy_hui.png"></image>
|
|
<image src="/static/pages/images/cy_hui.png"></image>
|
|
|
<view>保单件数</view>
|
|
<view>保单件数</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="extend-info-item fflex">
|
|
<view class="extend-info-item fflex">
|
|
|
- <view class="extend-info-data">1678</view>
|
|
|
|
|
|
|
+ <view class="extend-info-data">{{cardInfo.thumbs?cardInfo.thumbs:0}}</view>
|
|
|
<view class="extend-info-label ddflex">
|
|
<view class="extend-info-label ddflex">
|
|
|
<image src="/static/pages/images/dz_hui.png"></image>
|
|
<image src="/static/pages/images/dz_hui.png"></image>
|
|
|
<view>点赞量</view>
|
|
<view>点赞量</view>
|
|
@@ -142,7 +115,7 @@
|
|
|
<view class="q-hud ddflex">
|
|
<view class="q-hud ddflex">
|
|
|
<view class="q-hud-c ddflex">
|
|
<view class="q-hud-c ddflex">
|
|
|
<view class="q-users ddflex">
|
|
<view class="q-users ddflex">
|
|
|
- <image :src="item.avatar" mode="aspectFill" v-for="(item, index) in cardInfo.pageUser.list"
|
|
|
|
|
|
|
+ <image :src="item.avatar?item.avatar:'../../static/images/userimg.png'" mode="aspectFill" v-for="(item, index) in cardInfo.pageUser.list"
|
|
|
v-if="index<3" :key="index"></image>
|
|
v-if="index<3" :key="index"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="fflex">
|
|
<view class="fflex">
|
|
@@ -151,69 +124,79 @@
|
|
|
<!-- <image src="../static/images/q_rico.png" class="q-rico"></image> -->
|
|
<!-- <image src="../static/images/q_rico.png" class="q-rico"></image> -->
|
|
|
</view>
|
|
</view>
|
|
|
<view class="q-hud-r ddflex">
|
|
<view class="q-hud-r ddflex">
|
|
|
- <view class="ddflex" @click="userBehavior(3)">
|
|
|
|
|
- <image v-if="!cardInfo.isThumbs" style="width: 27rpx;height: 29rpx;margin-right: 10rpx;"
|
|
|
|
|
- src="../static/images/dz.png"></image>
|
|
|
|
|
- <image v-else style="width: 27rpx;height: 29rpx;margin-right: 10rpx;"
|
|
|
|
|
- src="../../static/images/like_h.png"></image>
|
|
|
|
|
- <text>{{cardInfo.thumbs}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="ddflex" v-if="cardId" @click="jumpUrl('/card/poster/poster?id'+cardInfo.id)">
|
|
|
|
|
- <image style="width: 29rpx;height: 29rpx;margin-left: 30rpx;margin-right: 10rpx;"
|
|
|
|
|
- src="../static/images/share.png"></image>
|
|
|
|
|
- <text>分享</text>
|
|
|
|
|
|
|
+ <view class="ddflex">
|
|
|
|
|
+ <image style="width: 23rpx;height: 31rpx;margin-right: 10rpx;"
|
|
|
|
|
+ src="/card/static/images/hot.png"></image>
|
|
|
|
|
+ <text>{{cardInfo.share}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="box" v-if="!cardId">
|
|
|
|
|
- <view class="tit ddflex">
|
|
|
|
|
- <image src="../static/images/sj_ico.png"></image>
|
|
|
|
|
- <view>
|
|
|
|
|
- 我的名片数据
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 评分 -->
|
|
|
|
|
+ <view class="pf-box">
|
|
|
|
|
+ <view class="ddflex" style="justify-content: space-between;">
|
|
|
|
|
+ <view class="pf-nav">客户评价</view>
|
|
|
|
|
+ <view class="ddflex pf-more" @click="jumpUrl('/card/evaluateList/evaluateList?groupId='+cardInfo.id)">
|
|
|
|
|
+ 全部评价
|
|
|
|
|
+ <image style="width: 9rpx;height: 19rpx;margin-left: 10rpx;" src="/static/pages/images/more.png"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="card-datas ddflex">
|
|
|
|
|
- <view class="li">
|
|
|
|
|
- <text>{{ cardInfo.pageUser.total }}</text>
|
|
|
|
|
- 访问量(次)
|
|
|
|
|
|
|
+ <view class="ddflex" style="justify-content: center;margin-top: 40rpx;">
|
|
|
|
|
+ <view class="pf-number">
|
|
|
|
|
+ {{evaluateInfo.info.avage}}<text style="font-size: 24rpx;color: #333333;font-weight: 400;margin-left: 10rpx;">分</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="li">
|
|
|
|
|
- <text>{{ cardInfo.todayBrowse }}</text>
|
|
|
|
|
- 今日访问量(次)
|
|
|
|
|
|
|
+ <uni-rate style="justify-content: center;margin-left: 30rpx;" class="ddflex" color="#999999" active-color="#FF4600" :readonly="true" size="18" allow-half :value="evaluateInfo.info.avage/2" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pf-note">综合评分 {{evaluateInfo.info.total}}人评分</view>
|
|
|
|
|
+ <view class="pf-data">
|
|
|
|
|
+ <view class="pf-user ddflex">
|
|
|
|
|
+ <view class="ddflex">
|
|
|
|
|
+ <image class="pf-user-header" :src="evaluateInfo.evaluateDTO.avatar?evaluateInfo.evaluateDTO.avatar:'../../static/images/userimg.png'"></image>
|
|
|
|
|
+ <view class="pf-user-name tover">{{evaluateInfo.evaluateDTO.name}}</view>
|
|
|
|
|
+ <uni-rate style="justify-content: center;margin-left: 30rpx;" class="ddflex" color="#999999" active-color="#FF4600" :readonly="true" size="14" allow-half :value="evaluateInfo.evaluateDTO.serveScore/2" />
|
|
|
|
|
+ <text style="font-size: 20rpx;color: #FF4600;">{{evaluateInfo.evaluateDTO.serveScore}}分</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pf-user-time">{{evaluateInfo.evaluateDTO.createDate}}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pf-user-content">
|
|
|
|
|
+ {{evaluateInfo.evaluateDTO.content}}
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="li">
|
|
|
|
|
- <text>{{ cardInfo.share }}</text>
|
|
|
|
|
- 分享名片(次)
|
|
|
|
|
|
|
+ <view class="" style="margin-top: 20rpx;">
|
|
|
|
|
+ <image :style="'width: 200rpx;height: 200rpx;margin-bottom: 10rpx;display: inline-block;'+((index+1)%3==0?'':'margin-right:10rpx')"
|
|
|
|
|
+ v-for="item,index in evaluateInfo.evaluateDTO.evaluateImgUrls" :src="item" mode="aspectFit"
|
|
|
|
|
+ @click="previewImg(evaluateInfo.evaluateDTO.evaluateImgUrls,index)"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="pf-btn" v-if="cardId" @click="jumpUrl('/card/evaluate/evaluate?id='+cardInfo.id)">点击输入您的评价</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="box brief">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <view class="box brief" v-if="cardInfo.honorImg">
|
|
|
<view class="tit ddflex">
|
|
<view class="tit ddflex">
|
|
|
<view class="flex ddflex">
|
|
<view class="flex ddflex">
|
|
|
- <image src="../static/images/jj_ico.png"></image>
|
|
|
|
|
|
|
+ <image src="/card/static/images/shry.png"></image>
|
|
|
<view>所获荣誉</view>
|
|
<view>所获荣誉</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="contacts" style="height: 300rpx;margin-top: 20rpx;">
|
|
<view class="contacts" style="height: 300rpx;margin-top: 20rpx;">
|
|
|
<scroll-view scroll-x="true" class="contact" style="height: 300rpx;">
|
|
<scroll-view scroll-x="true" class="contact" style="height: 300rpx;">
|
|
|
- <view class=" ry-image" v-for="item in 9">
|
|
|
|
|
- <image src="/static/images/lj_img.png"></image>
|
|
|
|
|
|
|
+ <view class=" ry-image" v-for="item,index in cardInfo.honorImg.split(',')" @click="previewImg(cardInfo.honorImg.split(','),index)">
|
|
|
|
|
+ <image :src="item" mode="aspectFill"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="box brief">
|
|
|
|
|
|
|
+ <view class="box brief" v-if="cardInfo.styleImg">
|
|
|
<view class="tit ddflex">
|
|
<view class="tit ddflex">
|
|
|
<view class="flex ddflex">
|
|
<view class="flex ddflex">
|
|
|
- <image src="../static/images/jj_ico.png"></image>
|
|
|
|
|
|
|
+ <image src="/card/static/images/grfc.png"></image>
|
|
|
<view>个人风采</view>
|
|
<view>个人风采</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="contacts" style="height: 300rpx;margin-top: 20rpx;">
|
|
<view class="contacts" style="height: 300rpx;margin-top: 20rpx;">
|
|
|
<scroll-view scroll-x="true" class="contact" style="height: 300rpx;">
|
|
<scroll-view scroll-x="true" class="contact" style="height: 300rpx;">
|
|
|
- <view class=" ry-image" v-for="item in 9">
|
|
|
|
|
- <image src="/static/images/lj_img.png"></image>
|
|
|
|
|
|
|
+ <view class=" ry-image" v-for="item in cardInfo.styleImg.split(',')" @click="previewImg(cardInfo.styleImg.split(','),index)">
|
|
|
|
|
+ <image :src="item" mode="aspectFill"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
</view>
|
|
</view>
|
|
@@ -221,22 +204,22 @@
|
|
|
<view class="box brief">
|
|
<view class="box brief">
|
|
|
<view class="tit ddflex">
|
|
<view class="tit ddflex">
|
|
|
<view class="flex ddflex">
|
|
<view class="flex ddflex">
|
|
|
- <image src="../static/images/jj_ico.png"></image>
|
|
|
|
|
|
|
+ <image src="/card/static/images/grjj.png"></image>
|
|
|
<view>个人简介</view>
|
|
<view>个人简介</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <image v-if="!cardId" src="../static/images/bj_ico.png" class="edit" @tap="jumpUrl('/card/editDesc/editDesc?id=' + cardInfo.id)"></image> -->
|
|
<!-- <image v-if="!cardId" src="../static/images/bj_ico.png" class="edit" @tap="jumpUrl('/card/editDesc/editDesc?id=' + cardInfo.id)"></image> -->
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="bri"><rich-text :nodes="cardInfo.brief ? cardInfo.brief : '一句话介绍自己'"></rich-text></view>
|
|
|
|
|
|
|
+ <view class="bri"><rich-text :nodes="cardInfo.brief ? cardInfo.brief : ''"></rich-text></view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="box brief">
|
|
<view class="box brief">
|
|
|
<view class="tit ddflex">
|
|
<view class="tit ddflex">
|
|
|
<view class="flex ddflex">
|
|
<view class="flex ddflex">
|
|
|
- <image src="../static/images/jj_ico.png"></image>
|
|
|
|
|
|
|
+ <image src="/card/static/images/gsjj.png"></image>
|
|
|
<view>公司简介</view>
|
|
<view>公司简介</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <image v-if="!cardId" src="../static/images/bj_ico.png" class="edit" @tap="jumpUrl('/card/editDesc/editDesc?id=' + cardInfo.id)"></image> -->
|
|
<!-- <image v-if="!cardId" src="../static/images/bj_ico.png" class="edit" @tap="jumpUrl('/card/editDesc/editDesc?id=' + cardInfo.id)"></image> -->
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="bri"><rich-text :nodes="cardInfo.brief ? cardInfo.brief : '一句话介绍自己'"></rich-text></view>
|
|
|
|
|
|
|
+ <view class="bri"><rich-text :nodes="cardInfo.companyIntroduction ? cardInfo.companyIntroduction : ''"></rich-text></view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <view class="box videos">
|
|
<!-- <view class="box videos">
|
|
|
<view class="tit ddflex">
|
|
<view class="tit ddflex">
|
|
@@ -266,6 +249,7 @@
|
|
|
const api = require('../../utils/api.js');
|
|
const api = require('../../utils/api.js');
|
|
|
import VODUpload from '@/utils/aliyun-upload-sdk-1.0.1.min.js'
|
|
import VODUpload from '@/utils/aliyun-upload-sdk-1.0.1.min.js'
|
|
|
import serviceContact from '@/components/service-contact/index.vue'
|
|
import serviceContact from '@/components/service-contact/index.vue'
|
|
|
|
|
+import util from '../../utils/util.js';
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -284,6 +268,8 @@
|
|
|
isStart: false,
|
|
isStart: false,
|
|
|
videoInfo: '',
|
|
videoInfo: '',
|
|
|
fileName: '', //视频名称
|
|
fileName: '', //视频名称
|
|
|
|
|
+
|
|
|
|
|
+ evaluateInfo:null,//评分
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
components:{ serviceContact },
|
|
components:{ serviceContact },
|
|
@@ -298,13 +284,32 @@
|
|
|
if (this.scene) {
|
|
if (this.scene) {
|
|
|
await this.loadCodeParams();
|
|
await this.loadCodeParams();
|
|
|
}
|
|
}
|
|
|
- console.log('req.isLogins(false)', req.isLogins(false))
|
|
|
|
|
await req.silenceLogin(this.options.userId ? this.options.userId : '', '')
|
|
await req.silenceLogin(this.options.userId ? this.options.userId : '', '')
|
|
|
this.getCardInfo();
|
|
this.getCardInfo();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- onShareAppMessage() {},
|
|
|
|
|
- onShareTimeline() {},
|
|
|
|
|
|
|
+ onShareAppMessage(res) {
|
|
|
|
|
+ if (res.from == 'button') {
|
|
|
|
|
+ let userInfo = req.getStorage('userInfo');
|
|
|
|
|
+ this.userBehavior(6)
|
|
|
|
|
+ return {
|
|
|
|
|
+ title: this.cardInfo.realName,
|
|
|
|
|
+ path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id,
|
|
|
|
|
+ imageUrl: this.cardInfo.avatar + '?x-oss-process=style/w375', // 分享图
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ onShareTimeline(res) {
|
|
|
|
|
+ if (res.from == 'button') {
|
|
|
|
|
+ let userInfo = req.getStorage('userInfo');
|
|
|
|
|
+ this.userBehavior(6)
|
|
|
|
|
+ return {
|
|
|
|
|
+ title: this.cardInfo.realName,
|
|
|
|
|
+ path: '/card/index/index?cardId=' + this.cardInfo.id + '&userId=' + userInfo.id,
|
|
|
|
|
+ imageUrl: this.cardInfo.avatar + '?x-oss-process=style/w375', // 分享图
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
loadCodeParams() {
|
|
loadCodeParams() {
|
|
@@ -342,23 +347,22 @@
|
|
|
|
|
|
|
|
getCardInfo() {
|
|
getCardInfo() {
|
|
|
var url = '';
|
|
var url = '';
|
|
|
- var dataP = {};
|
|
|
|
|
|
|
+ var dataP = {
|
|
|
|
|
+ id:this.cardId
|
|
|
|
|
+ };
|
|
|
if (this.cardId) {
|
|
if (this.cardId) {
|
|
|
- url = '/api/v3/visiting/card/info';
|
|
|
|
|
|
|
+ url = '/api/visiting/card/info';
|
|
|
dataP.id = this.cardId;
|
|
dataP.id = this.cardId;
|
|
|
} else {
|
|
} else {
|
|
|
- url = '/api/v3/visiting/card/userInfo';
|
|
|
|
|
|
|
+ url = '/api/visiting/card/userInfo';
|
|
|
dataP = {};
|
|
dataP = {};
|
|
|
}
|
|
}
|
|
|
req.getRequest(url, dataP, data => {
|
|
req.getRequest(url, dataP, data => {
|
|
|
this.cardInfo = data;
|
|
this.cardInfo = data;
|
|
|
- if (this.cardInfo.videoId) {
|
|
|
|
|
- this.getPlayInfo(this.cardInfo.videoId);
|
|
|
|
|
- }
|
|
|
|
|
console.log('isFirst')
|
|
console.log('isFirst')
|
|
|
if (this.cardId && this.cardInfo.userId == req.getStorage('userInfo').id) {
|
|
if (this.cardId && this.cardInfo.userId == req.getStorage('userInfo').id) {
|
|
|
- // this.cardId = null
|
|
|
|
|
- // this.getCardInfo()
|
|
|
|
|
|
|
+ this.cardId = null
|
|
|
|
|
+ this.getCardInfo()
|
|
|
} else {
|
|
} else {
|
|
|
if (this.cardInfo.userId == req.getStorage('userInfo').id) {
|
|
if (this.cardInfo.userId == req.getStorage('userInfo').id) {
|
|
|
|
|
|
|
@@ -370,6 +374,7 @@
|
|
|
}
|
|
}
|
|
|
this.isFirst = false
|
|
this.isFirst = false
|
|
|
}
|
|
}
|
|
|
|
|
+ this.getEvaluate()
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -658,60 +663,15 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- toWxShare() {
|
|
|
|
|
- req.getWXOriginalId(data => {
|
|
|
|
|
- if (data) {
|
|
|
|
|
- this.wxShare(data);
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$showModal({
|
|
|
|
|
- title: '提示',
|
|
|
|
|
- content: '未配置微信小程序',
|
|
|
|
|
- cancelText: '取消',
|
|
|
|
|
- confirmText: '设置开通'
|
|
|
|
|
- }).then(res => {
|
|
|
|
|
- // 点击确认的操作
|
|
|
|
|
- // tha.copy(content);
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ getAge(date){
|
|
|
|
|
+ return util.getAge(date)
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- wxShare(originalId) {
|
|
|
|
|
- //分享H5
|
|
|
|
|
- // uni.share({
|
|
|
|
|
- // provider: 'weixin',
|
|
|
|
|
- // scene: 'WXSceneSession',
|
|
|
|
|
- // type: 0,
|
|
|
|
|
- // href: req.env[req.env.NODE_ENV].h5BaseUrl + '/share/card/index?cardId=' + this.cardInfo.id,
|
|
|
|
|
- // title: this.cardInfo.nickName + ' - 电子名片',
|
|
|
|
|
- // summary: this.cardInfo.title + ' ' + this.cardInfo.position.name + ' ' + this.cardInfo.message,
|
|
|
|
|
- // imageUrl: this.cardInfo.avatar,
|
|
|
|
|
- // success: function(res) {
|
|
|
|
|
- // console.log('success:' + JSON.stringify(res));
|
|
|
|
|
- // },
|
|
|
|
|
- // fail: function(err) {
|
|
|
|
|
- // console.log('fail:' + JSON.stringify(err));
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
-
|
|
|
|
|
- uni.share({
|
|
|
|
|
- provider: 'weixin',
|
|
|
|
|
- scene: 'WXSceneSession',
|
|
|
|
|
- type: 5,
|
|
|
|
|
- imageUrl: this.cardInfo.avatar + '?x-oss-process=style/w375',
|
|
|
|
|
- title: this.cardInfo.nickName + ' - 电子名片',
|
|
|
|
|
- summary: this.cardInfo.title + ' ' + this.cardInfo.position.name + ' ' + this.cardInfo.message,
|
|
|
|
|
- miniProgram: {
|
|
|
|
|
- id: originalId,
|
|
|
|
|
- path: '/share/card/index?cardId=' + this.cardInfo.id,
|
|
|
|
|
- type: req.env[req.env.NODE_ENV].typeMiniProgram,
|
|
|
|
|
- webUrl: req.public.homeWebUrl
|
|
|
|
|
- },
|
|
|
|
|
- success: ret => {
|
|
|
|
|
- console.log(JSON.stringify(ret));
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 获取评论
|
|
|
|
|
+ getEvaluate(){
|
|
|
|
|
+ req.getRequest('/api/evaluate/cardInfo',{bindId:this.cardInfo.id,type:2},res=>{
|
|
|
|
|
+ this.evaluateInfo = res
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|