zhaojs
2023-05-19 51121a6c9eaf9bdd04bf11ce591ca3e2d0903d81
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
<template>
    <view class="accountAuthorization-wrapper wrapperLayer colCen">
        <titleBar :titleText="'账号授权'" :pageForm='"accountAuthorization"'></titleBar>
        
        <image class="icon" v-if="status" src="../../../static/images/mine/suc.png" mode="aspectFill"></image>
        <image class="icon" v-else src="../../../static/images/mine/fail.png" mode="aspectFill"></image>
        
        <view class="result">
            {{status?'授权成功!':'授权失败!'}}
        </view>
        
        <view class="res" v-if="!status">
            {{res}}
        </view>
        
        <view @tap='back()' class="close-btn rowCenCen" :style="status?'background: #17D56B;box-shadow: 0px 5rpx 9rpx 0px rgba(23, 213, 107, 0.33)':''">
            <view>关闭</view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data(){
            return{
                status:false
            }
        },
        onLoad(options) {
            this.status = options.status
            if(this.status==1){
                this.status = true
            }else{
                this.status = false
            }
            console.log(this.status);
            this.res = options.res
        },
        methods:{
            back(){
                uni.navigateBack({
                    delta:1
                })
            }
        }
    }
</script>
 
<style lang="scss">
    .accountAuthorization-wrapper{
        width: 100%;
        height: 100vh;
        background-color: #FFFFFF;
        .icon{
            width: 107rpx;
            height: 107rpx;
            margin-top: 180rpx;
        }
        .result{
            font-size: 36rpx;
            font-weight: bold;
            color: #333333;
            margin-top: 35rpx;
            margin-bottom: 50rpx;
        }
        
        .res{
            margin-bottom: 60rpx;
            font-size: 24rpx;
            font-weight: 500;
            color: #333333;
        }
        
        .close-btn{
            width: 418rpx;
            height: 76rpx;
            background: #FD002F;
            box-shadow: 0px 5rpx 9rpx 0px rgba(253, 0, 47, 0.33);
            opacity: 0.97;
            border-radius: 38rpx;
            font-size: 30rpx;
            font-weight: 500;
            color: #FFFFFF;
        }
    }
</style>