diff --git a/common/api.js b/common/api.js
index c41210d..5025b34 100644
--- a/common/api.js
+++ b/common/api.js
@@ -68,3 +68,6 @@ export const API_ABOUTUS = '/api/agent_info/about'; //关于我们
export const API_COLLECT_LIST = '/api/fav/list'; //收藏列表
export const API_ADDCOLLECT = '/api/fav/create'; //添加收藏
export const API_DELCOLLECT = '/api/fav/delete'; //删除收藏
+
+
+export const API_SEARCH_GOODS = '/api/agent_product/search'//搜索接口
\ No newline at end of file
diff --git a/common/styles/iconfont.css b/common/styles/iconfont.css
index 1d70412..1613ab1 100644
--- a/common/styles/iconfont.css
+++ b/common/styles/iconfont.css
@@ -1,8 +1,8 @@
@font-face {
font-family: "lf-iconfont"; /* Project id 2651793 */
- src: url('//at.alicdn.com/t/font_2651793_09yxtzk2asib.woff2?t=1627553466179') format('woff2'),
- url('//at.alicdn.com/t/font_2651793_09yxtzk2asib.woff?t=1627553466179') format('woff'),
- url('//at.alicdn.com/t/font_2651793_09yxtzk2asib.ttf?t=1627553466179') format('truetype');
+ src: url('//at.alicdn.com/t/font_2651793_eou9l1nql5f.woff2?t=1631006175744') format('woff2'),
+ url('//at.alicdn.com/t/font_2651793_eou9l1nql5f.woff?t=1631006175744') format('woff'),
+ url('//at.alicdn.com/t/font_2651793_eou9l1nql5f.ttf?t=1631006175744') format('truetype');
}
.lf-iconfont {
@@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
+.lf-icon-zhankaishangxia:before {
+ content: "\e7b1";
+}
+
.lf-icon-cuo:before {
content: "\e600";
}
diff --git a/components/lf-nav/lf-nav.vue b/components/lf-nav/lf-nav.vue
new file mode 100644
index 0000000..ca84d93
--- /dev/null
+++ b/components/lf-nav/lf-nav.vue
@@ -0,0 +1,217 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index e1cae29..58f37a9 100644
--- a/pages.json
+++ b/pages.json
@@ -20,6 +20,18 @@
"navigationBarTitleText": "我的"
}
},
+ {
+ "path": "pages/search/search",
+ "style": {
+ "navigationBarTitleText": "搜索"
+ }
+ },
+ {
+ "path": "pages/search/searchList",
+ "style": {
+ "navigationBarTitleText": "搜索列表"
+ }
+ },
{
"path": "pages/hot/index",
"style": {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index e5424b8..807b8f3 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,5 +1,6 @@
+
diff --git a/pages/search/search.vue b/pages/search/search.vue
new file mode 100644
index 0000000..f670448
--- /dev/null
+++ b/pages/search/search.vue
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+ 历史搜索
+
+
+ {{i}}
+
+
+
+
+ 历史搜索
+
+
+ 暂无历史搜索记录
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/search/searchList.vue b/pages/search/searchList.vue
new file mode 100644
index 0000000..876c7fc
--- /dev/null
+++ b/pages/search/searchList.vue
@@ -0,0 +1,434 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+ 本套票只包含两个成人不可带小孩本套票只包含两个成人不可带小孩本套票只包含两个成人不可带小孩
+
+
+ ¥{{item.original_price}}
+
+
+
+
+
+
+ {{ loadingText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uview-ui/components/u-tabs/u-tabs.vue b/uview-ui/components/u-tabs/u-tabs.vue
index 883865d..6de8504 100644
--- a/uview-ui/components/u-tabs/u-tabs.vue
+++ b/uview-ui/components/u-tabs/u-tabs.vue
@@ -254,7 +254,10 @@
// 点击某一个tab菜单
clickTab(index) {
// 点击当前活动tab,不触发事件
- if(index == this.currentIndex) return ;
+ if(index == this.currentIndex) {
+ this.$emit('click',index)
+ return
+ } ;
// 发送事件给父组件
this.$emit('change', index);
},