StoreInfo.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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">
  7. <!--<div>-->
  8. <!--<a>-->
  9. <!--&lt;!&ndash;<img ng-src="{{storeIn.logoUrl || 'static/img/all/default.png'}}" alt="storeIn.storeName" title="{{storeIn.storeName}}">&ndash;&gt;-->
  10. <!--<img src="/images/component/store.jpg" alt="" title=""/>-->
  11. <!--</a>-->
  12. <!--</div>-->
  13. </div>
  14. <!--<div class="storeInList" ng-if="storeIns.length == 0" style="font-size: 14px">-->
  15. <div class="storeInList" style="font-size: 14px">
  16. 暂无商家信息
  17. </div>
  18. </div>
  19. </div>
  20. <div class="form-group" style="margin-bottom: 40px;">
  21. <div>
  22. <div style="font-size: 14px">
  23. <span>产品匹配:</span>
  24. <!--<input type="checkbox" ng-checked="!ignoreUMall" ng-click="toggleUMall()" ng-if="Storeexist && Umallexist">-->
  25. <!--<span ng-if="Umallexist">&nbsp;库存寄售</span>-->
  26. <!--<input type="checkbox" ng-checked="!ignoreStore" ng-click="toggleStore()" ng-if="Storeexist && Umallexist">-->
  27. <!--<span ng-if="Storeexist">&nbsp;店铺自营</span>-->
  28. <!--<span ng-if="storeIns.length==0">暂无可匹配的信息</span>-->
  29. <span>暂无可匹配的信息</span>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="goodsList">
  34. <div class="goods-item">按商家列表</div>
  35. <table class="table">
  36. <thead>
  37. <tr class="height54">
  38. <th class="text-center" width="100">制造商型号</th>
  39. <th class="text-center" width="120">生产日期</th>
  40. <th class="text-center" width="80">包装方式</th>
  41. <th class="text-center" width="150">库存</th>
  42. <th class="text-center" width="80">数量</th>
  43. <th class="text-center" width="100">香港交货<span style="font-size: 12px;">($)</span></th>
  44. <th class="text-center" width="130">大陆交货<span style="font-size: 12px;">(¥)</span></th>
  45. <th class="text-center" width="120">交期</span></th>
  46. <th class="text-center" width="150">操作</th>
  47. </tr>
  48. </thead>
  49. <tbody class="text-center">
  50. <tr style="cursor: pointer;">
  51. <td>RT0805BRB0718K2L</td>
  52. <td>2017-4-17</td>
  53. <td>暂无包装方式</td>
  54. <td style="text-align: left;padding-left: 25px;">
  55. <div>
  56. <span>库存:</span>
  57. <span>xxx</span>
  58. </div>
  59. <div>
  60. <span>起拍:</span>
  61. <span>xxx</span>
  62. </div>
  63. <div>
  64. <span>倍数:</span>
  65. <span>xxx</span>
  66. </div>
  67. </td>
  68. <td>
  69. <div>
  70. <span>xxx</span>+
  71. </div>
  72. </td>
  73. <td>
  74. <div>
  75. <span>xxx</span>
  76. </div>
  77. </td>
  78. <td>
  79. <div>
  80. <span>xxx</span>
  81. </div>
  82. </td>
  83. <td>
  84. <div>
  85. <span>香港:</span>
  86. <span>xxx</span>-<span>xxx</span>
  87. </div>
  88. </td>
  89. <td>
  90. <button class="btn btn-buyNow">立即购买</button>
  91. <button class="btn btn-default">加入购物车</button>
  92. </td>
  93. </tr>
  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. }
  114. }
  115. </script>
  116. <style scoped>
  117. .container .storeIns{
  118. margin-top: 20px;
  119. width: 1190px;
  120. height: 48px;
  121. line-height: 48px;
  122. }
  123. .container .storeIns .sign {
  124. display: table-cell;
  125. vertical-align: middle;
  126. font-size: 14px;
  127. }
  128. .container .storeIns .storeInList {
  129. display: table-cell;
  130. }
  131. .container .storeIn {
  132. width: 98px;
  133. height: 49px;
  134. line-height: 30px;
  135. float: left;
  136. border: 1px solid #ccc;
  137. text-align: center;
  138. vertical-align: middle;
  139. margin-right: 15px;
  140. cursor: pointer;
  141. }
  142. .container .storeIn-active {
  143. width: 98px;
  144. float: left;
  145. border: 1px solid #5078cb;
  146. text-align: center;
  147. vertical-align: middle;
  148. margin-right: 15px;
  149. cursor: pointer;
  150. }
  151. .container .storeIn a,.componentDetail .storeIn-active a {
  152. display: table-cell;
  153. height: 46px;
  154. width: 98px;
  155. text-align: center;
  156. vertical-align: middle;
  157. }
  158. .storeIn a>img,.storeIn-active a>img {
  159. max-width: 95px;
  160. max-height: 46px;
  161. }
  162. .container .goodsList {
  163. clear: both;
  164. font-size: 14px;
  165. }
  166. .container .goodsList .goods-item {
  167. height: 30px;
  168. width: 120px;
  169. background-color: #5078cb;
  170. color: #fff;
  171. text-align: center;
  172. vertical-align: middle;
  173. line-height: 30px;
  174. }
  175. .container .goodsList thead {
  176. background-color: #F7F7F7;
  177. }
  178. .container .goodsList tbody tr td{
  179. vertical-align: middle;
  180. text-align: center;
  181. }
  182. .container .goodsList .btn{
  183. border-radius: 4px;
  184. width: 80px;
  185. height: 30px;
  186. color: #214797;
  187. font-size: 14px;
  188. line-height: 14px;
  189. text-align: center;
  190. margin: 5px 0;
  191. padding: 0;
  192. user-select: none;
  193. background-image: none;
  194. border: 1px solid transparent;
  195. font-weight: 400;
  196. }
  197. .container .goodsList .btn-buyNow {
  198. color: #fff;
  199. background-color: #5078cb;
  200. }
  201. .container .goodsList .btn-default{
  202. background-color: #fff;
  203. border-color: #ccc;
  204. }
  205. .container .form-group input{
  206. vertical-align: sub;
  207. }
  208. .container .height54{
  209. height: 54px;
  210. }
  211. .container .height54 th{
  212. line-height: 54px;
  213. border-bottom: none;
  214. padding: 0;
  215. }
  216. .container .table tbody td{
  217. border-bottom: #ddd 1px solid;
  218. border-top: none;
  219. }
  220. .container .table tbody{
  221. border-left: #ddd 1px solid;
  222. border-right: #ddd 1px solid;
  223. }
  224. .container .table tbody td div{
  225. text-align: left;
  226. margin-left: 10%;
  227. }
  228. .container .table tbody tr:hover{
  229. background: #f5f5f5;
  230. }
  231. .container .table tbody tr:hover{
  232. background: #f5f5f5;
  233. }
  234. </style>