| | |
| | | </div> |
| | | |
| | | <button class="login-btn" :style="[inputStyle]" @tap="submit">登录</button> |
| | | <button class="login-btn" :style="[inputStyle]" @tap="submit1">登录1</button> |
| | | <!-- <view class="agreement"> |
| | | <label> |
| | | <checkbox :checked="agreed" @click="agreed = !agreed" /> |
| | | 同意《用户协议》与《隐私政策》 |
| | | </label> |
| | | </view> --> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | username: "admin", |
| | | password: "admin", |
| | | }); |
| | | function submit1() { |
| | | gdLogin(); |
| | | } |
| | | async function submit() { |
| | | // 调用工单登录接口 |
| | | |
| | | if (!loginForm.value.username.trim()) { |
| | | uni.showToast({ |
| | |
| | | console.error('处理位置服务失败:', error); |
| | | } |
| | | |
| | | |
| | | // 调用工单登录接口 |
| | | await gdLogin() |
| | | |
| | | uni.reLaunch({ |
| | | url: "/pages/work/index", |
| | |
| | | .link { |
| | | color: $u-warning; |
| | | } |
| | | } |
| | | .agreement { |
| | | position: absolute; |
| | | bottom: 40rpx; |
| | | left: 0; |
| | | right: 0; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | text-align: center; |
| | | } |
| | | .forgotPassword { |
| | | font-family: PingFang SC, PingFang SC; |