details.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view>
  3. <uni-swiper-dot :info="info" :current="current" :mode="mode" :dots-styles="dotsStyles" field="content">
  4. <swiper class="swiper-box" @change="change">
  5. <swiper-item v-for="(item, index) in info" :key="index">
  6. <view class="swiper-item"><image :src="item.url" mode="aspectFill" /></view>
  7. </swiper-item>
  8. </swiper>
  9. </uni-swiper-dot>
  10. <view class="user">
  11. <view class="name">
  12. <text>郑州豫满楼饭店</text>
  13. 豪华型
  14. </view>
  15. <view class="address">二七区德化街39号(近德化步行街、郑州长 途汽车站)</view>
  16. <view class="phone">
  17. <text></text>
  18. 12345645595
  19. </view>
  20. </view>
  21. <view class="img">
  22. <text>详情</text>
  23. <image src="../../static/logo.png" mode=""></image>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import uniSwiperDot from '@/components/uni-swiper-dot/uni-swiper-dot.vue';
  29. export default {
  30. components: {
  31. uniSwiperDot
  32. },
  33. data() {
  34. return {
  35. info: [
  36. {
  37. url: 'https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/shuijiao.jpg'
  38. },
  39. {
  40. url: 'https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/muwu.jpg'
  41. },
  42. {
  43. url: 'https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/cbd.jpg'
  44. }
  45. ]
  46. };
  47. }
  48. };
  49. </script>
  50. <style lang="scss">
  51. .swiper-box {
  52. height: 430upx;
  53. .swiper-item image {
  54. width: 100%;
  55. }
  56. }
  57. .user {
  58. font-size: 28upx;
  59. .name{
  60. font-size: 24upx;
  61. text{
  62. font-size: 38upx;
  63. font-weight: 800;
  64. margin-right: 20upx;
  65. }
  66. }
  67. .address,.phone{
  68. padding: 10upx 0;
  69. }
  70. }
  71. .img{
  72. border-top:1px #DFDFDF solid ;
  73. display: flex;
  74. margin-top: 40upx;
  75. flex-direction: column;
  76. align-items: center;
  77. text{
  78. margin-top: -25upx;
  79. width: 20%;
  80. text-align: center;
  81. background-color: #FFFFFF;
  82. margin-bottom: 50upx;
  83. }
  84. image{
  85. width: 100%;
  86. }
  87. }
  88. </style>