liujd 6 yıl önce
ebeveyn
işleme
413de73ca4

+ 47 - 0
mobile-code/src/pages.json

@@ -175,6 +175,53 @@
 					}
 				}
 			]
+		},
+		{
+			"root": "pages/goodsManage",
+			"pages": [
+				{
+					"path": "list",
+					"style": {
+						"navigationBarTitleText": "商品管理"
+					}
+				},
+				{
+					"path": "category",
+					"style": {
+						"navigationBarTitleText": "分类管理"
+					}
+				},
+				{
+					"path": "add",
+					"style": {
+						"navigationBarTitleText": "添加商品"
+					}
+				},
+				{
+					"path": "img-store",
+					"style": {
+						"navigationBarTitleText": "图库管理"
+					}
+				},
+				{
+					"path": "goods-name",
+					"style": {
+						"navigationBarTitleText": "设置商品名称"
+					}
+				},
+				{
+					"path": "freight",
+					"style": {
+						"navigationBarTitleText": "运费设置"
+					}
+				},
+				{
+					"path": "price-increase",
+					"style": {
+						"navigationBarTitleText": "节假日自动涨价"
+					}
+				}
+			]
 		}
 	],
 	"globalStyle": {

+ 11 - 1
mobile-code/src/pages/admin/components/module/operate-line.vue

@@ -49,10 +49,18 @@ export default {
 		width: 170px;
 		&.witer {
 			background-color: #fff;
+			&::after {
+				border-color: #fff transparent transparent transparent !important;
+			}
 		}
 		&.back {
+			color: #fff;
 			background: rgba(0, 0, 0, 0.8);
 			box-shadow: 0px 3px 6px 0px rgba(29, 29, 29, 0.7);
+			&::after {
+				opacity: 0.8;
+				border-color: #000 transparent transparent transparent !important;
+			}
 		}
 		&::after {
 			content: '';
@@ -63,13 +71,15 @@ export default {
 			height: 0;
 			// top: 16px;
 			border: 14px solid #fff;
-			border-color: #fff transparent transparent transparent !important;
 		}
 		// 操作列表
 		.operate-list {
 			@include disFlex(center, center);
 			border-top: 1px solid $borderColor;
 			position: relative;
+			&:first-child {
+				border-top: 0;
+			}
 			.icon-del {
 				position: absolute;
 				top: 14px;

+ 4 - 2
mobile-code/src/pages/admin/workbench.vue

@@ -4,7 +4,9 @@
 		<div class="user-wrap">
 			<div class="user-top">
 				<div class="app-size-28">今日概况</div>
-				<app-avatar-module :width="80" />
+				<div @click="$util.pageTo('/pages/setting/password')">
+					<app-avatar-module :width="80" />
+				</div>
 			</div>
 			<div class="income-amount">
 				<div>收入金额</div>
@@ -122,7 +124,7 @@ export default {
 				{
 					name: '商品管理',
 					img: tabIcon1,
-					url: '/pages/coupon/list'
+					url: '/pages/goodsManage/list'
 				},
 				{
 					name: '邀请有礼',

+ 13 - 0
mobile-code/src/pages/goodsManage/add.vue

@@ -0,0 +1,13 @@
+<template>
+  <div class="app-content"></div>
+</template>
+
+<script>
+export default {
+	name: 'goods-add'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 13 - 0
mobile-code/src/pages/goodsManage/category.vue

@@ -0,0 +1,13 @@
+<template>
+  <div class="app-content"></div>
+</template>
+
+<script>
+export default {
+	name: 'category-manage'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 13 - 0
mobile-code/src/pages/goodsManage/freight.vue

@@ -0,0 +1,13 @@
+<template>
+  <div class="app-content"></div>
+</template>
+
+<script>
+export default {
+	name: 'freight-setting'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 13 - 0
mobile-code/src/pages/goodsManage/goods-name.vue

@@ -0,0 +1,13 @@
+<template>
+  <div class="app-content"></div>
+</template>
+
+<script>
+export default {
+	name: 'goods-name-setting'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 13 - 0
mobile-code/src/pages/goodsManage/img-store.vue

@@ -0,0 +1,13 @@
+<template>
+  <div class="app-content"></div>
+</template>
+
+<script>
+export default {
+	name: 'image-store'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 79 - 0
mobile-code/src/pages/goodsManage/list.vue

@@ -0,0 +1,79 @@
+<template>
+	<div class="app-content">
+		<!-- 底部 -->
+		<div class="app-footer">
+			<div class="btn-list other-btn">
+				<i class="iconfont iconxiala"></i>
+				<span>其他设置</span>
+			</div>
+			<div class="btn-list">
+				<button class="admin-button-com default" @click="$util.pageTo('/pages/goodsManage/category')">分类管理</button>
+			</div>
+			<div class="btn-list">
+				<button class="admin-button-com blue" @click="$util.pageTo('/pages/goodsManage/add')">新增商品</button>
+			</div>
+		</div>
+		<!-- 操作弹窗 -->
+		<operate-line-module v-if="operateShow" :btnData="btnData" :top="800" :right="528" />
+	</div>
+</template>
+
+<script>
+import OperateLineModule from '@/pages/admin/components/module/operate-line'
+export default {
+	name: 'goods-manage-list',
+	components: {
+		OperateLineModule
+	},
+	data() {
+		return {
+			operateShow: true,
+			btnData: [
+				{
+					text: '图库管理',
+					click: () => this.$util.pageTo('/pages/goodsManage/img-store')
+				},
+				{
+					text: '运费设置',
+					click: () => this.$util.pageTo('/pages/goodsManage/freight')
+				},
+				{
+					text: '通用简介',
+					click: () => alert('请在电脑端进行设置!')
+				},
+				{
+					text: '自动涨价',
+					click: () => this.$util.pageTo('/pages/goodsManage/price-increase')
+				}
+			]
+		}
+	}
+}
+</script>
+
+<style lang="scss" scoped>
+	// 底部
+	.app-footer {
+		justify-content: space-between;
+		.btn-list {
+			width: 33.33%;
+			border-left: 1px solid $borderColor;
+			&:first-child {
+				border-left: 0;
+			}
+			.admin-button-com {
+				width: 160px;
+				padding-top: 16px;
+				padding-bottom: 16px;
+			}
+		}
+		.other-btn {
+			color: $fontColor2;
+			.iconfont {
+				font-size: 24px;
+				color: $fontColor3;
+				transform: scale(0.4);
+			}
+		}
+	}
+</style>

+ 13 - 0
mobile-code/src/pages/goodsManage/price-increase.vue

@@ -0,0 +1,13 @@
+<template>
+  <div class="app-content"></div>
+</template>
+
+<script>
+export default {
+	name: 'price-increase'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>