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

247 lines
4.6 KiB

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