97 lines
1.8 KiB
Vue
Raw Normal View History

2024-04-21 22:57:15 +08:00
<template>
<view class="list">
2024-04-22 17:36:17 +08:00
<headers :showBack="!isNull" themeType="white" showRightIcon @select="toDept">
<view class="headerName">
我的资质
</view>
<template #right>
<u-icon v-if="isNull" @click="exit" size="40" name="more-dot-fill"></u-icon>
</template>
</headers>
2024-04-21 22:57:15 +08:00
<view class="item" v-for="(item,index) in list" :key="index" @click="go(item.url)">
2024-04-22 17:36:17 +08:00
<image :src="'/static/supplierImg/' + item.icon +'.png'" mode="widthFix"></image>
2024-04-21 22:57:15 +08:00
<text class="title">{{ item.title }}</text>
<u-icon name="arrow-right" color="#999"></u-icon>
</view>
</view>
</template>
<script>
2024-04-22 17:36:17 +08:00
import {
exitApp
} from "@/utils/tool.js"
2024-04-21 22:57:15 +08:00
export default {
data() {
return {
2024-04-22 17:36:17 +08:00
isNull: false,
2024-04-21 22:57:15 +08:00
list: [{
2024-04-22 17:36:17 +08:00
icon:"g1",
2024-04-21 22:57:15 +08:00
title: "基本信息",
url: "/pages/supplier/qualifications/info"
}, {
2024-04-22 17:36:17 +08:00
icon:"g2",
2024-04-21 22:57:15 +08:00
title: "资质文件",
url: "/pages/supplier/qualifications/fileList"
}, {
2024-04-22 17:36:17 +08:00
icon:"g3",
2024-04-21 22:57:15 +08:00
title: "资质申请",
url: "/pages/supplier/qualifications/apply"
}]
};
},
2024-04-22 17:36:17 +08:00
onLoad(option) {
console.log(option);
if (option.isNull) {
this.isNull = true;
}
},
2024-04-21 22:57:15 +08:00
methods: {
2024-04-22 17:36:17 +08:00
exit() {
// 退出APP
uni.showModal({
title: '提醒',
content: '是否退出当前账号',
success: function(res) {
if (res.confirm) {
exitApp()
} else if (res.cancel) {
}
}
});
},
2024-04-21 22:57:15 +08:00
go(url) {
uni.navigateTo({
url
})
}
}
}
</script>
<style lang="scss" scoped>
.list {
.item {
display: flex;
align-items: center;
padding: 35rpx;
box-shadow: 0 5rpx 8rpx 1rpx #E8EDFC;
&:active {
background-color: rgba(0, 0, 0, .01);
}
image {
width: 40rpx;
height: auto;
}
.title {
flex: 1;
padding: 0 20rpx;
}
}
}
2024-04-22 17:36:17 +08:00
</style>