index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <script>
  2. // 服务保障
  3. import baseDrawer from '@/components/tuiDrawer/tui-drawer.vue';
  4. export default {
  5. props: {
  6. ensureInfo: {
  7. type: Array,
  8. default: () => []
  9. }
  10. },
  11. components: {
  12. baseDrawer
  13. },
  14. data() {
  15. return {
  16. isShow: false
  17. };
  18. },
  19. methods: {
  20. closeDrawer() {
  21. this.isShow = false;
  22. }
  23. }
  24. };
  25. </script>
  26. <template>
  27. <base-drawer mode="bottom" :visible="isShow" background-color="transparent" mask maskClosable @close="closeDrawer">
  28. <view class="w-full bg--w111-fff rd-t-40rpx py-32">
  29. <view class="text-center fs-32 text--w111-333 fw-500 mb-34">{{ $t(`服务保障`) }}</view>
  30. <scroll-view scroll-y="true" class="h-400">
  31. <view class="px-32">
  32. <view class="mb-38" v-for="(item, index) in ensureInfo" :key="index">
  33. <view class="flex">
  34. <image class="w-34 h-34 mt-3" :src="item.image"></image>
  35. <view class="flex-1">
  36. <text class="pl-12 text--w111-333 fs-28 fw-500">{{ item.title }}</text>
  37. <view class="mt-6 pl-12 fs-22 text--w111-999">{{ item.content }}</view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </scroll-view>
  43. <view class="mx-20 pb-safe">
  44. <view class="mt-52 h-72 flex-center rd-36px bg-color fs-26 text--w111-fff" @click="closeDrawer">{{ $t(`知道了`) }}</view>
  45. </view>
  46. </view>
  47. </base-drawer>
  48. </template>