建材商城系统20241014
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.

185 lines
3.4 KiB

8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
7 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="商品详情" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="swipe">
  5. <uv-swiper :list="productDetail.image.split(',')" indicator height="350rpx"></uv-swiper>
  6. </view>
  7. <view class="info">
  8. <view class="title">
  9. 桌布租赁
  10. </view>
  11. <view class="info-line">
  12. <view class="price">
  13. <text>45.9</text>
  14. </view>
  15. <!-- <view class="num">
  16. 已售1000+
  17. <image src="../static/product/like.png" mode=""></image>
  18. </view> -->
  19. </view>
  20. <!-- <view class="tips">
  21. <view class="tip">
  22. 专业设备
  23. </view>
  24. <view class="tip">
  25. 科学流程
  26. </view>
  27. <view class="tip">
  28. 质量保证
  29. </view>
  30. </view> -->
  31. </view>
  32. <view class="info-unit">
  33. <uv-cell title="免费上门退·7天无理由退货·快递发货" isLink>
  34. <template #icon>
  35. <text class="text">服务</text>
  36. </template>
  37. </uv-cell>
  38. <uv-cell title="请选择规格" isLink>
  39. <template #icon>
  40. <text class="text">参数</text>
  41. </template>
  42. </uv-cell>
  43. <uv-cell>
  44. <template #icon>
  45. <text>品牌适应人群</text>
  46. </template>
  47. </uv-cell>
  48. </view>
  49. <view class="content">
  50. <view class="title">
  51. 商品详情
  52. </view>
  53. <uv-parse :content="productDetail.content"></uv-parse>
  54. </view>
  55. <!-- 分享和租赁按钮 -->
  56. <submit @submit="submit" @share="share" />
  57. <!-- 选择规格 -->
  58. <submitUnitSelect ref="submitUnitSelect" />
  59. <!-- 联系客服弹框 -->
  60. <customerServicePopup ref="customerServicePopup" />
  61. </view>
  62. </template>
  63. <script>
  64. import submit from '../components/product/submit.vue'
  65. import submitUnitSelect from '../components/product/submitUnitSelect.vue'
  66. import customerServicePopup from "@/components/config/customerServicePopup.vue";
  67. export default {
  68. components: {
  69. submit,
  70. customerServicePopup,
  71. submitUnitSelect
  72. },
  73. data() {
  74. return {
  75. productDetail: {
  76. image: 'https://cdn.uviewui.com/uview/swiper/swiper3.png,https://cdn.uviewui.com/uview/swiper/swiper2.png',
  77. content: '',
  78. }
  79. }
  80. },
  81. onLoad(args) {
  82. console.log(args);
  83. },
  84. methods: {
  85. // 联系客服
  86. share() {
  87. var that = this
  88. that.$refs.customerServicePopup.open();
  89. },
  90. // 选择完成规格立即租赁下单
  91. submit() {
  92. var that = this
  93. that.$refs.submitUnitSelect.open();
  94. // $utils.navigateTo('/pages_order/order/firmOrder?id=')
  95. }
  96. }
  97. }
  98. </script>
  99. <style scoped lang="scss">
  100. .page {
  101. .swipe {}
  102. .info {
  103. padding: 30rpx;
  104. background-color: #fff;
  105. .title {
  106. font-size: 34rpx;
  107. font-weight: 900;
  108. }
  109. .info-line {
  110. display: flex;
  111. justify-content: space-between;
  112. align-items: center;
  113. margin-top: 30rpx;
  114. .price {
  115. font-size: 28rpx;
  116. color: $uni-color;
  117. text {
  118. font-size: 34rpx;
  119. }
  120. }
  121. .num {
  122. font-size: 24rpx;
  123. image {
  124. width: 24rpx;
  125. height: 24rpx;
  126. }
  127. }
  128. }
  129. .tips {
  130. display: flex;
  131. font-size: 20rpx;
  132. margin-top: 30rpx;
  133. .tip {
  134. margin-right: 40rpx;
  135. }
  136. }
  137. }
  138. .info-unit {
  139. margin-top: 20rpx;
  140. padding: 30rpx;
  141. background-color: #fff;
  142. /deep/ text {
  143. font-size: 26rpx;
  144. }
  145. /deep/ .text {
  146. color: #7C7C7C;
  147. margin-right: 20rpx;
  148. font-size: 26rpx;
  149. }
  150. }
  151. .content {
  152. background-color: #fff;
  153. margin-top: 20rpx;
  154. .title {
  155. padding: 30rpx;
  156. }
  157. }
  158. }
  159. </style>