工单小程序2024-11-20
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.

169 lines
2.9 KiB

3 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 class="tips">
  24. <view class="tip">
  25. 专业设备
  26. </view>
  27. <view class="tip">
  28. 科学流程
  29. </view>
  30. <view class="tip">
  31. 质量保证
  32. </view>
  33. </view>
  34. </view>
  35. <view class="info-unit">
  36. <uv-cell title="是否有桌布" isLink>
  37. <template #icon>
  38. <text class="text">桌布</text>
  39. </template>
  40. </uv-cell>
  41. <uv-cell title="请选择规格" isLink>
  42. <template #icon>
  43. <text class="text">规格</text>
  44. </template>
  45. </uv-cell>
  46. <uv-cell>
  47. <template #icon>
  48. <text>上门取件·送货上门</text>
  49. </template>
  50. </uv-cell>
  51. </view>
  52. <view class="content">
  53. <view class="title">
  54. 商品详情
  55. </view>
  56. <uv-parse :content="productDetail.content"></uv-parse>
  57. </view>
  58. <!-- 分享和租赁按钮 -->
  59. <submit
  60. @submit="$refs.submitUnitSelect.open()"
  61. @share="share"/>
  62. <!-- 选择规格 -->
  63. <submitUnitSelect ref="submitUnitSelect"/>
  64. </view>
  65. </template>
  66. <script>
  67. import submit from '../components/product/submit.vue'
  68. import submitUnitSelect from '../components/product/submitUnitSelect.vue'
  69. export default {
  70. components : {
  71. submit,
  72. submitUnitSelect
  73. },
  74. data() {
  75. return {
  76. productDetail : {
  77. image : 'https://cdn.uviewui.com/uview/swiper/swiper3.png,https://cdn.uviewui.com/uview/swiper/swiper2.png',
  78. content : '',
  79. }
  80. }
  81. },
  82. onLoad(args) {
  83. console.log(args);
  84. },
  85. methods: {
  86. // 分享商品
  87. share(){
  88. },
  89. // 选择完成规格立即租赁下单
  90. submit(){
  91. }
  92. }
  93. }
  94. </script>
  95. <style scoped lang="scss">
  96. .page{
  97. .swipe{
  98. }
  99. .info{
  100. padding: 30rpx;
  101. background-color: #fff;
  102. .title{
  103. font-size: 34rpx;
  104. font-weight: 900;
  105. }
  106. .info-line{
  107. display: flex;
  108. justify-content: space-between;
  109. align-items: center;
  110. margin-top: 30rpx;
  111. .price{
  112. font-size: 28rpx;
  113. color: $uni-color;
  114. text{
  115. font-size: 34rpx;
  116. }
  117. }
  118. .num{
  119. font-size: 24rpx;
  120. image{
  121. width: 24rpx;
  122. height: 24rpx;
  123. }
  124. }
  125. }
  126. .tips{
  127. display: flex;
  128. font-size: 20rpx;
  129. margin-top: 30rpx;
  130. .tip{
  131. margin-right: 40rpx;
  132. }
  133. }
  134. }
  135. .info-unit{
  136. margin-top: 20rpx;
  137. padding: 30rpx;
  138. background-color: #fff;
  139. /deep/ text{
  140. font-size: 26rpx;
  141. }
  142. /deep/ .text{
  143. color: #7C7C7C;
  144. margin-right: 20rpx;
  145. font-size: 26rpx;
  146. }
  147. }
  148. .content{
  149. background-color: #fff;
  150. margin-top: 20rpx;
  151. .title{
  152. padding: 30rpx;
  153. }
  154. }
  155. }
  156. </style>