Browse Source

fix: 调整部分功能模块

wenxingxing 10 giờ trước cách đây
mục cha
commit
a99ccb8b81
2 tập tin đã thay đổi với 25 bổ sung9 xóa
  1. 6 5
      pages_mall/index.vue
  2. 19 4
      pages_mall/my.vue

+ 6 - 5
pages_mall/index.vue

@@ -55,11 +55,12 @@
 			}
 		},
 		onShow() {
-			const tabCart = uni.getStorageSync('tabCart')
-			if (tabCart) {
-				this.currentTab = 2
-				uni.removeStorageSync('tabCart')
-			}
+			// const tabCart = uni.getStorageSync('tabCart')
+			// if (tabCart) {
+			// 	this.currentTab = 2
+			// 	uni.removeStorageSync('tabCart')
+			// }
+			this.currentTab = 0
 			uni.hideTabBar();
 		},
 		onUnload() {

+ 19 - 4
pages_mall/my.vue

@@ -13,7 +13,7 @@
 			</view>
 
 			<view class="bg"></view>
-			<view class="user-info-box" :style="{marginTop: (statusBarHeight + 60) + 'px'}">
+			<view class="user-info-box" :style="{marginTop: (statusBarHeight + 44) + 'px'}">
 				<view class="portrait-box" @click="checkLogin">
 					<image class="portrait" :src="userInfo.avatar || defaultAvatar" mode="aspectFill"></image>
 				</view>
@@ -33,7 +33,7 @@
 						<text class="sec-title">我的订单</text>
 						<view class="more">
 							<text>全部订单</text>
-							<u-icon name="arrow-right" size="20" color="#999"></u-icon>
+							<u-icon name="arrow-right" size="26rpx" color="#999"></u-icon>
 						</view>
 					</view>
 					<view class="order-grid">
@@ -53,7 +53,7 @@
 					<view class="order-grid" style="padding: 0;">
 						<view class="order-item" style="width: 25%;" v-for="(item, index) in toolMenu" :key="index"
 							@click="navToToolPages(item)">
-							<image :src="item.icon" mode="aspectFit" class="order-icon"></image>
+							<image :src="item.icon" mode="aspectFit" class="order-icon" style="width: 52rpx;height: 52rpx;"></image>
 							<text>{{item.name}}</text>
 						</view>
 					</view>
@@ -208,6 +208,21 @@
 			this.getGoodsProducts()
 		},
 		methods: {
+			showLogout() {
+				//this.show=true;
+				let that = this;
+				uni.showActionSheet({
+					title: "确认退出吗",
+					itemList: ["确定"],
+					success: function(res) {
+						that.logout();
+						that.isLogin = that.$isLogin()
+						// uni.navigateTo({
+						// 	url: '/pages/auth/loginIndex'
+						// })
+					}
+				});
+			},
 			getGoodsProducts() {
 				var that = this;
 				if (that.likeGoodsHasMore == true || that.likeGoodsLoading == true) return;
@@ -569,7 +584,7 @@
 	}
 
 	.likeTitleTextClass {
-		font-weight: 600;
+		font-weight: bold;
 		font-size: 40rpx;
 		color: #222222;
 		margin-bottom: 30rpx;