me_order.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template style="background: #F6F6F6;">
  2. <view style="height: 100%;width: 100%;padding: 20rpx 28rpx;">
  3. <view v-for="item,index in orderList" :key="index" class="list" @click="list" :data-index="index">
  4. <!-- 左边 -->
  5. <view class="left">
  6. <view style="font-size: 30rpx;font-weight: bold;margin-bottom: 20rpx;">{{item.title}}</view>
  7. <view style="font-size: 26rpx;color: #999999;">{{item.describe}}</view>
  8. </view>
  9. <!-- 右边 -->
  10. <view class="ringht">
  11. <u-icon name="arrow-right" color="#C0C0C0"></u-icon>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. orderList: [{
  21. title: '保单名称保单名称保单名称保单名称套餐一',
  22. describe: '套餐一'
  23. }, {
  24. title: '保单名称保单名称套餐二',
  25. describe: '套餐二'
  26. }, {
  27. title: '保单名称保单名称保单名称套餐三',
  28. describe: '套餐三'
  29. }, {
  30. title: '保单名称保单名称套餐四',
  31. describe: '套餐四'
  32. }, {
  33. title: '保单名称保单名称保单名称保单名称套餐五',
  34. describe: '套餐五'
  35. }]
  36. }
  37. },
  38. methods: {
  39. //关注
  40. list(e) {
  41. console.log(this.orderList[e.currentTarget.dataset.index])
  42. uni.navigateTo({
  43. url: '/pages/common_tools/me_order/order_details?title=' + this.orderList[e.currentTarget.dataset.index].title
  44. // url: '/pages/customer/customer-datails?n=' + n
  45. })
  46. }
  47. }
  48. }
  49. </script>
  50. <style>
  51. .list {
  52. box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.04);
  53. border-radius: 12px;
  54. background: #FFFFFF;
  55. margin-bottom: 20rpx;
  56. display: flex;
  57. justify-content: center;
  58. align-items: center;
  59. padding: 48rpx 28rpx;
  60. }
  61. .left {
  62. width: 95%;
  63. display: initial;
  64. }
  65. .ringht {
  66. width: 5%;
  67. }
  68. </style>