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

180 lines
3.1 KiB

9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="商品详情" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="swipe">
  5. <uv-swiper :list="productDetail.waresImage &&
  6. productDetail.waresImage.split(',')" indicator height="420rpx"></uv-swiper>
  7. </view>
  8. <view class="info">
  9. <view class="title">
  10. {{productDetail.waresTitle}}
  11. </view>
  12. <view class="info-line">
  13. <view class="price">
  14. <text>{{productDetail.waresPrice}}</text>
  15. </view>
  16. <view class="num">
  17. {{productDetail.waresSales}}
  18. <image src="../static/product/like.png" mode=""></image>
  19. </view>
  20. </view>
  21. <view class="tips">
  22. <view class="tip">
  23. 专业设备
  24. </view>
  25. <view class="tip">
  26. 科学流程
  27. </view>
  28. <view class="tip">
  29. 质量保证
  30. </view>
  31. </view>
  32. </view>
  33. <view class="info-unit">
  34. <uv-cell title="服务" isLink>
  35. <template #icon>
  36. <text class="text">免费上门退·7天无理由退货·快递发货</text>
  37. </template>
  38. </uv-cell>
  39. <uv-cell title="参数" isLink>
  40. <template #icon>
  41. <text class="text">品牌适应人群</text>
  42. </template>
  43. </uv-cell>
  44. </view>
  45. <view class="content">
  46. <view class="title">
  47. 详情
  48. </view>
  49. <uv-parse :content="productDetail.content"></uv-parse>
  50. </view>
  51. <!-- 分享和租赁按钮 -->
  52. <submit @submit="$refs.submitUnitSelect.open()" @share="share" />
  53. <!-- 选择规格 -->
  54. <submitUnitSelect ref="submitUnitSelect" />
  55. </view>
  56. </template>
  57. <script>
  58. import submit from '../components/product/submit.vue'
  59. import submitUnitSelect from '../components/product/submitUnitSelect.vue'
  60. export default {
  61. components: {
  62. submit,
  63. submitUnitSelect
  64. },
  65. data() {
  66. return {
  67. productDetail: {},
  68. productId : 0,
  69. }
  70. },
  71. onLoad(args) {
  72. this.productId = args.id
  73. this.queryWaresById()
  74. },
  75. methods: {
  76. // 分享商品
  77. share() {
  78. },
  79. // 选择完成规格立即租赁下单
  80. submit() {
  81. },
  82. queryWaresById() {
  83. this.$api('queryWaresById', {
  84. waresId: this.productId
  85. },
  86. res => {
  87. if (res.code == 200) {
  88. console.log(res);
  89. this.productDetail = res.result
  90. }
  91. })
  92. }
  93. }
  94. }
  95. </script>
  96. <style scoped lang="scss">
  97. .page {
  98. .swipe {}
  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>