Task(千县名品):商铺跳转

This commit is contained in:
modendeveloper
2024-10-28 23:35:59 +08:00
parent c8a7ea63e3
commit 5ff8f5f76f
2 changed files with 19 additions and 9 deletions
+5
View File
@@ -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)
}
+14 -9
View File
@@ -543,7 +543,7 @@
<view class="focus-img">
<image :src="item.productImage" class="img"></image>
</view>
<view class="more-t v12-pt-2" style="height: 84rpx">{{ item.productName }}</view>
<view class="more-t v12-pt-2 v12-font-bold v12-font-28" style="height: 84rpx">{{ item.productName }}</view>
<view class="v12-justify-between v12-algin-center v12-pt-2">
<view>
<text class="v12-font-bold v12-primary-text v12-font-24"></text>
@@ -565,12 +565,12 @@
class="mark-img"
/>
</view>
<view class="more-t v12-pt-2" style="height: 84rpx">{{ item.name }}</view>
<view class="v12-justify-start v12-align-center v12-pt-2">
<view class="more-t v12-pt-2 v12-font-bold v12-font-28" style="height: 84rpx">{{ item.content }}</view>
<view class="v12-justify-start v12-align-center v12-pt-2 ">
<view class="btn v12-mr-2">
<image :src="item.logo" class="img v12-radius-100"></image>
</view>
<view class="one-t v12-font-24 v12-dark1-text" style="width:230rpx">{{ item.ownerName }}/{{ inn.name }}</view>
<view class="one-t v12-font-24 v12-dark1-text" style="width:230rpx">{{ item.name }}/{{ inn.name }}</view>
</view>
</view>
</view>
@@ -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() {