酒店桌布为微信小程序
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.

150 lines
2.6 KiB

9 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="商品详情" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="swipe">
  5. <uv-swiper
  6. :list="productDetail.image.split(',')"
  7. indicator
  8. height="350rpx"></uv-swiper>
  9. </view>
  10. <view class="info">
  11. <view class="title">
  12. 桌布租赁
  13. </view>
  14. <view class="info-line">
  15. <view class="price">
  16. <text>45.9</text>
  17. </view>
  18. <view class="num">
  19. 已售1000+
  20. <image src="../static/product/like.png" mode=""></image>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="info-unit">
  25. <uv-cell title="是否有桌布" isLink>
  26. <template #icon>
  27. <text class="text">桌布</text>
  28. </template>
  29. </uv-cell>
  30. <uv-cell title="请选择规格" isLink>
  31. <template #icon>
  32. <text class="text">规格</text>
  33. </template>
  34. </uv-cell>
  35. <uv-cell>
  36. <template #icon>
  37. <text>上门取件·送货上门</text>
  38. </template>
  39. </uv-cell>
  40. </view>
  41. <view class="content">
  42. <view class="title">
  43. 商品详情
  44. </view>
  45. <uv-parse :content="productDetail.content"></uv-parse>
  46. </view>
  47. <!-- 分享和租赁按钮 -->
  48. <submit
  49. @submit="$refs.submitUnitSelect.open()"
  50. @share="share"/>
  51. <!-- 选择规格 -->
  52. <submitUnitSelect ref="submitUnitSelect"/>
  53. </view>
  54. </template>
  55. <script>
  56. import submit from '../components/product/submit.vue'
  57. import submitUnitSelect from '../components/product/submitUnitSelect.vue'
  58. export default {
  59. components : {
  60. submit,
  61. submitUnitSelect
  62. },
  63. data() {
  64. return {
  65. productDetail : {
  66. image : 'https://cdn.uviewui.com/uview/swiper/swiper3.png,https://cdn.uviewui.com/uview/swiper/swiper2.png',
  67. content : '',
  68. }
  69. }
  70. },
  71. onLoad(args) {
  72. console.log(args);
  73. },
  74. methods: {
  75. // 分享商品
  76. share(){
  77. },
  78. // 选择完成规格立即租赁下单
  79. submit(){
  80. }
  81. }
  82. }
  83. </script>
  84. <style scoped lang="scss">
  85. .page{
  86. .swipe{
  87. }
  88. .info{
  89. padding: 30rpx;
  90. background-color: #fff;
  91. .title{
  92. font-size: 34rpx;
  93. font-weight: 900;
  94. }
  95. .info-line{
  96. display: flex;
  97. justify-content: space-between;
  98. align-items: center;
  99. margin-top: 30rpx;
  100. .price{
  101. font-size: 28rpx;
  102. color: $uni-color;
  103. text{
  104. font-size: 34rpx;
  105. }
  106. }
  107. .num{
  108. font-size: 24rpx;
  109. image{
  110. width: 24rpx;
  111. height: 24rpx;
  112. }
  113. }
  114. }
  115. }
  116. .info-unit{
  117. margin-top: 20rpx;
  118. padding: 30rpx;
  119. background-color: #fff;
  120. /deep/ text{
  121. font-size: 26rpx;
  122. }
  123. /deep/ .text{
  124. color: #7C7C7C;
  125. margin-right: 20rpx;
  126. font-size: 26rpx;
  127. }
  128. }
  129. .content{
  130. background-color: #fff;
  131. margin-top: 20rpx;
  132. .title{
  133. padding: 30rpx;
  134. }
  135. }
  136. }
  137. </style>