From 7bdf1aa76107f6f188e738cf5b3a764a0e988ed6 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sat, 03 Jul 2021 14:36:16 +0800
Subject: [PATCH] 群防任务顶部导航条样式调整
---
pages/clockSignIn/clockSignIn.vue | 64 +++++++++++++++----------------
1 files changed, 31 insertions(+), 33 deletions(-)
diff --git a/pages/clockSignIn/clockSignIn.vue b/pages/clockSignIn/clockSignIn.vue
index ca0d5e4..48527fa 100644
--- a/pages/clockSignIn/clockSignIn.vue
+++ b/pages/clockSignIn/clockSignIn.vue
@@ -117,38 +117,36 @@
//去打卡
goClock() {
var that = this;
- axios({
- method: "POST",
- url: this.$store.state.piAPI + `/attendance/AppSave`,
- params: {
- number: this.$store.state.puserID,
- name: this.name,
- clockTime: this.getNowTime(1),
- jd: this.jd,
- wd: this.wd,
- address: this.address
- },
- }).then((resdata) => {
- //不在考勤范围内
- if (resdata.data.code == 400) {
- layui.use('layer', function() {
- var layer = layui.layer;
- layer.msg('打卡失败,不在考勤范围', {
- icon: 0
- });
- });
- }
- //打卡成功
- if (resdata.data.code == 200) {
- layui.use('layer', function() {
- var layer = layui.layer;
- layer.msg('打卡成功!', {
- icon: 1
- });
- });
- }
-
- });
+ uni.request({
+ url: this.$store.state.piAPI + `/attendance/AppSave`,
+ method: "POST",
+ data:{
+ number: this.$store.state.puserID,
+ name: this.name,
+ clockTime: this.getNowTime(1),
+ jd: this.jd,
+ wd: this.wd,
+ address: this.address
+ },
+ success(resdata) {
+ //不在考勤范围内
+ if (resdata.data.code == 400) {
+ uni.showToast({
+ title: '不在考勤范围,打卡失败!',
+ icon:'none',
+ duration: 2000
+ });
+ }
+ //打卡成功
+ if (resdata.data.code == 200) {
+ uni.showToast({
+ title: '打卡成功!',
+ icon:'success',
+ duration: 2000
+ });
+ }
+ }
+ })
},
//获取当前时间
@@ -365,7 +363,7 @@
height: 6rem;
border-radius: 100px;
color: #FFFFFF;
- background-image: linear-gradient(to bottom,#65CBA9,#66D0AC);
+ background-image: linear-gradient(to bottom,#0FD0E1,#0FD0E1);
display: flex;
flex-direction: column;
align-items: center;
--
Gitblit v1.9.3