|
|
@@ -1,47 +1,49 @@
|
|
|
<template>
|
|
|
- <div id="store-list">
|
|
|
- <table class="table">
|
|
|
- <thead>
|
|
|
- <tr data-v-12978a78="">
|
|
|
- <td width="120"><span v-text="storeType === 'factory' ? '原 厂' : '代理经销'">原厂</span></td>
|
|
|
- <td width="100" data-v-12978a78=""></td>
|
|
|
- <td width="450" data-v-12978a78=""></td>
|
|
|
- <td width="150" style="vertical-align: middle" data-v-12978a78=""></td>
|
|
|
- <td width="120" style="vertical-align: middle;" data-v-12978a78=""></td>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <!--<tr>{{$data}}</tr>-->
|
|
|
- <tr style="height: 50px;">
|
|
|
- <td colspan="5">
|
|
|
- <search-header :outerKeyword="keyword" @searchAction="search" :placeholder="'品牌/类目/型号/店铺名'"></search-header>
|
|
|
- <a @click="goStoreApply" class="btn-sure"><button class="btn btn-primary">立即入驻</button></a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr v-for="store in stores.content" v-if="store">
|
|
|
- <td>
|
|
|
- <div class="logo">
|
|
|
- <a :href="'/store/' + store.uuid" target="_blank"><img :src="store.logoUrl || '/images/store/common/default.png'" :alt="store.storeName"></a>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td colspan="3">
|
|
|
- <a class="store-name" :href="'/store/' + store.uuid" target="_blank"><div :title="store.storeName">{{store.storeName}}</div></a>
|
|
|
- <div class="store-message">
|
|
|
- <span>企业介绍:</span>
|
|
|
- <span style="word-break: break-word;">{{showLittleDescription(store.enterprise.description)}}<em v-if="store.description && store.description.length > 160">...</em></span>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="vertical-middle" style="text-align: center">
|
|
|
- <a :href="'/store/' + store.uuid" target="_blank"><button class="btn btn-primary">进入店铺</button></a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr v-if="!stores.content || stores.content.length == 0">
|
|
|
- <td colspan="10" class="text-center" style="line-height: 40px; font-size: 20px;">
|
|
|
- <i class="fa fa-smile-o fa-lg"></i> 暂无店铺信息
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ <div>
|
|
|
+ <div id="store-list">
|
|
|
+ <table class="table">
|
|
|
+ <thead>
|
|
|
+ <tr data-v-12978a78="">
|
|
|
+ <td width="120"><span v-text="storeType === 'factory' ? '原 厂' : '代理经销'">原厂</span></td>
|
|
|
+ <td width="100" data-v-12978a78=""></td>
|
|
|
+ <td width="450" data-v-12978a78=""></td>
|
|
|
+ <td width="150" style="vertical-align: middle" data-v-12978a78=""></td>
|
|
|
+ <td width="120" style="vertical-align: middle;" data-v-12978a78=""></td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <!--<tr>{{$data}}</tr>-->
|
|
|
+ <tr style="height: 50px;">
|
|
|
+ <td colspan="5">
|
|
|
+ <search-header :outerKeyword="keyword" @searchAction="search" :placeholder="'品牌/类目/型号/店铺名'"></search-header>
|
|
|
+ <a @click="goStoreApply" class="btn-sure"><button class="btn btn-primary">立即入驻</button></a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr v-for="store in stores.content" v-if="store">
|
|
|
+ <td>
|
|
|
+ <div class="logo">
|
|
|
+ <a :href="'/store/' + store.uuid" target="_blank"><img :src="store.logoUrl || '/images/store/common/default.png'" :alt="store.storeName"></a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td colspan="3">
|
|
|
+ <a class="store-name" :href="'/store/' + store.uuid" target="_blank"><div :title="store.storeName">{{store.storeName}}</div></a>
|
|
|
+ <div class="store-message">
|
|
|
+ <span>企业介绍:</span>
|
|
|
+ <span style="word-break: break-word;">{{showLittleDescription(store.enterprise.description)}}<em v-if="store.description && store.description.length > 160">...</em></span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="vertical-middle" style="text-align: center">
|
|
|
+ <a :href="'/store/' + store.uuid" target="_blank"><button class="btn btn-primary">进入店铺</button></a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr v-if="!stores.content || stores.content.length == 0">
|
|
|
+ <td colspan="10" class="text-center" style="line-height: 40px; font-size: 20px;">
|
|
|
+ <i class="fa fa-smile-o fa-lg"></i> 暂无店铺信息
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
<div style="float: right;">
|
|
|
<page :total="stores.totalElements" :page-size="pageParams.count"
|
|
|
:current="pageParams.page" v-on:childEvent="handleCurrentChange"></page>
|
|
|
@@ -132,10 +134,11 @@ export default {
|
|
|
<style lang="scss" scoped>
|
|
|
#store-list{
|
|
|
width: 955px;
|
|
|
+ height: 1213px;
|
|
|
+ background: #fff;
|
|
|
table{
|
|
|
table-layout: fixed;
|
|
|
width: 955px;
|
|
|
- height: 1216px;
|
|
|
thead{
|
|
|
padding: 10px 0 9px 9px;
|
|
|
width: 955px;
|