|
@@ -1,5 +1,14 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="self-card" :style="{'--height': tovw(+CustomBar+10)}">
|
|
<view class="self-card" :style="{'--height': tovw(+CustomBar+10)}">
|
|
|
|
|
+ <view class="footer" :style="{ height: (tovw(CustomBar).replace('vw',''))*375 / 100+'px'}" style="background: linear-gradient( 225deg, #F43A50 0%, #C30D23 100%);top: 0;">
|
|
|
|
|
+ <view class="custom" :style="{ height: (tovw(Custom.height).replace('vw',''))*375 / 100+'px', top:(tovw(Custom.top).replace('vw',''))*375 / 100+'px' }">
|
|
|
|
|
+ <view v-if="userInfo.name">{{userInfo.name}}的名片</view>
|
|
|
|
|
+ <view v-else>暂无信息</view>
|
|
|
|
|
+ <view class="back" :style="{ lineHeight: (tovw(Custom.height).replace('vw',''))*375 / 100+'px' }" @click="onBack">
|
|
|
|
|
+ <text class=" iconfont icon-a-wodetiaozhuan" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
<view class="head" :style="[{ height: tovw(+CustomBar+184) }]" style="background: linear-gradient( 225deg, #F43A50 0%, #C30D23 100%)">
|
|
<view class="head" :style="[{ height: tovw(+CustomBar+184) }]" style="background: linear-gradient( 225deg, #F43A50 0%, #C30D23 100%)">
|
|
|
<view class="custom" :style="{ height: tovw(Custom.height), top: tovw(Custom.top - 3) }">
|
|
<view class="custom" :style="{ height: tovw(Custom.height), top: tovw(Custom.top - 3) }">
|
|
|
<view v-if="userInfo.name">{{userInfo.name}}的名片</view>
|
|
<view v-if="userInfo.name">{{userInfo.name}}的名片</view>
|
|
@@ -91,7 +100,7 @@
|
|
|
<view class="image-box">
|
|
<view class="image-box">
|
|
|
<text class="title-min">照片墙</text>
|
|
<text class="title-min">照片墙</text>
|
|
|
<block v-if="userInfo.images.length">
|
|
<block v-if="userInfo.images.length">
|
|
|
- <view class="image" v-for="item in userInfo.images" :key="item.attachmentid">
|
|
|
|
|
|
|
+ <view class="image" v-for="item in userInfo.images" :key="item.attachmentid" @click="preview(item.url)">
|
|
|
<u--image width="100%" :lazy-load="true" :src="item.url" radius="5"></u--image>
|
|
<u--image width="100%" :lazy-load="true" :src="item.url" radius="5"></u--image>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
@@ -125,6 +134,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import contact from "../../components/contact"
|
|
import contact from "../../components/contact"
|
|
|
|
|
+import { viewImage } from "../../utils/settleFiles.js"
|
|
|
export default {
|
|
export default {
|
|
|
components:{contact},
|
|
components:{contact},
|
|
|
data () {
|
|
data () {
|
|
@@ -137,6 +147,9 @@ export default {
|
|
|
computed: {
|
|
computed: {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ preview (url) {
|
|
|
|
|
+ viewImage(url)
|
|
|
|
|
+ },
|
|
|
goEditPage () {
|
|
goEditPage () {
|
|
|
this.$Http.editUser = function (id){
|
|
this.$Http.editUser = function (id){
|
|
|
this.getuserInfo (id)
|
|
this.getuserInfo (id)
|
|
@@ -511,8 +524,28 @@ export default {
|
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
|
box-shadow: 0px -2px 6px 1px rgba(0, 0, 0, 0.16);
|
|
box-shadow: 0px -2px 6px 1px rgba(0, 0, 0, 0.16);
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
- z-index: 9999;
|
|
|
|
|
- padding: 10px;
|
|
|
|
|
|
|
+ z-index: 9;
|
|
|
|
|
+ padding: 5px 10px;
|
|
|
|
|
+ .custom {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ width: 100vw;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ font-size: 17px;
|
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
|
+
|
|
|
|
|
+ .back {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ padding: 0 10px;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ transform: rotateY(180deg);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
.but {
|
|
.but {
|
|
|
width: 355px;
|
|
width: 355px;
|
|
|
height: 45px;
|
|
height: 45px;
|