| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <template>
- <view class="kefu">
- <view class="kefu-top flex">
- <image src="/static/image/publice/fanhui1@2x.png" mode="" @click="retutnTop"></image>
- <text>联系客服</text>
- <text></text>
- </view>
- <view class="kefu-main center">
- <view class="kefu-main-info">
- <view class="kefu-main-bg"><image src="https://www.chaomangdao.com/image/logo.png" mode=""></image></view>
- <view class="kefu-main-name center">
- <text>潮盲岛</text>
- <text>{{ serve.number }}</text>
- </view>
- <view class="kefu-main-ewm"><image :src="serve.qrcode" mode="widthFix"></image></view>
- <view class="kefu-main-font">扫码联系客服</view>
- </view>
- <view class="kefu-download center">
- <image src="../static/xiazai@2x.png" mode=""></image>
- <text>长按保存二维码</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- serve: {} //
- };
- },
- methods: {
- //返回上一级
- retutnTop() {
- uni.navigateBack();
- },
- //获取客服信息
- getServe() {
- this.$api.getServiceInfo().then(res => {
- if (res.code === 1) {
- this.serve = res.data;
- }
- });
- }
- },
- onLoad() {
- this.getServe();
- }
- };
- </script>
- <style lang="scss">
- .kefu {
- height: 100vh;
- background: url(https://www.chaomangdao.com/image/bj.png) no-repeat;
- background-size: cover;
- padding-top: 95rpx;
- .kefu-top {
- padding: 0 30rpx;
- margin-bottom: 127rpx;
- image {
- width: 44rpx;
- height: 44rpx;
- }
- text {
- color: #ffffff;
- font-size: 36rpx;
- font-weight: bold;
- &:last-child {
- width: 44rpx;
- }
- }
- }
- .kefu-main {
- flex-direction: column;
- }
- .kefu-main-info {
- width: 525rpx;
- display: flex;
- align-items: center;
- flex-direction: column;
- background: #f2f2f2;
- border-radius: 34rpx;
- .kefu-main-bg {
- width: 132rpx;
- height: 132rpx;
- margin-bottom: 32rpx;
- margin-top: -66rpx;
- image {
- border-radius: 50%;
- }
- }
- .kefu-main-name {
- display: flex;
- margin-bottom: 24rpx;
- flex-direction: column;
- text {
- &:first-child {
- font-size: 46rpx;
- font-weight: bold;
- }
- &:last-child {
- color: #666666;
- font-size: 30rpx;
- margin-top: 23rpx;
- }
- }
- }
- .kefu-main-ewm {
- width: 430rpx;
- }
- .kefu-main-font {
- color: #999999;
- font-size: 30rpx;
- padding: 20rpx 0 30rpx 0;
- }
- }
- .kefu-download {
- width: 523rpx;
- height: 89rpx;
- margin-top: 30rpx;
- background: #ffffff;
- border-radius: 18rpx;
- image {
- width: 42rpx;
- height: 42rpx;
- margin-right: 10rpx;
- }
- text {
- font-size: 30rpx;
- font-weight: bold;
- }
- }
- }
- .kf-container {
- width: 100vw;
- height: 100vh;
- display: flex;
- flex-direction: column;
- .kefu_title {
- width: 100%;
- position: sticky;
- top: 0;
- z-index: 2021;
- .kefu_nav {
- width: 100%;
- }
- .kefu-title_head {
- width: 100%;
- height: 88rpx;
- padding: 0 30rpx;
- background: #ffffff;
- .kefu_title_return {
- width: 44rpx;
- height: 44rpx;
- }
- .kefu_title_name {
- width: 466rpx;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-size: 36rpx;
- font-weight: bold;
- }
- .kefu_title_mp3 {
- width: 44rpx;
- height: 44rpx;
- }
- }
- }
- iframe {
- flex: 1;
- border: 0;
- height: 100%;
- width: 100%;
- }
- }
- </style>
|