小程序bug

This commit is contained in:
魏啾
2024-07-06 18:28:07 +08:00
parent 380a6312f8
commit 07c7562628
6 changed files with 79 additions and 15 deletions

View File

@@ -33,12 +33,12 @@
</view>
<view class="towcontentitem flex-colum" @click="scanCodehandle(1)">
<image src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/takeaway.png" mode="widthFix"
style="width: 128.05rpx; height: 120.41rpx;"></image>
<text class="towcontentitemtext">点个外卖</text>
style="width: 164rpx; height: 164rpx"></image>
<text class="towcontentitemtext">会员充值</text>
</view>
</view>
<view class="footer-banner">
<!-- <u-swiper :list="footerBanners" radius="20" height="274" :indicator="banners.length > 1"
<!-- <u-swiper :list="footerBanners" radius="20" height="274" :indicator="banners.length > 1"
imgMode="widthFix"></u-swiper> -->
</view>
</view>
@@ -52,7 +52,6 @@
return {
banners: ['https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/banner1.png'],
footerBanners: ['https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/footer_banner1.png'],
userInfo: uni.cache.get('userInfo'),
};
},
props: {
@@ -60,11 +59,17 @@
type: Object,
default () {
return {
amount:'',
amount: '',
shopName: ""
}
}
},
userInfo: {
type: Object,
default () {
return {}
}
},
},
methods: {
scanCodehandle(i) {
@@ -88,9 +93,13 @@
// url:'/pages/order_food/order_food'
// })
} else {
uni.showToast({
title: '此店铺暂未开通外卖',
icon: 'none'
// uni.pro.navigateTo('pay_code/pay_code?shopInfo=', {
// shopName: this.usershopUserinfo.shopName,
// amount: this.usershopUserinfo.amount,
// shopId: uni.cache.get('shopUser')
// })
uni.pro.navigateTo('member/memberdetails', {
shopId_id: uni.cache.get('shopUser'),
})
}
},
@@ -167,7 +176,7 @@
.after {
position: absolute;
top:46rpx;
top: 46rpx;
right: 0;
width: 40rpx;
height: 40rpx;