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

129 lines
2.1 KiB

6 months ago
6 months ago
6 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>
  19. </view>
  20. <uv-parse :content="productDetail.content"></uv-parse>
  21. <!-- 分享和租赁按钮 -->
  22. <submit
  23. @submit="$refs.submitUnitSelect.open()"
  24. @share="share"/>
  25. <!-- 选择规格 -->
  26. <submitUnitSelect ref="submitUnitSelect"/>
  27. </view>
  28. </template>
  29. <script>
  30. import submit from '../components/product/submit.vue'
  31. import submitUnitSelect from '../components/product/submitUnitSelect.vue'
  32. export default {
  33. components : {
  34. submit,
  35. submitUnitSelect
  36. },
  37. data() {
  38. return {
  39. productDetail : {
  40. image : 'https://cdn.uviewui.com/uview/swiper/swiper3.png,https://cdn.uviewui.com/uview/swiper/swiper2.png',
  41. content : '',
  42. }
  43. }
  44. },
  45. onLoad(args) {
  46. console.log(args);
  47. },
  48. methods: {
  49. // 分享商品
  50. share(){
  51. },
  52. // 选择完成规格立即租赁下单
  53. submit(){
  54. }
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .page{
  60. .swipe{
  61. }
  62. .info{
  63. padding: 30rpx;
  64. background-color: #fff;
  65. .title{
  66. font-size: 34rpx;
  67. font-weight: 900;
  68. }
  69. .info-line{
  70. display: flex;
  71. justify-content: space-between;
  72. align-items: center;
  73. margin-top: 30rpx;
  74. .price{
  75. font-size: 28rpx;
  76. color: $uni-color;
  77. text{
  78. font-size: 34rpx;
  79. }
  80. }
  81. .num{
  82. font-size: 24rpx;
  83. image{
  84. width: 24rpx;
  85. height: 24rpx;
  86. }
  87. }
  88. }
  89. .tips{
  90. display: flex;
  91. font-size: 20rpx;
  92. margin-top: 30rpx;
  93. .tip{
  94. margin-right: 40rpx;
  95. }
  96. }
  97. }
  98. .info-unit{
  99. margin-top: 20rpx;
  100. padding: 30rpx;
  101. background-color: #fff;
  102. /deep/ text{
  103. font-size: 26rpx;
  104. }
  105. /deep/ .text{
  106. color: #7C7C7C;
  107. margin-right: 20rpx;
  108. font-size: 26rpx;
  109. }
  110. }
  111. .content{
  112. background-color: #fff;
  113. margin-top: 20rpx;
  114. .title{
  115. padding: 30rpx;
  116. }
  117. }
  118. }
  119. </style>