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.

88 lines
1.6 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 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>
  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. data(){
  27. return {
  28. serverList : []
  29. }
  30. },
  31. created(){
  32. this.forgetPass()
  33. },
  34. methods : {
  35. //跳转客服网址
  36. toServer(url){
  37. this.$play()
  38. window.open(url)
  39. this.$emit('close')
  40. },
  41. //获取客服列表
  42. forgetPass() {
  43. this.request('forgetPass').then(res => {
  44. if (res.code == 200) {
  45. this.serverList = res.result
  46. }
  47. })
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .service-list{
  54. .list{
  55. border: 1px solid #ccc;
  56. width: 96%;
  57. margin: 20rpx auto 20rpx auto;
  58. .server{
  59. position: relative;
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. color: $uni-text-color;
  64. height: 100rpx;
  65. border-bottom: 1px solid #ccc;
  66. &:last-child{
  67. border: none;
  68. }
  69. }
  70. }
  71. .cancel{
  72. width: 96%;
  73. margin: 0rpx auto 20rpx auto;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. color: $uni-text-color;
  78. height: 100rpx;
  79. border: 1px solid #ccc;
  80. }
  81. }
  82. </style>