155 lines
3.2 KiB
Vue
Executable File
155 lines
3.2 KiB
Vue
Executable File
<template>
|
|
<view class="main">
|
|
<view class="top-tag">
|
|
<view class="tag" @click="PageNavigate('../../apply/auditlist/auditlist')">
|
|
<view >
|
|
<image src="../../../static/com/myapply.png" mode="scaleToFill"></image>
|
|
</view>
|
|
<text>我审批的</text>
|
|
</view>
|
|
<view class="tag" @click="PageNavigate('../../apply/auditlist/auditlist')">
|
|
<view>
|
|
<image src="../../../static/com/msend.png" mode="scaleToFill"></image>
|
|
</view>
|
|
<text>我发起的</text>
|
|
</view>
|
|
<view class="tag" @click="PageNavigate('../../apply/auditlist/auditlist')">
|
|
<view>
|
|
<image src="../../../static/com/finish.png" mode="scaleToFill"></image>
|
|
</view>
|
|
<text>抄送我的</text>
|
|
</view>
|
|
</view>
|
|
<view class="drop-tag" >
|
|
<view class="drop-title" @tap="DropChange" data-index="1">
|
|
<view class="d-title">单据审批(2)</view>
|
|
<view class="d-icon">
|
|
<view>
|
|
<fa-icon v-if="tagIndex===1" type="angle-up" size="22" color="#CCC"></fa-icon>
|
|
<fa-icon v-if="tagIndex!=1" type="angle-down" size="22" color="#CCC"></fa-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="drop-contain" v-if="tagIndex===1">
|
|
<view class="d-tag">
|
|
<view>
|
|
<image src="../../../static/com/ordersissued.png" mode="scaleToFill"></image>
|
|
</view>
|
|
<text>工单下达</text>
|
|
</view>
|
|
<view class="d-tag">
|
|
<view>
|
|
<image src="../../../static/com/orderclosure.png" mode="scaleToFill"></image>
|
|
</view>
|
|
<text>工单结案</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import faIcon from "@/components/fa-icon/fa-icon.vue"
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
tagIndex:1
|
|
}
|
|
},
|
|
components: {
|
|
faIcon
|
|
},
|
|
methods: {
|
|
//下拉
|
|
DropChange:function (e) {
|
|
console.log(e.currentTarget.dataset)
|
|
if (e.currentTarget.dataset.index != this.tagIndex) {
|
|
this.tagIndex=1;
|
|
} else {
|
|
this.tagIndex=0;
|
|
}
|
|
console.log(this.tagIndex);
|
|
},
|
|
PageNavigate:function(urls){
|
|
uni.navigateTo({
|
|
url: urls
|
|
});
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.main{
|
|
height: 100%;
|
|
background-color: #F2F2F2;
|
|
}
|
|
.top-tag{
|
|
height: 20%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
background-color: #FFFFFF;
|
|
margin-bottom: 20upx;
|
|
}
|
|
image{
|
|
height: 100upx;
|
|
width: 100upx;
|
|
}
|
|
.tag{
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
.drop-tag{
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #FFFFFF;
|
|
margin-bottom: 10upx;
|
|
}
|
|
.drop-title{
|
|
height: 80upx;
|
|
padding: 18upx 0;
|
|
border-bottom: 1upx solid #F2F2F2;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
.drop-title view{
|
|
flex: 1;
|
|
}
|
|
.d-title{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding-left: 30upx;
|
|
font-size: 35upx;
|
|
font-weight: bold;
|
|
}
|
|
.d-icon{
|
|
display: flex;
|
|
}
|
|
.d-icon view{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
margin-right: 15upx;
|
|
}
|
|
.drop-contain
|
|
{
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
.d-tag{
|
|
display: flex;
|
|
height: 230upx;
|
|
width: 33%;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
|
|
</style>
|