server.vue 3.9 KB

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