Przeglądaj źródła

修改个人中心布局,增减购物车按钮加宽,去掉商品详情优品推荐

WangYiHan 10 miesięcy temu
rodzic
commit
415c5b4e95

+ 6 - 1
pages/goods_cate/goods_cate.vue

@@ -507,7 +507,7 @@
 
 
 	.productSort .conter .listw .list {
-		padding: 0 30rpx;
+		padding: 0 30rpx 0 0;
 	}
 
 	.productSort .conter .listw .list.on {
@@ -608,6 +608,8 @@
 		border-right: 0;
 		border-radius: 6rpx 0 0 6rpx;
 		line-height: 48rpx;
+		width: 50rpx;
+		
 	}
 
 	.productSort .conter .listw .list .item .text .money .carnum .reduce.on {
@@ -620,6 +622,7 @@
 		border-left: 0;
 		border-radius: 0 6rpx 6rpx 0;
 		line-height: 46rpx;
+		width: 50rpx;
 	}
 
 	.productSort .conter .listw .list .item .text .money .carnum .plus.on {
@@ -634,6 +637,8 @@
 		border-radius: 12rpx;
 		line-height: 29px;
 		height: 54rpx;
+		width: 80rpx;
+		// margin: 0 20rpx;
 
 		input {
 			display: -webkit-inline-box;

+ 2 - 3
pages/goods_details/index.vue

@@ -99,7 +99,7 @@
 							</block>
 						</view>
 						<!-- 优品推荐 -->
-						<view class="superior borRadius14" if='good_list.length' id="past2">
+						<!-- <view class="superior borRadius14" if='good_list.length' id="past2">
 							<view class="title acea-row row-center-wrapper">
 								<image src="../../static/images/xzuo.png"></image>
 								<view class="titleTxt">优品推荐</view>
@@ -126,10 +126,9 @@
 											</view>
 										</view>
 									</swiper-item>
-									<!-- <view class="swiper-pagination" slot="pagination"></view> -->
 								</swiper>
 							</view>
-						</view>
+						</view> -->
 					</view>
 				</view>
 				<view class='product-intro' id="past3">

+ 58 - 23
pages/user/index.vue

@@ -3,7 +3,7 @@
 		<!-- #ifdef APP-PLUS || H5 -->
 		<view class="status_bar1"></view>
 		<view class="" style="margin-top: var(--status-bar-height);">
-			<uni-nav-bar title="个人中心" backgroundColor="#ea3322" color="#fff"></uni-nav-bar>
+			<uni-nav-bar height="55px" title="个人中心" backgroundColor="#ea3322" color="#fff"></uni-nav-bar>
 		</view>
 		<!-- #endif -->
 		<view class="mid" style="flex:1;overflow: hidden;">
@@ -36,26 +36,6 @@
 								<view class="phone" v-else-if="isLogin" @tap="bindPhone">绑定手机号</view>
 							</view>
 						</view>
-						<view class="num-wrapper">
-							<!-- TODO 芋艿:钱包 -->
-							<view class="num-item" @click="goMenuPage('/pages/users/user_money/index')">
-								<text
-									class="num">{{ userInfo.nowMoney ? Number(userInfo.nowMoney).toFixed(2) : 0 }}</text>
-								<view class="txt">余额</view>
-							</view>
-							<view class="num-item" @click="goMenuPage('/pages/users/user_integral/index')">
-								<text class="num">{{ userInfo.point ? userInfo.point: 0 }}</text>
-								<view class="txt">积分</view>
-							</view>
-							<view class="num-item" @click="goMenuPage('/pages/users/user_coupon/index')">
-								<text class="num">{{ couponCount }}</text>
-								<view class="txt">优惠券</view>
-							</view>
-							<view class="num-item" @click="goMenuPage('/pages/users/user_goods_collection/index')">
-								<text class="num">{{ favoriteCount }}</text>
-								<view class="txt">收藏</view>
-							</view>
-						</view>
 						<view class="sign" @click="goSignIn">签到</view>
 					</view>
 
@@ -122,8 +102,46 @@
 							<!-- #endif -->
 						</view>
 					</view>
-					<image src="/static/images/support.png" alt="" class='support' />
-					<view class="uni-p-b-98"></view>
+					<!-- 余额 -->
+					<view class="wallet-box">
+						<navigator url="/pages/users/user_money/index" hover-class="none">
+						    <view class="wallet acea-row row-between-wrapper" v-if="userInfo.mobile">
+						        <view>余额</view>
+						        <view class="input">
+						            {{ userInfo.nowMoney ? Number(userInfo.nowMoney).toFixed(2) : 0 }}<text class="iconfont icon-xiangyou"></text>
+						        </view>
+						    </view>
+						</navigator>
+						<navigator url="/pages/users/user_integral/index" hover-class="none">
+						    <view class="wallet acea-row row-between-wrapper" v-if="userInfo.mobile">
+						        <view>积分</view>
+						        <view class="input">
+						            <text class="iconfont icon-xiangyou"></text>
+						        </view>
+						    </view>
+						</navigator>
+						
+						<navigator url="/pages/users/user_coupon/index" hover-class="none">
+						    <view class="wallet acea-row row-between-wrapper" v-if="userInfo.mobile">
+						        <view>优惠卷</view>
+						        <view class="input">
+						            <text class="iconfont icon-xiangyou"></text>
+						        </view>
+						    </view>
+						</navigator>
+						
+						<navigator url="/pages/users/user_goods_collection/index" hover-class="none">
+						    <view class="wallet acea-row row-between-wrapper" v-if="userInfo.mobile">
+						        <view>收藏</view>
+						        <view class="input">
+						            <text class="iconfont icon-xiangyou"></text>
+						        </view>
+						    </view>
+						</navigator>
+					</view>
+					
+				<!-- 	<image src="/static/images/support.png" alt="" class='support' />
+					<view class="uni-p-b-98"></view> -->
 				</view>
 			</scroll-view>
 		</view>
@@ -641,6 +659,23 @@
 			}
 		}
 
+		.wallet-box{
+			background-color: #fff;
+			margin-top: 20rpx;
+			border-radius: 14rpx;
+			font-size: 32rpx;
+			.wallet{
+				border-bottom: 1rpx solid #f2f2f2;
+				padding: 24rpx;
+				font-size: 32rpx;
+				color: #282828;
+				.input{
+					color: #2D2D2D;
+					font-size: 36rpx;
+				}
+			}
+		}
+		
 		.phone {
 			color: #fff;
 		}