From adce345fe6512abb5f5e26d2d132938061f55c72 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Tue, 12 May 2020 15:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/heart/heart.wxss | 1 + .../cancelSignupDialog/cancelSignupDialog.wxml | 2 +- subpages/heart/pages/clockIn/clockIn.js | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pages/heart/heart.wxss b/pages/heart/heart.wxss index 38d118e..662add2 100644 --- a/pages/heart/heart.wxss +++ b/pages/heart/heart.wxss @@ -2,6 +2,7 @@ page { height: 100%; font-size: 32rpx; line-height: 1.6; + background: #f7f7f7; } .container{ width: 100vw; diff --git a/subpages/heart/components/cancelSignupDialog/cancelSignupDialog.wxml b/subpages/heart/components/cancelSignupDialog/cancelSignupDialog.wxml index c4c9a05..43e503c 100644 --- a/subpages/heart/components/cancelSignupDialog/cancelSignupDialog.wxml +++ b/subpages/heart/components/cancelSignupDialog/cancelSignupDialog.wxml @@ -1,4 +1,4 @@ - + diff --git a/subpages/heart/pages/clockIn/clockIn.js b/subpages/heart/pages/clockIn/clockIn.js index 3f1b32e..e3b2c8b 100644 --- a/subpages/heart/pages/clockIn/clockIn.js +++ b/subpages/heart/pages/clockIn/clockIn.js @@ -82,6 +82,15 @@ Page({ locationLatitude: res.longitude } }) + }, + fail: (res) => { + wx.hideLoading(); + wx.showToast({ + title: '位置获取失败,请开启手机GPS定位', + icon: 'none', + duration: 3000 + }) + console.log(res); } }) },