fuwuqingdan.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view>
  3. <customNav :shownav="true" :title="$t('index.kefuzhx')" titledetl=""></customNav>
  4. <uni-list v-for="(item,index) in dataList" :key="item.id">
  5. <uni-list-item :show-extra-icon="true" showArrow :title="item.name" @click="listClick(item.id)" link/>
  6. </uni-list>
  7. </view>
  8. </template>
  9. <script>
  10. import uniList from '@/uni_modules/uni-list/uni-list.vue';
  11. import uniListItem from '@/uni_modules/uni-list-item/uni-list-item.vue';
  12. import uniAd from '@/uni_modules/uni-list-ad/uni-list-ad.vue';
  13. import uniChat from '@/uni_modules/uni-list-chat/uni-list-chat.vue';
  14. export default {
  15. components:{
  16. uniList,uniListItem,uniAd,uniChat
  17. },
  18. data() {
  19. return {
  20. dataList: [{id: "1", name: '我的订单怎么被取消了'}, {id: "2", name: '收到餐品有问题'}, {id: "3", name: '订单送晚了,需要补偿'}, {id: "4", name: '发票问题'}, {id: "5", name: '请联系客服'}]
  21. }
  22. },
  23. methods: {
  24. listClick(e){
  25. console.log(e)
  26. switch(e){
  27. case "1":
  28. break;
  29. case "2":
  30. break;
  31. case "3":
  32. uni.navigateTo({
  33. url:'/pages/kefuzhongxin/kehufuwu'
  34. })
  35. break;
  36. }
  37. }
  38. }
  39. }
  40. </script>
  41. <style>
  42. </style>