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.

92 lines
1.8 KiB

9 months ago
9 months ago
9 months ago
7 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
7 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. <!-- 客服列表页面 -->
  2. <template>
  3. <view class="service-list">
  4. <u-popup :show="show" mode="bottom" round="20rpx" @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 @click="toKF" class="server">{{ $t('meiqia') }}</view>
  8. </view>
  9. <view @click="$emit('close');$play()" class="cancel">{{ $t('page.serviceList.cancel') }}</view>
  10. </u-popup>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. props : {
  16. show : {
  17. type : Boolean,
  18. default : false
  19. },
  20. // serverList : {
  21. // type : Array,
  22. // default : function(){
  23. // return []
  24. // }
  25. // }
  26. },
  27. data(){
  28. return {
  29. serverList : []
  30. }
  31. },
  32. created(){
  33. this.forgetPass()
  34. },
  35. methods : {
  36. //跳转客服网址
  37. toServer(url){
  38. this.$play()
  39. window.open(url)
  40. this.$emit('close')
  41. },
  42. //获取客服列表
  43. forgetPass() {
  44. this.request('forgetPass').then(res => {
  45. if (res.code == 200) {
  46. this.serverList = res.result
  47. }
  48. })
  49. },
  50. toKF(){
  51. uni.navigateTo({
  52. url: '/pages/customer-service/customer-service'
  53. })
  54. },
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .service-list{
  60. .list{
  61. border: 1px solid #ccc;
  62. width: 96%;
  63. margin: 20rpx auto 20rpx auto;
  64. .server{
  65. position: relative;
  66. display: flex;
  67. justify-content: center;
  68. align-items: center;
  69. color: $uni-text-color;
  70. height: 100rpx;
  71. border-bottom: 1px solid #ccc;
  72. &:last-child{
  73. border: none;
  74. }
  75. }
  76. }
  77. .cancel{
  78. width: 96%;
  79. margin: 0rpx auto 20rpx auto;
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. color: $uni-text-color;
  84. height: 100rpx;
  85. border: 1px solid #ccc;
  86. }
  87. }
  88. </style>