铝交易,微信公众号
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.

218 lines
3.9 KiB

8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 months ago
8 months ago
5 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
  6. v-if="productDetail.picDetail"
  7. :list="productDetail.picDetail.split(',')"
  8. indicator
  9. height="350rpx"></uv-swiper>
  10. </view>
  11. <view class="info">
  12. <view class="title">
  13. {{ productDetail.specsName }}
  14. </view>
  15. <view class="info-line">
  16. <view class="price">
  17. 单价<text>{{ productDetail.price }}</text>
  18. </view>
  19. <view class="num">
  20. 库存{{ productDetail.num }}
  21. <!-- <image src="../static/product/like.png" mode=""></image> -->
  22. </view>
  23. </view>
  24. <!-- <view class="tips">
  25. <view class="tip">
  26. 专业设备
  27. </view>
  28. <view class="tip">
  29. 科学流程
  30. </view>
  31. <view class="tip">
  32. 质量保证
  33. </view>
  34. </view> -->
  35. </view>
  36. <!-- <view class="info-unit">
  37. <uv-cell title="是否有桌布" isLink>
  38. <template #icon>
  39. <text class="text">桌布</text>
  40. </template>
  41. </uv-cell>
  42. <uv-cell title="请选择规格" isLink>
  43. <template #icon>
  44. <text class="text">规格</text>
  45. </template>
  46. </uv-cell>
  47. <uv-cell>
  48. <template #icon>
  49. <text>上门取件·送货上门</text>
  50. </template>
  51. </uv-cell>
  52. </view> -->
  53. <!-- <uv-parse :content="productDetail.content"></uv-parse> -->
  54. <view class="content"
  55. v-if="productDetail.video">
  56. <view class="title">
  57. 商品视频
  58. </view>
  59. <view class="list-video">
  60. <view class="video"
  61. :key="index"
  62. v-for="(item, index) in productDetail.video.split(',')">
  63. <video :src="item"></video>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="content"
  68. v-if="productDetail.report">
  69. <view class="title">
  70. 检测报告
  71. </view>
  72. <view class=""
  73. style="padding: 0 30rpx;">
  74. <uv-album
  75. :urls="productDetail.report.split(',')"></uv-album>
  76. </view>
  77. </view>
  78. <view class="content"
  79. v-if="productDetail.reportVideo">
  80. <view class="title">
  81. 检测视频
  82. </view>
  83. <view class="list-video">
  84. <view class="video"
  85. :key="index"
  86. v-for="(item, index) in productDetail.reportVideo.split(',')">
  87. <video :src="item"></video>
  88. </view>
  89. </view>
  90. </view>
  91. <!-- 分享和租赁按钮 -->
  92. <submit
  93. @submit="submit"
  94. @share="share"/>
  95. <!-- 选择规格 -->
  96. <!-- <submitUnitSelect ref="submitUnitSelect"/> -->
  97. </view>
  98. </template>
  99. <script>
  100. import submit from '../components/product/submit.vue'
  101. import submitUnitSelect from '../components/product/submitUnitSelect.vue'
  102. export default {
  103. components : {
  104. submit,
  105. submitUnitSelect
  106. },
  107. data() {
  108. return {
  109. productDetail : {
  110. }
  111. }
  112. },
  113. onLoad(args) {
  114. this.productDetail = this.$store.state.productDetail
  115. },
  116. methods: {
  117. // 分享商品
  118. share(){
  119. },
  120. // 选择完成规格立即租赁下单
  121. submit(){
  122. uni.navigateTo({
  123. url: `/pages_order/tradingPlatform/nowOrder`,
  124. });
  125. }
  126. }
  127. }
  128. </script>
  129. <style scoped lang="scss">
  130. .page{
  131. padding-bottom: 120rpx;
  132. .swipe{
  133. }
  134. .info{
  135. padding: 30rpx;
  136. background-color: #fff;
  137. .title{
  138. font-size: 34rpx;
  139. font-weight: 900;
  140. }
  141. .info-line{
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. margin-top: 30rpx;
  146. .price{
  147. font-size: 28rpx;
  148. color: $uni-color;
  149. text{
  150. font-size: 34rpx;
  151. }
  152. }
  153. .num{
  154. font-size: 24rpx;
  155. image{
  156. width: 24rpx;
  157. height: 24rpx;
  158. }
  159. }
  160. }
  161. .tips{
  162. display: flex;
  163. font-size: 20rpx;
  164. margin-top: 30rpx;
  165. .tip{
  166. margin-right: 40rpx;
  167. }
  168. }
  169. }
  170. .info-unit{
  171. margin-top: 20rpx;
  172. padding: 30rpx;
  173. background-color: #fff;
  174. /deep/ text{
  175. font-size: 26rpx;
  176. }
  177. /deep/ .text{
  178. color: #7C7C7C;
  179. margin-right: 20rpx;
  180. font-size: 26rpx;
  181. }
  182. }
  183. .content{
  184. background-color: #fff;
  185. margin-top: 20rpx;
  186. .title{
  187. padding: 30rpx;
  188. }
  189. }
  190. .list-video{
  191. display: flex;
  192. flex-wrap: wrap;
  193. video{
  194. width: 750rpx;
  195. height: 420rpx;
  196. }
  197. }
  198. }
  199. </style>