guhongwei 2 tahun lalu
induk
melakukan
e956eff966
3 mengubah file dengan 84 tambahan dan 115 penghapusan
  1. 8 8
      pages/my/index.vue
  2. 51 102
      pagesHome/shop/index.vue
  3. 25 5
      pagesMy/address/index.vue

+ 8 - 8
pages/my/index.vue

@@ -107,14 +107,14 @@
 						title: '我的优惠劵',
 						title: '我的优惠劵',
 						route: 'pagesMy/discount/index'
 						route: 'pagesMy/discount/index'
 					},
 					},
-					{
-						title: '我的积分',
-						route: 'pagesMy/integral/index'
-					},
-					{
-						title: '我的资产',
-						route: 'pagesMy/assets/index'
-					},
+					// {
+					// 	title: '我的积分',
+					// 	route: 'pagesMy/integral/index'
+					// },
+					// {
+					// 	title: '我的资产',
+					// 	route: 'pagesMy/assets/index'
+					// },
 					{
 					{
 						title: '我的拼团',
 						title: '我的拼团',
 						route: 'pagesMy/dough/index'
 						route: 'pagesMy/dough/index'

+ 51 - 102
pagesHome/shop/index.vue

@@ -10,8 +10,7 @@
 						<view class="one_1_2">
 						<view class="one_1_2">
 							<view class="pubu">
 							<view class="pubu">
 								<view class="list" v-for="(item,index) in shoplist" :key="index">
 								<view class="list" v-for="(item,index) in shoplist" :key="index">
-									<image class="image" :src="item.file&&item.file.length>0?item.file[0].url:''"
-										mode=""></image>
+									<image class="image" :src="item.file&&item.file.length>0?item.file[0].url:''" mode=""></image>
 									<view class="name">
 									<view class="name">
 										{{item.name}}
 										{{item.name}}
 									</view>
 									</view>
@@ -37,20 +36,17 @@
 						<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
 						<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
 							<view class="list-scroll-view">
 							<view class="list-scroll-view">
 								<view class="second_1">
 								<view class="second_1">
-									<view :class="['list',condActive==index?'activeList':'']"
-										v-for="(item,index) in condList" :key="index" @tap="toCond(index,item)">
+									<view :class="['list',condActive==index?'activeList':'']" v-for="(item,index) in condList" :key="index" @tap="toCond(index,item)">
 										<view class="name">
 										<view class="name">
 											{{item.name}}
 											{{item.name}}
 										</view>
 										</view>
 										<view class="icon">
 										<view class="icon">
 											<view class="icon_1">
 											<view class="icon_1">
-												<text :class="['iconfont',item.shangActive]"
-													v-if="condActive==index&&shang=='1'"></text>
+												<text :class="['iconfont',item.shangActive]" v-if="condActive==index&&shang=='1'"></text>
 												<text :class="['iconfont',item.shang]" v-else></text>
 												<text :class="['iconfont',item.shang]" v-else></text>
 											</view>
 											</view>
 											<view class="icon_1">
 											<view class="icon_1">
-												<text :class="['iconfont', item.xiaActive]"
-													v-if="condActive==index&&xia=='-1'"></text>
+												<text :class="['iconfont', item.xiaActive]" v-if="condActive==index&&xia=='-1'"></text>
 												<text :class="['iconfont', item.xia]" v-else></text>
 												<text :class="['iconfont', item.xia]" v-else></text>
 											</view>
 											</view>
 										</view>
 										</view>
@@ -106,13 +102,18 @@
 							</view>
 							</view>
 						</view>
 						</view>
 						<view class="qrcode_1">
 						<view class="qrcode_1">
-							<view class="qrcode_1_1">
+							<uqrcode ref="uqrcode" canvas-id="qrcode" :value="uqrcodeInfo" :options="{ margin:10,backgroundColor:'#f1f1f1' }">
+							</uqrcode>
+							<view class="txt">
+								店铺二维码
+							</view>
+							<!-- <view class="qrcode_1_1">
 								<uqrcode ref="uqrcode" canvas-id="qrcode" :value="uqrcodeInfo" :options="{ margin:10 }">
 								<uqrcode ref="uqrcode" canvas-id="qrcode" :value="uqrcodeInfo" :options="{ margin:10 }">
 								</uqrcode>
 								</uqrcode>
 								<view class="txt">
 								<view class="txt">
 									店铺二维码
 									店铺二维码
 								</view>
 								</view>
-							</view>
+							</view> -->
 						</view>
 						</view>
 					</view>
 					</view>
 					<view class="collect">
 					<view class="collect">
@@ -515,73 +516,6 @@
 						}
 						}
 					}
 					}
 				}
 				}
-
-				// display: flex;
-				// flex-direction: column;
-				// width: 96vw;
-				// height: 90vh;
-				// padding: 2vw;
-				// background-color: var(--fFB1Color);
-
-				// .first {
-				// 	margin: 0 0 2vw 0;
-
-				// 	.image {
-				// 		width: 100%;
-				// 		height: 50vw;
-				// 	}
-				// }
-
-				// .second {
-				// 	position: relative;
-				// 	flex-grow: 1;
-
-				// 	.list {
-				// 		margin: 0 2vw 2vw 0;
-				// 		background-color: var(--fffColor);
-				// 		padding: 2vw;
-				// 		width: 43vw;
-				// 		border-radius: 5px;
-
-				// 		.image {
-				// 			width: 100%;
-				// 			height: 49vw;
-				// 			margin: 0 0 1vw 0;
-				// 		}
-
-				// 		.name {
-				// 			font-size: var(--font15Size);
-				// 			margin: 0 0 2vw 0;
-				// 		}
-
-				// 		.other {
-				// 			display: flex;
-				// 			flex-direction: row;
-				// 			justify-content: space-between;
-
-				// 			.money {
-				// 				color: var(--ff0Color);
-
-				// 				text:nth-child(1) {
-				// 					font-size: var(--font12Size);
-				// 				}
-				// 			}
-
-				// 			.btn {
-				// 				button {
-				// 					border-radius: 25px;
-				// 					color: var(--fffColor);
-				// 					background-color: var(--ff0Color);
-				// 					font-size: var(--font12Size);
-				// 				}
-				// 			}
-				// 		}
-				// 	}
-
-				// 	.list:nth-child(2n) {
-				// 		margin: 0 0 2vw 0;
-				// 	}
-				// }
 			}
 			}
 
 
 			.one_2 {
 			.one_2 {
@@ -901,6 +835,7 @@
 
 
 				.second {
 				.second {
 					margin: 2vw 0;
 					margin: 2vw 0;
+					position: relative;
 
 
 					.second_1 {
 					.second_1 {
 						display: flex;
 						display: flex;
@@ -921,36 +856,50 @@
 					}
 					}
 
 
 					.qrcode_1 {
 					.qrcode_1 {
-						display: flex;
-						justify-content: center;
-						text-align: center;
-						margin: 5vw 0;
 
 
-						.qrcode_1_1 {
-							padding: 2vw;
-							background: red;
+						.uqrcode {
+							top: 10vw;
+							left: 20%;
 
 
-							.uqrcode {
-								display: flex;
-								justify-content: center;
-								width: 216px !important;
-								height: 216px !important;
+						}
 
 
-								.uqrcode-canvas {
-									-webkit-transform-origin: center;
-								}
-							}
+						.txt {
+							margin: 2vw 0 0 0;
+							position: absolute;
+							text-align: center;
+							width: 100vw;
+							bottom: -22vw;
+						}
 
 
-							// canvas {
-							// 	width: 180px !important;
-							// 	height: 180px !important;
-							// }
+						// display: flex;
+						// justify-content: center;
+						// text-align: center;
+						// margin: 5vw 0;
 
 
-							.txt {
-								margin: 2vw 0 0 0;
-								color: var(--mainColor);
-							}
-						}
+						// .qrcode_1_1 {
+						// 	padding: 2vw;
+
+						// .uqrcode {
+						// 	display: flex;
+						// 	justify-content: center;
+						// 	width: 216px !important;
+						// 	height: 216px !important;
+
+						// 	.uqrcode-canvas {
+						// 		-webkit-transform-origin: center;
+						// 	}
+						// }
+
+						// canvas {
+						// 	width: 180px !important;
+						// 	height: 180px !important;
+						// }
+
+						// .txt {
+						// 	margin: 2vw 0 0 0;
+						// 	color: #000;
+						// }
+						// }
 					}
 					}
 
 
 				}
 				}

+ 25 - 5
pagesMy/address/index.vue

@@ -2,7 +2,7 @@
 	<mobile-frame>
 	<mobile-frame>
 		<view class="main">
 		<view class="main">
 			<view class="one">
 			<view class="one">
-				<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
+				<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
 					<view class="list-scroll-view">
 					<view class="list-scroll-view">
 						<view class="list" v-for="(item,index) in list" :key="index">
 						<view class="list" v-for="(item,index) in list" :key="index">
 							<view class="name">
 							<view class="name">
@@ -31,6 +31,9 @@
 								<text>默认</text>
 								<text>默认</text>
 							</view>
 							</view>
 						</view>
 						</view>
+						<view class="is_bottom" v-if="is_bottom">
+							<text>我们也是有底线的!</text>
+						</view>
 					</view>
 					</view>
 				</scroll-view>
 				</scroll-view>
 			</view>
 			</view>
@@ -55,7 +58,10 @@
 				total: 0,
 				total: 0,
 				skip: 0,
 				skip: 0,
 				limit: 5,
 				limit: 5,
-				page: 0
+				page: 0,
+				// 数据是否触底
+				is_bottom: false,
+				scrollTop: 0,
 			};
 			};
 		},
 		},
 		onShow: function() {
 		onShow: function() {
@@ -114,9 +120,14 @@
 					that.$set(that, `skip`, skip)
 					that.$set(that, `skip`, skip)
 					that.search();
 					that.search();
 					uni.hideLoading();
 					uni.hideLoading();
-				} else uni.showToast({
-					title: '没有更多数据了'
-				});
+				} else that.$set(that, `is_bottom`, true)
+			},
+			toScroll(e) {
+				const that = this;
+				let up = that.scrollTop;
+				that.$set(that, `scrollTop`, e.detail.scrollTop);
+				let num = Math.sign(up - e.detail.scrollTop);
+				if (num == 1) that.$set(that, `is_bottom`, false);
 			},
 			},
 			// 获取微信地址
 			// 获取微信地址
 			toWxaddress() {
 			toWxaddress() {
@@ -358,4 +369,13 @@
 			flex-direction: column;
 			flex-direction: column;
 		}
 		}
 	}
 	}
+
+	.is_bottom {
+		text-align: center;
+
+		text {
+			padding: 2vw 0;
+			display: inline-block;
+		}
+	}
 </style>
 </style>