zs 2 سال پیش
والد
کامیت
c6c3658f46
1فایلهای تغییر یافته به همراه66 افزوده شده و 0 حذف شده
  1. 66 0
      pagesHome/order/detail.vue

+ 66 - 0
pagesHome/order/detail.vue

@@ -126,6 +126,16 @@
 					@buttonClick="toNavright" />
 					@buttonClick="toNavright" />
 			</view>
 			</view>
 		</view>
 		</view>
+		<!-- 跳转菜单 -->
+		<view class="bar_1">
+			<text @tap="toMenubar" class="iconfont icon-gengduo"></text>
+		</view>
+		<view class="bar_2" v-if="is_menu">
+			<view class="list" v-for="(item,index) in barList" :key="index" v-if="item.is_use=='0'" @click="toPath(item)">
+				<image class="image" :src="item.normal&&item.normal.length>0?item.normal[0].url:''"></image>
+				<text class="name"> {{item.name}}</text>
+			</view>
+		</view>
 	</mobile-frame>
 	</mobile-frame>
 </template>
 </template>
 
 
@@ -520,6 +530,17 @@
 					imageUrl: imageUrl
 					imageUrl: imageUrl
 				}
 				}
 			},
 			},
+			// 右侧菜单
+			toMenubar() {
+				const that = this;
+				that.$set(that, `is_menu`, that.is_menu ? false : true)
+			},
+			toPath(e) {
+				let url = `/${e.route}`;
+				uni.reLaunch({
+					url
+				})
+			},
 		}
 		}
 	}
 	}
 </script>
 </script>
@@ -794,4 +815,49 @@
 			flex-direction: column;
 			flex-direction: column;
 		}
 		}
 	}
 	}
+
+	.bar_1 {
+		position: fixed;
+		right: 2vw;
+		bottom: 20vw;
+
+		text {
+			background-color: #858585;
+			border-radius: 90px;
+			font-size: 30px;
+		}
+	}
+
+	.bar_2 {
+		position: fixed;
+		right: 2vw;
+		bottom: 28vw;
+		width: 27vw;
+		background: #ffffff;
+		padding: 0 2vw;
+		box-shadow: 0 0 5px #858585;
+
+		.list {
+			display: flex;
+			border-bottom: 1px solid #f1f1f1;
+			padding: 1vw 0;
+
+
+			.image {
+				width: 8vw;
+				height: 8vw;
+			}
+
+			.name {
+				font-size: 14px;
+				position: relative;
+				top: 2vw;
+				left: 2vw;
+			}
+		}
+
+		.list:last-child {
+			border-bottom: none;
+		}
+	}
 </style>
 </style>