123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <template>
- <view class="content">
- <!-- 头部 -->
- <view class="head">
- <!-- 用户头像 -->
- <image :src="avatar" class="user" @click="userTo()">
- <text class="name">{{$store.state.user.name}}</text>
- </view>
- <!-- 司机报单 -->
- <view class="driverEntry" @click="driverClass('BD')">
- <!-- 图标 -->
- <span class="icon iconfont"></span>
- <view class="message">
- <text class="main">司机报单</text>
- <!-- <text class="assist">司机报单</text> -->
- </view>
- </view>
- <!-- 费用报销 -->
- <view class="driverEntry" @click="driverClass('BX')">
- <!-- 图标 -->
- <span class="icon iconfont"></span>
- <view class="message">
- <text class="main">费用报销</text>
- <!-- <text class="assist">费用报销</text> -->
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- }
- },
- computed: {
- avatar() {
- return this.$store.state.user.avatar
- }
- },
- onLoad() {
- // 调用获取位置信息
- uni.getLocation({
- type: 'wgs84',
- isHighAccuracy: true,
- geocode: true,
- success: (map) => {
- }
- });
- },
- onReachBottom() {},
- methods: {
- driverClass(type) {
- //跳转列表
- uni.navigateTo({
- url: '/pages/listview?type=' + type
- });
- }
- },
- }
- </script>
- <style lang="scss">
- @import url("/font/iconfont.css");
- .content {
- // background-color: #f6f6f6;
- // 头部
- .head {
- width: 100%;
- height: 360rpx;
- background-color: #3c9cff;
- position: relative;
- // 用户头像
- .user {
- width: 200rpx;
- height: 200rpx;
- border-radius: 100rpx;
- position: absolute;
- top: 40rpx;
- left: calc(50% - 100rpx);
- border-radius: 200rpx;
- }
- // 用户名字
- .name {
- color: #fff;
- font-size: 40rpx;
- position: absolute;
- bottom: 40rpx;
- left: 50%;
- transform: translateX(-50%);
- border-radius: 200rpx;
- }
- }
- // 司机报单
- .driverEntry {
- width: 90%;
- height: 300rpx;
- border-radius: 20rpx;
- margin: 30rpx auto 0 auto;
- // margin-top: 30rpx;
- position: relative;
- background-color: #fff;
- border: 4rpx solid #e6e6e6;
- .icon {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- left: 60rpx;
- color: #377bdc;
- font-size: 160rpx;
- }
- .message {
- width: 60%;
- height: 100%;
- position: absolute;
- right: 0;
- .main {
- position: absolute;
- font-size: 30rpx;
- font-weight: 600;
- color: #4d88de;
- top: 100rpx;
- }
- .assist {
- position: absolute;
- font-size: 30rpx;
- color: #a0a0a0;
- top: 160rpx;
- }
- }
- }
- }
- </style>
|