ソースを参照

修改圈子详情、名片夹 名片样式

achao 2 年 前
コミット
7bda5803a9

+ 12 - 12
xiaochengxu/pages/cardHolder/cardHolder.vue

@@ -59,17 +59,17 @@
 									{{item.companyName}}
 								</view>
 								<view class="row3 flex" @click="toMap(item)">
-									<u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
+									<u--image :showLoading="true" :src="'/static/imgs/card/address'+item.icon+'.png'" width="13px"
 										height="16px"></u--image>
 									<view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
 								</view>
 								<view @click="freeTell(item)" class="row4 flex">
-									<u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
+									<u--image :showLoading="true" :src="'/static/imgs/card/phone'+item.icon+'.png'" width="12px"
 										height="13px"></u--image>
 									<view class='icon-text'>{{ item.phone }}</view>
 								</view>
 								<view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
-									<u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
+									<u--image :showLoading="true" :src="'/static/imgs/card/remark'+item.icon+'.png'" width="10px"
 										height="12px"></u--image>
 									<view class='icon-text' style="color: #808080;">{{item.remark?item.remark:'单击添加备注'}}
 									</view>
@@ -92,17 +92,17 @@
 									{{item.companyName}}
 								</view>
 								<view @click="toMap(item)" class="row3 flex">
-									<u--image :showLoading="true" src="/static/imgs/card/address3.png" width="13px"
+									<u--image :showLoading="true" :src="'/static/imgs/card/address'+item.icon+'.png'" width="13px"
 										height="16px"></u--image>
 									<view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
 								</view>
 								<view @click="freeTell(item)" class="row4 flex">
-									<u--image :showLoading="true" src="/static/imgs/card/phone3.png" width="12px"
+									<u--image :showLoading="true" :src="'/static/imgs/card/phone'+item.icon+'.png'" width="12px"
 										height="13px"></u--image>
 									<view class='icon-text'>{{ item.phone }}</view>
 								</view>
 								<view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
-									<u--image :showLoading="true" src="/static/imgs/card/remark3.png" width="10px"
+									<u--image :showLoading="true" :src="'/static/imgs/card/remark'+item.icon+'.png'" width="10px"
 										height="12px"></u--image>
 									<view class='icon-text' style="color: #808080;">{{item.remark?item.remark:'单击添加备注'}}
 									</view>
@@ -140,17 +140,17 @@
 								</view>
 								<view class="right">
 									<view @click="toMap(item)" class="row1 flex">
-										<u--image :showLoading="true" src="/static/imgs/card/address1.png" width="13px"
+										<u--image :showLoading="true" :src="'/static/imgs/card/address'+item.icon+'.png'" width="13px"
 											height="16px"></u--image>
 										<view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
 									</view>
 									<view @click="freeTell(item)" class="row2 flex">
-										<u--image :showLoading="true" src="/static/imgs/card/phone1.png" width="12px"
+										<u--image :showLoading="true" :src="'/static/imgs/card/phone'+item.icon+'.png'" width="12px"
 											height="13px"></u--image>
 										<view class='icon-text'>{{ item.phone }}</view>
 									</view>
 									<view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
-										<u--image :showLoading="true" src="/static/imgs/card/remark1.png" width="10px"
+										<u--image :showLoading="true" :src="'/static/imgs/card/remark'+item.icon+'.png'" width="10px"
 											height="12px"></u--image>
 										<view class='icon-text' style="color: #808080;">
 											{{item.remark?item.remark:'单击添加备注'}}
@@ -185,17 +185,17 @@
 								</view>
 								<view class="right">
 									<view @click="toMap(item)" class="row1 flex">
-										<u--image :showLoading="true" src="/static/imgs/card/address2.png" width="13px"
+										<u--image :showLoading="true" :src="'/static/imgs/card/address'+item.icon+'.png'" width="13px"
 											height="16px"></u--image>
 										<view class='icon-text'>{{ item.province }}{{ item.city }}{{ item.area }}</view>
 									</view>
 									<view @click="freeTell(item)" class="row2 flex">
-										<u--image :showLoading="true" src="/static/imgs/card/phone2.png" width="12px"
+										<u--image :showLoading="true" :src="'/static/imgs/card/phone'+item.icon+'.png'" width="12px"
 											height="13px"></u--image>
 										<view class='icon-text'>{{ item.phone }}</view>
 									</view>
 									<view @click='remarkEdit(item)' class="row2 flex" style="color: #808080">
-										<u--image :showLoading="true" src="/static/imgs/card/remark2.png" width="10px"
+										<u--image :showLoading="true" :src="'/static/imgs/card/remark'+item.icon+'.png'" width="10px"
 											height="12px"></u--image>
 										<view :style='item.remark?"color:#000;":"color:#808080;"' class='icon-text'>
 											{{item.remark?item.remark:'单击添加备注'}}

+ 9 - 4
xiaochengxu/pages/circle/detail.vue

@@ -325,6 +325,11 @@
 					// this.makeData(res.data)
 					if (page.num == 1) this.changeCardList = []; //如果是第一页需手动置空列表
 					this.changeCardList = this.changeCardList.concat(curPageData); //追加新数据
+					for(let i = 0;i<this.changeCardList.length;i++){
+						if(this.changeCardList[i].scopeOfBusiness&&this.changeCardList[i].scopeOfBusiness.length>90){
+							 this.changeCardList[i].scopeOfBusiness = this.changeCardList[i].scopeOfBusiness.substr(0,90) + '...' ;
+						}
+					}
 				})
 			},
 			async upCallback(page) {
@@ -488,8 +493,7 @@
 		border-radius: 30rpx;
 		background: red;
 		box-sizing: border-box;
-		margin: 0 20rpx 20rpx 20rpx;
-		height:381rpx;
+		height:400rpx;
 		.item {
 			align-items: flex-start;
 			padding: 34rpx 40rpx 0 40rpx;
@@ -527,7 +531,8 @@
 		}
 
 		.bottom {
-			padding: 20rpx 40rpx 40rpx 40rpx;
+			padding: 20rpx 60rpx 0rpx 60rpx;
+			font-size: 26rpx;
 		}
 
 		.btn {
@@ -539,7 +544,7 @@
 			border-radius: 32rpx;
 			position: absolute;
 			top: 35rpx;
-			right: 23rpx;
+			right: 40rpx;
 
 
 		}