景徳镇旅游微信小程序
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.

163 lines
2.9 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 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">免费上门退·7天无理由退货·快递发货</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. </view>
  47. <view class="content">
  48. <view class="title">
  49. 详情
  50. </view>
  51. <uv-parse :content="productDetail.content"></uv-parse>
  52. </view>
  53. <!-- 分享和租赁按钮 -->
  54. <submit
  55. @submit="$refs.submitUnitSelect.open()"
  56. @share="share"/>
  57. <!-- 选择规格 -->
  58. <submitUnitSelect ref="submitUnitSelect"/>
  59. </view>
  60. </template>
  61. <script>
  62. import submit from '../components/product/submit.vue'
  63. import submitUnitSelect from '../components/product/submitUnitSelect.vue'
  64. export default {
  65. components : {
  66. submit,
  67. submitUnitSelect
  68. },
  69. data() {
  70. return {
  71. productDetail : {
  72. image : 'https://cdn.uviewui.com/uview/swiper/swiper3.png,https://cdn.uviewui.com/uview/swiper/swiper2.png',
  73. content : '',
  74. },
  75. }
  76. },
  77. onLoad(args) {
  78. console.log(args);
  79. },
  80. methods: {
  81. // 分享商品
  82. share(){
  83. },
  84. // 选择完成规格立即租赁下单
  85. submit(){
  86. }
  87. }
  88. }
  89. </script>
  90. <style scoped lang="scss">
  91. .page{
  92. .swipe{
  93. }
  94. .info{
  95. padding: 30rpx;
  96. background-color: #fff;
  97. .title{
  98. font-size: 34rpx;
  99. font-weight: 900;
  100. }
  101. .info-line{
  102. display: flex;
  103. justify-content: space-between;
  104. align-items: center;
  105. margin-top: 30rpx;
  106. .price{
  107. font-size: 28rpx;
  108. color: $uni-color;
  109. text{
  110. font-size: 34rpx;
  111. }
  112. }
  113. .num{
  114. font-size: 24rpx;
  115. image{
  116. width: 24rpx;
  117. height: 24rpx;
  118. }
  119. }
  120. }
  121. .tips{
  122. display: flex;
  123. font-size: 20rpx;
  124. margin-top: 30rpx;
  125. .tip{
  126. margin-right: 40rpx;
  127. }
  128. }
  129. }
  130. .info-unit{
  131. margin-top: 20rpx;
  132. padding: 30rpx;
  133. background-color: #fff;
  134. /deep/ text{
  135. font-size: 26rpx;
  136. }
  137. /deep/ .text{
  138. color: #7C7C7C;
  139. margin-right: 20rpx;
  140. font-size: 26rpx;
  141. }
  142. }
  143. .content{
  144. background-color: #fff;
  145. margin-top: 20rpx;
  146. .title{
  147. padding: 30rpx;
  148. }
  149. }
  150. }
  151. </style>