Browse Source

消息提示

master
Enzo 5 years ago
parent
commit
3e5d34cf13
  1. 31
      canteen/pages/index/index.vue
  2. 16
      supplier/pages/index/index.vue
  3. 2
      supplier/pages/order/detail.vue

31
canteen/pages/index/index.vue

@ -7,14 +7,14 @@
</view> </view>
<view class="list"> <view class="list">
<view class="lf-row-between list-item" hover-class="lf-opacity"
v-for="(item, index) in block_list" :key="index"
@click="$url(item.path)">
<view class="lf-row-between list-item" hover-class="lf-opacity" v-for="(item, index) in block_list"
:key="index" @click="$url(item.path)">
<view class="lf-row-center"> <view class="lf-row-center">
<image class="icon-img" :src="item.icon"></image> <image class="icon-img" :src="item.icon"></image>
<text class="lf-text-vertical lf-m-l-20 lf-font-28 lf-color-black">{{ item.name }}</text> <text class="lf-text-vertical lf-m-l-20 lf-font-28 lf-color-black">{{ item.name }}</text>
</view> </view>
<view>
<view class="lf-flex">
<view class="message-tag" v-if="index == 1">1</view>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
@ -51,7 +51,7 @@
this.block_list = res.data.block; this.block_list = res.data.block;
this.canteen = res.data.canteen; this.canteen = res.data.canteen;
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
  title: this.canteen.user.canteen.canteen_name
title: this.canteen.user.canteen.canteen_name
}) })
}) })
}, },
@ -79,10 +79,24 @@
} }
</style> </style>
<style lang="scss" scoped="scoped"> <style lang="scss" scoped="scoped">
.message-tag {
width: 36rpx;
height: 36rpx;
background-color: red;
border-radius: 50%;
margin-right: 10rpx;
text-align: center;
align-content: center;
color: white;
display: flex;
justify-content: space-around;
}
.head { .head {
height: 374rpx; height: 374rpx;
width: 750rpx; width: 750rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
image { image {
width: 200rpx; width: 200rpx;
height: 200rpx; height: 200rpx;
@ -90,6 +104,7 @@
border-radius: 50%; border-radius: 50%;
} }
} }
.list { .list {
margin-top: 20rpx; margin-top: 20rpx;
padding: 0 32rpx; padding: 0 32rpx;
@ -97,15 +112,18 @@
width: 100%; width: 100%;
height: auto; height: auto;
} }
.list-item { .list-item {
border-bottom: 1rpx solid #EEEEEE; border-bottom: 1rpx solid #EEEEEE;
height: 110rpx; height: 110rpx;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
.icon-img { .icon-img {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
} }
.feedback-btn { .feedback-btn {
position: absolute; position: absolute;
width: 100%; width: 100%;
@ -113,10 +131,12 @@
z-index: 1; z-index: 1;
background: transparent; background: transparent;
} }
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
} }
} }
.exit { .exit {
padding: 0 32rpx; padding: 0 32rpx;
// bottom: 50rpx; // bottom: 50rpx;
@ -124,6 +144,7 @@
padding-bottom: 50rpx; padding-bottom: 50rpx;
box-sizing: border-box; box-sizing: border-box;
background-color: #F6F6F6; background-color: #F6F6F6;
button { button {
background-color: #f0f0f0; background-color: #f0f0f0;
color: #777777; color: #777777;

16
supplier/pages/index/index.vue

@ -13,7 +13,8 @@
<image class="icon-img" :src="item.icon"></image> <image class="icon-img" :src="item.icon"></image>
<text class="lf-text-vertical lf-m-l-20 lf-font-28 lf-color-black">{{ item.name }}</text> <text class="lf-text-vertical lf-m-l-20 lf-font-28 lf-color-black">{{ item.name }}</text>
</view> </view>
<view>
<view class="lf-flex">
<view class="message-tag" v-if="index == 2">1</view>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
</view> </view>
</view> </view>
@ -80,6 +81,19 @@
} }
</style> </style>
<style lang="scss" scoped="scoped"> <style lang="scss" scoped="scoped">
.message-tag {
width: 36rpx;
height: 36rpx;
background-color: red;
border-radius: 50%;
margin-right: 10rpx;
text-align: center;
align-content: center;
color: white;
display: flex;
justify-content: space-around;
}
.head{ .head{
height: 374rpx; height: 374rpx;
width: 750rpx; width: 750rpx;

2
supplier/pages/order/detail.vue

@ -26,7 +26,7 @@
<view class="lf-color-black">{{ order.created_at }}</view> <view class="lf-color-black">{{ order.created_at }}</view>
</view> </view>
<view class="lf-row-between list"> <view class="lf-row-between list">
<view>过期时间</view>
<view>有效时间</view>
<view class="lf-color-black">{{ order.deadline_text }}</view> <view class="lf-color-black">{{ order.deadline_text }}</view>
</view> </view>
</view> </view>

Loading…
Cancel
Save