diff --git a/api/inn.js b/api/inn.js
index 18429b5..9af877d 100644
--- a/api/inn.js
+++ b/api/inn.js
@@ -236,3 +236,8 @@ export function getHotelShareBackgroundImage(id) {
export function hotelNewsView(data) {
return request.post("/api/hotelNews/view", data, {login: true})
}
+
+
+export function getFarmerShop(id) {
+ return request.get("/api/countyFamous/farmerShop/" + id)
+}
diff --git a/pkg_product/views/famousQianxianShop.vue b/pkg_product/views/famousQianxianShop.vue
index 2d13207..94788d5 100644
--- a/pkg_product/views/famousQianxianShop.vue
+++ b/pkg_product/views/famousQianxianShop.vue
@@ -543,7 +543,7 @@
- {{ item.productName }}
+ {{ item.productName }}
¥
@@ -565,12 +565,12 @@
class="mark-img"
/>
- {{ item.name }}
-
+ {{ item.content }}
+
- {{ item.ownerName }}/{{ inn.name }}
+ {{ item.name }}/{{ inn.name }}
@@ -724,11 +724,16 @@ export default {
},
methods: {
goStore(item) {
- this.$yrouter.push({
- path: '/pagesInn/inn/innHome',
- query: {
- id: item.farmerShopId
- }
+ if (item.farmerShopId === 0) {
+ uni.showToast({
+ title: '店铺装修中~',
+ icon: 'none',
+ duration: 3000
+ })
+ return
+ }
+ uni.navigateTo({
+ url: '/pagesInn/inn/innHome?id=' + item.farmerShopId + '&isQianxian=1'
})
},
load() {