shish 2 年 前
コミット
c3c542bda7
1 ファイル変更2 行追加3 行削除
  1. 2 3
      hdApp/src/admin/goods/category.vue

+ 2 - 3
hdApp/src/admin/goods/category.vue

@@ -13,7 +13,8 @@
 						<text style="position:absolute;top:65upx;right:30upx;color:#CCCCCC;" v-if="item.status == 1">上架</text>
 						<text v-else style="position:absolute;top:65upx;right:30upx;color:#CCCCCC;">下架</text>
 
-					<text style="position:absolute;top:65upx;right:180upx;color:#CCCCCC;">{{item.inTurn}}</text>
+						<text style="position:absolute;top:65upx;right:260upx;color:#CCCCCC;">{{item.inTurn}}</text>
+						<text style="position:absolute;top:65upx;right:150upx;color:blue;" @click.stop="delCategory(item.id)">删除</text>
 
 					</view>
 				</block>
@@ -200,8 +201,6 @@ export default {
 			this.modifyForm.status = e.detail.value ? 1 : 0
 		},
 		delCategory(id) {
-			this.$msg('暂时不能删除')
-			return false
 			let that = this
 			uni.showModal({
 				title: '提示',