|
|
@@ -3,21 +3,17 @@
|
|
|
<view class="list-wrap">
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
<view class="list" v-for="(item, index) in list.data" :key="index">
|
|
|
+
|
|
|
<view class="list-img">
|
|
|
<image :src="item.img" mode="aspectFit" ></image>
|
|
|
</view>
|
|
|
<view class="list-det" @click="edit(item)">
|
|
|
- <view class="app-size-28 app-color-0">{{ item.categoryName}}</view>
|
|
|
- <view style="position:relative;">
|
|
|
- <text style="color:green;position:absolute;top:12upx;" v-if="item.status == 1">上架</text>
|
|
|
- <text v-else style="position:absolute;top:12upx;">下架</text>
|
|
|
- </view>
|
|
|
- <view class="list-operate">
|
|
|
- <view class="operate-det">
|
|
|
- <span @click.stop="edit(item)">编辑</span>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view class="app-size-28 app-color-0" style="font-size:30upx;font-weight:bold;">{{ item.categoryName}}</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <text style="position:absolute;top:65upx;right:20upx;" v-if="item.status == 1">上架</text>
|
|
|
+ <text v-else style="position:absolute;top:65upx;right:20upx;">下架</text>
|
|
|
+
|
|
|
</view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
@@ -248,6 +244,7 @@ export default {
|
|
|
margin: 0 30upx;
|
|
|
color: $fontColor3;
|
|
|
border-bottom: 1px solid $borderColor;
|
|
|
+ position:relative;
|
|
|
.list-index {
|
|
|
width: 50upx;
|
|
|
}
|