学员端小程序
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.

78 lines
2.0 KiB

1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="咨询投诉"></topNavbar>
  4. <view class="pad">
  5. <view class="card">
  6. <view class="tabBox">
  7. <view class="tab" v-for="(item,index) in tabArr" :key="index" @click="$goPage(item.url)">
  8. <view class="icon">
  9. <image :src="item.icon" mode=""></image>
  10. </view>
  11. <view class="text">{{item.text}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="question">
  16. <view class="h1">常风问题</view>
  17. <view class="card que">
  18. <u-collapse :body-style="itemStyle" :border="false">
  19. <u-collapse-item :title="item.head" v-for="(item, index) in itemList" :key="index" style="border-bottom: 1rpx solid #E8E9EC;">
  20. {{item.body}}
  21. </u-collapse-item>
  22. </u-collapse>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. itemStyle: {
  33. marginLeft:'20rpx',
  34. },
  35. itemList: [
  36. {head: '画沙', body: '用手中的流沙画一个你呀,用手中的流沙画一个你呀,用手中的流沙画一个你呀,'}
  37. ],
  38. tabArr: [
  39. {text: '我要咨询', icon: require('../../../static/images/index/ic_zixun.png'), url:'/pages/indexEntry/consult/pubConsult/pubConsult', id: 1},
  40. {text: '我要投诉', icon: require('../../../static/images/index/ic_tousu.png'), url: '/pages/indexEntry/consult/pubComplaint/pubComplaint', id: 2,},
  41. {text: '查看记录', icon: require('../../../static/images/index/ic_jilu.png'), url: '/pages/indexEntry/consult/record/record', id: 3},
  42. ]
  43. }
  44. },
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .tabBox {
  51. display: flex;
  52. // margin-top: 20rpx;
  53. height: 192rpx;
  54. .tab {
  55. flex: 1;
  56. display: flex;
  57. flex-direction: column;
  58. align-items: center;
  59. justify-content: center;
  60. .icon {
  61. width: 72rpx;
  62. height: 72rpx;
  63. }
  64. .text {
  65. font-size: 28rpx;
  66. margin-top: 18rpx;
  67. }
  68. }
  69. }
  70. .h1 {
  71. line-height: 100rpx;
  72. }
  73. .que {
  74. padding: 28rpx;
  75. }
  76. </style>