AI销管
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.
 
 
 
 

122 lines
2.6 KiB

  1. <template>
  2. <view class="help-box">
  3. <view class="left-box">
  4. <view class='list-item' @click="selectFun(index)" :class="{active: currentIndex == index}" v-for="(item,index) in list" :key="index">{{item.name}}</view>
  5. </view>
  6. <view class="right-box">
  7. <view class="title">{{list[currentIndex].name}}</view>
  8. <view @click="todetail(item)" class='list-item' v-for="(item,index) in questions" :key="index">{{item.desc}} <image src="/static/images/right-arrow.png" mode=""></image> </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. let domain = require("@/utils/domain")
  14. export default {
  15. data() {
  16. return {
  17. currentIndex: 0,
  18. list: [
  19. {name:'接待管理'},
  20. {name:'客户管理'},
  21. {name:'设备管理'},
  22. {name:'顾问管理'},
  23. ],
  24. questions: [
  25. {desc: '如何查看设备是否开启'},
  26. {desc: '如何查看设备是否联网'},
  27. {desc: '如何查看设备是否开启'},
  28. {desc: '如何查看设备是否没电'},
  29. {desc: '如何查看设备是否开启'},
  30. {desc: '如何查看设备是否没电'},
  31. ]
  32. };
  33. },
  34. onShow() {
  35. },
  36. methods: {
  37. searchFun(){
  38. },
  39. selectFun(index){
  40. this.currentIndex = index;
  41. },
  42. todetail(item){
  43. uni.navigateTo({
  44. url: '/pages/mine/help/helpDetail'
  45. })
  46. }
  47. },
  48. }
  49. </script>
  50. <style lang="scss">
  51. .help-box{
  52. width: 100%;
  53. min-height: 100vh;
  54. overflow: hidden;
  55. background: #F8F8F8;
  56. display: flex;
  57. padding-top: 20rpx;
  58. .left-box{
  59. width: 176rpx;
  60. background: #F0F1F5;
  61. display: flex;
  62. flex-direction: column;
  63. justify-content: flex-start;
  64. .list-item{
  65. height: 100rpx;
  66. line-height: 100rpx;
  67. background: #F0F1F5;
  68. text-align: center;
  69. font-size: 30rpx;
  70. font-family: PingFangSC-Regular, PingFang SC;
  71. font-weight: 400;
  72. color: #333333;
  73. &.active{
  74. background: #fff;
  75. }
  76. }
  77. }
  78. .right-box{
  79. flex: 1;
  80. .title{
  81. height: 100rpx;
  82. line-height: 100rpx;
  83. font-size: 30rpx;
  84. font-family: PingFangSC-Medium, PingFang SC;
  85. font-weight: 500;
  86. color: #303030;
  87. border-bottom : 1rpx solid #E0E0E0;
  88. background: #fff;
  89. padding: 0 30rpx;
  90. }
  91. .list-item{
  92. padding: 0 30rpx;
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. height: 98rpx;
  97. line-height: 98rpx;
  98. font-size: 30rpx;
  99. font-family: PingFangSC-Regular, PingFang SC;
  100. font-weight: 400;
  101. color: #333333;
  102. border-bottom : 1rpx solid #E0E0E0;
  103. background: #fff;
  104. &:last-child{
  105. border: 0;
  106. }
  107. image{
  108. width: 12rpx;
  109. height: 28rpx;
  110. }
  111. }
  112. }
  113. }
  114. </style>