酒店桌布为微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
2.4 KiB

7 months ago
  1. <template>
  2. <view class="shopbox" v-if="bindShop && bindShop.name">
  3. <view class="shop">
  4. <image class="image" :src="bindShop.pic" mode="aspectFill"></image>
  5. <view class="shopInfo">
  6. <view class="title">
  7. {{bindShop.name}}
  8. </view>
  9. <view class="tags">
  10. <view class="tag">
  11. 桌布水洗
  12. </view>
  13. <view class="tag">
  14. 桌布租赁
  15. </view>
  16. </view>
  17. <view class="time">
  18. 9:00-18:00
  19. </view>
  20. <view class="address text-ellipsis-2">
  21. {{bindShop.address}}
  22. </view>
  23. </view>
  24. <view class="tips">
  25. 关联门店主信门店
  26. </view>
  27. </view>
  28. <view class="btns">
  29. <view class="btn" @click="$utils.navigateTo('/pages_order/order/createWash')">
  30. 我要水洗
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. import { mapGetters, mapState } from 'vuex'
  37. export default {
  38. computed : {
  39. ...mapGetters(['userShop']),
  40. ...mapState(['bindShop', 'statistics']),
  41. },
  42. data() {
  43. return {
  44. };
  45. }
  46. }
  47. </script>
  48. <style lang="scss">
  49. .shopbox{
  50. position: relative;
  51. background-color: #fff;
  52. margin-top: 20rpx;
  53. border-radius: 20rpx;
  54. padding-bottom: 30rpx;
  55. .btns {
  56. margin-left: auto;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. flex-shrink: 0;
  61. padding: 0 20rpx;
  62. .btn {
  63. background-color: $uni-color;
  64. color: #fff;
  65. box-shadow: 0 0 5rpx 5rpx #FFAC6E;
  66. padding: 20rpx 0;
  67. text-align: center;
  68. flex-shrink: 0;
  69. border-radius: 35rpx;
  70. flex: 1;
  71. }
  72. }
  73. }
  74. .shop {
  75. padding: 30rpx;
  76. padding-top: 50rpx;
  77. position: relative;
  78. display: flex;
  79. align-items: center;
  80. border-radius: 20rpx;
  81. padding: 20rpx;
  82. overflow: hidden;
  83. .image {
  84. width: 220rpx;
  85. height: 220rpx;
  86. margin-right: 20rpx;
  87. border-radius: 20rpx;
  88. flex-shrink: 0;
  89. }
  90. .shopInfo {
  91. font-size: 24rpx;
  92. .title {
  93. font-size: 32rpx;
  94. }
  95. .tags {
  96. display: flex;
  97. .tag {
  98. padding: 4rpx 6rpx;
  99. border: 1rpx solid #FFAC6E;
  100. color: #FFAC6E;
  101. margin-right: 10rpx;
  102. margin-top: 10rpx;
  103. font-size: 22rpx;
  104. border-radius: 10rpx;
  105. }
  106. }
  107. .time {
  108. margin-top: 10rpx;
  109. display: flex;
  110. }
  111. .address {
  112. margin-top: 10rpx;
  113. display: flex;
  114. }
  115. }
  116. .tips {
  117. position: absolute;
  118. top: 0;
  119. right: 0;
  120. font-size: 24rpx;
  121. color: #FFAC6E;
  122. background-color: #FEF5EE;
  123. padding: 10rpx 20rpx;
  124. border-radius: 10rpx;
  125. }
  126. }
  127. </style>