|
@@ -18,15 +18,15 @@
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="8">
|
|
|
|
|
|
+ <!-- <el-col :span="8">
|
|
<div class="searchBox">
|
|
<div class="searchBox">
|
|
<div class="searchTitle">按关键字搜索</div>
|
|
<div class="searchTitle">按关键字搜索</div>
|
|
<el-input v-model="getApiData.keyword[0]" placeholder="根据描述推荐皮肤"></el-input>
|
|
<el-input v-model="getApiData.keyword[0]" placeholder="根据描述推荐皮肤"></el-input>
|
|
</div>
|
|
</div>
|
|
- </el-col>
|
|
|
|
- <el-col :span="8">
|
|
|
|
|
|
+ </el-col> -->
|
|
|
|
+ <el-col :span="16">
|
|
<div class="searchBtnBox">
|
|
<div class="searchBtnBox">
|
|
- <el-button type="primary" @click="reset">重置</el-button>
|
|
|
|
|
|
+ <el-button type="default" @click="reset">重置</el-button>
|
|
<el-button type="primary" @click="getData('search')">搜索</el-button>
|
|
<el-button type="primary" @click="getData('search')">搜索</el-button>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -37,7 +37,7 @@
|
|
<!--表格内容 start------------------------------------------------------------>
|
|
<!--表格内容 start------------------------------------------------------------>
|
|
<div class="layerBox">
|
|
<div class="layerBox">
|
|
<tableTitle :name="tableDivTitle" />
|
|
<tableTitle :name="tableDivTitle" />
|
|
- <div class="templateStyleBox">
|
|
|
|
|
|
+ <div class="templateStyleBox" v-if="tableData.length != 0">
|
|
<div class="templateStyleItem" v-for="(item, index) in tableData" :key="index">
|
|
<div class="templateStyleItem" v-for="(item, index) in tableData" :key="index">
|
|
<div :class="['templateStyleItemBox', { active: item.status == 1 || item.template_id == userTemplateId }]" @click="useIt(item)">
|
|
<div :class="['templateStyleItemBox', { active: item.status == 1 || item.template_id == userTemplateId }]" @click="useIt(item)">
|
|
<img :src="item.template_img[0].url">
|
|
<img :src="item.template_img[0].url">
|
|
@@ -45,7 +45,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="paginationBox">
|
|
|
|
|
|
+ <div class="thumbnailItem" v-else>
|
|
|
|
+ <p class="notData">该风格下暂无皮肤</p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="paginationBox" v-if="tableData.length != 0">
|
|
<el-pagination
|
|
<el-pagination
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
:current-page="getApiData.page"
|
|
:current-page="getApiData.page"
|
|
@@ -182,6 +185,8 @@ export default {
|
|
this.tableData = data;
|
|
this.tableData = data;
|
|
//总条数
|
|
//总条数
|
|
this.allCount = res.data.template.total;
|
|
this.allCount = res.data.template.total;
|
|
|
|
+
|
|
|
|
+ this.userData = [];
|
|
//标记用户之前的选择
|
|
//标记用户之前的选择
|
|
if(res.data.template_id==0||res.data.template_id==null){
|
|
if(res.data.template_id==0||res.data.template_id==null){
|
|
console.log("用户从未选择过皮肤!")
|
|
console.log("用户从未选择过皮肤!")
|