zhaojs
2023-05-16 9707c4410a67d6a6d63b634f53565711d2d337da
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<template>
    <view class="subsidy-wrapper wrapperLayer">
        <titleBar :titleText='"补贴提现"' :pageForm='"subsidy"' @gopath='gosubsidy'></titleBar>
        <view class="pageContent-container rowCen borderBox">
            <view class="account-info-container colCen borderBox">
                <view class="zfb-container barcontent rowCenBet borderBox">
                    <view class="leftbox rowCen">
                        <view class="barname-box rowCen">
                            <view class="iconbox defIcon">
                                <image src="../../static/images/active/zfb.png" mode=""></image>
                            </view>
                            <view class="account-num">
                                支付宝
                            </view>
                        </view>
                        <view class="Accountname">
                            {{zfbinfo?zfbinfo.zfbAccount:''}}
                        </view>
                    </view>
 
                    <view class="right-content rowCen">
                        <view class="changeAccount rowCenCen" @tap='gobinding()' v-if="zfbinfo">
                            <view>修改</view>
                        </view>
                        <view class="nobinding rowCen" v-else @tap='gobinding()'>
                            <view class="text">
                                未绑定
                            </view>
                            <view class="icon-box defIcon">
                                <image src="../../static/images/goods/arrow.png" mode=""></image>
                            </view>
                        </view>
                    </view>
                </view>
 
                <view class="zfb-container barcontent rowCenBet borderBox" v-if="zfbinfo">
                    <view class="leftbox rowCen">
                        <view class="barname-box rowCen">
                            <view class="account-num">
                                真实姓名
                            </view>
                        </view>
                        <view class="Accountname">
                            {{zfbinfo.truename}}
                        </view>
                    </view>
                </view>
 
                <view class="zfb-container barcontent rowCenBet borderBox">
                    <view class="leftbox rowCen">
                        <view class="barname-box rowCen">
                            <view class="iconbox defIcon">
                                <image src="../../static/images/active/tb.png" mode=""></image>
                            </view>
                            <view class="account-num tbfont">
                                淘宝订单
                            </view>
                        </view>
                        <view class="tborder rowCen">
                            <input class="hinput" type="number" v-model="tborder" placeholder="输入订单编号(淘宝订单编号)" placeholder-class="inputplace" />
                        </view>
                    </view>
                </view>
                
                
                <view class="submitBtn rowCenCen" @tap='submit()'>
                    <view>提交</view>
                </view>
                
                <view class="tipsbox">
                    *请7天内完成认证,交易成功后预计次月25日返款
                </view>
                
                <view class="explain-text" v-html="explaincontent">
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
    import titleBar from '../../components/backTitlebar.vue'
    export default {
        components: {
            titleBar
        },
        data() {
            return {
                zfbinfo: '',
                explaincontent:'',
                tborder:''
            }
        },
        onShow() {
            this.getExplain()
            this.getzfbinfo()
        },
        methods: {
            submit(){
                this.$http.post('zeroBuyOrder/savaZeroBuyOrder',{
                    orderId:this.tborder,
                    truename:this.zfbinfo.truename,
                    zfbAccount:this.zfbinfo.zfbAccount
                },'application/json').then(res=>{
                    console.log(res);
                    
                })
            },
            getzfbinfo(){
                this.$http.post('zfbAccount/getZfbInfo').then(res=>{
                    console.log(res);
                    if(res.id){
                        this.zfbinfo = res
                    }else{
                        this.zfbinfo= false
                    }
                }) 
            },
            getExplain(){
                this.$http.get('agreement/list/3').then((res) => {
                    console.log(res, '========>信息');
                    this.explaincontent = res.content
                })
            },
            gosubsidy(e) {
                uni.navigateTo({
                    url: './zerolist'
                })
            },
            gobinding(){
                uni.navigateTo({
                    url:'../mine/setting/bindingZFB?fromModify=true'
                })
            }
        }
    }
</script>
 
<style lang="scss">
    .subsidy-wrapper {
        width: 100%;
        min-height: 100vh;
        background-color: #FFFFFF;
 
        .pageContent-container {
            width: 100%;
 
            .account-info-container {
                width: 100%;
                padding: 0 32rpx;
 
                .barcontent {
                    width: 100%;
                    height: 100rpx;
                    padding: 0 20rpx;
                    box-shadow: 0px 1rpx 0px 0px #EFF1F7;
 
                    .leftbox {
                        .barname-box{
                            width: 220rpx;
                            .iconbox {
                                width: 40rpx;
                                height: 40rpx;
                                margin-right: 17rpx;
                            }
                            .account-num {
                                font-size: 28rpx;
                                font-weight: 400;
                                color: #333333;
                            }
                            .tbfont {
                                color: #FF5300;
                            }
                        }
 
                        .Accountname {
                            font-size: 28rpx;
                            font-weight: 400;
                            color: #333333;
                        }
 
                        .tborder {
                            
                            .hinput {
                                width: 400rpx;
                                font-size: 28rpx;
                                font-weight: 400;
                                color: #333333;
                            }
 
                            .inputplace {
                                font-size: 28rpx;
                                font-weight: 400;
                                color: #999999;
                            }
                        }
                    }
 
                    .right-content {
                        .changeAccount {
                            width: 100rpx;
                            height: 40rpx;
                            background: linear-gradient(266deg, #7D0DFC, #D116FD);
                            border-radius: 20rpx;
                            font-size: 26rpx;
                            font-weight: 400;
                            color: #FFFFFF;
                        }
 
                        .nobinding {
                            .text {
                                font-size: 26rpx;
                                font-weight: 400;
                                color: #999999;
                                margin-right: 15rpx;
                            }
 
                            .icon-box {
                                width: 8rpx;
                                height: 17rpx;
                            }
                        }
                    }
                }
                
                .submitBtn{
                    width: 100%;
                    height: 80rpx;
                    background: linear-gradient(266deg, #7D0DFC, #D116FD);
                    border-radius: 40rpx;
                    font-size: 32rpx;
                    font-weight: 400;
                    color: #FFFFFF;
                    margin-top: 60rpx;
                }
                
                .tipsbox{
                    text-align: center;
                    font-size: 24rpx;
                    font-weight: 400;
                    color: #666666;
                    margin-top: 20rpx;
                }
                
                .explain-text{
                    width: 100%;
                    margin-top: 60rpx;
                }
            }
        }
    }
</style>