|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="content mone" v-if="baseURL">
|
|
<view class="content mone" v-if="baseURL">
|
|
|
<model :modelId='mtype' :templateData='userTemplate' :isShare='isShare' :isLook='isLook' :isDefault='isDefault'
|
|
<model :modelId='mtype' :templateData='userTemplate' :isShare='isShare' :isLook='isLook' :isDefault='isDefault'
|
|
|
- :share-number='shareNumber'></model>
|
|
|
|
|
|
|
+ :share-number='shareNumber' :honorList="honor_list"></model>
|
|
|
<view class="fxmp flex bottom" v-if="type==2">
|
|
<view class="fxmp flex bottom" v-if="type==2">
|
|
|
<button class="share" type="default" open-type="share">
|
|
<button class="share" type="default" open-type="share">
|
|
|
分享名片
|
|
分享名片
|
|
@@ -84,10 +84,18 @@
|
|
|
<view class="Sc" @click="goPl">
|
|
<view class="Sc" @click="goPl">
|
|
|
<uni-icons class="icon" color="#FFF" size='80rpx' type="chat-filled"></uni-icons>
|
|
<uni-icons class="icon" color="#FFF" size='80rpx' type="chat-filled"></uni-icons>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- calendar-filled -->
|
|
|
<view class="ScNum">
|
|
<view class="ScNum">
|
|
|
{{userTemplate.comment_num||0}}
|
|
{{userTemplate.comment_num||0}}
|
|
|
</view>
|
|
</view>
|
|
|
<!-- -->
|
|
<!-- -->
|
|
|
|
|
+ <view class="Dz" @click="showDk(userTemplate.check_num)">
|
|
|
|
|
+ <uni-icons class="icon" color="#FFF" size='80rpx'
|
|
|
|
|
+ type="calendar-filled"></uni-icons>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="ScNum">
|
|
|
|
|
+ {{userTemplate.check_num||0}}
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<image src="/static/image/qy.png" mode="widthFix" class="qianyue" @click="goQy"
|
|
<image src="/static/image/qy.png" mode="widthFix" class="qianyue" @click="goQy"
|
|
|
v-if="!userInfo.uid || (userInfo.uid && userInfo.uid != uid)"></image>
|
|
v-if="!userInfo.uid || (userInfo.uid && userInfo.uid != uid)"></image>
|
|
@@ -107,7 +115,8 @@
|
|
|
likeAndBookmark
|
|
likeAndBookmark
|
|
|
} from '@/api/model.js'
|
|
} from '@/api/model.js'
|
|
|
import {
|
|
import {
|
|
|
- getUser
|
|
|
|
|
|
|
+ getUser,
|
|
|
|
|
+ getHonor
|
|
|
} from '@/api/user.js';
|
|
} from '@/api/user.js';
|
|
|
import {
|
|
import {
|
|
|
saveUrl,
|
|
saveUrl,
|
|
@@ -120,6 +129,7 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ honor_list: [],
|
|
|
mtype: 1, //modelid
|
|
mtype: 1, //modelid
|
|
|
shareId: '', //保存分享uid
|
|
shareId: '', //保存分享uid
|
|
|
// 默认显示数据
|
|
// 默认显示数据
|
|
@@ -139,6 +149,7 @@
|
|
|
},
|
|
},
|
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
|
const that = this;
|
|
const that = this;
|
|
|
|
|
+ that.getHonor(opt.uid)
|
|
|
// #ifndef MP
|
|
// #ifndef MP
|
|
|
if (opt.spread) {
|
|
if (opt.spread) {
|
|
|
// 存储其他邀请人
|
|
// 存储其他邀请人
|
|
@@ -282,6 +293,17 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
...mapMutations('user', ['setUserInfo']),
|
|
...mapMutations('user', ['setUserInfo']),
|
|
|
|
|
+ showDk(num=0) {
|
|
|
|
|
+ this.$api.msg('总打卡' + num + '次')
|
|
|
|
|
+ },
|
|
|
|
|
+ getHonor(uid) {
|
|
|
|
|
+ getHonor({
|
|
|
|
|
+ uid
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ console.log(res,'res');
|
|
|
|
|
+ this.honor_list = res.data.honor_list
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
goQy() {
|
|
goQy() {
|
|
|
getUser().then(res => {
|
|
getUser().then(res => {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|