shish преди 1 година
родител
ревизия
775d4606aa
променени са 1 файла, в които са добавени 26 реда и са изтрити 9 реда
  1. 26 9
      ghsApp/src/admin/item/components/item2.vue

+ 26 - 9
ghsApp/src/admin/item/components/item2.vue

@@ -58,11 +58,15 @@
 			</view>
 		</view>
 	</view>
-	<text class="bottom-button" @click.stop="moreAction(info)">更多</text>
-	<text class="bottom-button" @click.stop="goToStockDetail(info)">库明细</text>
-	<text class="bottom-button" @click.stop="hideChangeFn(info)">{{ frontHide == 0 ? '隐藏' : '显示' }}</text>
-	<text class="bottom-button" @click.stop="doPrintLabel(info,0)">标签</text>
-	<text class="bottom-button" @click.stop="doPrintLabel(info,1)">价码</text>
+	
+	<view class="bottom-buttons-container">
+		<text class="bottom-button" @click.stop="doPrintLabel(info,1)">价码</text>
+		<text class="bottom-button" @click.stop="doPrintLabel(info,0)">标签</text>
+		<text class="bottom-button" @click.stop="hideChangeFn(info)">{{ frontHide == 0 ? '隐藏' : '显示' }}</text>
+		<text class="bottom-button" @click.stop="goToStockDetail(info)">库存明细</text>
+		<text class="bottom-button" @click.stop="moreAction(info)">更多</text>
+	</view>
+
 </view>
 </template>
 <script>
@@ -126,15 +130,28 @@ export default {
 .product{
 	height:230upx;
 }
+.bottom-buttons-container{
+	display: flex;
+	justify-content: space-between;
+	align-items: center;
+	width: 100%;
+	flex-wrap: nowrap;
+}
 .bottom-button{
 	font-weight:normal;
 	border:2upx solid #cccccc;
-	font-size:24upx;
+	font-size:22upx;
 	border-radius: 20upx;
-	padding:13upx 22upx 13upx 22upx;
-	margin:0 8upx 0 0;
-	float:right;
+	padding:10upx 16upx;
 	color:#aaa9a9;
+	flex: 1;
+	text-align: center;
+	margin: 0 4upx;
+	white-space: nowrap;
+	display: flex;
+	align-items: center;
+	justify-content: center;
+	box-sizing: border-box;
 }
 .item-cmd_bx {
 	height:160upx;