StoreInfo.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <div class="storeInfo container">
  3. <div class="form-group">
  4. <div class="storeIns">
  5. <div class="sign">选择商家:</div>
  6. <div class="storeInList" v-for="item in store">
  7. <div :class="{'storeIn-active' : item.isSelected, 'item' : !item.isSelected}">
  8. <a>
  9. <img :src="item.logoUrl || '/images/component/default.png'" :alt="item.storeName" :title="item.storeName">
  10. </a>
  11. </div>
  12. </div>
  13. <!--<div class="storeInList" ng-if="storeIns.length == 0" style="font-size: 14px">-->
  14. <div class="storeInList" style="font-size: 14px">
  15. 暂无商家信息
  16. </div>
  17. </div>
  18. </div>
  19. <div class="form-group" style="margin-bottom: 40px;">
  20. <div>
  21. <div style="font-size: 14px">
  22. <span>产品匹配:</span>
  23. <input type="checkbox">
  24. <span>&nbsp;库存寄售</span>
  25. <input type="checkbox">
  26. <span>&nbsp;店铺自营</span>
  27. <!--<span v-if="storeIns.length==0">暂无可匹配的信息</span>-->
  28. <span>暂无可匹配的信息</span>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="goodsList">
  33. <div class="goods-item">按商家列表</div>
  34. <table class="table">
  35. <thead>
  36. <tr class="height54">
  37. <th class="text-center" width="115">制造商型号</th>
  38. <th class="text-center" width="138">生产日期</th>
  39. <th class="text-center" width="92">包装方式</th>
  40. <th class="text-center" width="173">库存</th>
  41. <th class="text-center" width="92">数量</th>
  42. <th class="text-center" width="116">香港交货<span style="font-size: 12px;">($)</span></th>
  43. <th class="text-center" width="150">大陆交货<span style="font-size: 12px;">(¥)</span></th>
  44. <th class="text-center" width="139">交期</span></th>
  45. <th class="text-center" width="175">操作</th>
  46. </tr>
  47. </thead>
  48. <tbody class="text-center">
  49. <tr style="cursor: pointer;" v-for="list in storeList">
  50. <td>{{list.code}}</td>
  51. <td>{{list.produceDate}}</td>
  52. <td>{{list.packaging || '暂无包装方式'}}</td>
  53. <td style="text-align: left;padding-left: 25px;">
  54. <div>
  55. <span>库存:</span>
  56. <span>{{list.reserve}}</span>
  57. </div>
  58. <div>
  59. <span>起拍:</span>
  60. <span>{{list.minBuyQty}}</span>
  61. </div>
  62. <div>
  63. <span>倍数:</span>
  64. <span>{{list.minPackQty}}</span>
  65. </div>
  66. </td>
  67. <td>
  68. <div v-for="price in list.prices">
  69. <span>{{price.start}}</span>+
  70. </div>
  71. </td>
  72. <td>
  73. <div v-for="price in list.prices">
  74. <span>{{price.rMBPrice | formateNumber : 6 || ''}}</span>
  75. </div>
  76. </td>
  77. <td>
  78. <div v-for="price in list.prices">
  79. <span>{{price.rMBPrice | formateNumber : 6 || ''}}</span>
  80. </div>
  81. </td>
  82. <td>
  83. <div v-show="list.b2cMinDelivery">
  84. <span>香港:</span>
  85. <span>{{list.b2cMinDelivery}}</span>-<span>{{list.b2cMaxDelivery}}</span>
  86. </div>
  87. </td>
  88. <td>
  89. <button class="btn btn-buyNow">立即购买</button>
  90. <button class="btn btn-default">加入购物车</button>
  91. </td>
  92. </tr>
  93. <!--<tr ng-if="$data.length == 0">-->
  94. <tr>
  95. <td colspan="10" class="text-center" style="line-height: 40px; font-size: 14px;"><i class="fa fa-smile-o fa-lg"></i> 暂无现货</td>
  96. </tr>
  97. </tbody>
  98. </table>
  99. </div>
  100. </div>
  101. </template>
  102. <script>
  103. export default {
  104. name: 'StoreInfo',
  105. computed: {
  106. stores () {
  107. return this.$store.state.componentStore.store
  108. },
  109. store () {
  110. console.log(this.stores.data)
  111. return this.stores.data
  112. },
  113. storeLists () {
  114. return this.$store.state.componentInformation.information
  115. },
  116. storeList () {
  117. console.log(this.storeLists.data)
  118. return this.storeLists.data
  119. }
  120. }
  121. }
  122. </script>
  123. <style scoped>
  124. .container .storeIns{
  125. margin-top: 20px;
  126. width: 1190px;
  127. height: 48px;
  128. line-height: 48px;
  129. }
  130. .container .storeIns .sign {
  131. display: table-cell;
  132. vertical-align: middle;
  133. font-size: 14px;
  134. }
  135. .container .storeIns .storeInList {
  136. display: table-cell;
  137. }
  138. .container .storeIn {
  139. width: 98px;
  140. height: 49px;
  141. line-height: 30px;
  142. float: left;
  143. border: 1px solid #ccc;
  144. text-align: center;
  145. vertical-align: middle;
  146. margin-right: 15px;
  147. cursor: pointer;
  148. }
  149. .container .storeIn-active {
  150. width: 98px;
  151. float: left;
  152. border: 1px solid #5078cb;
  153. text-align: center;
  154. vertical-align: middle;
  155. margin-right: 15px;
  156. cursor: pointer;
  157. }
  158. .container .storeIn a,.componentDetail .storeIn-active a {
  159. display: table-cell;
  160. height: 46px;
  161. width: 98px;
  162. text-align: center;
  163. vertical-align: middle;
  164. }
  165. .storeIn a>img,.storeIn-active a>img {
  166. max-width: 95px;
  167. max-height: 46px;
  168. }
  169. .container .goodsList {
  170. clear: both;
  171. font-size: 14px;
  172. }
  173. .container .goodsList .goods-item {
  174. height: 30px;
  175. width: 120px;
  176. background-color: #5078cb;
  177. color: #fff;
  178. text-align: center;
  179. vertical-align: middle;
  180. line-height: 30px;
  181. }
  182. .container .goodsList thead {
  183. background-color: #F7F7F7;
  184. }
  185. .container .goodsList tbody tr td{
  186. vertical-align: middle;
  187. text-align: center;
  188. }
  189. .container .goodsList .btn{
  190. border-radius: 4px;
  191. width: 80px;
  192. height: 30px;
  193. color: #214797;
  194. font-size: 14px;
  195. line-height: 14px;
  196. text-align: center;
  197. margin: 5px 0;
  198. padding: 0;
  199. user-select: none;
  200. background-image: none;
  201. border: 1px solid transparent;
  202. font-weight: 400;
  203. }
  204. .container .goodsList .btn-buyNow {
  205. color: #fff;
  206. background-color: #5078cb;
  207. }
  208. .container .goodsList .btn-default{
  209. background-color: #fff;
  210. border-color: #ccc;
  211. }
  212. .container .form-group input{
  213. vertical-align: sub;
  214. }
  215. .container .height54{
  216. height: 54px;
  217. background: none;
  218. color: #333;
  219. }
  220. .container .height54 th{
  221. line-height: 54px;
  222. border-bottom: none;
  223. padding: 0;
  224. }
  225. .container .table tbody td{
  226. border-bottom: #ddd 1px solid;
  227. border-top: none;
  228. }
  229. .container .table tbody{
  230. border-left: #ddd 1px solid;
  231. border-right: #ddd 1px solid;
  232. }
  233. .container .table tbody td div{
  234. text-align: left;
  235. margin-left: 10%;
  236. }
  237. .container .table tbody tr:hover{
  238. background: #f5f5f5;
  239. }
  240. .container .table tbody tr:hover{
  241. background: #f5f5f5;
  242. }
  243. </style>