Browse Source

整理目录 拉去代码

qukaidi 4 years ago
parent
commit
9dfa85449b

+ 154 - 151
pages.json

@@ -11,62 +11,7 @@
 	// 	}]
 	// },
 	"pages": [
-		// 奖励明细
-		{
-			"path": "pages/Reward-details/index",
-			"style": {
-				"navigationBarTitleText": "奖励明细"
-			}
-		
-		},
-		// 出库明细
-		{
-			"path": "pages/Delivery-details/index",
-			"style": {
-				"navigationBarTitleText": "出库明细"
-			}
-		
-		},
-		// 入库明细
-		{
-			"path": "pages/Warehousing-details/index",
-			"style": {
-				"navigationBarTitleText": "入库明细"
-			}
-		
-		},
-		// 结算中心页面
-		{
-			"path": "pages/Settlement-center/index",
-			"style": {
-				"navigationBarTitleText": "结算中心"
-			}
-		
-		},
-		// 统计任务页面
-		{
-			"path": "pages/Statistical-task/index",
-			"style": {
-				"navigationBarTitleText": "任务统计"
-			}
-		
-		},
-		// 订单详情页面
-		{
-			"path": "pages/Order-details/index",
-			"style": {
-				"navigationBarTitleText": "订单详情"
-			}
-		
-		},
-		// 核销管理页面
-		{
-			"path": "pages/Write-off-management/index",
-			"style": {
-				"navigationBarTitleText": "核销管理"
-			}
-		
-		},
+
 		// 首页
 		{
 			"path": "pages/home/index",
@@ -75,34 +20,15 @@
 				"navigationBarTextStyle": "black"
 			}
 		},
-	
-		
-		
-		// 扫码入库确认
-		{
-			"path": "pages/Scan-code-in/index",
-			"style": {
-				"navigationBarTitleText": "扫码入库确认"
-			}
-		
-		},
-		// 扫码出库确认
-		{
-			"path": "pages/Scan-code-out/index",
-			"style": {
-				"navigationBarTitleText": "扫码出库确认"
-			}
-		
-		},
 		// 系统消息
 		{
 			"path": "pages/System-message/index",
 			"style": {
 				"navigationBarTitleText": "系统消息"
 			}
-		
+
 		},
-		
+
 		// 消息
 		{
 			"path": "pages/msg/index",
@@ -130,108 +56,185 @@
 					"titleNView": false
 				}
 			}
-		}
-	],
-	"subPackages": [{
-		"root": "pages/login",
-		"pages": [{
-			"path": "register",
+		},
+		// 奖励明细
+		{
+			"path": "pages/Reward-details/index",
 			"style": {
-				"navigationBarTitleText": "零售店注销"
+				"navigationBarTitleText": "奖励明细"
 			}
 
-		}, {
-			"path": "register_2",
+		},
+		// 出库明细
+		{
+			"path": "pages/Delivery-details/index",
 			"style": {
-				"navigationBarTitleText": "零售店注销"
+				"navigationBarTitleText": "出库明细"
 			}
 
-		}, {
-			"path": "register_3",
+		},
+		// 入库明细
+		{
+			"path": "pages/Warehousing-details/index",
 			"style": {
-				"navigationBarTitleText": "零售店注销"
+				"navigationBarTitleText": "入库明细"
 			}
 
-		}]
-	}, {
-		"root": "pages/shopping",
-		"pages": [{
-			"path": "shopping_car/shopping_car",
+		},
+		// 结算中心页面
+		{
+			"path": "pages/Settlement-center/index",
 			"style": {
-				"navigationStyle": "custom", // 隐藏系统导航栏
-				"navigationBarTextStyle": "white"
+				"navigationBarTitleText": "结算中心"
 			}
-		}, {
-			"path": "integral_mall/integral_mall",
+
+		},
+		// 统计任务页面
+		{
+			"path": "pages/Statistical-task/index",
 			"style": {
-				"navigationBarTitleText": "积分商城"
+				"navigationBarTitleText": "任务统计"
 			}
-		}, {
-			"path": "inline_shop/inline_shop",
+
+		},
+		// 订单详情页面
+		{
+			"path": "pages/Order-details/index",
 			"style": {
-				"navigationStyle": "custom", // 隐藏系统导航栏
-				"navigationBarTextStyle": "white"
+				"navigationBarTitleText": "订单详情"
 			}
-		}, {
-			"path": "inline_shop_details/inline_shop_details",
+
+		},
+		// 核销管理页面
+		{
+			"path": "pages/Write-off-management/index",
 			"style": {
-				"navigationBarTitleText": "商品详情"
+				"navigationBarTitleText": "核销管理"
 			}
-		}]
-	}, {
-		"root": "pages/me",
-		"pages": [
-			//我的供应商
-			{
-				"path": "suppliers",
-				"style": {
-					"navigationBarTitleText": "我的供应商",
-					"navigationBarBackgroundColor": "#1692F7"
+
+		}
+	],
+	"subPackages": [{
+			"root": "pages/home",
+			"pages": [
+				// 扫码入库确认
+				{
+					"path": "Scan-code-in/index",
+					"style": {
+						"navigationBarTitleText": "扫码入库确认"
+					}
+
+				},
+				// 扫码出库确认
+				{
+					"path": "Scan-code-out/index",
+					"style": {
+						"navigationBarTitleText": "扫码出库确认"
+					}
+
+				},
+				{
+					"path": "shopping/shopping_car",
+					"style": {
+						"navigationStyle": "custom", // 隐藏系统导航栏
+						"navigationBarTextStyle": "white"
+					}
+				}, {
+					"path": "shopping/integral_mall",
+					"style": {
+						"navigationBarTitleText": "积分商城"
+					}
+				}, {
+					"path": "shopping/inline_shop",
+					"style": {
+						"navigationStyle": "custom", // 隐藏系统导航栏
+						"navigationBarTextStyle": "white"
+					}
+				}, {
+					"path": "shopping/inline_shop_details",
+					"style": {
+						"navigationBarTitleText": "商品详情"
+					}
 				}
-			},
-			//优惠卷
-			{
-				"path": "coupon",
+			]
+		},
+		{
+			"root": "pages/login",
+			"pages": [{
+				"path": "register",
 				"style": {
-					"navigationBarTitleText": "我的优惠卷"
+					"navigationBarTitleText": "零售店注销"
 				}
-			},
-			//新建收货地址
-			{
-				"path": "modify",
+
+			}, {
+				"path": "register_2",
 				"style": {
-					"navigationBarTitleText": "新建收货地址"
+					"navigationBarTitleText": "零售店注销"
 				}
-			},
-			//收货地址
-			{
-				"path": "address",
+
+			}, {
+				"path": "register_3",
 				"style": {
-					"navigationBarTitleText": "收货地址",
-					"app-plus": {
-						"titleNView": {
-							"buttons": [{
-								"text": "编辑",
-								"fontSize": "18px",
-								"float": "right"
-							}]
+					"navigationBarTitleText": "零售店注销"
+				}
+
+			}]
+		},
+		{
+			"root": "pages/me",
+			"pages": [
+				//我的供应商
+				{
+					"path": "suppliers",
+					"style": {
+						"navigationBarTitleText": "我的供应商",
+						"navigationBarBackgroundColor": "#1692F7"
+					}
+				},
+				//优惠卷
+				{
+					"path": "coupon",
+					"style": {
+						"navigationBarTitleText": "我的优惠卷"
+					}
+				},
+				//新建收货地址
+				{
+					"path": "modify",
+					"style": {
+						"navigationBarTitleText": "新建收货地址"
+					}
+				},
+				//收货地址
+				{
+					"path": "address",
+					"style": {
+						"navigationBarTitleText": "收货地址",
+						"app-plus": {
+							"titleNView": {
+								"buttons": [{
+									"text": "编辑",
+									"fontSize": "18px",
+									"float": "right"
+								}]
+							}
 						}
 					}
-				}
 
-			},
-			//查询结果
-			{
-				"path": "scancodequery/result",
-				"style": {
-					"navigationBarTitleText": "查询结果",
-					"app-plus": {
-						"bounce": "none" //取消页面上的回弹效果
+				},
+				//查询结果
+				{
+					"path": "scancodequery/result",
+					"style": {
+						"navigationBarTitleText": "查询结果",
+						"app-plus": {
+							"bounce": "none" //取消页面上的回弹效果
+						}
 					}
 				}
-			}
-		]
-	}],
+			]
+		}
+	],
 	"preloadRule": {},
 	"globalStyle": {
 		"navigationBarBackgroundColor": "#0095FF",

+ 0 - 0
pages/Scan-code-in/index.vue → pages/home/Scan-code-in/index.vue


+ 0 - 0
pages/Scan-code-out/index.vue → pages/home/Scan-code-out/index.vue


+ 0 - 0
pages/shopping/inline_shop/inline_shop.vue → pages/home/shopping/inline_shop.vue


+ 0 - 0
pages/shopping/inline_shop_details/inline_shop_details.vue → pages/home/shopping/inline_shop_details.vue


+ 0 - 0
pages/shopping/integral_mall/integral_mall.vue → pages/home/shopping/integral_mall.vue


+ 0 - 0
pages/shopping/shopping_car/shopping_car.vue → pages/home/shopping/shopping_car.vue


+ 57 - 30
pages/msg/index.vue

@@ -1,29 +1,30 @@
 <template>
 	<view>
-		<u-swipe-action :show="item.show" :index="index" 
-			v-for="(item, index) in list" :key="item.id" 
-			@click="click" @open="open"
-			:options="options"
-		>
-			<view class="item u-border-bottom">
-				<image mode="aspectFill" :src="item.images" />
-				<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
-				<view class="title-wrap">
-					<text class="title u-line-2">{{ item.title }}</text>
-					<view class="title-wrap-one">
-						【{{ item.text }} 】
-					</view>
-				</view>
-				<view class="title-wrap-two">
-					<view>
-						{{ item.time }}
+
+		<view class="u-page">
+			<u-swipe-action :show="item.show" :index="index" v-for="(item, index) in msgList" :key="item.id" @click="click" @open="open"
+			 :options="options">
+				<view class="item u-border-bottom">
+					<image mode="aspectFill" :src="item.images" />
+					<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
+					<view class="title-wrap">
+						<text class="title u-line-2">{{ item.title }}</text>
+						<view class="title-wrap-one">
+							【{{ item.text }} 】
+						</view>
 					</view>
-					<view>
-						{{ item.ip }}
+					<view class="title-wrap-two">
+						<view>
+							{{ item.time }}
+						</view>
+						<view>
+							{{ item.ip }}
+						</view>
 					</view>
 				</view>
-			</view>
-		</u-swipe-action>
+			</u-swipe-action>
+		</view>
+		<u-tabbar v-model="current" :list="list"></u-tabbar>
 	</view>
 </template>
 
@@ -31,8 +32,32 @@
 	export default {
 		data() {
 			return {
-				list: [
+				current: 1,
+				list: [{
+						iconPath: "home",
+						selectedIconPath: "home-fill",
+						text: '首页',
+						customIcon: false,
+						pagePath: '/pages/home/index'
+					},
 					{
+						iconPath: "chat",
+						selectedIconPath: "chat-fill",
+						text: '消息',
+						count: 2,
+						isDot: false,
+						customIcon: false,
+						pagePath: '/pages/msg/index'
+					},
+					{
+						iconPath: "account",
+						selectedIconPath: "account-fill",
+						text: '我的',
+						customIcon: false,
+						pagePath: '/pages/me/index'
+					},
+				],
+				msgList: [{
 						id: 1,
 						ip: 1,
 						time: '14.23',
@@ -63,8 +88,7 @@
 				disabled: false,
 				btnWidth: 180,
 				show: false,
-				options: [
-					{
+				options: [{
 						text: '收藏',
 						style: {
 							backgroundColor: '#007aff'
@@ -81,7 +105,7 @@
 		},
 		methods: {
 			click(index, index1) {
-				if(index1 == 1) {
+				if (index1 == 1) {
 					this.list.splice(index, 1);
 					this.$u.toast(`删除了第${index}个cell`);
 				} else {
@@ -95,7 +119,7 @@
 				// 原本为'false',再次设置为'false'会无效
 				this.list[index].show = true;
 				this.list.map((val, idx) => {
-					if(index != idx) this.list[idx].show = false;
+					if (index != idx) this.list[idx].show = false;
 				})
 			}
 		}
@@ -107,7 +131,7 @@
 		display: flex;
 		padding: 20rpx;
 	}
-	
+
 	image {
 		width: 120rpx;
 		flex: 0 0 120rpx;
@@ -115,7 +139,7 @@
 		margin-right: 20rpx;
 		border-radius: 12rpx;
 	}
-	
+
 	.title {
 		text-align: left;
 		font-size: 29rpx;
@@ -123,20 +147,23 @@
 		font-weight: bold;
 		margin-top: 20rpx;
 	}
+
 	.title-wrap-one {
 		margin-top: 10rpx;
 		font-size: 23rpx;
 		color: #999999;
 	}
+
 	.title-wrap-two {
 		margin-left: 120rpx;
 		margin-top: 10rpx;
 	}
+
 	.title-wrap-two>view:nth-child(1) {
 		font-size: 19rpx;
 		color: #999999;
 	}
-		
+
 	.title-wrap-two>view:nth-child(2) {
 		width: 35rpx;
 		height: 35rpx;
@@ -148,4 +175,4 @@
 		margin: 0 auto;
 		margin-top: 5rpx;
 	}
-</style>
+</style>