server.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <view class="kefu">
  3. <view class="kefu-top flex">
  4. <image src="/static/image/publice/fanhui1@2x.png" mode="" @click="retutnTop"></image>
  5. <text>联系客服</text>
  6. <text></text>
  7. </view>
  8. <view class="kefu-main center">
  9. <view class="kefu-main-info">
  10. <view class="kefu-main-bg"><image src="https://www.chaomangdao.com/image/logo.png" mode=""></image></view>
  11. <view class="kefu-main-name center">
  12. <text>潮盲岛</text>
  13. <text>{{ serve.number }}</text>
  14. </view>
  15. <view class="kefu-main-ewm"><image :src="serve.qrcode" mode="widthFix"></image></view>
  16. <view class="kefu-main-font">扫码联系客服</view>
  17. </view>
  18. <view class="kefu-download center">
  19. <image src="../static/xiazai@2x.png" mode=""></image>
  20. <text>长按保存二维码</text>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. serve: {} //
  30. };
  31. },
  32. methods: {
  33. //返回上一级
  34. retutnTop() {
  35. uni.navigateBack();
  36. },
  37. //获取客服信息
  38. getServe() {
  39. this.$api.getServiceInfo().then(res => {
  40. if (res.code === 1) {
  41. this.serve = res.data;
  42. }
  43. });
  44. }
  45. },
  46. onLoad() {
  47. this.getServe();
  48. }
  49. };
  50. </script>
  51. <style lang="scss">
  52. .kefu {
  53. height: 100vh;
  54. background: url(https://www.chaomangdao.com/image/bj.png) no-repeat;
  55. background-size: cover;
  56. padding-top: 95rpx;
  57. .kefu-top {
  58. padding: 0 30rpx;
  59. margin-bottom: 127rpx;
  60. image {
  61. width: 44rpx;
  62. height: 44rpx;
  63. }
  64. text {
  65. color: #ffffff;
  66. font-size: 36rpx;
  67. font-weight: bold;
  68. &:last-child {
  69. width: 44rpx;
  70. }
  71. }
  72. }
  73. .kefu-main {
  74. flex-direction: column;
  75. }
  76. .kefu-main-info {
  77. width: 525rpx;
  78. display: flex;
  79. align-items: center;
  80. flex-direction: column;
  81. background: #f2f2f2;
  82. border-radius: 34rpx;
  83. .kefu-main-bg {
  84. width: 132rpx;
  85. height: 132rpx;
  86. margin-bottom: 32rpx;
  87. margin-top: -66rpx;
  88. image {
  89. border-radius: 50%;
  90. }
  91. }
  92. .kefu-main-name {
  93. display: flex;
  94. margin-bottom: 24rpx;
  95. flex-direction: column;
  96. text {
  97. &:first-child {
  98. font-size: 46rpx;
  99. font-weight: bold;
  100. }
  101. &:last-child {
  102. color: #666666;
  103. font-size: 30rpx;
  104. margin-top: 23rpx;
  105. }
  106. }
  107. }
  108. .kefu-main-ewm {
  109. width: 430rpx;
  110. }
  111. .kefu-main-font {
  112. color: #999999;
  113. font-size: 30rpx;
  114. padding: 20rpx 0 30rpx 0;
  115. }
  116. }
  117. .kefu-download {
  118. width: 523rpx;
  119. height: 89rpx;
  120. margin-top: 30rpx;
  121. background: #ffffff;
  122. border-radius: 18rpx;
  123. image {
  124. width: 42rpx;
  125. height: 42rpx;
  126. margin-right: 10rpx;
  127. }
  128. text {
  129. font-size: 30rpx;
  130. font-weight: bold;
  131. }
  132. }
  133. }
  134. .kf-container {
  135. width: 100vw;
  136. height: 100vh;
  137. display: flex;
  138. flex-direction: column;
  139. .kefu_title {
  140. width: 100%;
  141. position: sticky;
  142. top: 0;
  143. z-index: 2021;
  144. .kefu_nav {
  145. width: 100%;
  146. }
  147. .kefu-title_head {
  148. width: 100%;
  149. height: 88rpx;
  150. padding: 0 30rpx;
  151. background: #ffffff;
  152. .kefu_title_return {
  153. width: 44rpx;
  154. height: 44rpx;
  155. }
  156. .kefu_title_name {
  157. width: 466rpx;
  158. text-align: center;
  159. overflow: hidden;
  160. text-overflow: ellipsis;
  161. white-space: nowrap;
  162. font-size: 36rpx;
  163. font-weight: bold;
  164. }
  165. .kefu_title_mp3 {
  166. width: 44rpx;
  167. height: 44rpx;
  168. }
  169. }
  170. }
  171. iframe {
  172. flex: 1;
  173. border: 0;
  174. height: 100%;
  175. width: 100%;
  176. }
  177. }
  178. </style>