From e302fcb477aba60b3b0629f0668b281f820010b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com>
Date: Sun, 19 Nov 2023 23:05:10 +0800
Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E9=A6=96=E9=A1=B5icon?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=B8=B2=E6=9F=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SearchShopListItem/SearchShopListItem.vue | 15 +++-
pages.json | 2 +-
pages/detail/detail.vue | 14 ++--
pages/index/NavBarPages/cjal/cjal.vue | 30 ++++----
pages/index/NavBarPages/czxx/czxx.vue | 68 +++++++++++++++----
pages/index/NavBarPages/xmzs/xmzs.vue | 68 +++++++++++++++----
pages/index/NavBarPages/zdxx/zdxx.vue | 67 ++++++++++++++----
pages/index/NavBarPages/zrxx/zrxx.vue | 68 +++++++++++++++----
8 files changed, 262 insertions(+), 70 deletions(-)
diff --git a/components/SearchShopListItem/SearchShopListItem.vue b/components/SearchShopListItem/SearchShopListItem.vue
index e8aee94..a0b0275 100644
--- a/components/SearchShopListItem/SearchShopListItem.vue
+++ b/components/SearchShopListItem/SearchShopListItem.vue
@@ -3,7 +3,7 @@
-
+
{{shopInfo.tt}}
@@ -141,6 +141,18 @@
},
methods: {
+ enterDetail() {
+ // console.log("进入详情页面");
+ const query = this.$u.queryParams({
+ id: this.shopInfo.id,
+ type: this.shopInfo.type,
+ search: 1
+ })
+ console.log("query", query);
+ uni.navigateTo({
+ url: '/pages/detail/detail' + `${query}`
+ })
+ },
handleEdit(searchid) {
// TODO 完成页面跳转
console.log("点击了编辑ID为", searchid);
@@ -221,6 +233,7 @@
flex-direction: column;
justify-content: space-between;
width: 100%;
+
>text {
font-size: 14px;
}
diff --git a/pages.json b/pages.json
index 8e4147a..894046c 100644
--- a/pages.json
+++ b/pages.json
@@ -60,7 +60,7 @@
{
"path": "pages/detail/detail",
"style": {
- "navigationBarTitleText": "商品详情",
+ "navigationBarTitleText": "商铺详情",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#339967",
"enablePullDownRefresh": false
diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue
index d7703ad..a1a7258 100644
--- a/pages/detail/detail.vue
+++ b/pages/detail/detail.vue
@@ -1,6 +1,6 @@
-
+
@@ -30,7 +30,7 @@
行业:{{shopInfo.trade1}}
区域:{{shopInfo.area1}}
- 地址:{{shopInfo.adress}}
+ 地址:{{shopInfo.adress}}
@@ -68,7 +68,7 @@
-
+
@@ -79,11 +79,17 @@
data() {
return {
shopInfo: {},
- showM: false
+ showM: false,
+ search: true
}
},
onLoad: function(options) {
console.log('detail', options);
+ if (options.search == "1") {
+ this.search = false
+ } else {
+ this.search = true
+ }
//点击轮播图跳转详情, 传递的参数id, type
if (options.id !== undefined && options.type !== undefined) {
this.getDetail(options.type, options.id)
diff --git a/pages/index/NavBarPages/cjal/cjal.vue b/pages/index/NavBarPages/cjal/cjal.vue
index 3dd11a9..c2a1e19 100644
--- a/pages/index/NavBarPages/cjal/cjal.vue
+++ b/pages/index/NavBarPages/cjal/cjal.vue
@@ -1,15 +1,10 @@
-
-
-
+
-
+
@@ -19,10 +14,20 @@
data() {
return {
headimg: "https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg",
+ shopInfoList: [],
}
},
+ onLoad() {
+ this.getInfo()
+ },
methods: {
-
+ getInfo() {
+ this.$api.getSuccList().then(res => {
+ this.shopListLength = res.data.data.length
+ this.shopInfoList = [...this.shopInfoList, ...res.data.data]
+ console.log(this.shopInfoList);
+ })
+ }
}
}
@@ -31,14 +36,15 @@
page {
background-color: #f8f8f8;
}
+
.marginLR10 {
margin: 0 10px;
}
+
.head-img {
margin-top: 10rpx;
width: 100%;
height: 200rpx;
border-radius: 10px;
}
-
-
+
\ No newline at end of file
diff --git a/pages/index/NavBarPages/czxx/czxx.vue b/pages/index/NavBarPages/czxx/czxx.vue
index bc88f91..1784fd0 100644
--- a/pages/index/NavBarPages/czxx/czxx.vue
+++ b/pages/index/NavBarPages/czxx/czxx.vue
@@ -10,65 +10,108 @@
-
+
-
+
-
+
+
\ No newline at end of file
diff --git a/pages/index/NavBarPages/xmzs/xmzs.vue b/pages/index/NavBarPages/xmzs/xmzs.vue
index 68395fc..be4718d 100644
--- a/pages/index/NavBarPages/xmzs/xmzs.vue
+++ b/pages/index/NavBarPages/xmzs/xmzs.vue
@@ -10,65 +10,108 @@
-
+
-
+
-
+
+
\ No newline at end of file
diff --git a/pages/index/NavBarPages/zdxx/zdxx.vue b/pages/index/NavBarPages/zdxx/zdxx.vue
index ef1e820..8f23f6c 100644
--- a/pages/index/NavBarPages/zdxx/zdxx.vue
+++ b/pages/index/NavBarPages/zdxx/zdxx.vue
@@ -10,65 +10,107 @@
-
+
-
+
-
+
+
\ No newline at end of file
diff --git a/pages/index/NavBarPages/zrxx/zrxx.vue b/pages/index/NavBarPages/zrxx/zrxx.vue
index fafc32c..c5c6a39 100644
--- a/pages/index/NavBarPages/zrxx/zrxx.vue
+++ b/pages/index/NavBarPages/zrxx/zrxx.vue
@@ -10,65 +10,108 @@
-
+
-
+
-
+
+
\ No newline at end of file