Browse Source

pig

dev_xrcc
1054425342@qq.com 3 months ago
parent
commit
89686963d1
  1. 3
      pages/index/sensoryStore.vue
  2. 6
      pig/chapter4/secBuy.vue
  3. 6
      pig/components/SideNav.vue
  4. 14
      pig/home/home.vue

3
pages/index/sensoryStore.vue

@ -19,6 +19,7 @@
<view class="product-content"> <view class="product-content">
<image class="head-img" src="https://static.ticket.sz-trip.com/uploads/20250625/e3112c280ef9761af741907a737ef221.png"></image> <image class="head-img" src="https://static.ticket.sz-trip.com/uploads/20250625/e3112c280ef9761af741907a737ef221.png"></image>
<scroll-view style="width: 100%;" scroll-x>
<view class="product"> <view class="product">
<view class="item" v-for="(item,i) in list" :key="item.goods.id" @click="goDetailByType(item)"> <view class="item" v-for="(item,i) in list" :key="item.goods.id" @click="goDetailByType(item)">
<image class="item-img" :src="showImg(item.goods.image)"></image> <image class="item-img" :src="showImg(item.goods.image)"></image>
@ -30,7 +31,9 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</scroll-view>
<image style="margin: 53rpx 0 35rpx;" class="head-img" src="https://static.ticket.sz-trip.com/uploads/20250627/73153098ff5c115e02afb0328ade1e29.png"></image> <image style="margin: 53rpx 0 35rpx;" class="head-img" src="https://static.ticket.sz-trip.com/uploads/20250627/73153098ff5c115e02afb0328ade1e29.png"></image>

6
pig/chapter4/secBuy.vue

@ -38,6 +38,7 @@
></image> ></image>
<image <image
@click="toBuy"
style=" style="
position: absolute; position: absolute;
z-index: 9; z-index: 9;
@ -111,6 +112,11 @@ export default {
goBack() { goBack() {
uni.navigateBack(); uni.navigateBack();
}, },
toBuy(){
uni.navigateTo({
url:'/subPackages/techan/detail?id=38'
})
},
goBackChange() { goBackChange() {
uni.navigateBack({ uni.navigateBack({
delta: 2, delta: 2,

6
pig/components/SideNav.vue

@ -76,6 +76,11 @@ export default {
targetIndex: 7, targetIndex: 7,
path: "/pig/chapter4/chapter4", path: "/pig/chapter4/chapter4",
}, },
{
text: "点击购买",
targetIndex: 8,
path: "/subPackages/techan/detail?id=38",
},
], ],
}; };
}, },
@ -86,6 +91,7 @@ export default {
this.showMenu = true; this.showMenu = true;
}, 300); }, 300);
}, },
closeMenu() { closeMenu() {
this.showMenu = false; this.showMenu = false;
setTimeout(() => { setTimeout(() => {

14
pig/home/home.vue

@ -270,6 +270,15 @@
item.text item.text
}}</text> }}</text>
</view> </view>
<view
class="nav-item"
@click="toBuy"
>
<text >
点击购买
</text>
</view>
</view> </view>
<!-- <BuyPeaches /> --> <!-- <BuyPeaches /> -->
<!-- <BackgroundMusic /> --> <!-- <BackgroundMusic /> -->
@ -455,6 +464,11 @@ export default {
this.showMenu = true; this.showMenu = true;
}, 300); }, 300);
}, },
toBuy(){
uni.navigateTo({
url:'/subPackages/techan/detail?id=38'
})
},
closeMenu() { closeMenu() {
this.showMenu = false; this.showMenu = false;
setTimeout(() => { setTimeout(() => {

Loading…
Cancel
Save