buyer一些样式和一个弹框

master
夜良king 2021-12-28 17:51:23 +08:00
parent 0a0066fe5c
commit 76d028277a
3 changed files with 31 additions and 4 deletions

View File

@ -30,8 +30,14 @@
margin-top: 6px;
}
.goods-show-detail {
height: 36px;
font-size: 12px;
margin: 6px 0px;
overflow:hidden;
text-overflow: ellipsis;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
}
.goods-show-num {
font-size: 12px;

View File

@ -69,7 +69,7 @@
>人评价
</div>
<div class="goods-show-seller">
<Tag v-if="item.content.selfOperated" style="padding:0 4px;" size="default" color="error"></Tag><span>{{ item.content.storeName }}</span>
<Tag class="goods-show-buyer" v-if="item.content.selfOperated" size="default" color="error"></Tag>{{ item.content.storeName }}
</div>
</div>
</div>
@ -207,6 +207,13 @@ export default {
<style scoped lang="scss">
@import '../assets/styles/goodsList.scss';
.goods-show-info>.goods-show-seller>.goods-show-buyer{
height:16px;width:30px;
white-space: nowrap;
line-height:16px;
padding:0 3px;
background-color:#E23A3A;
}
.container {
margin: 15px auto;
width: 1200px;
@ -284,6 +291,7 @@ export default {
display: block;
clear: left;
}
.price-sort {
span {
display: inline-block;

View File

@ -66,7 +66,20 @@ export default {
},
computed: {
userInfo () { //
if(Storage.getItem('userInfo')){
return JSON.parse(Storage.getItem('userInfo'));
} else{
this.$Modal.confirm({
title:'登录失效',
content:"<p>登录已失效,请再次登录</p>",
onOk:()=>{
if(true){
this.$router.push('/login');
}
}
})
return {}
}
}
},