|
@@ -1,83 +1,20 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <view class="card-list content1">
|
|
|
- <view class="row" v-for="(item,index) in cardList" :key="index">
|
|
|
- <view class="title-name">
|
|
|
- {{item.cardBusiness}}
|
|
|
- </view>
|
|
|
- <view class="card-list-item"
|
|
|
- :style="item.currentBackground?'background:url('+item.currentBackground+');background-size:100% 100%':''">
|
|
|
- <view class="card-content style1" v-if="item.cuttentTemplate==1">
|
|
|
- <view class="left">
|
|
|
- <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
|
|
|
- shape="circle"></u--image>
|
|
|
- </view>
|
|
|
- <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">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
|
|
|
- height="16px"></u--image>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
- </view>
|
|
|
- <view class="row4 flex">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
|
|
|
- height="13px"></u--image>{{ item.phone }}
|
|
|
- </view>
|
|
|
- <view class="row4 flex">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
|
|
|
- height="12px"></u--image>{{item.remark?item.remark:'单击添加备注'}}
|
|
|
- </view>
|
|
|
- <!-- <view class="">
|
|
|
- 备注
|
|
|
- </view> -->
|
|
|
- </view>
|
|
|
+ <u-loading-page loading-mode='spinner' image="/static/imgs/logo.png" iconSize='60' :loading='loading'></u-loading-page>
|
|
|
+ <view v-show='!loading'>
|
|
|
+ <view class="card-list content1">
|
|
|
+ <view class="row" v-for="(item,index) in cardList" :key="index">
|
|
|
+ <view class="title-name">
|
|
|
+ {{item.cardBusiness}}
|
|
|
</view>
|
|
|
- <view class="card-content style1 flex-between" v-if="item.cuttentTemplate==2">
|
|
|
- <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">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/address3.png" width="13px"
|
|
|
- height="16px"></u--image>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
- </view>
|
|
|
- <view class="row4 flex">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/phone3.png" width="12px"
|
|
|
- height="13px"></u--image>{{ item.phone }}
|
|
|
- </view>
|
|
|
- <view class="row4 flex">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/remark3.png" width="10px"
|
|
|
- height="12px"></u--image>{{item.remark?item.remark:'单击添加备注'}}
|
|
|
- </view>
|
|
|
- <!-- <view class="">
|
|
|
- 备注
|
|
|
- </view> -->
|
|
|
- </view>
|
|
|
- <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="card-content style2" v-if="item.cuttentTemplate==3">
|
|
|
- <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="card-list-item"
|
|
|
+ :style="item.currentBackground?'background:url('+item.currentBackground+');background-size:100% 100%':''">
|
|
|
+ <view class="card-content style1" v-if="item.cuttentTemplate==1">
|
|
|
<view class="left">
|
|
|
+ <u--image :showLoading="true" :src="item.headSculpture" width="66px" height="66px"
|
|
|
+ shape="circle"></u--image>
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
<view class="row1">
|
|
|
<text class="name">{{item.name}}</text>
|
|
|
<text class="post">{{item.post}}</text>
|
|
@@ -85,101 +22,174 @@
|
|
|
<view class="row2">
|
|
|
{{item.companyName}}
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="right">
|
|
|
<view class="row3 flex">
|
|
|
<u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
|
|
|
- height="16px"></u--image>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
+ height="16px"></u--image> <view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
|
|
|
</view>
|
|
|
<view class="row4 flex">
|
|
|
<u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
|
|
|
- height="13px"></u--image>{{ item.phone }}
|
|
|
+ height="13px"></u--image><view class='icon-text'>{{ item.phone }}</view>
|
|
|
</view>
|
|
|
<view class="row4 flex">
|
|
|
<u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
|
|
|
- height="12px"></u--image>{{item.remark?item.remark:'单击添加备注'}}
|
|
|
+ height="12px"></u--image><view class='icon-text'>{{item.remark?item.remark:'--'}}</view>
|
|
|
</view>
|
|
|
+ <!-- <view class="">
|
|
|
+ 备注
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="card-content style2" v-if="item.cuttentTemplate==4">
|
|
|
- <view class="top">
|
|
|
- <view class="row1">
|
|
|
- <text class="name">{{item.name}}</text>
|
|
|
- <text class="post">{{item.post}}</text>
|
|
|
+ <view class="card-content style1 flex-between" v-if="item.cuttentTemplate==2">
|
|
|
+ <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">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/address3.png" width="13px"
|
|
|
+ height="16px"></u--image><view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="row4 flex">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/phone3.png" width="12px"
|
|
|
+ height="13px"></u--image><view class='icon-text'>{{ item.phone }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="row4 flex">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/remark3.png" width="10px"
|
|
|
+ height="12px"></u--image><view class='icon-text'>{{item.remark?item.remark:'--'}}</view>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="">
|
|
|
+ 备注
|
|
|
+ </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="bottom flex">
|
|
|
- <view class="left">
|
|
|
+ <view class="card-content style2" v-if="item.cuttentTemplate==3">
|
|
|
+ <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="right">
|
|
|
- <view class="row3 flex">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/address2.png" width="13px"
|
|
|
- height="16px"></u--image>{{ item.province }}{{ item.city }}{{ item.area }}
|
|
|
- </view>
|
|
|
- <view class="row4 flex">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/phone2.png" width="12px"
|
|
|
- height="13px"></u--image>{{ item.phone }}
|
|
|
+ <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="row4 flex">
|
|
|
- <u--image :showLoading="true" src="/static/imgs/card/remark2.png" width="10px"
|
|
|
- height="12px"></u--image>{{item.remark?item.remark:'单击添加备注'}}
|
|
|
+ <view class="right">
|
|
|
+ <view class="row3 flex">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
|
|
|
+ height="16px"></u--image><view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="row4 flex">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
|
|
|
+ height="13px"></u--image><view class='icon-text'>{{ item.phone }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="row4 flex">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
|
|
|
+ height="12px"></u--image><view class='icon-text'>{{item.remark?item.remark:'--'}}</view>
|
|
|
+ </view>
|
|
|
</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 class="card-content style2" v-if="item.cuttentTemplate==4">
|
|
|
+ <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="row3 flex">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/address2.png" width="13px"
|
|
|
+ height="16px"></u--image><view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="row4 flex">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/phone2.png" width="12px"
|
|
|
+ height="13px"></u--image><view class='icon-text'>{{ item.phone }}</view>
|
|
|
+ </view>
|
|
|
+ <view class="row4 flex">
|
|
|
+ <u--image :showLoading="true" src="/static/imgs/card/remark2.png" width="10px"
|
|
|
+ height="12px"></u--image><view class='icon-text'>{{item.remark?item.remark:'--'}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <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 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 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>
|
|
|
+ <!-- <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>
|
|
|
- <!-- <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="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 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>
|
|
|
+
|
|
|
+
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
- <u-popup :show="isShowDel" @close="isShowDel=false" mode="center">
|
|
|
+ <u-popup :round='10' :show="isShowDel" @close="isShowDel=false" mode="center">
|
|
|
<view class="del-style">
|
|
|
<text class="title">删除名片自动退出关联得圈子,确定删除?</text>
|
|
|
- <u-radio-group v-model="radiovalue" placement="column">
|
|
|
- <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in radiolist" :key="index"
|
|
|
- :label="item.name" :name="item.name" @change="radioChange">
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- <view class="flex">
|
|
|
- <view class="" @click="isShowDel=false">
|
|
|
+ <view class="">
|
|
|
+ <view @click='radiovalue=1' class="flex align-item-center radio-wrap">
|
|
|
+ <image style='width:13px;height:13px;margin-right:10rpx;' :src="radiovalue==1?'../../static/imgs/mySet/checked.png':'../../static/imgs/mySet/not-checked.png'" mode=""></image>
|
|
|
+ <view class="">仅从自己名片列表删除</view>
|
|
|
+ </view>
|
|
|
+ <view @click='radiovalue=2' class="flex align-item-center radio-wrap">
|
|
|
+ <image style='width:13px;height:13px;margin-right:10rpx;' :src="radiovalue==2?'../../static/imgs/mySet/checked.png':'../../static/imgs/mySet/not-checked.png'" mode=""></image>
|
|
|
+ <view class="">从所有拥有此名片用户列表删除</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="flex footer">
|
|
|
+ <view class="cancel" @click="isShowDel=false">
|
|
|
取消
|
|
|
</view>
|
|
|
- <view class="" @click="delCard">
|
|
|
+ <view class="confirm" @click="delCard">
|
|
|
删除
|
|
|
</view>
|
|
|
</view>
|
|
@@ -230,16 +240,8 @@
|
|
|
id: '',
|
|
|
showShare:false,
|
|
|
popupshow:false,
|
|
|
- radiovalue: '仅从自己名片列表删除',
|
|
|
- radiolist: [{
|
|
|
- name: '仅从自己名片列表删除',
|
|
|
- disabled: false
|
|
|
- },
|
|
|
- {
|
|
|
- name: '从所有拥有此名片用户列表删除',
|
|
|
- disabled: false
|
|
|
- }
|
|
|
- ],
|
|
|
+ radiovalue: 1,
|
|
|
+ loading:true,
|
|
|
isShowDel: false,
|
|
|
cardList: [],
|
|
|
canvasData:{},
|
|
@@ -621,6 +623,7 @@
|
|
|
console.log('radioChange', n);
|
|
|
},
|
|
|
init() {
|
|
|
+ var that = this
|
|
|
this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
|
|
|
commonId: this.userInfo.id
|
|
|
}, failres => {
|
|
@@ -631,6 +634,9 @@
|
|
|
uni.hideLoading()
|
|
|
}).then(res => {
|
|
|
this.cardList = res.data.items
|
|
|
+ setTimeout(()=>{
|
|
|
+ that.loading=false
|
|
|
+ },1500)
|
|
|
})
|
|
|
},
|
|
|
toEditCard(val) {
|
|
@@ -640,7 +646,7 @@
|
|
|
},
|
|
|
delCard() {
|
|
|
let _data = {}
|
|
|
- if (this.radiovalue == '仅从自己名片列表删除') {
|
|
|
+ if (this.radiovalue == 1) {
|
|
|
_data = {
|
|
|
id: this.id
|
|
|
}
|
|
@@ -708,11 +714,14 @@
|
|
|
}
|
|
|
|
|
|
.content1 {
|
|
|
+ .icon-text{
|
|
|
+ margin-left:10rpx;
|
|
|
+ }
|
|
|
.style1 {
|
|
|
display: flex;
|
|
|
padding: 20rpx 30rpx;
|
|
|
width: 85%;
|
|
|
- margin-bottom: 90rpx;
|
|
|
+ margin-bottom: 70rpx;
|
|
|
|
|
|
.left {
|
|
|
width: 132rpx;
|
|
@@ -745,7 +754,7 @@
|
|
|
color: #323333;
|
|
|
}
|
|
|
|
|
|
- .row3 {
|
|
|
+ .row3,.row4 {
|
|
|
margin-top: 30rpx;
|
|
|
font-size: 24rpx;
|
|
|
font-weight: 500;
|
|
@@ -757,7 +766,7 @@
|
|
|
|
|
|
.style2 {
|
|
|
padding: 30rpx;
|
|
|
- margin-bottom: 100rpx;
|
|
|
+ margin-bottom: 70rpx;
|
|
|
|
|
|
.top {
|
|
|
.row1 {
|
|
@@ -781,10 +790,11 @@
|
|
|
font-weight: bold;
|
|
|
color: #323333;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.bottom {
|
|
|
- margin-top: 48rpx;
|
|
|
+ margin-top: 20rpx;
|
|
|
|
|
|
.left {
|
|
|
margin-right: 40rpx;
|
|
@@ -824,6 +834,13 @@
|
|
|
.row2 {
|
|
|
margin-top: 20rpx;
|
|
|
}
|
|
|
+ .row3,.row4 {
|
|
|
+ margin-top: 30rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #323333;
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -947,4 +964,39 @@
|
|
|
font-size:50px;
|
|
|
color:#33CC00;
|
|
|
}
|
|
|
+ .del-style{
|
|
|
+ padding:40rpx 40rpx 80rpx 40rpx;
|
|
|
+ font-size:32rpx;
|
|
|
+ position:relative;
|
|
|
+ .title{
|
|
|
+ color:#1A1A1A;
|
|
|
+ font-size:32rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .radio-wrap{
|
|
|
+ padding:23rpx;
|
|
|
+ border-radius:10rpx;
|
|
|
+ background:#F5F5F5;
|
|
|
+ margin:20rpx 0;
|
|
|
+ }
|
|
|
+ .cancel,.confirm{
|
|
|
+ width: 50%;
|
|
|
+ text-align: center;
|
|
|
+ padding: 35rpx 0;
|
|
|
+ border-top: 1px solid #ccc;
|
|
|
+ font-size:36rpx;
|
|
|
+ }
|
|
|
+ .footer{
|
|
|
+ position: absolute;
|
|
|
+ bottom: -33px;
|
|
|
+ width: 100%;
|
|
|
+ left: 0;
|
|
|
+ }
|
|
|
+ .cancel{
|
|
|
+ border-right: 1px solid #ccc;
|
|
|
+ }
|
|
|
+ .confirm{
|
|
|
+ color:#4977FC;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|