contact.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view class="container">
  3. <view style="margin:150px auto; width: 200px; height: 200px; ">
  4. <image src="https://ecsaas.oss-cn-shanghai.aliyuncs.com/40904182359.jpg?Expires=1726146370&OSSAccessKeyId=TMP.3KkFVNnEhoHXvzvvw3sFSKptzCrzNmnATV7u7zERp2Zm9Q7oXc1wt7XFAZKiyzgKJ3ssHwA8PhUHBJd3Zrog4H9FKGZjHr&Signature=skup%2BsGoaK4iD36aZVmsUiVb1uQ%3D" alt="" style="width: 100%;height: 100%;" />
  5. <view style="text-align: center; margin-top: 20px;">谷大志</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script setup>
  10. import { ref, computed } from 'vue'
  11. const paperTypes = ['瓦楞纸', '卫生纸']
  12. const pickerIndex = ref(0)
  13. const images = {
  14. '瓦楞纸': 'https://leaseraycos.oss-cn-shanghai.aliyuncs.com/document/20240912211537_06a2792b4e49f11b8ee1e1e372f9f0e1_1182344_3168_5468.jpg',
  15. '卫生纸': 'https://leaseraycos.oss-cn-shanghai.aliyuncs.com/document/20240913094914_18e718fc39e02503f31aa4b8f3cdb4f.jpg'
  16. }
  17. const currentImage = computed(() => {
  18. return images[paperTypes[pickerIndex.value]]
  19. })
  20. const onPickerChange = (e) => {
  21. pickerIndex.value = e.detail.value
  22. }
  23. </script>
  24. <style>
  25. .container {
  26. display: flex;
  27. flex-direction: column;
  28. height: 100vh;
  29. background-color: #f0f0f0;
  30. }
  31. .header {
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. background-color: #1296db;
  36. color: white;
  37. padding: 10px 20px;
  38. }
  39. .back-icon, .right-icons {
  40. font-size: 20px;
  41. }
  42. .circle {
  43. margin-left: 10px;
  44. }
  45. .selector {
  46. background-color: #fff;
  47. padding: 10px 20px;
  48. margin: 10px;
  49. border-radius: 5px;
  50. }
  51. .picker {
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. }
  56. .arrow {
  57. color: #999;
  58. }
  59. .table-container {
  60. flex: 1;
  61. margin: 0 5px;
  62. }
  63. .table-image {
  64. width: 100%;
  65. height: auto;
  66. }
  67. .contact-btn {
  68. background-color: #1296db;
  69. color: white;
  70. text-align: center;
  71. padding: 10px;
  72. margin: 10px;
  73. border-radius: 20px;
  74. width: 50%;
  75. margin: 10px auto;
  76. }
  77. </style>