diff --git a/pages/member/index.vue b/pages/member/index.vue index c05f7d1..c159a44 100644 --- a/pages/member/index.vue +++ b/pages/member/index.vue @@ -75,6 +75,13 @@ }); return false; } + if (this.amount <= 0) { + uni.showToast({ + title: '金额必须大于0', + icon: 'none' + }); + return false; + } let res = await this.api.paymemeberIn({ shopId: this.shopId, // 判断显示哪家的作品, amount: this.amount // 判断显示哪家的作品, diff --git a/pages/order_food/order_food.vue b/pages/order_food/order_food.vue index 2052589..129c248 100644 --- a/pages/order_food/order_food.vue +++ b/pages/order_food/order_food.vue @@ -24,7 +24,7 @@ - 营业时间:{{ shopInfo.storeInfo.businessStartDay +'至'+ shopInfo.storeInfo.businessEndDay +' '+ shopInfo.storeInfo.businessTime }} + 营业时间:{{ (shopInfo.storeInfo.businessStartDay || '——') +'至'+ (shopInfo.storeInfo.businessEndDay || '——') +' '+ (shopInfo.storeInfo.businessTime || '')}} 查看 @@ -60,7 +60,7 @@ ¥ {{item.lowPrice}} /份 - 「{{item.suit}}份起点」 + 「{{item.suit}}份起点」 @@ -95,7 +95,7 @@ {{item.name}} + @click="leftTap(index)">{{item.name}} @@ -108,8 +108,10 @@ + + :src="`${item1.coverImg}`" mode="aspectFill"> TOP{{index1+1}} @@ -119,7 +121,7 @@ {{item1.shortTitle?item1.shortTitle:''}} 月售{{item1.stockNumber}} {{ item1.lowPrice }}/份「{{item1.suit}}份起点」 + class="suit" v-if="item1.suit > 1">「{{item1.suit}}份起点」 营业时间: {{ shopInfo.storeInfo.businessStartDay +'至'+ shopInfo.storeInfo.businessEndDay +' '+ shopInfo.storeInfo.businessTime }} + class="t">{{ (shopInfo.storeInfo.businessStartDay || '——') +'至'+ (shopInfo.storeInfo.businessEndDay || '——') +' '+ (shopInfo.storeInfo.businessTime || '')}} 商家地址: @@ -1630,16 +1632,18 @@ // padding-bottom: 200rpx; .item { - padding: 0 30rpx; - height: 92rpx; - line-height: 92rpx; + padding: 30rpx 30rpx; + // height: 92rpx; + // line-height: 92rpx; position: relative; font-weight: 400; font-size: 24rpx; color: #333333; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + display: flex; + align-items: center; + // overflow: hidden; + // text-overflow: ellipsis; + // white-space: nowrap; &+.item { margin-top: 1px;