StoreInfo.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. 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. }
  218. .container .height54 th{
  219. line-height: 54px;
  220. border-bottom: none;
  221. padding: 0;
  222. }
  223. .container .table tbody td{
  224. border-bottom: #ddd 1px solid;
  225. border-top: none;
  226. }
  227. .container .table tbody{
  228. border-left: #ddd 1px solid;
  229. border-right: #ddd 1px solid;
  230. }
  231. .container .table tbody td div{
  232. text-align: left;
  233. margin-left: 10%;
  234. }
  235. .container .table tbody tr:hover{
  236. background: #f5f5f5;
  237. }
  238. .container .table tbody tr:hover{
  239. background: #f5f5f5;
  240. }
  241. </style>