| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <template>
- <view class="mine_container">
- <view class="card_head_mine">
- <view class="same_row_in">
- <image class="logo" src="/static/logo.png"></image>
- <view class="login_hint">登录/注册</view>
- </view>
- <view>
- <u-icon name="arrow-right"></u-icon>
- </view>
- </view>
- <view class="card_order_box space_between">
- <view class="same_row_in">
- <u-icon name="file-text" size="25"></u-icon>
- <view class="title_item_shop">全部订单</view>
- </view>
- <u-icon name="arrow-right"></u-icon>
- </view>
- <view class="card_tabs_box">
- <view class="card_item_box space_between" v-for="(item,index) in list" :key="index" @click="goMenu(item)">
- <view class="same_row_in">
- <u-icon name="file-text" size="25"></u-icon>
- <view class="title_item_shop">{{item.title}}</view>
- </view>
- <u-icon name="arrow-right"></u-icon>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- list: [{
- type: 'drugUser',
- title: '用药人管理',
- }, {
- type: 'address',
- title: '地址管理',
- }, {
- type: 'news',
- title: '消息通知',
- }]
- }
- },
- onLoad() {},
- methods: {
- goMenu(event) {
- if (event.type == 'drugUser') {
- uni.navigateTo({
- url: '/pages/mine/drugUser'
- });
- } else if (event.type == 'address') {
- uni.navigateTo({
- url: '/pages/mine/address'
- });
- }
- console.log(event, 87)
- }
- }
- }
- </script>
- <style>
- /* page {
- background-color: #F3F4F6;
- } */
- .mine_container {
- width: 100%;
- position: relative;
- top: calc(28rpx + var(--status-bar-height));
- }
- .header {
- position: absolute;
- width: 100%;
- padding: 38rpx 20rpx 20rpx 20rpx;
- box-sizing: border-box;
- height: 42rpx;
- }
- .card_head_mine {
- position: relative;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 85rpx 30rpx 0rpx 30rpx;
- margin-bottom: 30rpx;
- }
- .logo {
- height: 100rpx;
- width: 100rpx;
- border-radius: 50%;
- }
- .login_hint {
- margin-left: 20rpx;
- font-weight: bold;
- font-size: 36rpx;
- }
- .card_order_box {
- background-color: #fff;
- padding: 26rpx 20rpx;
- margin: 20rpx;
- border-radius: 20rpx;
- }
- .card_tabs_box {
- margin: 20rpx;
- background-color: #fff;
- border-radius: 20rpx;
- }
- .card_item_box {
- padding: 26rpx 20rpx;
- border-bottom: 1px solid #F3F4F6;
- }
- .title_item_shop {
- margin-left: 10rpx;
- font-size: 30rpx;
- }
- </style>
|