From efe51c2947c76ee863593c2ecfe3a2e65b3e742f Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期二, 24 十月 2023 09:11:02 +0800
Subject: [PATCH] 企业端

---
 h5/pages/index/index.vue |   40 ++++++++++++++++++++++++++++++----------
 1 files changed, 30 insertions(+), 10 deletions(-)

diff --git a/h5/pages/index/index.vue b/h5/pages/index/index.vue
index 0e00306..4ac7cd0 100644
--- a/h5/pages/index/index.vue
+++ b/h5/pages/index/index.vue
@@ -263,7 +263,7 @@
 	import search from '@/components/search.vue'
 	import noData from '@/components/noData.vue'
 	import { mapState } from 'vuex'
-	import { categoryList, goodsList, brandList, h5Image, goodsPage, listForH5 } from '@/apis/index.js'
+	import { categoryList, goodsList, brandList, h5Image, goodsPage, listForH5, logout } from '@/apis/index.js'
 	export default {
 		data() {
 			return {
@@ -424,6 +424,14 @@
 				}
 			}
 		},
+		onUnload() {
+			//娓呴櫎
+			document.onmouseup = function(ev){
+			    document.onmousemove = null;
+			}
+			//娓呴櫎
+			document.onkeydown = null
+		},
 		computed: {
 			// 鎸囧浠锋�昏
 			zdTotalPrice() {
@@ -539,8 +547,11 @@
 			},
 			// 閫�鍑�
 			loginOut() {
-				this.$store.commit('clean')
-				uni.redirectTo({ url: '/pages/login/login' });
+				logout({})
+					.then(res => {
+						this.$store.commit('clean')
+						uni.redirectTo({ url: '/pages/login/login' });
+					})
 			},
 			// 鏌ヨ鍟嗗搧鏁版嵁
 			getShopList(type) {
@@ -696,12 +707,10 @@
 						})
 					}
 				})
-				// console.log(this.imgList)
+				if (this.imgList.length === 0) return
 				this.$viewerApi({
 				  images: this.imgList,
 				})
-				// this.$refs.bigImg.open(0)
-				// this.$refs.bigImg1.open(0)
 			},
 			empty() {
 				this.shopList = []
@@ -831,6 +840,7 @@
 				this.shopList[index].zdPrice = ''
 				this.shopList[index].price = ''
 				this.shopList[index].xhData = []
+				this.shopList[index].multifileList = []
 				this.shopList[index].ppShow = false
 				this.$forceUpdate()
 			},
@@ -924,12 +934,15 @@
 			},
 			copyItem(item) {
 				let obj = JSON.parse(JSON.stringify(item))
+				obj.multifileList = []
+				obj.xhData = []
 				obj.brandId = ''
 				obj.brand = ''
 				obj.brandName = ''
 				obj.name = ''
 				obj.zdPrice = ''
 				obj.price = ''
+				console.log(obj)
 				this.shopList.push(obj)
 			},
 			deleItem(i) {
@@ -1122,7 +1135,7 @@
 			// min-width: 750px;
 			.box_content_left {
 				position: fixed;
-				left: 50px;
+				left: 80px;
 				top: 50%;
 				cursor: pointer;
 				transform: translate(-50%, 0);
@@ -1136,7 +1149,7 @@
 			}
 			.box_content_right {
 				position: fixed;
-				right: 50px;
+				right: 0px;
 				top: 50%;
 				cursor: pointer;
 				transform: translate(-50%, 0);
@@ -1320,8 +1333,11 @@
 									font-weight: 500;
 								}
 								.commodityFrom_body_content_item_num_img {
-									width: 24px;
-									height: 24px;
+									width: 28px;
+									height: 28px;
+									display: flex;
+									align-items: center;
+									justify-content: center;
 									margin-right: 4px;
 									image {
 										width: 100%;
@@ -1373,6 +1389,8 @@
 										display: flex;
 										align-items: center;
 										justify-content: center;
+										padding: 0 10px;
+										box-sizing: border-box;
 										&:hover {
 											text {
 												color: #FFF200;
@@ -1560,6 +1578,8 @@
 								line-height: 40px;
 								text-align: center;
 								cursor: pointer;
+								padding: 0 10px;
+								box-sizing: border-box;
 								&:hover {
 									text {
 										color: #FFF200;

--
Gitblit v1.9.3