|
@@ -10,21 +10,16 @@
|
|
|
</NavBar>
|
|
</NavBar>
|
|
|
<!-- 名片轮播 -->
|
|
<!-- 名片轮播 -->
|
|
|
<view class="page-top" :class="{activeCard:pageIn}">
|
|
<view class="page-top" :class="{activeCard:pageIn}">
|
|
|
- <swiper
|
|
|
|
|
- class="card-swiper"
|
|
|
|
|
- :current="currentIndex"
|
|
|
|
|
- @change="onSwiperChange"
|
|
|
|
|
- circular
|
|
|
|
|
- :indicator-dots="false"
|
|
|
|
|
- :autoplay="false"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <swiper class="card-swiper" :current="currentIndex" @change="onSwiperChange" :indicator-dots="false"
|
|
|
|
|
+ :autoplay="false" :next-margin="'12rpx'">
|
|
|
<swiper-item v-for="(card, idx) in cardList" :key="card.userId || idx">
|
|
<swiper-item v-for="(card, idx) in cardList" :key="card.userId || idx">
|
|
|
- <view class="swiper-item-wrapper">
|
|
|
|
|
- <UserCard :info="card" @call="makeCall" />
|
|
|
|
|
- <ShareButton />
|
|
|
|
|
|
|
+ <view class="swiper-item-wrapper"
|
|
|
|
|
+ :style="{'padding-right':cardList.length - 1 == currentIndex ? 0: '10rpx'}">
|
|
|
|
|
+ <UserCard :info="card" @call="makeCall" :isCall="false"/>
|
|
|
</view>
|
|
</view>
|
|
|
</swiper-item>
|
|
</swiper-item>
|
|
|
</swiper>
|
|
</swiper>
|
|
|
|
|
+ <ShareButton />
|
|
|
</view>
|
|
</view>
|
|
|
<view class="card-content" :class="{activeCard:pageIn}">
|
|
<view class="card-content" :class="{activeCard:pageIn}">
|
|
|
<!-- 企业简介 -->
|
|
<!-- 企业简介 -->
|
|
@@ -64,9 +59,9 @@
|
|
|
|
|
|
|
|
onShareAppMessage(() => {
|
|
onShareAppMessage(() => {
|
|
|
return {
|
|
return {
|
|
|
- path: `pages/splash/splash?userId=${cardInfo.value.userId}¤tIndex=${currentIndex.value}`,
|
|
|
|
|
|
|
+ path: `pages/splash/splash?userId=${cardInfo.value.userId}¤tId=${cardInfo.value.companyDTO.id}`,
|
|
|
imageUrl: cardImage.value,
|
|
imageUrl: cardImage.value,
|
|
|
- title:`${cardInfo.value.nickName} 向你分享了名片`
|
|
|
|
|
|
|
+ title: `${cardInfo.value.nickName} 向你分享了名片`
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -101,6 +96,7 @@
|
|
|
.card-container {
|
|
.card-container {
|
|
|
background: #f5f6f8;
|
|
background: #f5f6f8;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.left-title {
|
|
.left-title {
|
|
|
font-size: 44rpx;
|
|
font-size: 44rpx;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
@@ -189,7 +185,10 @@
|
|
|
|
|
|
|
|
// 名片轮播
|
|
// 名片轮播
|
|
|
.card-swiper {
|
|
.card-swiper {
|
|
|
- height: 550rpx;
|
|
|
|
|
|
|
+ height: 400rpx;
|
|
|
|
|
+ overflow: visible;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ z-index: 2;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 轮播索引指示器
|
|
// 轮播索引指示器
|
|
@@ -233,4 +232,4 @@
|
|
|
transform: none !important;
|
|
transform: none !important;
|
|
|
transition: all 0.3s cubic-bezier(.68, -0.55, .265, 1.55);
|
|
transition: all 0.3s cubic-bezier(.68, -0.55, .265, 1.55);
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|