officialAccount/pages/login/workjoin.vue

220 lines
4.7 KiB
Vue
Raw Normal View History

2025-06-09 17:33:50 +08:00
<template>
<view class="login-container">
2025-06-27 08:55:44 +08:00
<view class="index-up">
<image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix"
lazy-load="false" />
</view>
<view class="bgc-card">
<view class="title-card">
<view class="big-weight">机构加盟</view>
<view class="title-other">
加盟我们共享银发经济红利!依托成熟运营体系标准化服务流程降低人力成本及管理开支背靠品牌资源助力企业快速实现营收增长
2025-06-09 17:33:50 +08:00
</view>
</view>
2025-06-27 08:55:44 +08:00
<view class="under-scroll">
2025-06-20 17:32:20 +08:00
<view v-for="(item,index) in workArray" :key="index">
<view class="white-small">
<view style="width: 100%;margin-bottom: 80rpx;font-size: 25rpx;">
{{item.comName}}申请入驻加盟护理单元提交时间:{{item.updateTime}}审核结果:{{item.status==1 ? "审核中" :item.status==2?`审核完成`:item.status==3?`驳回`:`待提交` }}
{{item.status==3?`,驳回备注:${item.content}`:``}}
</view>
<view class="button-heng">
2025-06-27 08:55:44 +08:00
<view class="blue-button" v-if="item.status==3" @click="again(item)">
2025-06-20 17:32:20 +08:00
修改申请
2025-06-13 13:42:14 +08:00
</view>
2025-06-20 17:32:20 +08:00
<view class="white-button" @click="jumpToAll(item)">
查看详情
2025-06-09 17:33:50 +08:00
</view>
</view>
2025-06-27 08:55:44 +08:00
2025-06-09 17:33:50 +08:00
</view>
2025-06-20 17:32:20 +08:00
</view>
2025-06-27 08:55:44 +08:00
</view>
2025-06-09 17:33:50 +08:00
</view>
2025-06-27 08:55:44 +08:00
2025-06-09 17:33:50 +08:00
</view>
</template>
<script setup>
import {
reactive,
2025-06-27 08:55:44 +08:00
ref,
nextTick
2025-06-09 17:33:50 +08:00
} from 'vue';
2025-06-13 13:42:14 +08:00
import {
onLoad,
onPullDownRefresh
} from '@dcloudio/uni-app'
import {
2025-06-27 08:55:44 +08:00
getMessageList,
getMessageListsuccess
2025-06-13 13:42:14 +08:00
} from '@/pages/addjigou/api/addjigou.js'
2025-06-09 17:33:50 +08:00
const type = ref(0)
2025-06-11 17:33:34 +08:00
const workArray = ref([])
2025-06-27 08:55:44 +08:00
const special = ref(false);
2025-06-09 17:33:50 +08:00
// 页面加载时接收 URL 参数
onLoad((options) => {
2025-06-13 13:42:14 +08:00
type.value = options.type || ''
2025-06-27 08:55:44 +08:00
uni.getStorage({
key: 'openid',
success: function(res) {
if (type.value==1) {
getMessageList(res.data).then(res => {
workArray.value = res.result
})
}else if(type.value==3){
getMessageListsuccess(res.data).then(res => {
workArray.value = res.result
})
type.value=`1`;
special.value = true
}
}
});
2025-06-09 17:33:50 +08:00
})
2025-06-27 08:55:44 +08:00
onPullDownRefresh(() => {
uni.getStorage({
key: 'openid',
success: function(res) {
if (type.value) {
if(special.value){
getMessageListsuccess(res.data).then(res => {
workArray.value = res.result
})
}else{
getMessageList(res.data).then(res => {
workArray.value = res.result
})
}
}
}
});
uni.stopPullDownRefresh()
2025-06-20 17:32:20 +08:00
})
2025-06-09 17:33:50 +08:00
const goback = () => {
uni.navigateBack()
}
2025-06-13 13:42:14 +08:00
const again = (item) => {
2025-06-20 17:32:20 +08:00
console.log("????", item)
2025-06-13 13:42:14 +08:00
uni.setStorageSync("baddata", item)
uni.setStorageSync('specicalid', item.id);
2025-06-27 08:55:44 +08:00
uni.setStorageSync("backhuancun", {})
2025-06-13 13:42:14 +08:00
uni.navigateTo({
url: `/pages/addjigou/name`
});
}
const jumpToAll = (element) => {
uni.navigateTo({
url: `/pages/addjigou/all?element=${JSON.stringify(element)}`
});
}
2025-06-09 17:33:50 +08:00
</script>
<style lang="scss" scoped>
.login-container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
background-color: rgb(239, 241, 252);
position: relative;
}
.under-scroll {
width: 100%;
height: calc(100% - 460rpx);
.white-small {
width: 94%;
margin-left: 3%;
background-color: #fff;
border-radius: 30rpx;
padding: 30rpx;
margin-bottom: 30rpx;
font-size: 25rpx;
color: #999999;
position: relative;
}
}
.button-heng {
// width: 100%;
display: flex;
justify-content: flex-end;
position: absolute;
bottom: 30rpx;
right: 0;
.white-button {
width: 180rpx;
height: 60rpx;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to bottom, #F3F3F5, #DEE4E9);
border-radius: 30rpx;
color: black;
margin-right: 20rpx;
}
.blue-button {
width: 180rpx;
height: 60rpx;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to right, #00C9FF, #0076FF);
margin-right: 20rpx;
border-radius: 30rpx;
color: #fff;
2025-06-20 17:32:20 +08:00
2025-06-09 17:33:50 +08:00
}
}
2025-06-27 08:55:44 +08:00
.bgc-card{
margin-top: 550rpx;
background-color: #F7F7F7;
width: 99%;
border-top-left-radius: 30rpx;
border-top-right-radius: 30rpx;
min-height: calc(100vh - 550rpx);
z-index: 1;
}
.index-up {
position: absolute;
top: -70rpx;
left: 0;
width: 100%;
.index-up-img {
width: 100%;
height: 20rpx;
}
}
.title-card{
margin: 30rpx;
background-color: #fff;
width: 93%;
height: 250rpx;
border-radius: 30rpx;
padding: 0 45rpx;
margin-top: 40rpx;
padding-top: 45rpx;
.big-weight{
font-size: 30rpx;
color: #333333;
font-weight: 600;
margin-bottom: 30rpx;
}
.title-other{
color: #666666;
font-size: 25rpx;
}
}
2025-06-09 17:33:50 +08:00
</style>