complaintList.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="bg">
  3. <view class="title">请选择投诉原因</view>
  4. <view class="list">
  5. <view class="item" @click="toComplaint(item)" v-for="(item,index) in list" :key="index">
  6. <view>{{item}}</view>
  7. <image class="w16" src="/static/images/arrow_gray.png" mode="widthFix"></image>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. list: ['广告诈骗', '反动政治', '侮辱谩骂', '直播侵权', '违法违规', '低俗恶俗', '暴力色情', '其他问题'],
  17. };
  18. },
  19. methods: {
  20. toComplaint(item) {
  21. uni.navigateTo({
  22. url: '/pages_shopping/live/complaint?selectText=' + item
  23. })
  24. }
  25. }
  26. };
  27. </script>
  28. <style scoped lang="scss">
  29. .bg {
  30. background-color: #ececec;
  31. padding-top: 100rpx;
  32. height: 100%;
  33. .title {
  34. text-align: center;
  35. font-size: 40rpx;
  36. font-weight: 500;
  37. }
  38. .list {
  39. margin: 60rpx 20rpx 0;
  40. border-radius: 16rpx;
  41. padding: 24rpx;
  42. background-color: #fff;
  43. .item {
  44. padding: 24rpx;
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. border-bottom: #efefef 1rpx solid;
  49. &:last-child {
  50. border: none;
  51. }
  52. }
  53. }
  54. }
  55. </style>