index.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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;">¥{{ goods.price }}</text>
  21. <text class="content__item__rate" wx:if="{{ goods.zscurrencytype === 2 }}">汇率: 6.9762</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">
  27. <text class="content__item__weight">款式:{{ goods.zsstyletypedisplay }}</text>
  28. <text class="content__item__ordertime">主石重量:{{ goods.weightavg }}克拉</text>
  29. </view>
  30. <view class="content__item">
  31. <text class="content__item__gprice">克拉单价:{{ goods.zscurrencytypedisplayunit+goods.priceper }}</text>
  32. <text class="content__item__price">市场价:{{ goods.zscurrencytypedisplayunit+goods.marketprice }}</text>
  33. </view>
  34. </view>
  35. <!-- 卖家信息 -->
  36. <view class="seller-info">
  37. <text class="title">【卖家信息】</text>
  38. <view class="content">
  39. <view class="content__item">
  40. <text class="title">名称:</text>
  41. <text class="value">{{ goods.sellusername}}</text>
  42. </view>
  43. <view class="content__item">
  44. <text class="title">电话:</text>
  45. <text class="value">{{ goods.mobile }}</text>
  46. </view>
  47. <view class="content__item">
  48. <text class="title">仓库地址:</text>
  49. <text class="value">{{ goods.provincename+goods.cityname+goods.districtname+goods.address }}</text>
  50. </view>
  51. <view class="content__item">
  52. <text class="title">履约:</text>
  53. <view class="content__item__step">
  54. <view class="content__item__step__item" wx:for="{{ tmp.LstStep }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">
  55. <text style="color: white; background-color: {{ colors[idx] }};">{{ itm.stepinfo }}</text>
  56. <text>{{ itm.stepdate }}</text>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 钻石属性 -->
  63. <view class="attribute-info">
  64. <text class="title">【钻石属性】</text>
  65. <view class="attribute-info__item">
  66. <text class="title">形状:</text>
  67. <text class="value">{{ goods.zsshapetypedisplay }}</text>
  68. </view>
  69. <view class="attribute-info__item">
  70. <text class="title">颜色:</text>
  71. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zscolortype1display }}</text>
  72. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zscolortype1display }}~{{goods.zscolortype2display}}</text>
  73. </view>
  74. <view class="attribute-info__item">
  75. <text class="title">净度:</text>
  76. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zsclaritytype1display }}</text>
  77. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zsclaritytype1display }}~{{goods.zsclaritytype2display}}</text>
  78. </view>
  79. <view class="attribute-info__item">
  80. <text class="title">切工:</text>
  81. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zscuttype1display }}</text>
  82. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zscuttype1display }}~{{goods.zscuttype2display}}</text>
  83. </view>
  84. <view class="attribute-info__item">
  85. <text class="title">抛光:</text>
  86. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zspolishtype1display }}</text>
  87. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zspolishtype1display }}~{{goods.zspolishtype2display}}</text>
  88. </view>
  89. <view class="attribute-info__item">
  90. <text class="title">荧光:</text>
  91. <text class="value" wx:if="{{ goods.zscategory === 4 }}">{{ goods.zsfluorescencetype1display }}</text>
  92. <text class="value" wx:if="{{ goods.zscategory != 4 }}">{{ goods.zsfluorescencetype1display }}~{{goods.zsfluorescencetype2display}}</text>
  93. </view>
  94. <view class="attribute-info__item">
  95. <text class="title">尺寸:</text>
  96. <text class="value">{{ goods.sizedisplay }}</text>
  97. </view>
  98. <view class="attribute-info__item">
  99. <text class="title">证书类型:</text>
  100. <text class="value">{{ goods.zscerttypedisplay }}</text>
  101. </view>
  102. <view class="attribute-info__item">
  103. <text class="title">证书编号:</text>
  104. <text class="value">{{ goods.cerno }}</text>
  105. </view>
  106. <view class="attribute-info__item" wx:if="{{ goods.zscategory === 4 }}">
  107. <text class="title">镶嵌材料:</text>
  108. <text class="value">{{ goods.settingmaterial }}</text>
  109. </view>
  110. <view class="attribute-info__item" wx:if="{{ goods.zscategory === 4 }}">
  111. <text class="title">配石描述:</text>
  112. <text class="value">{{ goods.stonedesc }}</text>
  113. </view>
  114. </view>
  115. <!-- 按钮 -->
  116. <view class="button-view" style="padding-bottom: {{ safeBottom }}px;">
  117. <van-icon name="{{ operator === 1 ? 'star' : 'star-o' }}" color="#407DB8" size="25" bind:click="onFavoriteOperator"/>
  118. <van-button custom-class="excute" id="excute" round color="linear-gradient(to right, #4bb0ff, #F7A657)" block bind:click="doZSBuyOrderDesting">立即购买</van-button>
  119. </view>
  120. </view>
  121. <!-- toast -->
  122. <van-toast id="van-toast" />
  123. <!-- 对话弹框 -->
  124. <van-dialog id="van-dialog" />