Commit fcbe26b1 authored by 罗超's avatar 罗超

修复样式

parent 919fa5ca
<template>
<div class="goods-box" :class="{ flex: goods.catPosition == 'left' }" :style="{'margin-bottom':marginBottom+'rpx'}">
<view :style="{ margin: goods.catStyle == 1 ? '0px' : '10px 5px' }">
<u-tabs v-if="goods.showCat && goods.catPosition == 'top' && goods.catList.length > 1" name="menuName" :list="goods.catList"
<u-tabs :bgColor='goods.backgroundColor?goods.backgroundColor:"#ffffff"' v-if="goods.showCat && goods.catPosition == 'top' && goods.catList.length > 1" name="menuName" :list="goods.catList"
:is-scroll="true" :active-color="mainColor" :current="activeKey" :show-bar="goods.catStyle == 1" :bold="false"
:type-style="goods.catStyle" :height="goods.catStyle == 1 ? '88' : '44'" @change="tabChangeHandler"></u-tabs>
:type-style="goods.catStyle" :height="goods.catStyle == 1 ? '88' : '44'" @change="tabChangeHandler" style="background-color: black;"></u-tabs>
</view>
<div :class="{ 'right-slider': goods.catPosition == 'top' }">
<!-- 有分类 -->
......
......@@ -10,9 +10,11 @@
:style="[item.formatStyle]"
@click="clickHandler(item.link[0].new_link_url)"
>
<button open-type="contact" v-if="item.link[0].new_link_url=='contact'"></button>
<img :src="item.pic_url" style="margin-bottom:-4px" mode="widthFix"/>
</view>
<view class="hots" v-for="(x, i) in hotspots" :key="i" :style="[x.formatStyle]" @click="clickHots(x.link)">&nbsp;</view>
<!-- <view @click="jumper()">跳转</view> -->
</view>
......@@ -25,7 +27,8 @@ export default {
return {
adtemp:[],
marginStyle:"",
hotspots:[]
hotspots:[],
showContact:false
}
},
created() {
......@@ -66,7 +69,9 @@ export default {
});
},
clickHandler(url) {
if (url && url.length > 0) {
if(url=='contact'){
return
}else if (url && url.length > 0) {
uni.navigateTo({
url: url,
});
......@@ -98,4 +103,11 @@ export default {
.ad-box .ad-chi img {
width: 100%;
}
.ad-box .ad-chi button{
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
z-index: 2;
}
</style>
<template>
<view class="comment-list">
<u-tabs name="name" :list="list" :is-scroll="false" :is-wrap="true" :active-color="mc" :current="current"
:item-style="activeItemStyle" :height="60" @change="tabsChange"></u-tabs>
:activeItemStyle="activeItemStyle" :height="60" @change="tabsChange" style="zoom: 0.8;"></u-tabs>
<view class="comment-details" style="heigh: calc(100% - 40px);" v-if="comments.length>0">
<scroll-view :scroll-y="true" @scrolltolower="lower" :enable-back-to-top="true" :enable-flex="true"
style="height: 100%; padding-bottom: 0px;">
......@@ -81,6 +81,7 @@
},
activeItemStyle:{
'flex-wrap': 'wrap',
'font-weight': '500'
}
};
},
......@@ -244,7 +245,7 @@
overflow: hidden;
font-family: aa;
}
.comment-list .comment-details {
height: calc(100% - 40px);
padding: 10px 0 0 0;
......@@ -382,11 +383,15 @@
margin: 5px;
padding: 5px 10px;
background-color: #f5f5f5;
border: 1px solid #ddd;
/* border: 1px solid #ddd; */
border-radius: 50px;
font-size: 12px;
color: #666;
height:32px;
line-height:20px;
flex: unset !important;
}
/deep/ .comment-list .u-tabs-scorll-flex{
justify-content: unset !important;
}
</style>
\ No newline at end of file
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