xuruiqian
2025-06-04 17ce21955b4e3402d3d5868b52e50bfdd55bc572
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<template>
    <view class="content">
        <view class="card">
            <view class="count">
                <text>学校信息设置</text>
                <text style="color: gray;">剩余修改次数
                    <text style="color:#3c9cff">&nbsp;{{ count }}&nbsp;</text>
                    次
                </text>
            </view>
            <view class="organization">
                <view class="show" style="margin-top: 40rpx;">
                    <text>学校:</text>
                    <text class="info">{{ userStore.schoolName }}</text>
                </view>
                <view class="show">
                    <text>学院:</text>
                    <text class="info">{{ userStore.collegeName }}</text>
                </view>
                <view class="show">
                    <text>专业:</text>
                    <text class="info">{{ userStore.majorName }}</text>
                </view>
            </view>
            <view class="submit" v-if="count > 0">
                <u-button size="large" type="primary" shape="circle" @click="submit">修改</u-button>
            </view>
        </view>
    </view>
</template>
 
<script>
    import {ref, reactive, toRefs, onMounted, getCurrentInstance} from "vue";
    import {onLoad, onShow} from "@dcloudio/uni-app";
    import {useBasicInfoStore} from "../../store/basicInfo"
 
    export default {
        setup() {
            const userStore = useBasicInfoStore()
            const {proxy} = getCurrentInstance();
            const state = reactive({
                count: 100,
            })
 
            onMounted(() => {
                Init();
            });
 
            onShow(() => {
 
            })
 
            const Init = () => {
 
            }
 
 
            const submit = () => {
                userStore.school = null
                userStore.college = null
                userStore.major = null
                uni.navigateTo({url: '/pages/index/index'})
            }
 
 
            return {...toRefs(state), userStore, submit}
        }
    }
 
 
</script>
 
<style scoped lang="scss">
    .center {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
 
    .content {
        @extend .center;
        height: 100vh;
        width: 100%;
        background-color: #f5f5f5;
    }
 
    .card {
        width: 95%;
        //height: 15vh;
        overflow: auto;
        border-radius: 10px;
        background-color: #fff;
        margin-top: 20 rpx;
        padding: 20 rpx 0 rpx 60 rpx 0 rpx;
        @extend .center;
 
        .count {
            width: calc(100% - 40rpx);
            padding: 0 rpx 20 rpx;
            height: 80 rpx;
            border-bottom: 1px solid #f5f5f5;
            line-height: 80 rpx;
            display: flex;
            justify-content: space-between;
        }
 
        .organization {
            width: 80%;
            overflow: auto;
 
            .show {
                height: 80 rpx;
                line-height: 80 rpx;
 
                .info {
                    color: gray;
                }
            }
 
        }
    }
 
 
    .submit {
        width: 80%;
        overflow: auto;
        margin-top: 60 rpx;
    }
</style>