diff --git a/components/certifiedCj/certifiedCj.vue b/components/certifiedCj/certifiedCj.vue
index ba56e59..253aa53 100644
--- a/components/certifiedCj/certifiedCj.vue
+++ b/components/certifiedCj/certifiedCj.vue
@@ -34,7 +34,7 @@
]
},
{
- src: '/static/report/zhanwei_xf(2).png',
+ src: '/static/report/zhanwei_xf(1).png',
title: '福建省海纳川食品有限公司',
tags: [{
tag: '活冻鲍鱼'
diff --git a/components/myAvatar/myAvatar.vue b/components/myAvatar/myAvatar.vue
index 49bc3ef..25431a1 100644
--- a/components/myAvatar/myAvatar.vue
+++ b/components/myAvatar/myAvatar.vue
@@ -1,13 +1,13 @@
-
+
-
+
-
+
顾发航
@@ -19,6 +19,7 @@
name: "myAvatar",
data() {
return {
+ show: false,
avatar: '/static/my/avatar.png',
normal: '/static/my/wo_icon_pthy.png',
VIP: '/static/my/wo_icon_vip.png',
diff --git a/components/news/news.vue b/components/news/news.vue
index 887949c..1195aeb 100644
--- a/components/news/news.vue
+++ b/components/news/news.vue
@@ -31,13 +31,13 @@
place: '第一食品资讯官方账号'
},
{
- src: '/static/report/zhanwei_zh.png',
+ src: '/static/report/zhanwei_xf.png',
title: '食品企业如何开发新产品?创新思维又发挥着怎样的效应呢?',
time: '2022-10-18 14:43',
place: '腾讯新闻 '
},
{
- src: '/static/report/zhanwei_zh.png',
+ src: '/static/report/zhanwei_xf.png',
title: '食品企业如何开发新产品?创新思维又发挥着怎样的效应呢?',
time: '2022-10-18 14:43',
place: '腾讯新闻'
diff --git a/components/products/products.vue b/components/products/products.vue
index 9c3e2aa..7cbd03a 100644
--- a/components/products/products.vue
+++ b/components/products/products.vue
@@ -49,7 +49,7 @@
time: '2022-12-04'
},
{
- src: '/static/products/zhanwei_dg(2).png',
+ src: '/static/products/zhanwei_dg.png',
title: '干吃汤圆',
tag: '天然原料',
img_tag: '糕点卷酥',
@@ -57,7 +57,7 @@
time: '2022-12-04'
},
{
- src: '/static/products/zhanwei_dg(1).png',
+ src: '/static/products/zhanwei_dg.png',
title: '紫薯魔芋人参魔芋人参魔芋人参…',
tag: '天然原料',
img_tag: '健康创新',
@@ -65,7 +65,7 @@
time: '2022-12-04'
},
{
- src: '/static/products/zhanwei_dg(3).png',
+ src: '/static/products/zhanwei_dg.png',
title: '焦糖饼干',
tag: '无防腐剂',
img_tag: '饼干曲奇',
diff --git a/pages.json b/pages.json
index 0838b99..c1a4d38 100644
--- a/pages.json
+++ b/pages.json
@@ -4,11 +4,10 @@
"custom": {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue",
"^ua-(.*)": "@/components/uview-ui/components/u-$1/u-$1.vue",
- "^customer-(.*)": "@/components/uni-$1.vue" // 匹配components目录内的vue文件
+ "^customer-(.*)": "@/components/uni-$1.vue" // 匹配components目录内的vue文件
}
},
- "pages": [
- {
+ "pages": [{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "食瞳",
@@ -124,7 +123,7 @@
"navigationBarBackgroundColor": "#12CA64",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
- }
+ }
}, {
"path": "pages/my/memberCenter/memberCenter",
"style": {
diff --git a/pages/index/goods-category-search/category-index.vue b/pages/index/goods-category-search/category-index.vue
index e830469..23c5a0c 100644
--- a/pages/index/goods-category-search/category-index.vue
+++ b/pages/index/goods-category-search/category-index.vue
@@ -173,52 +173,52 @@
featureMask: false,
categoryList: [{
name: '烘焙宝典',
- icon: '/static/category/sy_icon_hp.png',
+ icon: '/static/classify/sy_icon_hp.png',
active: true
},
{
name: '零食铺子',
- icon: '/static/category/sy_icon_ls.png',
+ icon: '/static/classify/sy_icon_ls.png',
active: false
},
{
name: '饮品大全',
- icon: '/static/category/sy_icon_yp.png',
+ icon: '/static/classify/sy_icon_yp.png',
active: false
},
{
name: '调味菜单',
- icon: '/static/category/sy_icon_tw.png',
+ icon: '/static/classify/sy_icon_tw.png',
active: false
},
{
name: '肉食荟萃',
- icon: '/static/category/sy_icon_rs.png',
+ icon: '/static/classify/sy_icon_rs.png',
active: false
},
{
name: '乳品手册',
- icon: '/static/category/sy_icon_np.png',
+ icon: '/static/classify/sy_icon_np.png',
active: false
},
{
name: '果蔬地图',
- icon: '/static/category/sy_icon_gs.png',
+ icon: '/static/classify/sy_icon_gs.png',
active: false
},
{
name: '食界新贵',
- icon: '/static/category/sy_icon_sj.png',
+ icon: '/static/classify/sy_icon_sj.png',
active: false
},
{
name: '欢喜盒子',
- icon: '/static/category/sy_icon_hz.png',
+ icon: '/static/classify/sy_icon_hz.png',
active: false
},
{
name: '创意工具',
- icon: '/static/category/sy_icon_cy.png',
+ icon: '/static/classify/sy_icon_cy.png',
active: false
}
],
@@ -444,9 +444,9 @@
})
},
exportView(str) {
- if(str === 'showMask') {
+ if (str === 'showMask') {
this.showMask = true
- } else if(str === 'featureMask') {
+ } else if (str === 'featureMask') {
this.featureMask = true
}
},
@@ -456,7 +456,7 @@
},
navigateToSearch() {
uni.navigateTo({
- url:'/pages/index/search/search'
+ url: '/pages/index/search/search'
})
},
goBack() {
@@ -777,7 +777,7 @@
height: 360rpx;
overflow: auto;
transition: height 1.3s ease;
-
+
.category-item {
// display: flex;
diff --git a/pages/index/index.vue b/pages/index/index.vue
index b1dafc5..4de14b2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -5,7 +5,7 @@
+ prefixIconStyle="font-size: 22px;color: #909399;margin-left:30rpx" readonly @tap="toSearch()">
@@ -13,15 +13,13 @@
-
-
+
{{listItem.title}}
-
+
@@ -91,7 +89,7 @@
},
],
swiperList: [
- '/static/products/sy_bg.png',
+ 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
'https://cdn.uviewui.com/uview/swiper/swiper3.png'
],
}
@@ -102,8 +100,20 @@
},
methods: {
//点击一级分类
- click(listIndex) {
- this.$refs.uToast.success(`点击了第${listIndex}个`)
+ // click(listIndex) {
+ // this.$refs.uToast.success(`点击了第${listIndex}个`)
+ // },
+ //点击搜索框跳转到搜索页面
+ toSearch() {
+ uni.navigateTo({
+ url: '/pages/index/search/search'
+ })
+ },
+ //点击一级分类跳转到分类页
+ toClassify() {
+ uni.navigateTo({
+ url: '/pages/index/goods-category-search/category-index'
+ })
}
}
}
@@ -184,4 +194,4 @@
}
-
\ No newline at end of file
+
diff --git a/pages/index/search/search.vue b/pages/index/search/search.vue
index 12253dd..0a13b0f 100644
--- a/pages/index/search/search.vue
+++ b/pages/index/search/search.vue
@@ -2,23 +2,20 @@
-
+
最近搜索
-
+
-
+
-
+
@@ -26,8 +23,6 @@
暂无搜索记录
-
-
@@ -37,21 +32,17 @@
-
+
-
-