zs 2 anni fa
parent
commit
0e1a16639c
1 ha cambiato i file con 6 aggiunte e 165 eliminazioni
  1. 6 165
      pagesHome/shop/index.vue

+ 6 - 165
pagesHome/shop/index.vue

@@ -5,7 +5,8 @@
 				<view class="one_1" v-if="barActive=='0'">
 					<scroll-view scroll-y="true" class="scroll-view">
 						<view class="one_1_1">
-							<image class="image" :src="info.logo&&info.logo.length>0?info.logo[0].url:''" mode=""></image>
+							<image class="image" :src="info.logo&&info.logo.length>0?info.logo[0].url:''" mode="">
+							</image>
 						</view>
 						<view class="one_1_2">
 							<view class="pubu">
@@ -59,7 +60,9 @@
 								<view class="second_2">
 									<view class="pubu">
 										<view class="list" v-for="(item,index) in list" :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="sale" v-if="item.is_sale==true">
 												<text>已售尽</text>
 											</view>
@@ -210,19 +213,11 @@
 		},
 		onLoad: async function(e) {
 			const that = this;
-			let id = '6333d71d32c5f69745f9bd32';
-			// if (e && e.id) id = e.id;
-			// else id = decodeURIComponent(e.q).split('id=')[1];
-			that.$set(that, `id`, id);
+			that.$set(that, `id`, e.id || '');
 			await that.watchLogin();
 			await that.search();
 			await that.searchOther();
 		},
-		onShow: function() {},
-		onReady: function() {
-			// const that = this;
-			// that.createQrcode();
-		},
 		methods: {
 			// 监听用户是否登录
 			watchLogin() {
@@ -515,73 +510,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 {
@@ -790,88 +718,6 @@
 								}
 							}
 						}
-
-						// display: flex;
-						// flex-direction: row;
-						// flex-wrap: wrap;
-						// padding: 2vw 2vw 0 2vw;
-						// background-color: var(--f1Color);
-
-						// .list {
-						// 	position: relative;
-						// 	width: 43vw;
-						// 	margin: 0 2vw 2vw 0;
-						// 	padding: 2vw;
-						// 	border-radius: 9px;
-						// 	background-color: var(--fffColor);
-
-						// 	.image {
-
-						// 		width: 100%;
-						// 		height: 40vw;
-						// 	}
-
-						// 	.sale {
-						// 		position: absolute;
-						// 		top: 18vw;
-						// 		text-align: center;
-						// 		width: 43vw;
-
-						// 		text {
-						// 			background-color: #0000005f;
-						// 			border-radius: 90px;
-						// 			display: inline-block;
-						// 			width: 15vw;
-						// 			height: 15vw;
-						// 			color: var(--fffColor);
-						// 			text-align: center;
-						// 			line-height: 15vw;
-						// 		}
-						// 	}
-
-						// 	.name {
-						// 		font-size: var(--font16Size);
-						// 		margin: 0 0 1vw 0;
-						// 	}
-
-						// 	.other {
-						// 		display: flex;
-						// 		flex-direction: row;
-						// 		justify-content: space-between;
-
-						// 		.money {
-						// 			font-size: var(--font14Size);
-						// 			color: var(--ff0Color);
-
-						// 			text:nth-child(1) {
-						// 				font-size: var(--font12Size);
-						// 			}
-						// 		}
-
-						// 		.other_1 {
-						// 			flex-grow: 1;
-						// 			margin: 0 0 0 2vw;
-						// 			font-size: var(--font12Size);
-						// 			color: var(--f85Color);
-						// 		}
-
-						// 		.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;
-						// }
-
-
 					}
 				}
 			}
@@ -941,11 +787,6 @@
 								}
 							}
 
-							// canvas {
-							// 	width: 180px !important;
-							// 	height: 180px !important;
-							// }
-
 							.txt {
 								margin: 2vw 0 0 0;
 								color: var(--mainColor);