|
@@ -48,14 +48,8 @@
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-tag-list" >
|
|
<view class="data-tag-list" >
|
|
|
- <view class="data-tag" v-for="tag in item.tag" :style="{'background':tagBg}">
|
|
|
|
|
-<!-- <image class="data-tag-img" mode="aspectFill" :src="tag.icon" ></image>-->
|
|
|
|
|
- <view class="data-tag-icon">
|
|
|
|
|
- <text class="iconfont icon-dingweixiao" v-if="tag.icon==='1'" :style="{'color':tagColor}"> </text>
|
|
|
|
|
- <text class="iconfont icon-canyuhuati" v-else :style="{'color':tagColor}"> </text>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="data-tag-text sys-weight-400" :style="{'color':tagColor}">{{tag.text}}</view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <dynamic-tag :list="item.tag" :tag-bg="tagBg" :tag-color="tagColor"></dynamic-tag>
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-operation">
|
|
<view class="data-operation">
|
|
|
<view class="operation-item" @click="setLike(itemIndex)">
|
|
<view class="operation-item" @click="setLike(itemIndex)">
|
|
@@ -83,9 +77,10 @@
|
|
|
import ImgOne from "@/pages/common/img/img-one";
|
|
import ImgOne from "@/pages/common/img/img-one";
|
|
|
import ImgTwo from "@/pages/common/img/img-two";
|
|
import ImgTwo from "@/pages/common/img/img-two";
|
|
|
import ImgThree from "@/pages/common/img/img-three";
|
|
import ImgThree from "@/pages/common/img/img-three";
|
|
|
|
|
+import DynamicTag from "@/pages/common/tag/dynamic-tag";
|
|
|
export default {
|
|
export default {
|
|
|
name: "dynamic-items",
|
|
name: "dynamic-items",
|
|
|
- components: {ImgThree, ImgTwo, ImgOne},
|
|
|
|
|
|
|
+ components: {DynamicTag, ImgThree, ImgTwo, ImgOne},
|
|
|
props: {
|
|
props: {
|
|
|
textColor:{
|
|
textColor:{
|
|
|
type:String,
|
|
type:String,
|
|
@@ -216,38 +211,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
.data-tag-list{
|
|
.data-tag-list{
|
|
|
margin-top: 28rpx;
|
|
margin-top: 28rpx;
|
|
|
- display: flex;
|
|
|
|
|
- flex-wrap: wrap;
|
|
|
|
|
- .data-tag{
|
|
|
|
|
- margin-top: 26rpx;
|
|
|
|
|
- margin-right: 20rpx;
|
|
|
|
|
- border-radius: 200rpx;
|
|
|
|
|
- background: rgba(255,255,255,0.4);
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- padding: 4rpx 12rpx;
|
|
|
|
|
- .data-tag-img{
|
|
|
|
|
- width: 32rpx;
|
|
|
|
|
- height: 32rpx;
|
|
|
|
|
- margin-right: 8rpx;
|
|
|
|
|
- }
|
|
|
|
|
- .data-tag-icon{
|
|
|
|
|
- width: 32rpx;
|
|
|
|
|
- height: 32rpx;
|
|
|
|
|
- margin-right: 8rpx;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- line-height: 32rpx;
|
|
|
|
|
- text{
|
|
|
|
|
- font-size: 28rpx;
|
|
|
|
|
- line-height: 32rpx;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .data-tag-text{
|
|
|
|
|
- font-size: 24rpx;
|
|
|
|
|
- height: 32rpx;
|
|
|
|
|
- line-height: 32rpx;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
.data-operation{
|
|
.data-operation{
|
|
|
margin-top: 40rpx;
|
|
margin-top: 40rpx;
|