index.wxml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <view class="container">
  2. <view class="topView">
  3. <!-- 导航栏 -->
  4. <van-nav-bar custom-style="background-color: #407DB8">
  5. <van-icon slot="left" name="arrow-left" size="25px" color="#fff" bind:click="backToParent"/>
  6. <text slot="title" style="color: #fff;">商品详情</text>
  7. </van-nav-bar>
  8. </view>
  9. <!-- banner轮播图 -->
  10. <swiper class="banner" wx:if="{{ banners.count != 0 }}" indicator-active-color="orange" indicator-dots autoplay interval="5000" circular>
  11. <swiper-item class="banner_item" wx:for="1" wx:key="index" id="{{ item }}">
  12. <view class="swiper-item">
  13. <image src='{{ goods.imagepath }}' mode="widthFix" />
  14. </view>
  15. </swiper-item>
  16. </swiper>
  17. <!-- 价格信息 -->
  18. <view class="price-info">
  19. <view class="content__item">
  20. <text class="content__item__price" style="font-size: 18px; font-weight: bolder; color: #D91123;">¥{{ price }}</text>
  21. <text class="content__item__rate" wx:if="{{ goods.zscurrencytype === 2 }}">汇率: {{ exchangerate }}</text>
  22. </view>
  23. <view class="content__item">
  24. <text class="content__item__name">【{{ goods.zscategorydisplay }}】商品编号:{{ goods.goodsno }}</text>
  25. </view>
  26. <view class="content__item" wx:if="{{ goods.zscategory === 4 }}">
  27. <text class="content__item__weight">款式:{{ goods.zsstyletypedisplay }}</text>
  28. <text class="content__item__ordertime">主石重量:{{ goods.weight }}克拉</text>
  29. </view>
  30. <view class="content__item" wx:if="{{ goods.zscategory === 4 }}">
  31. <text class="content__item__gprice">克拉单价:{{ unit+priceper }}</text>
  32. <text class="content__item__price">市场价:{{ unit+goods.marketprice }}</text>
  33. </view>
  34. <view class="content__item" wx:if="{{ goods.zscategory != 4 }}">
  35. <text class="content__item__weight">重量:{{ goods.weight }}克拉</text>
  36. <text class="content__item__ordertime">克拉单价:{{ unit+priceper }}</text>
  37. </view>
  38. <view class="content__item" wx:if="{{ goods.zscategory !== 4 }}">
  39. <text class="content__item__price">市场价:{{ unit+goods.marketprice }}</text>
  40. <text class="content__item__price">挂牌时间:{{ ordertime }}</text>
  41. </view>
  42. </view>
  43. <!-- 卖家信息 -->
  44. <view class="seller-info">
  45. <text class="title">【卖家信息】</text>
  46. <view class="content">
  47. <view class="content__item">
  48. <text class="title">名称:</text>
  49. <text class="value">{{ goods.sellusername}}</text>
  50. </view>
  51. <view class="content__item">
  52. <text class="title">电话:</text>
  53. <text class="value">{{ goods.mobile }}</text>
  54. </view>
  55. <view class="content__item">
  56. <text class="title">仓库地址:</text>
  57. <text class="value">{{ goods.provincename+goods.cityname+goods.districtname+goods.address }}</text>
  58. </view>
  59. <view class="content__item">
  60. <text class="title">履约:</text>
  61. </view>
  62. <view class="content__item">
  63. <view class="content__item__step">
  64. <view class="content__item__step__item" wx:for="{{ tmp.LstStep }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">
  65. <text style="color: white; background-color: {{ colors[idx] }};">{{ itm.stepinfo }}</text>
  66. <text>{{ itm.stepdate }}</text>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 钻石属性 -->
  73. <view class="attribute-info">
  74. <text class="title">【钻石属性】</text>
  75. <view class="attribute-info__item">
  76. <text class="title">形状:</text>
  77. <text class="value">{{ goods.zsshapetypedisplay }}</text>
  78. </view>
  79. <view class="attribute-info__item">
  80. <text class="title">颜色:</text>
  81. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zscolortype1display }}</text>
  82. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zscolortype1display }}~{{goods.zscolortype2display}}</text>
  83. </view>
  84. <view class="attribute-info__item">
  85. <text class="title">净度:</text>
  86. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zsclaritytype1display }}</text>
  87. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zsclaritytype1display }}~{{goods.zsclaritytype2display}}</text>
  88. </view>
  89. <view class="attribute-info__item">
  90. <text class="title">切工:</text>
  91. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zscuttype1display }}</text>
  92. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zscuttype1display }}~{{goods.zscuttype2display}}</text>
  93. </view>
  94. <view class="attribute-info__item">
  95. <text class="title">抛光:</text>
  96. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zspolishtype1display }}</text>
  97. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zspolishtype1display }}~{{goods.zspolishtype2display}}</text>
  98. </view>
  99. <view class="attribute-info__item">
  100. <text class="title">荧光:</text>
  101. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zsfluorescencetype1display }}</text>
  102. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zsfluorescencetype1display }}~{{goods.zsfluorescencetype2display}}</text>
  103. </view>
  104. <view class="attribute-info__item">
  105. <text class="title">尺寸:</text>
  106. <text class="value">{{ goods.sizedisplay }}</text>
  107. </view>
  108. <view class="attribute-info__item">
  109. <text class="title">证书类型:</text>
  110. <text class="value">{{ goods.zscerttypedisplay }}</text>
  111. </view>
  112. <view class="attribute-info__item">
  113. <text class="title">证书编号:</text>
  114. <text class="value">{{ goods.cerno }}</text>
  115. </view>
  116. <view class="attribute-info__item" wx:if="{{ goods.zscategory === 4 }}">
  117. <text class="title">镶嵌材料:</text>
  118. <text class="value">{{ goods.settingmaterial }}</text>
  119. </view>
  120. <view class="attribute-info__item" wx:if="{{ goods.zscategory === 4 }}">
  121. <text class="title">配石描述:</text>
  122. <text class="value">{{ goods.stonedesc }}</text>
  123. </view>
  124. </view>
  125. <!-- 按钮 -->
  126. <view class="button-view" style="padding-bottom: {{ safeBottom }}px;">
  127. <van-icon name="{{ operator === 1 ? 'star' : 'star-o' }}" color="#407DB8" size="25" bind:click="onFavoriteOperator"/>
  128. <van-button custom-class="excute" id="excute" round color="linear-gradient(to right, #4bb0ff, #F7A657)" block bind:click="doZSBuyOrderDesting">立即购买</van-button>
  129. </view>
  130. </view>
  131. <!-- toast -->
  132. <van-toast id="van-toast" />
  133. <!-- 对话弹框 -->
  134. <van-dialog id="van-dialog" />