Quellcode durchsuchen

feat:提交代码

longzhicheng vor 1 Jahr
Ursprung
Commit
1d0e11b94a
3 geänderte Dateien mit 804 neuen und 7 gelöschten Zeilen
  1. 795 1
      src/pages.json
  2. 3 3
      src/pages/home/components/header.vue
  3. 6 3
      src/pages/quick-fuc/business.vue

Datei-Diff unterdrückt, da er zu groß ist
+ 795 - 1
src/pages.json


+ 3 - 3
src/pages/home/components/header.vue

@@ -117,10 +117,10 @@
117 117
 					<image src="https://cdn.bjtdba.com/vod/image/2023-02-15/20230215112840149.png" mode="widthFix"
118 118
 						class="w-5 h-5  pl-2 py-1"></image>
119 119
 					<div class="flex flex-1 w-100%">
120
-						<div class="flex-1 guand ">输入商品关键字</div>
121
-						<div class="bg-[#D71608] text-white text-xs w-11 rounded-full text-center p-1.5  mr-0.5 ">
120
+						<div class="flex-1 guand ">输入商品名称查找全球好货</div>
121
+						<!-- <div class="bg-[#D71608] text-white text-xs w-11 rounded-full text-center p-1.5  mr-0.5 ">
122 122
 							搜索
123
-						</div>
123
+						</div> -->
124 124
 					</div>
125 125
 				</div>
126 126
 			</div>

+ 6 - 3
src/pages/quick-fuc/business.vue

@@ -72,6 +72,7 @@
72 72
 	const currentIndex = ref(0)
73 73
 	const tabList = ref([])
74 74
 	const goodsList = ref([])
75
+	let id=''
75 76
 
76 77
 
77 78
 	onLoad((option) => {
@@ -111,12 +112,14 @@
111 112
 	})
112 113
 
113 114
 	onPullDownRefresh(() => {
115
+		getProductType()
114 116
 		uni.stopPullDownRefresh()
115 117
 	})
116 118
 
117 119
 	function onTabClick(position, id) {
118 120
 		currentIndex.value = position
119
-		getProductType(id)
121
+		id.value = id
122
+		getProductType()
120 123
 	}
121 124
 
122 125
 	function goShopClick(id) {
@@ -152,11 +155,11 @@
152 155
 		})
153 156
 	}
154 157
 
155
-	function getProductType(id) {
158
+	function getProductType() {
156 159
 		uni.showLoading({
157 160
 			title:'加载中...'
158 161
 		})
159
-		apiGetProductType(id).then((res) => {
162
+		apiGetProductType(id.value).then((res) => {
160 163
 			if (res && res.pageInfo && res.pageInfo.list) {
161 164
 				goodsList.value = res.pageInfo.list
162 165
 				dealData()