Browse Source

pig

dev_xrcc
1054425342@qq.com 2 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">
<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="item" v-for="(item,i) in list" :key="item.goods.id" @click="goDetailByType(item)">
<image class="item-img" :src="showImg(item.goods.image)"></image>
@ -30,7 +31,9 @@
</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>

6
pig/chapter4/secBuy.vue

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

6
pig/components/SideNav.vue

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

14
pig/home/home.vue

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

Loading…
Cancel
Save