多次请求处理

This commit is contained in:
GaoHao
2024-08-09 14:01:02 +08:00
parent bf5460c304
commit c83aa0b4c4
5 changed files with 29 additions and 35 deletions

View File

@@ -10,7 +10,7 @@
<view class="head">
<view class="head_bg"></view>
<view class="tips">
<image class="informIcon" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/informIcon.png" mode="widthFix"/>
<image class="informIcon" src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/confirmOrder/informIcon.png" mode="aspectFill"/>
<text class="informText">温馨提示请适量点餐避免浪费</text>
</view>
<!-- <view class="tabBox"> -->
@@ -93,7 +93,7 @@
<view class="method_list" @click="groupChange(index+1)">
<view class="method_list_top">
<view class="method_list_top_left">
<image class="icon" :src="item.url" mode="widthFix"/>
<image class="icon" :src="item.url" mode="aspectFill"/>
<text class="name"> {{ item.name }} </text>
</view>
<u-radio activeColor="#E8AD7B" icon-size="36" size="36" :name="index+1">
@@ -210,8 +210,8 @@
this.listinfo.name = JSON.parse(e.storeInfo).shopName;
},
onShow() {
uni.$on('message', this.getMessage)
if (this.listinfoid) {
uni.$on('message', this.getMessage)
this.orderorderInfo()
} else {
this.handlemessage()
@@ -310,6 +310,7 @@
userId: uni.cache.get('userInfo').id,
"type": "connect",
})
uni.$on('message', this.getMessage)
},
/**
@@ -590,7 +591,8 @@
display: flex;
align-items: center;
.informIcon{
width: 26.7rpx;
width: 26.79rpx;
height: 24.06rpx;
margin-right: 8rpx;
}
.informText{
@@ -923,7 +925,8 @@
.method_list_top_left{
display: flex;
.icon{
width: 54rpx!important;
width: 54.67rpx!important;
height: 48rpx!important;
margin-right: 22rpx;
}
.name{