Ver Fonte

我的仓库修改

hwb0 há 3 anos atrás
pai
commit
2d726e0f5d

+ 5 - 1
packageGoods/goods/list.vue

@@ -40,7 +40,7 @@
 						<view class="content-coin flex">
 							<view class="content-coin__left flex">
 								<image src="../../static/public/goods_coin.png" mode=""></image>
-								<view class="num">×{{ item.exchangePrice }}</view>
+								<view class="num"><text>×</text>{{ item.exchangePrice }}</view>
 							</view>
 							<view class="content-coin__right" v-if="item.originPrice">原盲豆:{{ item.originPrice }}</view>
 						</view>
@@ -265,6 +265,10 @@
 							font-size: 28rpx;
 							font-weight: bold;
 							
+							text {
+								font-weight: normal;
+							}
+							
 							image {
 								width: 34rpx;
 								height: 30rpx;

+ 110 - 101
packagePrize/prize/index.vue

@@ -52,7 +52,7 @@
 								<view class="ells title">{{ item.title }}</view>
 								<view class="num flex">
 									<view class="sku ells-one">规格:{{ item.properties || '-' }}</view>
-									<view class="">数量:{{ item.goodsNum }}</view>
+									<view class="">共{{ item.goodsNum }}件</view>
 								</view>
 							</view>
 						</view>
@@ -78,24 +78,8 @@
 		<!-- 优惠券 -->
 		<view class="prize-coupon" v-else>
 			<view class="prize-coupon-list">
-				<!-- <navigator :url="`/pages/prize/detail?info=${ JSON.stringify(item) }`" class="flex prize-coupon-list-item" hover-class="navigator-hover" v-for="(item, index) in list" :key="index">
-					<image :src="item.picUrl" mode="aspectFill"></image>
-					<view class="flex info">
-						<view class="flex desc">
-							<view class="title">{{ item.title }}</view>
-							<view class="txt">使用期限:{{ $parseTime(item.validStart, '{y}.{m}.{d}') }}-{{ $parseTime(item.validEnd, '{y}.{m}.{d}') }}</view>
-							<view class="txt">使用范围:{{ item.useAreaDesc }}</view>
-						</view>
-						<view class="flex btn">
-							<view class="amt"><text>¥</text>{{ item.discount / 100 }}</view>
-							<view class="action">立即使用</view>
-						</view>
-					</view>
-				</navigator> -->
-
-				<view @click="toPrizeDetail(item)" class="prize-coupon-list-item" hover-class="navigator-hover"
-					v-for="(item, index) in list" :key="index">
-					<image src="../../static/icon/coupon_bg.png" mode=""></image>
+				<view @click="toPrizeDetail(item)" class="prize-coupon-list-item" v-for="(item, index) in list" :key="index">
+					<!-- <image src="../../static/icon/coupon_bg.png" mode=""></image>
 					<view class="info">
 						<view class="info-item">
 							<text>使用期限:</text>
@@ -114,9 +98,26 @@
 					<view class="flex price-title">
 						<view class="price"><text>¥</text>{{ item.discount / 100 }}</view>
 						<view class="title">{{ item.title }}</view>
+					</view> -->
+					<view class="content flex">
+						<view class="content-left flex">
+							<image src="../static/prize_coupon.png" mode=""></image>
+							<view class="price flex">
+								<text>{{ item.discount / 100 }}</text>
+								<text>元</text>
+							</view>
+						</view>
+						<view class="content-right flex">
+							<view class="title ells-one">{{ item.title }}</view>
+							<view class="desc">适用范围:{{ item.useAreaDesc || '-' }}</view>
+							<view class="desc">使用期限:{{ $parseTime(item.validStart, '{y}.{m}.{d}') }} ~ {{ $parseTime(item.validEnd, '{y}.{m}.{d}') }}</view>
+						</view>
+					</view>
+					<view class="btn flex">
+						<view class="btn-title" v-if="JSON.parse(item.useArea).value != '4'">立即使用</view>
+						<view class="btn-title" v-else>查看详情</view>
 					</view>
 				</view>
-
 			</view>
 			<view class="flex empty" v-if="!list.length && !loading">
 				<view class="center">
@@ -141,7 +142,7 @@
 			<!-- 优惠券使用记录 -->
 			<view class="flex prize-action-coupon" @click="toCoupon" v-else>
 				<view class="title">优惠券使用记录</view>
-				<u-icon name="arrow-right" size="15" color="#333"></u-icon>
+				<u-icon name="arrow-right" size="15" color="#999"></u-icon>
 			</view>
 		</view>
 	</view>
@@ -184,7 +185,6 @@
 			this.couponNum()
 		},
 		onLoad(opthios) {
-
 			if (opthios != undefined) {
 				if (opthios.coupon == 1) {
 					this.currentIndex = 1
@@ -264,8 +264,6 @@
 					this.statusIndex = 3 //已兑换
 					this.getListTwo()
 				}
-				
-				
 			},
 
 			toIndex() {
@@ -313,7 +311,6 @@
 				this.$forceUpdate()
 			},
 
-
 			// 查看优惠券使用记录
 			toCoupon() {
 				uni.navigateTo({
@@ -477,8 +474,7 @@
 				
 				&__content {
 					justify-content: space-between;
-					padding-bottom: 22rpx;
-					border-bottom: 1px solid #E5E5E5;
+					padding-bottom: 34rpx;
 					
 					.info {
 						padding-left: 16rpx;
@@ -486,13 +482,13 @@
 						justify-content: flex-start;
 						
 						image {
-							width: 200rpx;
-							height: 200rpx;
+							width: 176rpx;
+							height: 176rpx;
 							border-radius: 12rpx;
 						}
 						
 						.desc {
-							height: 200rpx;
+							height: 176rpx;
 							padding-left: 22rpx;
 							flex: 1;
 							font-size: 30rpx;
@@ -521,31 +517,31 @@
 				
 				&__btn {
 					justify-content: space-between;
-					padding-top: 22rpx;
 					
 					.type {
-						font-size: 30rpx;
+						font-size: 26rpx;
 						color: #999999;
-						line-height: 30rpx;
+						line-height: 26rpx;
 						padding-left: 70rpx;
 					}
 					
 					.btn {
-						width: 200rpx;
-						height: 66rpx;
-						line-height: 66rpx;
+						width: 168rpx;
+						height: 60rpx;
+						line-height: 60rpx;
 						text-align: center;
-						color: #fff;
-						background: #F9822C;
-						border-radius: 34rpx;
+						color: #F9822C;
+						border: 1px solid #F9822C;
+						border-radius: 30rpx;
 					}
 					.btnTwo {
-						width: 200rpx;
-						height: 66rpx;
-						line-height: 66rpx;
+						width: 168rpx;
+						height: 60rpx;
+						line-height: 60rpx;
 						text-align: center;
-						border-radius: 34rpx;
-						background-color: #f1f1f1; color: #999;
+						border-radius: 30rpx;
+						background-color: #f1f1f1; 
+						color: #666;
 						border: 2rpx solid #999;
 					}
 				}
@@ -557,71 +553,83 @@
 		}
 	}
 
+	// 优惠券
 	.prize-coupon {
 		margin-top: 85rpx;
-		padding: 40rpx 20rpx 150rpx;
+		padding: 20rpx 20rpx 150rpx;
 
 		&-list {
-
 			&-item {
-				position: relative;
-				background-color: #FFFFFF;
-				margin-bottom: 20rpx;
-				border-radius: 10rpx;
-
-				image {
+				padding-top: 30rpx;
+				margin-bottom: 30rpx;
+				background-color: #fff;
+				
+				.content {
 					width: 100%;
-					height: 156rpx;
-					margin-bottom: 24rpx;
-				}
-
-				.info {
-					padding-left: 40rpx;
-					padding-bottom: 8rpx;
-
-					.info-item {
-						line-height: 40rpx;
-						color: #333333;
-						margin-bottom: 12rpx;
-					}
-				}
-
-				.info-now {
-					margin-top: 10rpx;
-					color: #848484;
-					font-size: 30rpx;
-					height: 100rpx;
-					line-height: 90rpx;
-					text-align: center;
-				}
-
-				.info-now view {
-					height: 2rpx;
-					margin: 0 10rpx;
-					background-image: linear-gradient(to right, #cfcfcf 0%, #cfcfcf 50%, transparent 1%);
-					background-size: 25rpx 10rpx;
-				}
-
-				.price-title {
+					height: 184rpx;
 					justify-content: flex-start;
-					position: absolute;
-					top: 0;
-					width: 100%;
-					padding: 36rpx 0 0 40rpx;
-
-					.price {
-						color: #FFFFFF;
-						font-size: 60rpx;
+					margin-bottom: 40rpx;
+					
+					&-left {
+						width: 210rpx;
+						height: 100%;
 						margin-right: 20rpx;
-
-						text {
-							font-size: 40rpx;
+						
+						image {
+							width: 100%;
+							height: 100%;
+						}
+						
+						.price {
+							position: absolute;
+							color: #fff;
+							
+							text:first-child {
+								font-size: 70rpx;
+								padding-right: 20rpx;
+							}
+							
+							text:last-child {
+								font-size: 40rpx;
+							}
 						}
 					}
-
-					.title {
-						color: #FFFFFF;
-						font-size: 48rpx;
+					
+					&-right {
+						flex: 1;
+						align-items: flex-start;
+						flex-direction: column;
+						justify-content: space-between;
+						height: 100%;
+						padding: 24rpx 0;
+						
+						.title {
+							font-size: 32rpx;
+							line-height: 32rpx;
+							height: 32rpx;
+							overflow: hidden;
+							font-weight: bold;
+						}
+						
+						.desc {
+							font-size: 24rpx;
+							line-height: 24rpx;
+							color: #999999;
+						}
+					}
+				}
+				
+				.btn {
+					padding: 20rpx 0 22rpx;
+					margin: 0 30rpx 0;
+					border-top: 1px solid #F2F2F2;
+					
+					&-title {
+						font-size: 30rpx;
+						line-height: 30rpx;
+						height: 30rpx;
+						font-weight: bold;
+						color: #F9822C;
 					}
 				}
 			}
@@ -670,14 +678,15 @@
 			padding: 30rpx 40rpx;
 
 			.title {
-				margin-right: 20rpx;
+				margin-right: 10rpx;
+				color: #999;
 				line-height: 40rpx;
 			}
 		}
 	}
 	.empty {
 		height: 60vh;
-	
+		
 		.center {
 			text-align: center;
 	

BIN
packagePrize/static/prize_coupon.png


+ 4 - 1
pages.json

@@ -9,7 +9,10 @@
 			"path": "pages/core/index"
 		},
 		{
-			"path": "pages/user/index"
+			"path": "pages/user/index",
+			"style": {
+				"navigationBarTextStyle": "white"
+			}
 		},
 		{
 			"path": "pages/login/index"

+ 5 - 1
pages/core/index.vue

@@ -85,7 +85,7 @@
 						<view class="content-coin flex">
 							<view class="content-coin__left flex">
 								<image src="../../static/public/goods_coin.png" mode=""></image>
-								<view class="num">×{{ item.exchangePrice }}</view>
+								<view class="num"><text>×</text>{{ item.exchangePrice }}</view>
 							</view>
 							<view class="content-coin__right" v-if="item.originPrice">原盲豆:{{ item.originPrice }}</view>
 						</view>
@@ -609,6 +609,10 @@
 							font-size: 28rpx;
 							font-weight: bold;
 							
+							text {
+								font-weight: normal;
+							}
+							
 							image {
 								width: 34rpx;
 								height: 30rpx;

+ 104 - 42
pages/user/index.vue

@@ -1,5 +1,5 @@
 <template>
-	<view>
+	<view class="wrap">
 		<!-- 非H5撑高元素 -->
 		<!-- <view class="status_bar"></view> -->
 		<!-- 头部背景 -->
@@ -43,16 +43,45 @@
 		</view>
 		<!-- 操作项 -->
 		<view class="action">
-			<u-cell-group :border="false">
+			<!-- <u-cell-group :border="false">
 				<u-cell icon="order" title="我的订单" :isLink="true" @click="toOrder" />
 				<u-cell icon="map" title="我的地址" :isLink="true" @click="toAddress" />
 				<u-cell icon="kefu-ermai" title="联系我们" :isLink="true" @click="contactService" />
 				<u-cell icon="info-circle" title="关于我们" :border="false" :isLink="true" :url="'/packageOther/about/index'" />
-			</u-cell-group>
+			</u-cell-group> -->
+			<view class="action-item flex">
+				<view class="action-item-left flex" @click="toOrder">
+					<image src="../../static/user/user_order.png" mode=""></image>
+					<view class="title">我的订单</view>
+				</view>
+				<u-icon name="arrow-right" color="#666" size="16"></u-icon>
+			</view>
+			<view class="action-item flex" @click="contactService">
+				<view class="action-item-left flex">
+					<image src="../../static/user/user_kefu.png" mode=""></image>
+					<view class="title">联系客服</view>
+				</view>
+				<u-icon name="arrow-right" color="#666" size="16"></u-icon>
+			</view>
+			<view class="action-item flex" @click="toAbout">
+				<view class="action-item-left flex">
+					<image src="../../static/user/user_about.png" mode=""></image>
+					<view class="title">关于我们</view>
+				</view>
+				<u-icon name="arrow-right" color="#666" size="16"></u-icon>
+			</view>
 		</view>
-		<view class="cancel">
-			<u-cell icon="close-circle" title="退出登录" :isLink="true" :border="false" @click="logout" />
+		<view class="action">
+			<!-- <u-cell icon="close-circle" title="退出登录" :isLink="true" :border="false" @click="logout" /> -->
+			<view class="action-item flex" @click="logout">
+				<view class="action-item-left flex">
+					<image src="../../static/user/user_close.png" mode=""></image>
+					<view class="title">退出登录</view>
+				</view>
+				<u-icon name="arrow-right" color="#666" size="16"></u-icon>
+			</view>
 		</view>
+		
 		<custom-tab-bar :activeValue="'user'" />
 	</view>
 </template>
@@ -125,7 +154,7 @@
 			// 我的订单
 			toOrder() {
 				if (!this.loginState) {
-					uni.$u.toast('请登录');
+					uni.$u.toast('请登录');
 					return
 				}
 				uni.navigateTo({
@@ -136,24 +165,31 @@
 			// 我的地址
 			toAddress() {
 				if (!this.loginState) {
-					uni.$u.toast('请登录');
+					uni.$u.toast('请登录');
 					return
 				}
 				uni.navigateTo({
 					url: '/packageOperate/address/index'
 				})
 			},
+			
+			// 关于我们
+			toAbout() {
+				uni.navigateTo({
+					url: '/packageOther/about/index'
+				})
+			},
 
 			// 没有登录
 			notLogin() {
-				uni.$u.toast('请登录!');
+				uni.$u.toast('请登录');
 			},
 
 			// 注销登录
 			logout() {
 				let _this = this
 				if (!this.loginState) {
-					uni.$u.toast('已退出登录');
+					uni.$u.toast('已退出登录');
 					return
 				}
 				uni.showModal({
@@ -202,37 +238,38 @@
 </style>
 
 <style lang="scss" scoped>
+	.wrap {
+		padding-bottom: 200rpx;
+	}
 	.user {
 		display: flex;
 		align-items: center;
-		height: 300rpx;
-		padding: 0 36rpx;
-		// background: linear-gradient(to right, #a1c4fd 0%, #c2e9fb 100%);
-		background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/my-bkgd.png) center center;
+		height: 560rpx;
+		background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/mine_bkg.png) center center no-repeat;
+		background-size: 100vw 560rpx;
 	}
 
 	.account {
-		margin: 0 20rpx;
-		padding: 34rpx;
-		background-color: #FFFFFF;
-		border-radius: 10rpx;
-		margin-top: -90rpx;
-		margin-bottom: 40rpx;
+		margin-top: -350rpx;
+		margin-bottom: 34rpx;
 
+		// 头像
 		&-ava {
 			justify-content: flex-start;
-			margin-bottom: 46rpx;
+			margin-bottom: 34rpx;
+			padding: 0 30rpx;
 
 			image {
-				width: 106rpx;
-				height: 106rpx;
+				width: 170rpx;
+				height: 170rpx;
 				border-radius: 50%;
+				border: 2px solid #FFFFFF;
 				overflow: hidden;
 			}
 
 			.no-ava {
-				width: 106rpx;
-				height: 106rpx;
+				width: 170rpx;
+				height: 170rpx;
 				border-radius: 50%;
 				overflow: hidden;
 				background: #C0C0C0;
@@ -240,46 +277,71 @@
 
 			&-name {
 				margin-left: 20rpx;
-				font-size: 32rpx;
+				font-size: 34rpx;
+				color: #FFFFFF;
 			}
 
 			&-no {
 				margin-left: 20rpx;
-				color: #C0C0C0;
-				font-size: 32rpx;
+				color: #FFFFFF;
+				font-size: 34rpx;
 			}
 		}
 
+		// 信息
 		&-info {
+			height: 216rpx;
 			justify-content: space-around;
+			background-color: #FFFFFF;
+			border-radius: 18rpx;
 
 			&-item {
 				flex-direction: column;
-
+				font-size: 34rpx;
+				font-weight: bold;
+				
 				view {
-					line-height: 40rpx;
+					line-height: 52rpx;
 				}
 
 				view:first-child {
-					line-height: 56rpx;
-					font-size: 40rpx;
+					color: #FD7B24;
+					line-height: 60rpx;
+					font-size: 52rpx;
 				}
 			}
 		}
 	}
 
 	.action {
-		margin: 0 20rpx;
-		padding: 10rpx 20rpx 0;
-		background-color: #FFFFFF;
-		border-radius: 10rpx;
-		margin-bottom: 40rpx;
-	}
-
-	.cancel {
-		margin: 0 20rpx;
-		padding: 10rpx 20rpx;
+		margin: 0 34rpx;
+		padding: 0 34rpx;
 		background-color: #FFFFFF;
-		border-radius: 10rpx;
+		border-radius: 18rpx;
+		margin-bottom: 34rpx;
+		
+		&-item {
+			justify-content: space-between;
+			padding: 36rpx 0;
+			border-bottom: 1px solid #eee;
+			
+			&-left {
+				image {
+					width: 40rpx;
+					height: 44rpx;
+					margin-right: 20rpx;
+				}
+				
+				.title {
+					font-size: 30rpx;
+					line-height: 30rpx;
+					font-weight: bold;
+				}
+			}
+		}
+		
+		&-item:last-child {
+			border-bottom: none;
+		}
 	}
 </style>

BIN
static/user/user_about.png


BIN
static/user/user_close.png


BIN
static/user/user_kefu.png


BIN
static/user/user_order.png