index.scss 4.66 KB
/* pages/crowdfunding/components/service/index.wxss */
@import "../../assets/css/index.wxss";
@import "../../assets/css/sharegoods.wxss";

/* 大图 */
.big-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: -1;
  // margin-bottom: 10rpx;
}

.big-img .hot {
  height: 52rpx;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 23rpx;
  padding: 0 20rpx;
  text-shadow: 0px 2rpx 4rpx rgba(0, 0, 0, 0.4);
  font-weight: 600;
  font-size: 24rpx;
  color: #ffffff;
  top: 16rpx;
}

.big-img .hot .icon-hot {
  margin-right: 4rpx;
}

.big-img .music {
  position: absolute;
  top: 80rpx;
  right: 40rpx;
  border: 2rpx solid #fff;
  border-radius: 100%;
  box-sizing: border-box;
  width: 68rpx;
  height: 68rpx;
}

.big-img .music .icon-music {
  animation: move 3s infinite ease-in-out;
}

.big-img .music .musicOff {
  border: none;
}

.page-btn {
  position: fixed;
  right: 20rpx;
  bottom: 300rpx;
  z-index: 3;
}

/*在线客服*/
.customer_service {
  width: 84rpx;
  height: 84rpx;
  background: #ffffff;
  border: 2rpx solid #efefef;
  box-shadow: 0 4rpx 16rpx 0 rgba(0, 0, 0, 0.1);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 20rpx;
}

.customer_service .img {
  width: 40rpx;
  height: 40rpx;
}

.customer_service .name {
  font-weight: 400;
  font-size: 20rpx;
  color: #2c2c2c;
}

/* 置顶 */
.customer_top {
  position: fixed;
  right: 20rpx;
  bottom: 200rpx;
  background: #fff;
  border-radius: 100%;
  z-index: 99;
}

.customer_top .img {
  width: 60rpx;
  height: 60rpx;
}

/* 背景音乐  */
.background_music {
  position: absolute;
  right: 40rpx;
  top: 80rpx;
}

.background_music .img {
  width: 64rpx;
  height: 64rpx;
}

.background_music .music_play {
  animation: move 3s infinite ease-in-out;
}

@keyframes move {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 客服 */
.service_wrap .blk {
  background: #000;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.8;
  z-index: 9997;
}

.service_wrap .service_info {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
}

.service_info .box {
  position: relative;
  width: 600rpx;
  height: 700rpx;
  border-radius: 20rpx;
  background: #fff url("https://img02.glsx.com.cn/weapp/resource/miniprogram/crowdfunding/kf_bg.png") no-repeat top
    center;
  background-size: 100% auto;
  padding-top: 110rpx;
  box-sizing: border-box;
}

.kf_logo {
  width: 112rpx;
  height: 140rpx;
  position: absolute;
  top: -30rpx;
  left: 50%;
  transform: translateX(-50%);
}

.kf_close {
  position: absolute;
  width: 48rpx;
  height: 48rpx;
  top: -68rpx;
  right: 16rpx;
}

.kf_content {
  text-align: center;
}

.kf_content .name {
  font-family: PingFangSC-Medium;
  font-weight: 500;
  font-size: 36rpx;
  color: #282829;
  text-align: center;
}

.kf_content .phone {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  font-size: 32rpx;
  color: #282829;
  letter-spacing: 4rpx;
}

.kf_content .phone .img {
  width: 24rpx;
  height: 26rpx;
  display: flex;
  align-items: center;
  margin-right: 4rpx;
}

.qrcode {
  position: relative;
  width: 284rpx;
  height: 284rpx;
  background: #fff4f4;
  border: 1rpx solid #ffe8e6;
  margin: 20rpx auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode:after {
  display: block;
  content: "";
  width: 252rpx;
  height: 252rpx;
  background: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.qrcode .qr_img {
  width: 220rpx;
  height: 220rpx;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.kf_footer {
  position: absolute;
  height: 140rpx;
  background: #f7f8fa;
  border-radius: 0 0 20rpx 20rpx;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40rpx;
}

.kf_footer .cell {
  flex: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.kf_footer .cell .img {
  width: 60rpx;
  height: 60rpx;
  margin-right: 12rpx;
}

.kf_footer .cell .txt {
  display: flex;
  flex-direction: column;
  font-family: PingFangSC-Regular;
  font-weight: 400;
  font-size: 24rpx;
  color: #b1b1b3;
}

// 订单按钮动画
@keyframes move-btn {
  10%,
  90% {
    transform: translateX(-1px);
  }

  20%,
  80% {
    transform: translateX(2px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }

  40%,
  60% {
    transform: translateX(4px);
  }
}

.order-move {
  animation: move-btn 1.5s infinite cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}