| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <template>
- <view class="page">
- <u-navbar title="团餐设置" :autoBack="true" :placeholder="true" :border-bottom="true"></u-navbar>
- <view class="menu">
- <view
- v-for="(item, i) in menus"
- :key="i"
- :class="['row', i === menus.length - 1 ? 'last' : '']"
- @click="go(item)"
- >
- <text class="label">{{ item.name }}</text>
- <u-icon name="arrow-right" color="#C7C6CA" size="28"></u-icon>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- menus: [
- { name: '我的团长', path: '/pages/merchantDish/settings/leader' },
- { name: '餐盒设置', path: '/pages/merchantDish/settings/box-list' }
- ]
- };
- },
- methods: {
- go(item) {
- uni.navigateTo({ url: item.path });
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .page {
- min-height: 100vh;
- background: #f7f8fa;
- }
- .menu {
- background: #fff;
- }
- .row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- min-height: 104rpx;
- padding: 0 32rpx;
- border-bottom: 1rpx solid #f0f0f0;
- &.last {
- border-bottom: none;
- }
- &:active {
- background: #fafafa;
- }
- .label {
- font-size: 30rpx;
- color: #333;
- }
- }
- </style>
|