You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.3 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <!-- 客服列表页面 -->
  2. <template>
  3. <view class="service-list">
  4. <u-popup :show="show" mode="bottom" @close="$emit('close');$play()">
  5. <view class="list">
  6. <view @click="toServer(item.url)" v-for="(item,index) in serverList" :key="index" class="server">{{ item.name }}</view>
  7. </view>
  8. <view @click="$emit('close');$play()" class="cancel">{{ $t('page.serviceList.cancel') }}</view>
  9. </u-popup>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. props : {
  15. show : {
  16. type : Boolean,
  17. default : false
  18. },
  19. serverList : {
  20. type : Array,
  21. default : function(){
  22. return []
  23. }
  24. }
  25. },
  26. methods : {
  27. //跳转客服网址
  28. toServer(url){
  29. this.$play()
  30. window.open(url)
  31. this.$emit('close')
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .service-list{
  38. .list{
  39. border: 1px solid #ccc;
  40. width: 96%;
  41. margin: 0rpx auto 20rpx auto;
  42. .server{
  43. position: relative;
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. color: $uni-text-color;
  48. height: 100rpx;
  49. border-bottom: 1px solid #ccc;
  50. &:last-child{
  51. border: none;
  52. }
  53. }
  54. }
  55. .cancel{
  56. width: 96%;
  57. margin: 0rpx auto 20rpx auto;
  58. display: flex;
  59. justify-content: center;
  60. align-items: center;
  61. color: $uni-text-color;
  62. height: 100rpx;
  63. border: 1px solid #ccc;
  64. }
  65. }
  66. </style>