Commit fcbe26b1 authored by 罗超's avatar 罗超

修复样式

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