feat(kefu): 个人中心导航栏与全局客服入口支持直达微信小程序原生客服会话
这个提交包含在:
@@ -1,7 +1,16 @@
|
||||
<template>
|
||||
<s-layout class="chat-wrap" title="客服" navbar="inner">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view class="mp-service-bar ss-flex ss-row-between ss-col-center">
|
||||
<view class="ss-flex ss-col-center">
|
||||
<text class="cicon-wechat ss-m-r-12 mp-wechat-icon"></text>
|
||||
<view class="mp-service-text">微信小程序官方客服</view>
|
||||
</view>
|
||||
<button class="ss-reset-button mp-service-btn" open-type="contact">点击接入</button>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<div class="status">
|
||||
{{ socketState.isConnect ? customerServiceInfo.title : '网络已断开,请检查网络后刷新重试' }}
|
||||
{{ socketState.isConnect ? customerServiceInfo.title : '网络已断开,可使用上方微信客服直接沟通' }}
|
||||
</div>
|
||||
<div class="page-bg" :style="{ height: sys_navBar + 'px' }"></div>
|
||||
<view class="chat-box" :style="{ height: pageHeight + 'px' }">
|
||||
@@ -597,7 +606,36 @@
|
||||
// .ui-navbar-box {
|
||||
// background: linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
|
||||
// }
|
||||
// }
|
||||
.mp-service-bar {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
z-index: 4;
|
||||
margin: 16rpx 20rpx;
|
||||
padding: 16rpx 24rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 16rpx;
|
||||
box-shadow: 0 4rpx 14rpx rgba(0, 0, 0, 0.08);
|
||||
|
||||
.mp-wechat-icon {
|
||||
font-size: 40rpx;
|
||||
color: #07c160;
|
||||
}
|
||||
|
||||
.mp-service-text {
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.mp-service-btn {
|
||||
padding: 10rpx 24rpx;
|
||||
background: #07c160;
|
||||
color: #ffffff;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
border-radius: 28rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.status {
|
||||
position: relative;
|
||||
|
||||
@@ -24,6 +24,25 @@
|
||||
<view class="item-title">收藏</view>
|
||||
</block>
|
||||
</view>
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<button
|
||||
v-if="serviceIcon"
|
||||
class="ss-reset-button detail-tabbar-item ss-flex ss-flex-col ss-row-center ss-col-center"
|
||||
open-type="contact"
|
||||
:send-message-title="modelValue.title"
|
||||
:send-message-path="'/pages/goods/index?id=' + modelValue.id"
|
||||
:send-message-img="sheep.$url.cdn(modelValue.image)"
|
||||
show-message-card
|
||||
>
|
||||
<image
|
||||
class="item-icon"
|
||||
:src="sheep.$url.static('/assets/addons/shopro/uniapp/goods/message.png')"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<view class="item-title">客服</view>
|
||||
</button>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view
|
||||
v-if="serviceIcon"
|
||||
class="detail-tabbar-item ss-flex ss-flex-col ss-row-center ss-col-center"
|
||||
@@ -36,6 +55,7 @@
|
||||
></image>
|
||||
<view class="item-title">客服</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<view
|
||||
v-if="shareIcon"
|
||||
class="detail-tabbar-item ss-flex ss-flex-col ss-row-center ss-col-center"
|
||||
@@ -154,6 +174,15 @@
|
||||
|
||||
.detail-tabbar-item {
|
||||
width: 100rpx;
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: normal;
|
||||
|
||||
&::after {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.item-icon {
|
||||
width: 40rpx;
|
||||
|
||||
@@ -57,7 +57,12 @@
|
||||
<su-fixed bottom placeholder>
|
||||
<view class="foot-wrap">
|
||||
<view class="foot_box ss-flex ss-col-center ss-row-between ss-p-x-30">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<button class="ss-reset-button contcat-btn" open-type="contact">联系客服</button>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<button class="ss-reset-button contcat-btn" @tap="sheep.$router.go('/pages/chat/index')">联系客服</button>
|
||||
<!-- #endif -->
|
||||
<button class="ss-reset-button ui-BG-Main-Gradient sub-btn" @tap="submit">提交</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -115,9 +115,14 @@
|
||||
@tap="onDelete(state.info.id)"
|
||||
>删除</button
|
||||
> -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<button class="ss-reset-button contcat-btn btn" open-type="contact">联系客服</button>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<button class="ss-reset-button contcat-btn btn" @tap="sheep.$router.go('/pages/chat/index')"
|
||||
>联系客服</button
|
||||
>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</su-fixed>
|
||||
</s-layout>
|
||||
|
||||
@@ -51,9 +51,16 @@
|
||||
</uni-forms>
|
||||
<su-fixed bottom placeholder>
|
||||
<view class="ss-flex ss-row-between ss-p-x-30 ss-p-y-10">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<button class="kefu-btn ss-reset-button" open-type="contact">
|
||||
联系客服
|
||||
</button>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<button class="kefu-btn ss-reset-button" @tap="sheep.$router.go('/pages/chat/index')">
|
||||
联系客服
|
||||
</button>
|
||||
<!-- #endif -->
|
||||
<button class="submit-btn ss-reset-button ui-BG-Main ui-Shadow-Main" @tap="onSubmit">
|
||||
提交
|
||||
</button>
|
||||
|
||||
在新工单中引用
屏蔽一个用户