|
|
|
@ -38,7 +38,7 @@
|
|
|
|
|
<div class="brandList">
|
|
|
|
|
<vue-scroll :ops="listScroll" :style="showPage?'height:35rem':'height:35rem'" class="score-list-div">
|
|
|
|
|
<a-list item-layout="horizontal" :data-source="dataList">
|
|
|
|
|
<a-list-item slot="renderItem" slot-scope="item" class="listItem">
|
|
|
|
|
<a-list-item slot="renderItem" slot-scope="item" class="listItem" @click="showInfo(item)">
|
|
|
|
|
<a-avatar :src="getImgURL(item.imgObj)"/>
|
|
|
|
|
<p class="p1">
|
|
|
|
|
<span style="width: 7px;height: 7px;border-radius: 50%;background: #fff;margin-left: -5px;display: inline-block;"></span>
|
|
|
|
@ -50,25 +50,26 @@
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
</div>
|
|
|
|
|
</a-spin>
|
|
|
|
|
<preview-box ref="previewBox" />
|
|
|
|
|
<CommonInfo commonQueryId="query_dangjian_xiangxi" :commonId="infoId" :show="visible" @cancel="closeInfo"/>
|
|
|
|
|
</CommonBox>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
/*
|
|
|
|
|
* 品牌创建
|
|
|
|
|
* */
|
|
|
|
|
import {List, Icon, Avatar, Row, Col, Modal,Spin} from 'ant-design-vue';
|
|
|
|
|
import {List, Icon, Avatar, Row, Col, Modal, Spin} from 'ant-design-vue';
|
|
|
|
|
import CommonBox from '../secondPages/commonBox.vue';
|
|
|
|
|
import Upload from '../../../../components/common/uploader/Upload.vue';
|
|
|
|
|
import ImgPreview from '../../common/imgPreview.vue';
|
|
|
|
|
import CommonInfo from '../../common/commonInfo.vue';
|
|
|
|
|
export default{
|
|
|
|
|
data(){
|
|
|
|
|
return {
|
|
|
|
|
spinning:false,
|
|
|
|
|
spinning: false,
|
|
|
|
|
listScroll: this.StaticParams.scrollOption,
|
|
|
|
|
showPage: true,
|
|
|
|
|
imgList: [],
|
|
|
|
|
dataList:[],
|
|
|
|
|
dataList: [],
|
|
|
|
|
brandList: [
|
|
|
|
|
{
|
|
|
|
|
avatar: require("./images/listPic1.png"),
|
|
|
|
@ -122,6 +123,7 @@
|
|
|
|
|
],
|
|
|
|
|
visible: false,
|
|
|
|
|
modalTitle: '查看详情',
|
|
|
|
|
infoId: "",
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
@ -152,13 +154,13 @@
|
|
|
|
|
this.dataList = [];
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
let dataList = JSON.parse(result[0].data.result);
|
|
|
|
|
//console.log("dataList:", dataList)
|
|
|
|
|
for (let i = 0, len = dataList.length; i < len; i++) {
|
|
|
|
|
let item = dataList[i];
|
|
|
|
|
let coverJson = JSON.parse(item.cover_json);
|
|
|
|
|
let info = {
|
|
|
|
|
info_title:item.info_title,
|
|
|
|
|
create_time:item.create_time.replace('T',' ').replace('Z',''),
|
|
|
|
|
info_id: item.info_id,
|
|
|
|
|
info_title: item.info_title,
|
|
|
|
|
create_time: item.create_time.replace('T', ' ').replace('Z', ''),
|
|
|
|
|
}
|
|
|
|
|
if (coverJson && coverJson.length > 0) {
|
|
|
|
|
info.imgObj = coverJson[0];
|
|
|
|
@ -177,11 +179,20 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getImgURL:function (img) {
|
|
|
|
|
if(img){
|
|
|
|
|
getImgURL: function (img) {
|
|
|
|
|
if (img) {
|
|
|
|
|
return this.BaseConfig.url_path_down + img.key;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
showInfo: function (item) {
|
|
|
|
|
this.infoId = item.info_id + "";
|
|
|
|
|
this.visible = true;
|
|
|
|
|
},
|
|
|
|
|
closeInfo:function () {
|
|
|
|
|
console.log("关闭panel");
|
|
|
|
|
this.infoId = "";
|
|
|
|
|
this.visible = false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
CommonBox,
|
|
|
|
@ -192,9 +203,10 @@
|
|
|
|
|
AAvatar: Avatar,
|
|
|
|
|
AIcon: Icon,
|
|
|
|
|
AModal: Modal,
|
|
|
|
|
ASpin:Spin,
|
|
|
|
|
ASpin: Spin,
|
|
|
|
|
Upload,
|
|
|
|
|
ImgPreview
|
|
|
|
|
ImgPreview,
|
|
|
|
|
CommonInfo
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|