QYF-GitLab1
2024-12-31 dd9ca4df1e2a72707de5ae4e57e081d89db01a36
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
<view class="container">
  <view class="itemList">
    <view class="label">头像</view>
    <view class="contentImg">
      <t-image src="{{userInfo.icon}}" mode="aspectFill" />
    </view>
    <view class="iconEdit" data-info="{{'icon'}}" bindtap="editIconInfo">
      <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" />
    </view>
  </view>
  <view class="itemList">
    <view class="label">用户名</view>
    <view class="content" data-info="{{'nickName'}}" bindtap="editUserInfo"
      >{{userInfo.nickName || '微信用户'}}</view
    >
    <t-icon name="chevron-right" size="40rpx" color="#C2C2C2" />
  </view>
  <view class="itemList">
    <view class="label">手机号码</view>
    <view class="content" data-info="{{'phone'}}" bindtap="editUserInfo"
      >{{userInfo.phoneNumber || '未绑定手机号'}}</view
    >
    <t-icon
      name="chevron-right"
      size="40rpx"
      color="#C2C2C2"
      data-info="{{'phone'}}"
      bindtap="editUserInfo"
    />
  </view>
  <view class="itemList">
    <view class="label">邮箱</view>
    <view class="content" data-info="{{'email'}}" bindtap="editUserInfo"
      >{{userInfo.Email}}</view
    >
    <t-icon
      name="chevron-right"
      size="40rpx"
      color="#C2C2C2"
      data-info="{{'email'}}"
      bindtap="editUserInfo"
    />
  </view>
  <!-- <t-popup visible="{{userInfoBox}}" bind:visible-change="onVisibleChange" placement="center">
    <view class="block">
      <view class="body">
        <view class="from-item" wx:if="{{editType == 'nickName'}}">
          <view class="label"> 昵称: </view>
          <view class="item-content">
            <view class="inputBox1">
              <t-input placeholder="输入昵称" borderless value="{{userInfoForm.nickName}}" bindchange="onNameInput" />
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType == 'phone'}}">
          <view class="label"> 手机号: </view>
          <view class="item-content">
            <view class="inputBox1">
              <t-input placeholder="输入手机号码" borderless value="{{userInfoForm.phone}}" type="number" tips="{{phoneError ? '手机号输入不正确' : ''}}" bindchange="onPhoneInput" />
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType == 'email'}}">
          <view class=" label"> 邮箱: </view>
          <view class="item-content">
            <view class="inputBox1">
              <t-input placeholder="输入邮箱" borderless value="{{userInfoForm.email}}" tips="{{emailError ? '邮箱输入不正确' : ''}}" bindchange="onEmailInput" />
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType !== 'nickName'}}">
          <view class="label"> 图形验证码: </view>
          <view class="item-content">
            <view class="inputBox">
              <t-input placeholder="输入图形验证码" borderless value="{{userInfoForm.captcha}}" type="number" bindchange="onCaptchaInput" />
            </view>
            <view class="code">
              <image src="{{imgCode}}" class="imgCode hover" bindtap="getImgCapcha" />
            </view>
          </view>
 
        </view>
        <view class="from-item" wx:if="{{editType == 'phone'}}">
          <view class="label"> 短信验证码: </view>
          <view class="item-content">
            <view class="inputBox">
              <t-input placeholder="输入短信验证码" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" />
            </view>
            <view class="code">
              <button class="btn" bindtap="getPhoneCode">{{countDown > 0 ? '验证码(' + countDown + 's)' : '获取短信验证码'}}</button>
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType == 'email'}}">
          <view class="label"> 邮箱验证码: </view>
          <view class="item-content">
            <view class="inputBox">
              <t-input placeholder="输入邮箱验证码" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" />
            </view>
            <view class="code">
              <button class="btn" bindtap="getEmailCode">获取邮箱验证码</button>
            </view>
          </view>
        </view>
      </view>
      <view class="footer">
        <button class="submit" bindtap="confirmInfo">确定</button>
      </view>
      <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="onCloseProtocol" />
    </view>
  </t-popup> -->
</view>
<view
  class="popup-box"
  wx:if="{{userInfoBox}}"
  bindtap="onCloseProtocol"
></view>
<view class="info-center" style="top:{{height*0.3}}px;" wx:if="{{userInfoBox}}">
  <view>
    <view class="row-info">
      <view class="body">
        <view class="from-item" wx:if="{{editType == 'nickName'}}">
          <view class="label"> 昵称: </view>
          <view class="item-content">
            <view class="inputBox1">
              <t-input
                placeholder="输入昵称"
                borderless
                value="{{userInfoForm.nickName}}"
                bindchange="onNameInput"
              />
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType == 'phone'}}">
          <view class="label"> 手机号: </view>
          <view class="item-content">
            <view class="outsideInputBox1">
              <view class="inputBox1">
                <t-input
                  placeholder="输入手机号码"
                  borderless
                  value="{{userInfoForm.phone}}"
                  type="number"
                  bindchange="onPhoneInput"
                />
              </view>
              <view wx:if="{{phoneError}}" style="font-size: 24rpx; color: red"
                >手机号输入不正确</view
              >
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType == 'email'}}">
          <view class="label"> 邮箱: </view>
          <view class="item-content">
            <view class="outsideInputBox1">
              <view class="inputBox1">
                <t-input
                  placeholder="输入邮箱"
                  borderless
                  value="{{userInfoForm.email}}"
                  bindchange="onEmailInput"
                />
              </view>
              <view wx:if="{{emailError}}" style="font-size: 24rpx; color: red"
                >邮箱输入不正确</view
              >
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType !== 'nickName'}}">
          <view class="label"> 图形验证码: </view>
          <view class="item-content">
            <view class="inputBox">
              <t-input
                placeholder="输入图形验证码"
                borderless
                value="{{userInfoForm.captcha}}"
                type="number"
                bindchange="onCaptchaInput"
              />
            </view>
            <view class="code">
              <image
                src="{{imgCode}}"
                class="imgCode hover"
                bindtap="getImgCapcha"
              />
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType == 'phone'}}">
          <view class="label"> 短信验证码: </view>
          <view class="item-content">
            <view class="inputBox">
              <t-input
                placeholder="输入短信验证码"
                borderless
                value="{{userInfoForm.code}}"
                type="number"
                bindchange="onCodeInput"
              />
            </view>
            <view class="code">
              <button
                disabled="{{countDown > 0}}"
                class="{{countDown > 0 ? ' disabled' : 'btn'}}"
                bindtap="getPhoneCode"
              >
                {{countDown > 0 ? '验证码(' + countDown + 's)' :
                '获取短信验证码'}}
              </button>
            </view>
          </view>
        </view>
        <view class="from-item" wx:if="{{editType == 'email'}}">
          <view class="label"> 邮箱验证码: </view>
          <view class="item-content">
            <view class="inputBox">
              <t-input
                placeholder="输入邮箱验证码"
                borderless
                value="{{userInfoForm.code}}"
                type="number"
                bindchange="onCodeInput"
              />
            </view>
            <view class="code">
              <button
                disabled="{{mailCountDown > 0}}"
                class="{{mailCountDown > 0 ? ' disabled' : 'btn'}}"
                bindtap="getEmailCode"
              >
                {{mailCountDown > 0 ? '验证码(' + mailCountDown + 's)' :
                '获取邮箱验证码'}}
              </button>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="row-btn">
      <view class="left-btn" bindtap="onCloseProtocol">取消</view>
      <view class="right-btn" bindtap="confirmInfo">确认</view>
    </view>
  </view>
</view>