Commit 6dd3c83b by Lyan

bug 修改

parent 867a0b76
...@@ -44,6 +44,10 @@ const geGuideDetailById = (params = {}) => { ...@@ -44,6 +44,10 @@ const geGuideDetailById = (params = {}) => {
const getPictureById = (params = {}) => { const getPictureById = (params = {}) => {
return GET(`${Prefix}/office/picture/api/info/${params.id}`) return GET(`${Prefix}/office/picture/api/info/${params.id}`)
} }
// 图片集根据id获取详情flag=2
const getPictureById2 = (params = {}) => {
return GET(`${Prefix}/office/retailpicture/api/info/${params.id}`)
}
// 获取最新动态列表 // 获取最新动态列表
const getLatestNews = (params = {}) => { const getLatestNews = (params = {}) => {
...@@ -58,6 +62,7 @@ export default { ...@@ -58,6 +62,7 @@ export default {
geDetailById, geDetailById,
geGuideDetailById, geGuideDetailById,
getPictureById, getPictureById,
getPictureById2,
getLatestNews, getLatestNews,
getPicture getPicture
} }
\ No newline at end of file
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<li v-if="loginInfo.isQY === 2"> <li v-if="loginInfo.isQY === 2">
<p class="content-title"> <p class="content-title">
厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证) 厂商实名认证(办理“进口商品信息通报、GLN”等业务需先完成此认证)
<label :style="tycpdmFirmInfo.logoutFlag === 0?'color: #50c96b':'color: #ff0033'">{{tycpdmFirmInfo.logoutFlag === 0 ? '(审核中)' : tycpdmFirmInfo.logoutFlag === 2 ? '(审核不通过)' : ''}}</label> <!-- <label :style="tycpdmFirmInfo.logoutFlag === 0?'color: #50c96b':'color: #ff0033'">{{tycpdmFirmInfo.logoutFlag === 0 ? '(审核中)' : tycpdmFirmInfo.logoutFlag === 2 ? '(审核不通过)' : ''}}</label> -->
</p> </p>
<p>1、进口商品数据服务</p> <p>1、进口商品数据服务</p>
<p class="list-cnt"> <p class="list-cnt">
......
...@@ -136,6 +136,9 @@ export default { ...@@ -136,6 +136,9 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 30px; margin-top: 30px;
justify-content: space-between;
display: grid;
grid-template-columns: repeat(auto-fill, 187px);
li { li {
width: 216px; width: 216px;
background: #ffffff; background: #ffffff;
......
...@@ -133,9 +133,11 @@ export default { ...@@ -133,9 +133,11 @@ export default {
margin: 0; margin: 0;
} }
.picNews-ul { .picNews-ul {
display: flex;
flex-wrap: wrap;
margin-top: 30px; margin-top: 30px;
justify-content: space-between;
display: grid;
grid-template-columns: repeat(auto-fill, 187px);
li { li {
width: 216px; width: 216px;
background: #ffffff; background: #ffffff;
......
...@@ -431,6 +431,7 @@ export default { ...@@ -431,6 +431,7 @@ export default {
query: { query: {
id: item.pictureid, id: item.pictureid,
preTitle: '图片集', preTitle: '图片集',
flag:item.flag
} }
}); });
} }
......
...@@ -50,7 +50,13 @@ export default { ...@@ -50,7 +50,13 @@ export default {
listRes = await this.$api.sell.geGuideDetailById(params); listRes = await this.$api.sell.geGuideDetailById(params);
} else if (this.preTitle === '图片集') { } else if (this.preTitle === '图片集') {
console.log(333); console.log(333);
let flag=this.$route.query && this.$route.query.flag ? this.$route.query.flag : '';
if(flag==2){
listRes = await this.$api.sell.getPictureById2(params);
}else{
listRes = await this.$api.sell.getPictureById(params); listRes = await this.$api.sell.getPictureById(params);
}
} else { } else {
console.log(222); console.log(222);
listRes = await this.$api.sell.geDetailById(params); listRes = await this.$api.sell.geDetailById(params);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="picNews-bottom"> <div class="picNews-bottom">
<div class="container"> <div class="container">
<ul class="picNews-ul"> <ul class="picNews-ul">
<li v-for="(tmp, i) in tableResult.list" :key="i" @click="getInfo(tmp.pictureid,tmp.jumppath)"> <li v-for="(tmp, i) in tableResult.list" :key="i" @click="getInfo(tmp.pictureid,tmp.jumppath)" >
<div class="picNews-li-tp"> <div class="picNews-li-tp">
<img :src="tmp.picFile" alt="" /> <img :src="tmp.picFile" alt="" />
</div> </div>
...@@ -117,11 +117,17 @@ export default { ...@@ -117,11 +117,17 @@ export default {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
.picNews-ul { .picNews-ul {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 30px; margin-top: 30px;
justify-content: space-between;
display: grid;
grid-template-columns: repeat(auto-fill, 187px);
li { li {
width: 187px; width: 187px;
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment