|
@@ -1,65 +1,147 @@
|
|
<template>
|
|
<template>
|
|
<view class="content">
|
|
<view class="content">
|
|
- <view class="card-list">
|
|
|
|
|
|
+ <view class="card-list content1">
|
|
<view class="row" v-for="(item,index) in cardList" :key="index">
|
|
<view class="row" v-for="(item,index) in cardList" :key="index">
|
|
<view class="title-name">
|
|
<view class="title-name">
|
|
{{item.cardBusiness}}
|
|
{{item.cardBusiness}}
|
|
</view>
|
|
</view>
|
|
- <view class="flex card-list-item">
|
|
|
|
- <view class="left">
|
|
|
|
- <view class="top flex-row-center">
|
|
|
|
- <image :src="item.headSculpture" mode="widthFix" class="img"></image>
|
|
|
|
|
|
+ <view class="card-list-item" :style="'background:url('+item.currentBackground+');background-size:100% 100%'">
|
|
|
|
+ <view class="card-content style1" v-if="item.cuttentTemplate==0">
|
|
|
|
+ <view class="left">
|
|
|
|
+ <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px" shape="circle"></u--image>
|
|
</view>
|
|
</view>
|
|
- <view class="bottom flex flex-evenly">
|
|
|
|
- <uni-icons type="home" size="20" @click="toHome(item)"></uni-icons>
|
|
|
|
- <uni-icons type="home" size="20"></uni-icons>
|
|
|
|
- <uni-icons type="redo" size="20"></uni-icons>
|
|
|
|
|
|
+ <view class="right">
|
|
|
|
+ <view class="row1">
|
|
|
|
+ <text class="name">{{item.name}}</text>
|
|
|
|
+ <text class="post">{{item.post}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row2">
|
|
|
|
+ {{item.companyName}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row3 flex">
|
|
|
|
+ <uni-icons type="map-filled" size="20" style="margin-right: 20rpx;" color="#5e6d82"></uni-icons>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row4 flex">
|
|
|
|
+ <uni-icons type="phone-filled" size="20" style="margin-right: 20rpx;" color="#5e6d82"></uni-icons>{{ item.phone }}
|
|
|
|
+ </view>
|
|
|
|
+ <!-- <view class="">
|
|
|
|
+ 备注
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="right">
|
|
|
|
- <view class="row1 flex">
|
|
|
|
- <text>{{item.name}}</text>
|
|
|
|
- <text class="line"></text>
|
|
|
|
- <text>{{item.post}}</text>
|
|
|
|
|
|
+ <view class="card-content style1 flex-between" v-if="item.cuttentTemplate==1">
|
|
|
|
+ <view class="right">
|
|
|
|
+ <view class="row1">
|
|
|
|
+ <text class="name">{{item.name}}</text>
|
|
|
|
+ <text class="post">{{item.post}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row2">
|
|
|
|
+ {{item.companyName}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row3 flex">
|
|
|
|
+ <uni-icons type="map-filled" size="20" style="margin-right: 20rpx;" color="#5e6d82"></uni-icons>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row4 flex">
|
|
|
|
+ <uni-icons type="phone-filled" size="20" style="margin-right: 20rpx;" color="#5e6d82"></uni-icons>{{ item.phone }}
|
|
|
|
+ </view>
|
|
|
|
+ <!-- <view class="">
|
|
|
|
+ 备注
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
- <view class="row2">
|
|
|
|
- {{item.companyName}}
|
|
|
|
|
|
+ <view class="left">
|
|
|
|
+ <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px" shape="circle" v-if="item.headSculpture"></u--image>
|
|
|
|
+ <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px" height="66px" shape="circle" v-else></u--image>
|
|
</view>
|
|
</view>
|
|
- <view class="row3" @click="toMap">
|
|
|
|
- <uni-icons type="redo" size="20"></uni-icons>
|
|
|
|
- <text>{{item.province}}{{item.city}}{{item.area}}{{item.detailedAddress}}</text>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <view class="card-content style2" v-if="item.cuttentTemplate==2">
|
|
|
|
+ <view class="top">
|
|
|
|
+ <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px" shape="circle" v-if="item.headSculpture"></u--image>
|
|
|
|
+ <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px" height="66px" shape="circle" v-else></u--image>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="bottom flex">
|
|
|
|
+ <view class="left">
|
|
|
|
+ <view class="row1">
|
|
|
|
+ <text class="name">{{item.name}}</text>
|
|
|
|
+ <text class="post">{{item.post}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row2">
|
|
|
|
+ {{item.companyName}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="right">
|
|
|
|
+ <view class="row1 flex">
|
|
|
|
+ <uni-icons type="map-filled" size="20" style="margin-right: 20rpx;" color="#5e6d82"></uni-icons>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row2 flex">
|
|
|
|
+ <uni-icons type="phone-filled" size="20" style="margin-right: 20rpx;" color="#5e6d82"></uni-icons>{{ item.phone }}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="card-content style2" v-if="item.cuttentTemplate==3">
|
|
|
|
+ <view class="top">
|
|
|
|
+ <view class="row1">
|
|
|
|
+ <text class="name">{{item.name}}</text>
|
|
|
|
+ <text class="post">{{item.post}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row2">
|
|
|
|
+ {{item.companyName}}
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ <view class="bottom flex">
|
|
|
|
+ <view class="left">
|
|
|
|
+ <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px" shape="circle" v-if="item.headSculpture"></u--image>
|
|
|
|
+ <u--image :showLoading="true" src="/./../static/imgs/card/defaulthead.png" width="66px" height="66px" shape="circle" v-else></u--image>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="right">
|
|
|
|
+ <view class="row1 flex">
|
|
|
|
+ <uni-icons type="map-filled" size="20" style="margin-right: 20rpx;" color="#5e6d82"></uni-icons>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row2 flex">
|
|
|
|
+ <uni-icons type="phone-filled" size="20" style="margin-right: 20rpx;" color="#5e6d82"></uni-icons>{{ item.phone }}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="car-bottom flex">
|
|
|
|
+ <view class="left">
|
|
|
|
+ <image src="../../static/imgs/card/home.png" mode="widthFix" style="width: 32rpx;" @click="toHome(item)"></image>
|
|
|
|
+ <image src="../../static/imgs/card/share.png" mode="widthFix" style="width: 35rpx;" @click="share(item)"></image>
|
|
|
|
+ <image src="../../static/imgs/card/ewm.png" mode="widthFix" style="width: 32rpx;" @click="showCode(item)"></image>
|
|
</view>
|
|
</view>
|
|
- <view class="row3">
|
|
|
|
- <uni-icons type="redo" size="20"></uni-icons>
|
|
|
|
- <text>{{item.phone}}</text>
|
|
|
|
|
|
+ <view class="right">
|
|
|
|
+ <text class="text" @click="topMarking(item)">置顶</text>
|
|
|
|
+ <text class="text" @click="del(item.id)">删除</text>
|
|
|
|
+ <text class="text" @click="toEditCard(item)">编辑</text>
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- <u-button text="置顶" @click="topMarking(item)" throttle-time='1000'></u-button> -->
|
|
|
|
+ <!-- <button @click="$u.debounce(topMarking, 500)">置顶</button> -->
|
|
|
|
+ <!-- <button @click="$u.debounce(topMarking(item), 500)">置顶</button> -->
|
|
|
|
+ <!-- <u-button text="删除" @click="del(item.id)" throttle-time='1000'></u-button> -->
|
|
|
|
+ <!-- <button @click="toEditCard(item)">编辑</button> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="car-bottom flex">
|
|
|
|
- <u-button text="置顶" @click="topMarking(item)" throttle-time='1000'></u-button>
|
|
|
|
- <!-- <button @click="$u.debounce(topMarking, 500)">置顶</button> -->
|
|
|
|
- <!-- <button @click="$u.debounce(topMarking(item), 500)">置顶</button> -->
|
|
|
|
- <u-button text="删除" @click="del(item.id)" throttle-time='1000'></u-button>
|
|
|
|
- <button @click="toEditCard(item)">编辑</button>
|
|
|
|
- </view>
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="upload">
|
|
|
|
- <view class="solids" @click="addCard">
|
|
|
|
- <text class=''>添加新名片</text>
|
|
|
|
|
|
+ <view class="upload flex flex-all-center" @click="addCard">
|
|
|
|
+ <view class="solids flex flex-all-center">
|
|
|
|
+ <image src="../../static/imgs/card/add.png" mode="widthFix" style="width: 148rpx;"></image>
|
|
|
|
+ <text class='text'>添加新名片</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-popup :show="isShowDel" @close="isShowDel=false" mode="center">
|
|
<u-popup :show="isShowDel" @close="isShowDel=false" mode="center">
|
|
- <view>
|
|
|
|
- <text>删除名片自动退出关联得圈子,确定删除?</text>
|
|
|
|
|
|
+ <view class="del-style">
|
|
|
|
+ <text class="title">删除名片自动退出关联得圈子,确定删除?</text>
|
|
<u-radio-group v-model="radiovalue" placement="column">
|
|
<u-radio-group v-model="radiovalue" placement="column">
|
|
<u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist" :key="index"
|
|
<u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist" :key="index"
|
|
:label="item.name" :name="item.name" @change="radioChange">
|
|
:label="item.name" :name="item.name" @change="radioChange">
|
|
</u-radio>
|
|
</u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
<view class="flex">
|
|
<view class="flex">
|
|
- <view class="">
|
|
|
|
|
|
+ <view class="" @click="isShowDel=false">
|
|
取消
|
|
取消
|
|
</view>
|
|
</view>
|
|
<view class="" @click="delCard">
|
|
<view class="" @click="delCard">
|
|
@@ -99,6 +181,13 @@
|
|
this.init()
|
|
this.init()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+
|
|
|
|
+ showCode(val){
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ share(){
|
|
|
|
+
|
|
|
|
+ },
|
|
toHome(item){
|
|
toHome(item){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: "/pages/mySet/myHome?id="+item.personalHomeId
|
|
url: "/pages/mySet/myHome?id="+item.personalHomeId
|
|
@@ -186,12 +275,161 @@
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+ .content{
|
|
|
|
+ padding-bottom: 40rpx;
|
|
|
|
+ }
|
|
|
|
+ .card-content{
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
|
|
+ .content1{
|
|
|
|
+ .style1{
|
|
|
|
+ display: flex;
|
|
|
|
+ padding: 20rpx 30rpx;
|
|
|
|
+ width: 85%;
|
|
|
|
+ margin-bottom: 90rpx;
|
|
|
|
+ .left{
|
|
|
|
+ width: 132rpx;
|
|
|
|
+ height: 132rpx;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ }
|
|
|
|
+ .right{
|
|
|
|
+ margin-left: 40rpx;
|
|
|
|
+ .row1{
|
|
|
|
+ .name{
|
|
|
|
+ font-size: 38rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #040000;
|
|
|
|
+ margin-right: 20rpx;
|
|
|
|
+ }
|
|
|
|
+ .post{
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #666666;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .row2{
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #323333;
|
|
|
|
+ }
|
|
|
|
+ .row3{
|
|
|
|
+ margin-top: 30rpx;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #323333;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .style2{
|
|
|
|
+ padding:30rpx;
|
|
|
|
+ margin-bottom: 100rpx;
|
|
|
|
+ .top{
|
|
|
|
+ .row1{
|
|
|
|
+ .name{
|
|
|
|
+ font-size: 38rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #040000;
|
|
|
|
+ margin-right: 20rpx;
|
|
|
|
+ }
|
|
|
|
+ .post{
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #666666;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .row2{
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #323333;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .bottom{
|
|
|
|
+ margin-top: 48rpx;
|
|
|
|
+ .left{
|
|
|
|
+ margin-right: 40rpx;
|
|
|
|
+ .row1{
|
|
|
|
+ .name{
|
|
|
|
+ font-size: 38rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #040000;
|
|
|
|
+ margin-right: 20rpx;
|
|
|
|
+ }
|
|
|
|
+ .post{
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #666666;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .row2{
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #323333;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .right{
|
|
|
|
+ .row1,.row2{
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #323333;
|
|
|
|
+ }
|
|
|
|
+ .row2{
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .card-list{
|
|
|
|
+ padding:0 20rpx;
|
|
|
|
+ .title-name{
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #19191A;
|
|
|
|
+ margin: 20rpx 0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.card-list-item {
|
|
.card-list-item {
|
|
- border: 1px solid #ccc;
|
|
|
|
|
|
+ width: calc(100% + 40rpx);
|
|
|
|
+ left:-20rpx;
|
|
|
|
+ position: relative;
|
|
border-radius: 30rpx;
|
|
border-radius: 30rpx;
|
|
padding: 40rpx;
|
|
padding: 40rpx;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
-
|
|
|
|
|
|
+ .car-bottom{
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 20rpx;
|
|
|
|
+ left:20rpx;
|
|
|
|
+ width: calc(100% - 40rpx);
|
|
|
|
+ .left{
|
|
|
|
+ position: absolute;
|
|
|
|
+ padding: 20rpx 0;
|
|
|
|
+ width: 310rpx;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-evenly;
|
|
|
|
+ background: url("../../static/imgs/card/bgc1.png") no-repeat center;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ }
|
|
|
|
+ .right{
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ padding: 20rpx 0;
|
|
|
|
+ position: relative;
|
|
|
|
+ right: -280rpx;
|
|
|
|
+ width: calc(100vw - 320rpx);
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-evenly;
|
|
|
|
+ background: url("../../static/imgs/card/bgc2.png") no-repeat center;
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ .text{
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.left {
|
|
.left {
|
|
width: 30%;
|
|
width: 30%;
|
|
|
|
|
|
@@ -218,4 +456,20 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .upload{
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ margin: 20rpx;
|
|
|
|
+ border-radius: 20rpx;
|
|
|
|
+ padding: 76rpx;
|
|
|
|
+ .solids{
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ .text{
|
|
|
|
+ margin-top: 20rpx;
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #666666;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|