This commit is contained in:
shuhongfan
2023-09-04 16:40:17 +08:00
commit cf5ac25c14
8267 changed files with 1305066 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
<template>
<view class="nav-bg mnav-bg">
<view class="headBg"></view>
<view class="header">
<view class="headBox">
<view class="head"
><icon v-if="baseData.avatar === ''"></icon
><image :src="baseData.avatar" v-else></image
></view>
<view class="info">
<view class="tit">{{ baseData.name }}</view>
<view>{{ baseData.account }}</view>
<view class="address">
<icon></icon>
{{ baseData.agencyName ? baseData.agencyName : "暂无" }}
</view>
</view>
</view>
<view class="QR" @click="handleQr"
><image src="../../../static/qr.png"></image
></view>
</view>
</view>
</template>
<script setup>
// 获取父组件数据
const props = defineProps({
baseData: {
type: Object,
default: () => ({}),
},
});
// ------定义方法------
// 二维码暂时不做
const handleQr = () => {
// TODO暂时保留
// uni.navigateTo({
// url:'/pages/my/qrCode'
// })
uni.showToast({
title: "程序员哥哥正在实现中",
duration: 1000,
icon: "none",
});
};
</script>
<style src="./../index.scss" lang="scss" scoped></style>

View File

@@ -0,0 +1,46 @@
<template>
<view class="boxBg headTop">
<view class="headItem">
<view class="item">
<text>我的评价</text>
<view class="star">
<uni-rate
:readonly="true"
allow-half
:value="4.5"
active-color="#EF4F3F"
color="#F4F4F4"
/>
<text>{{ 4.5 }}</text>
</view>
</view>
<view class="item">
<text>排班时间</text>
<text
v-if="
(!baseData.startTime || baseData.startTime === '') &&
(!baseData.endTime || baseData.endTime === '')
"
>无</text
>
<text v-else
>{{ overTimeFormat(baseData.startTime) }}-{{
overTimeFormat(baseData.endTime)
}}</text
>
</view>
</view>
</view>
</template>
<script setup>
// 时间处理
import { overTimeFormat } from "@/utils/index.js";
// 获取父组件数据
const props = defineProps({
baseData: {
type: Object,
default: () => ({}),
},
});
</script>
<style src="./../index.scss" lang="scss" scoped></style>

View File

@@ -0,0 +1,30 @@
<template>
<view class="boxBg">
<view class="headItem">
<view class="item" @click="handleHistory">
<text>全部取派</text>
<text><icon class="nextIcon"></icon></text>
</view>
<navigator url="/pages/my/map" open-type="redirect">
<view class="item">
<text>作业范围</text>
<text><icon class="nextIcon"></icon></text>
</view>
</navigator>
</view>
</view>
</template>
<script setup>
import { useStore } from "vuex";
const store = useStore(); //vuex获取储存数据
// ------定义方法------
// 历史派件
const handleHistory = () => {
store.commit("user/setTabIndex", 0);
store.commit("user/setTaskStatus", -1);
uni.navigateTo({
url: "/pages/history/index",
});
};
</script>
<style src="./../index.scss" lang="scss" scoped></style>